9f6d6c460584990f94f53837373beb68c4e56f2d
[gnulib.git] / ChangeLog
1 2012-05-05  Bruno Haible  <bruno@clisp.org>
2
3         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
6         set gl_cv_struct_dirent_d_ino to "guessing yes".
7
8 2012-05-05  Bruno Haible  <bruno@clisp.org>
9
10         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
11         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
12         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
13         "guessing yes".
14
15 2012-05-05  Bruno Haible  <bruno@clisp.org>
16
17         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
18         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
19         compiling to a glibc system, set gl_cv_func_signbit and
20         gl_cv_func_signbit_gcc to "guessing yes".
21
22 2012-05-05  Bruno Haible  <bruno@clisp.org>
23
24         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
25         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
26         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
27         to "guessing yes".
28         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
29         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
30
31 2012-05-05  Bruno Haible  <bruno@clisp.org>
32
33         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
34         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
35         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
36         gl_cv_func_realpath_works to "guessing yes".
37
38 2012-05-05  Bruno Haible  <bruno@clisp.org>
39
40         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
41         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
42         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
43
44 2012-05-04  Bruno Haible  <bruno@clisp.org>
45
46         Tweak last commit.
47         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
48         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49
50 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
51
52         unistd_h: make it easier to avoid sys_types_h
53         This is useful for Emacs, which has its own method of porting to
54         Windows, and which therefore does not need the sys_types_h module.
55         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
56         code moved here from gl_SYS_TYPES_H.
57         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
58         using the code directly.
59         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
60         gl_SYS_TYPES_H.
61         * modules/sys_types (Files):
62         * modules/unistd (Files): Add m4/off_t.m4.
63
64 2012-05-03  Bruno Haible  <bruno@clisp.org>
65
66         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
67         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
68         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
69         "guessing yes" or "guessing no".
70         (gl_FUNC_LSTAT): Update.
71         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
72         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
73         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
74
75 2012-05-03  Bruno Haible  <bruno@clisp.org>
76
77         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
78         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
79         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
80         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
81         cross-compiling, choose the first alternative on glibc systems.
82         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
83
84 2012-05-03  Bruno Haible  <bruno@clisp.org>
85
86         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
87         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
88         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
89
90 2012-05-03  Bruno Haible  <bruno@clisp.org>
91
92         chown: Avoid "guessing no" when cross-compiling to glibc systems.
93         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
94
95 2012-05-03  Bruno Haible  <bruno@clisp.org>
96
97         Avoid "guessing no" guesses when cross-compiling to glibc systems.
98         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
99         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
100         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
101         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
102         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
103         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
104         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
105         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
106         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
107         compiling to glibc systems, set gl_cv_func_chown_slash_works,
108         gl_cv_func_chown_ctime_works to "guessing yes".
109         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
110         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
111         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
112         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
113         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
115         compiling to glibc systems, set gl_cv_func_open_directory_works to
116         "guessing yes".
117         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
118         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
119         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
120         "guessing yes".
121         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
122         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
123         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
124         compiling to glibc systems, set gl_cv_func_floorf_ieee to
125         "guessing yes".
126         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
127         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
128         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
129         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
130         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
131         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
132         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
133         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
134         "guessing yes".
135         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
136         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
137         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
138         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
139         "guessing yes".
140         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
141         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
142         "guessing yes".
143         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
144         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
145         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
146         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
147         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
148         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
149         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
150         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
151         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
152         compiling to glibc systems, set gl_cv_func_log10f_ieee to
153         "guessing yes".
154         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
155         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
156         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
157         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
158         "guessing yes".
159         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
160         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
161         "guessing yes".
162         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
163         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
164         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
165         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
166         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
167         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
168         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
169         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
170         compiling to glibc systems, set gl_cv_func_mkfifo_works to
171         "guessing yes".
172         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
173         compiling to glibc systems, set gl_cv_func_mknod_works to
174         "guessing yes".
175         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
176         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
177         "guessing yes".
178         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
179         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
180         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
181         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
182         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
183         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
184         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
185         compiling to glibc systems, set gl_cv_func_svid_putenv to
186         "guessing yes".
187         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
188         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
189         "guessing yes".
190         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
191         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
192         "guessing yes".
193         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
194         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
195         to "guessing yes".
196         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
197         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
198         to "guessing yes".
199         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
200         compiling to glibc systems, set gl_cv_func_rmdir_works to
201         "guessing yes".
202         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
203         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
204         gl_cv_func_unlink_parent_fails to "guessing yes".
205         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
206         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
207         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
208         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
209         gl_cv_func_rename_dest_works to "guessing yes".
210         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
211         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
213         compiling to glibc systems, set gl_cv_func_roundf_ieee to
214         "guessing yes".
215         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
216         compiling to glibc systems, set gl_cv_func_roundl_ieee to
217         "guessing yes".
218         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
219         compiling to glibc systems, set gl_cv_func_setenv_works to
220         "guessing yes".
221         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
222         compiling to glibc systems, set gl_cv_func_unsetenv_works to
223         "guessing yes".
224         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
225         compiling to glibc systems, set gl_cv_func_sleep_works to
226         "guessing yes".
227         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
228         compiling to glibc systems, set gl_cv_func_stat_file_slash to
229         "guessing yes".
230         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
231         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
232         "guessing yes".
233         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
234         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
235         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
236         compiling to glibc systems, set gl_cv_func_truncf_ieee to
237         "guessing yes".
238         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
239         compiling to glibc systems, set gl_cv_func_truncl_ieee to
240         "guessing yes".
241         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
242         compiling to glibc systems, set gl_cv_func_usleep_works to
243         "guessing yes".
244         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
245         compiling to glibc systems, set gl_cv_func_futimesat_works to
246         "guessing yes".
247
248 2012-05-03  Bruno Haible  <bruno@clisp.org>
249
250         Say "guessing yes" or "guessing no" when cross-compiling.
251         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
252         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
253         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
254         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
255         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
256         am_cv_func_working_getline to "guessing yes" or "guessing no".
257         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
258         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
259         (gl_FUNC_MEMMEM): When cross-compiling, set
260         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
261         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
262         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
264         set gl_cv_func_strcasestr_works_always to "guessing yes" or
265         "guessing no".
266         (gl_FUNC_STRCASESTR): When cross-compiling, set
267         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
268         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
269         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
270         (gl_FUNC_STRSTR): When cross-compiling, set
271         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
272         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
273         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
274         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
275         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
276
277 2012-05-01  Bruno Haible  <bruno@clisp.org>
278
279         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
280         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
281         * build-aux/reloc-ldflags: Likewise.
282         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
283
284 2012-05-01  Bruno Haible  <bruno@clisp.org>
285
286         gnulib-tool: Remove transitional code.
287         * gnulib-tool: Don't warn about --import with 0 arguments any more.
288         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
289
290 2012-05-01  Bruno Haible  <bruno@clisp.org>
291
292         getcwd: Fix misindentation.
293         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
294
295 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
296
297         exclude: process exclude and include directives in order
298         This restores the pre-2009 behavior, and is part of a fix of a
299         grep bug reported by Quentin Arce in
300         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
301         * lib/exclude.c (struct exclude): Remove 'tail' member.
302         (new_exclude_segment): Prepend the new segment instead of appending.
303         Return void, since that's now more convenient.
304         (file_pattern_matches): Renamed from excluded_file_pattern_p.
305         (file_name_matches): Renamed from excluded_file_name_p.
306         (file_pattern_matches, file_name_matches):
307         Return true if the pattern matches, not if it excludes.
308         All callers changed.
309         (excluded_file_name): Process the list in reverse order;
310         since the list is now reversed this restores the pre-2009 behavior.
311         (add_exclude): Adjust to new reversed-order list.  Use local var
312         rather than macro, for clarity.
313         * tests/test-exclude7.sh: Adjust to corrected behavior.
314
315         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
316         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
317         it's not possible here.  Handle the case of \ at end of pattern
318         without dumping core.
319         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
320
321         _Noreturn: future-proof non-GNU and non-MSVC compilers
322         * build-aux/snippet/_Noreturn.h (_Noreturn):
323         * m4/gnulib-common.m4 (gl_COMMON_BODY):
324         Do not define _Noreturn if __STDC_VERSION__ indicates this is
325         C11 or later.  This is more likely to work with random future C
326         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
327         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
328
329         exclude: handle wildcards with FNM_EXTMATCH
330         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
331         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
332         comment that "has wildcards" really means "has or may have
333         wildcards".  Simplify by avoiding the need to call strcspn.
334
335 2012-04-29  Bruno Haible  <bruno@clisp.org>
336
337         gnulib-tool: Fix list of authors.
338         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
339
340 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
341
342         bootstrap: support Automake-NG in $buildreq
343         * bootstrap (check_versions): Handle automake and aclocal from
344         Automake-NG specially.  They can be specified as respectively
345         the "automake-ng" and "aclocal-ng" requirements.
346
347 2012-04-25  Eric Blake  <eblake@redhat.com>
348
349         bootstrap: only force latest Makefile.in.in for gettext module
350         * build-aux/bootstrap (with_gettext): Only install latest
351         Makefile.in.in for projects requesting bleeding edge gettext.
352
353 2012-04-22  Bruno Haible  <bruno@clisp.org>
354
355         doc: Mention reason for replacement on glibc/Linux systems.
356         * doc/posix-functions/dprintf.texi: Mention the problem with special
357         'long double' values.
358         * doc/posix-functions/fprintf.texi: Likewise.
359         * doc/posix-functions/printf.texi: Likewise.
360         * doc/posix-functions/snprintf.texi: Likewise.
361         * doc/posix-functions/sprintf.texi: Likewise.
362         * doc/posix-functions/vdprintf.texi: Likewise.
363         * doc/posix-functions/vfprintf.texi: Likewise.
364         * doc/posix-functions/vprintf.texi: Likewise.
365         * doc/posix-functions/vsnprintf.texi: Likewise.
366         * doc/posix-functions/vsprintf.texi: Likewise.
367         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
368         platforms with F_DUPFD_CLOEXEC problems.
369         * doc/posix-functions/glob.texi: Mention which platforms are affected
370         by the problem with symbolic links.
371         * doc/posix-functions/linkat.texi: Mention the problem with
372         AT_SYMLINK_FOLLOW on Linux.
373
374 2012-04-22  Bruno Haible  <bruno@clisp.org>
375
376         pwrite: Don't replace on all platforms.
377         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
378
379 2012-04-22  Bruno Haible  <bruno@clisp.org>
380
381         rint* tests: Avoid gcc warnings.
382         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
383         * tests/test-rintf.c (INFINITY, NAN): Likewise.
384         * tests/test-rintl.c (INFINITY, NAN): Likewise.
385
386 2012-04-21  Bruno Haible  <bruno@clisp.org>
387
388         users.txt: Update.
389         * users.txt: Add freedink, wdiff. Update URLs for projects that have
390         switched from CVS to git, bzr, or svn.
391
392 2012-04-21  Bruno Haible  <bruno@clisp.org>
393
394         Large File Support for native Windows platforms.
395
396         * m4/largefile.m4 (gl_LARGEFILE): New macro.
397         * modules/largefile (configure.ac): Require gl_LARGEFILE.
398
399         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
400         type.
401         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
402         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
403         * doc/posix-headers/sys_types.texi: Mention the effect of the
404         'largefile' module.
405
406         * lib/fcntl.in.h: Add comments about off_t.
407         * modules/fcntl-h (Depends-on): Add sys_types.
408
409         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
410         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
411         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
412         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
413         * modules/unistd (Depends-on): Add sys_types.
414         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
415
416         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
417         instead of lseek.
418         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
419         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
420         * modules/lseek (Depends-on): Add sys_types.
421
422         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
423         msvc-nothrow.h.
424         (SetFileSize): New function.
425         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
426         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
427         if Large File Support is requested.
428         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
429         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
430
431         * lib/stdio.in.h: Add comments about off_t.
432         * modules/stdio (Depends-on): Add sys_types.
433
434         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
435         instead of ftello.
436         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
437         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
438         (gl_PREREQ_FTELLO): New macro.
439         * modules/ftello (Depends-on): Add sys_types.
440         (configure.ac): Incoke gl_PREREQ_FTELLO.
441
442         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
443         instead of fseeko.
444         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
445         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
446         (gl_PREREQ_FSEEKO): New macro.
447         * modules/fseeko (Depends-on): Add sys_types.
448         (configure.ac): Invoke gl_PREREQ_FSEEKO.
449
450         * lib/sys_stat.in.h: Add comments about off_t.
451         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
452         64-bit integer for st_size in 'struct stat'.
453         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
454         Define _GL_WINDOWS_64_BIT_ST_SIZE.
455         * modules/sys_stat (Depends-on): Add sys_types.
456         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
457
458         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
459         instead of stat or _stat.
460
461         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
462         'struct _stati64' instead of fstat and 'struct stat'.
463         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
464         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
465
466         Reported by Ray Satiro <raysatiro@yahoo.com>.
467
468 2012-04-19  Eric Blake  <eblake@redhat.com>
469
470         bootstrap: accommodate older libtool
471         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
472         Reported by Daniel P. Berrange.
473
474 2012-04-19  Jim Meyering  <meyering@redhat.com>
475
476         announce-gen: avoid failure due to lack of Digest::SHA1
477         Even with the preferred Digest::SHA available, this script
478         would fail when the backup module, Digest::SHA1, was not installed.
479         * build-aux/announce-gen: Quote the conditional use of "use".
480         Reported by Reuben Thomas in:
481         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
482
483         bootstrap: don't let a user's CDPATH setting affect this script
484         When CDPATH is set, cd will sometimes generate output.
485         When "cd" is run in a subshell whose output matters, that
486         surprising-to-some output can cause malfunction.
487         Unsetting CDPATH turns off this shell "feature."
488         * build-aux/bootstrap (CDPATH): Unset.
489         Reported by Reuben Thomas in:
490         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
491         and inspired by his patch here:
492         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
493
494 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
495         and Jim Meyering  <meyering@redhat.com>
496
497         maint.mk: catch "see @xref{}" and similar
498         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
499         prohibit "See also @xref{", "Also see @pxref{", and similar.
500
501 2012-04-16  Jim Meyering  <meyering@redhat.com>
502
503         bootstrap: really use gnulib's po/Makefile.in.in
504         * build-aux/bootstrap: Correct the source file name in previous change.
505         Reported by Akim Demaille.
506
507         configmake: correct minor inconsistency in Makefile rule
508         * modules/configmake (Makefile.am): All other rules like this one
509         run the final "mv -f ..." in the same backslash-continued command
510         as the one that does everything else.  This one put the mv -f ...
511         command on a separate, non-backslash-continued line.
512         Make it like the others.
513
514         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
515         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
516         the one from gettext.  Reported by Akim Demaille.
517
518 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
519
520         Fix recursion of install-* into po directories.
521         Bison's install-pdf bug reported by Hans Aberg at
522         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
523         * build-aux/po/Makefile.in.in (install-dvi, install-html)
524         (install-info, install-pdf, install-ps): New targets.
525
526 2012-04-16  Jim Meyering  <meyering@redhat.com>
527
528         maint: avoid spurious "make sc_maint" failure
529         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
530         exempt all *.class file names, for lib/javaversion.class.
531
532 2012-04-15  Bruno Haible  <bruno@clisp.org>
533
534         lseek: Make configure test independent of environment.
535         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
536         Windows, we know that lseek() on pipes is broken; skip the runtime
537         test.
538
539 2012-04-14  Bruno Haible  <bruno@clisp.org>
540
541         stat: Bypass buggy override in mingw64.
542         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
543         * lib/stat.c (stat) [mingw64]: Define to _stat.
544         * doc/posix-functions/stat.texi: Mention mingw64 bug.
545
546 2012-04-14  Bruno Haible  <bruno@clisp.org>
547
548         pathmax: Fix compilation error on MSVC 9.
549         * modules/pathmax (Depends-on): Add unistd.
550
551 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
552
553         README: document pointer comparison assumption
554         * README (Portability guidelines): Document assumption about
555         pointer comparisons, in response to a recent bug-gnulib comment by
556         Jeffrey Kegler.
557
558 2012-04-12  Bruno Haible  <bruno@clisp.org>
559
560         Tests for module 'getrusage'.
561         * modules/getrusage-tests: New file.
562         * tests/test-getrusage.c: New file.
563
564         New module 'getrusage'.
565         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
566         warn-on-use.h.
567         (getrusage): New declaration.
568         * lib/getrusage.c: New file.
569         * m4/getrusage.m4: New file.
570         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
571         is declared.
572         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
573         HAVE_GETRUSAGE.
574         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
575         snippet/c++defs, snippet/warn-on-use.
576         (Makefile.am): Update generation of sys/resource.h. Substitute
577         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
578         * modules/getrusage: New file.
579         * doc/posix-functions/getrusage.texi: Mention the new module.
580
581 2012-04-12  Bruno Haible  <bruno@clisp.org>
582
583         Tests for module 'sys_resource'.
584         * modules/sys_resource-tests: New file.
585         * tests/test-sys_resource.c: New file.
586
587         New module 'sys_resource'.
588         * lib/sys_resource.in.h: New file.
589         * m4/sys_resource_h.m4: New file.
590         * modules/sys_resource: New file.
591         * doc/posix-headers/sys_resource.texi: Mention the new module.
592
593 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
594
595         ioctl: Fix compilation error on mingw.
596         * lib/ioctl.c: Include <windows.h>.
597         Also reported by Ray Satiro <raysatiro@yahoo.com>.
598
599 2012-04-04  Jim Meyering  <meyering@redhat.com>
600
601         regex: correct #pragma guard expression
602         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
603         not 4.3.  Correct its cpp guard expression.
604
605 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
606
607         regex: remove unnecessary type punning
608         Problem reported by Vladimir Serbinenko in
609         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
610         * lib/regex.h (struct re_pattern_buffer): Change the type of
611         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
612         Fix comment to match code.
613         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
614         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
615         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
616         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
617         (set_regs):
618         Omit no-longer-necessary casts.
619
620 2012-04-03  Bruno Haible  <bruno@clisp.org>
621
622         Tests for module 'ilogbl'.
623         * modules/ilogbl-tests: New file.
624         * tests/test-ilogbl.c: New file.
625
626         New module 'ilogbl'.
627         * lib/math.in.h (ilogbl): New declaration.
628         * lib/ilogbl.c: New file.
629         * m4/ilogbl.m4: New file.
630         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
632         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
633         Split sed invocation, to avoid the limit of 100 substitutions of
634         HP-UX 'sed'.
635         * modules/ilogbl: New file.
636         * tests/test-math-c++.cc: Check the declaration of ilogbl.
637         * doc/posix-functions/ilogbl.texi: Mention the new module.
638
639 2012-04-03  Bruno Haible  <bruno@clisp.org>
640
641         Tests for module 'ilogbf'.
642         * modules/ilogbf-tests: New file.
643         * tests/test-ilogbf.c: New file.
644
645         New module 'ilogbf'.
646         * lib/math.in.h (ilogbf): New declaration.
647         * lib/ilogbf.c: New file.
648         * m4/ilogbf.m4: New file.
649         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
651         REPLACE_ILOGBF.
652         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
653         REPLACE_ILOGBF.
654         * modules/ilogbf: New file.
655         * tests/test-math-c++.cc: Check the declaration of ilogbf.
656         * doc/posix-functions/ilogbf.texi: Mention the new module.
657
658 2012-04-03  Bruno Haible  <bruno@clisp.org>
659
660         Tests for module 'ilogb'.
661         * modules/ilogb-tests: New file.
662         * tests/test-ilogb.c: New file.
663         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
664         tests/test-logb-ieee.h.
665
666         New module 'ilogb'.
667         * lib/math.in.h (ilogb): New declaration.
668         * lib/ilogb.c: New file.
669         * m4/ilogb.m4: New file.
670         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
672         REPLACE_ILOGB.
673         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
674         REPLACE_ILOGB.
675         * modules/ilogb: New file.
676         * tests/test-math-c++.cc: Check the declaration of ilogb.
677         * doc/posix-functions/ilogb.texi: Mention the new module.
678
679 2012-04-03  Bruno Haible  <bruno@clisp.org>
680
681         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
682         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
683         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
684         (main): Check their values.
685         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
686         problem.
687
688 2012-04-03  Bruno Haible  <bruno@clisp.org>
689
690         Tests for module 'logbl-ieee'.
691         * modules/logbl-ieee-tests: New file.
692         * tests/test-logbl-ieee.c: New file.
693
694         New module 'logbl-ieee'.
695         * modules/logbl-ieee: New file.
696
697         Tests for module 'logb-ieee'.
698         * modules/logb-ieee-tests: New file.
699         * tests/test-logb-ieee.c: New file.
700
701         New module 'logb-ieee'.
702         * modules/logb-ieee: New file.
703
704         Tests for module 'logbf-ieee'.
705         * modules/logbf-ieee-tests: New file.
706         * tests/test-logbf-ieee.c: New file.
707         * tests/test-logb-ieee.h: New file.
708
709         New module 'logbf-ieee'.
710         * modules/logbf-ieee: New file.
711
712 2012-04-03  Bruno Haible  <bruno@clisp.org>
713
714         Tests for module 'logbl'.
715         * modules/logbl-tests: New file.
716         * tests/test-logbl.c: New file.
717
718         New module 'logbl'.
719         * lib/math.in.h (logbl): New declaration.
720         * lib/logbl.c: New file.
721         * m4/logbl.m4: New file.
722         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
724         REPLACE_LOGBL.
725         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
726         REPLACE_LOGBL.
727         * modules/logbl: New file.
728         * tests/test-math-c++.cc: Check the declaration of logbl.
729         * doc/posix-functions/logbl.texi: Mention the new module.
730
731 2012-04-02  Bruno Haible  <bruno@clisp.org>
732
733         Tests for module 'logbf'.
734         * modules/logbf-tests: New file.
735         * tests/test-logbf.c: New file.
736
737         New module 'logbf'.
738         * lib/math.in.h (logbf): New declaration.
739         * lib/logbf.c: New file.
740         * m4/logbf.m4: New file.
741         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
742         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
743         REPLACE_LOGBF.
744         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
745         REPLACE_LOGBF.
746         * modules/logbf: New file.
747         * tests/test-math-c++.cc: Check the declaration of logbf.
748         * doc/posix-functions/logbf.texi: Mention the new module.
749
750 2012-04-02  Bruno Haible  <bruno@clisp.org>
751
752         logb tests: More tests.
753         * tests/test-logb.h: New file, based on tests/test-logb.c and
754         tests/test-frexp.h.
755         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
756         (main): Just invoke test_function.
757         * modules/logb-tests (Files): Add tests/test-logb.h,
758         tests/minus-zero.h, tests/randomd.c.
759         (Makefile.am): Add randomd.c to test_logb_SOURCES.
760
761         logb: Provide replacement and workarounds.
762         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
763         is 1.
764         * lib/logb.c: New file.
765         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
766         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
768         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
769         * modules/logb (Files): Add lib/logb.c.
770         (Depends-on): Add isfinite, frexp, isnand.
771         (configure.ac): Compile the replacement code logb.c if needed.
772         * tests/test-math-c++.cc: Check the declaration of logb.
773         * doc/posix-functions/logb.texi: Mention the replacement and the bug
774         with subnormal numbers.
775
776 2012-04-02  Bruno Haible  <bruno@clisp.org>
777
778         log10* tests: Speed up.
779         * tests/test-log10.h (test_function): Reduce amount of random numbers
780         to test.
781
782 2012-04-01  Bruno Haible  <bruno@clisp.org>
783
784         logf-ieee: Fix test whether logf works.
785         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
786
787 2012-04-01  Bruno Haible  <bruno@clisp.org>
788
789         log10l: Work around log10l-ieee test failure on IRIX 6.5.
790         * lib/log10l.c: Include <float.h>
791         (log10l): On IRIX, normalize the +Infinity value.
792         * modules/log10l (Depends-on): Add 'float'.
793         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
794         +Infinity.
795
796         log10f-ieee: Work around test failure on NetBSD 5.1.
797         * m4/log10f-ieee.m4: New file.
798         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
799         test whether log10f works with a negative argument. Replace it if not.
800         * lib/log10f.c (log10f): For negative arguments, return NaN.
801         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
802         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
803         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
804
805         log10f-ieee: Work around test failure on Solaris 9.
806         * modules/log10f-ieee (Depends-on): Add log10-ieee.
807         (configure.ac): Require gl_FUNC_LOG10F.
808
809         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
810         * m4/log10-ieee.m4: New file.
811         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
812         whether log10 works with a negative argument. Replace it if not.
813         * lib/log10.c (log10): For negative arguments, return NaN.
814         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
815         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
816         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
817
818         Tests for module 'log10l-ieee'.
819         * modules/log10l-ieee-tests: New file.
820         * tests/test-log10l-ieee.c: New file.
821
822         New module 'log10l-ieee'.
823         * modules/log10l-ieee: New file.
824
825         Tests for module 'log10-ieee'.
826         * modules/log10-ieee-tests: New file.
827         * tests/test-log10-ieee.c: New file.
828
829         New module 'log10-ieee'.
830         * modules/log10-ieee: New file.
831
832         Tests for module 'log10f-ieee'.
833         * modules/log10f-ieee-tests: New file.
834         * tests/test-log10f-ieee.c: New file.
835         * tests/test-log10-ieee.h: New file.
836
837         New module 'log10f-ieee'.
838         * modules/log10f-ieee: New file.
839
840 2012-04-01  Bruno Haible  <bruno@clisp.org>
841
842         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
843         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
844         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
845         workaround.
846         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
847         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
849         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
850         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
851         (Depends-on): Update conditions.
852         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
853         IRIX 6.5, OSF/1 5.1 problems.
854
855 2012-04-01  Bruno Haible  <bruno@clisp.org>
856
857         log10f: Work around OSF/1 5.1 bug.
858         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
859         * lib/log10f.c (log10f): If logf exists, use it and provide just the
860         workaround.
861         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
862         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
864         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
865         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
866         (Depends-on): Update conditions.
867         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
868
869 2012-04-01  Bruno Haible  <bruno@clisp.org>
870
871         log10: Work around OSF/1 5.1 bug.
872         * lib/math.in.h (log10): New declaration.
873         * lib/log10.c: New file.
874         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
875         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
876         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
878         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
879         * modules/log10 (Files): Add lib/log10.c.
880         (Depends-on): Add math.
881         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
882         * tests/test-math-c++.cc: Check the declaration of log10.
883         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
884
885 2012-03-31  Bruno Haible  <bruno@clisp.org>
886
887         log10l tests: More tests.
888         * modules/log10l-tests (Files): Add tests/test-log10l.h,
889         tests/minus-zero.h, tests/randoml.c.
890         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
891         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
892         (main): Invoke test_function.
893
894         log10f tests: More tests.
895         * modules/log10f-tests (Files): Add tests/test-log10.h,
896         tests/minus-zero.h, tests/randomf.c.
897         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
898         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
899         (main): Invoke test_function.
900
901         log10 tests: More tests.
902         * tests/test-log10.h: New file.
903         * modules/log10-tests (Files): Add tests/test-log10.h,
904         tests/minus-zero.h, tests/randomd.c.
905         (Makefile.am): Add randomd.c to test_log10_SOURCES.
906         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
907         (main): Invoke test_function.
908
909 2012-03-31  Simon Josefsson  <simon@josefsson.org>
910
911         fflush: Fix syntax error.
912         * lib/fflush.c: Include unused-parameter.h, needed for
913         _GL_UNUSED_PARAMETER.
914         * modules/fflush (Depends-on): Add snippet/unused-parameter.
915
916 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
917
918         regex: pacify GCC when compiling GRUB
919         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
920         a diagnostic.  Reported by Vladimir Serbinenko in
921         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
922
923 2012-03-29  Eric Blake  <eblake@redhat.com>
924
925         stdio: don't assume gets any more
926         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
927         support.
928         * modules/stdio (Makefile.am): Likewise.
929         * lib/stdio-read.c (gets): Likewise.
930         * tests/test-stdio-c++.cc: Likewise.
931         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
932         * lib/stdio.in.h (gets): Make warning occur in more places.
933         * doc/posix-functions/gets.texi (gets): Update documentation.
934         Reported by Christer Solskogen.
935
936         maint.mk: fix syntax checks without exclusions
937         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
938         Reported by Daniel P. Berrange.
939
940         strerror_r: avoid compiler warning
941         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
942         level.
943
944         fflush: avoid compiler warning
945         * lib/fflush.c (update_fpos_cache): Mark variables that are
946         potentially unused.
947
948 2012-03-25  Bruno Haible  <bruno@clisp.org>
949
950         Tests for module 'localeconv'.
951         * modules/localeconv-tests: New file.
952         * tests/test-localeconv.c: New file.
953
954         New module 'localeconv'.
955         * lib/locale.in.h (localeconv): New declaration.
956         * lib/localeconv.c: New file.
957         * m4/localeconv.m4: New file.
958         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
959         REPLACE_LOCALECONV.
960         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
961         REPLACE_LOCALECONV.
962         * modules/localeconv: New file.
963         * modules/nl_langinfo (Depends-on): Add localeconv.
964         * modules/human (Depends-on): Likewise.
965         * doc/posix-functions/localeconv.texi: Mention the new module.
966
967 2012-03-25  Bruno Haible  <bruno@clisp.org>
968
969         locale: Provide a complete 'struct lconv'.
970         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
971         'struct lconv' does not contain int_p_cs_precedes.
972         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
973         * doc/posix-headers/locale.texi: Update.
974
975         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
976         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
977         * doc/posix-headers/locale.texi: Update.
978
979         locale: Provide a working 'struct lconv'.
980         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
981         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
982         'struct lconv' does not even contain decimal_point.
983         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
984         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
985         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
986         * doc/posix-headers/locale.texi: Mention the problems with
987         'struct lconv'.
988         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
989
990 2012-03-24  Bruno Haible  <bruno@clisp.org>
991
992         Enable common subexpression optimization in GCC.
993         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
994         macros.
995         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
996         GCC attribute 'const'.
997         (uc_locale_language): Declare with GCC attribute 'pure'.
998         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
999         with GCC attribute 'const'.
1000         * lib/unictype.in.h (uc_is_general_category_withtable,
1001         uc_combining_class, uc_combining_class_name,
1002         uc_combining_class_long_name, uc_bidi_class_name,
1003         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1004         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1005         uc_decimal_value, uc_digit_value, uc_numeric_value,
1006         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1007         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1008         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1009         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1010         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1011         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1012         Declare with GCC attribute 'const'.
1013         (uc_general_category_name, uc_general_category_long_name,
1014         uc_general_category_byname, uc_general_category,
1015         uc_is_general_category, uc_combining_class_byname,
1016         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1017         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1018         Declare with GCC attribute 'pure'.
1019         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1020         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1021         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1022         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1023         with GCC attribute 'pure'.
1024         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1025         'const'.
1026         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1027         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1028         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1029         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1030         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1031         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1032         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1033         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1034         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1035         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1036         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1037         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1038         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1039         GCC attribute 'pure'.
1040         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1041         'const'.
1042         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1043         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1044         u32_strwidth): Declare with GCC attribute 'pure'.
1045
1046         Enable common subexpression optimization in GCC.
1047         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1048         (alphasort): Declare with GCC attribute 'pure'.
1049         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1050         (atoll): Declare with GCC attribute 'pure'.
1051         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1052         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1053         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1054         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1055         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1056         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1057         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1058
1059 2012-03-24  Bruno Haible  <bruno@clisp.org>
1060
1061         gnulib-tool: Avoid unintended error output from 'cmp'.
1062         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1063         "cmp -s", not "cmp > /dev/null".
1064
1065 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1066
1067         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1068
1069         It's not just Automake versions < 1.9b that creates an empty
1070         pkgdatadir at installation time if pkgdata_DATA is specified
1071         to empty; modern automake versions do this as well, at least
1072         until automake 1.11.4 (not yet released at the moment of writing,
1073         but soon to appear).  That behaviour was generally considered a
1074         feature rather than a bug, at least until this discussion:
1075         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1076
1077         See also automake bugs #10997 and #11030.
1078
1079         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1080         reference to relevant automake bug numbers.
1081         (func_emit_tests_Makefile_am): Likewise.
1082
1083 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1084
1085         announce-gen: use Digest::SHA when possible
1086         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1087         back to Digest::SHA1 if necessary.
1088
1089 2012-03-20  Jim Meyering  <meyering@redhat.com>
1090
1091         tests: avoid gcc warnings about argv vs. const initializers
1092         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1093         warnings about discarding 'const' qualifier from pointer target type.
1094         * tests/test-posix_spawn2.c (main): Likewise.
1095
1096 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1097
1098         README-release: simplify slightly
1099         * top/README-release: Run "git checkout master" only once.
1100
1101 2012-03-15  Mark Wielaard  <mark@klomp.org>
1102
1103         git-merge-changelog: add specific example on how to use with hg.
1104         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1105
1106 2012-03-18  Mark Wielaard  <mark@klomp.org>
1107
1108         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1109
1110 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1111
1112         git-version-gen: don't let "prefix" envvar cause trouble
1113         * build-aux/git-version-gen (prefix): Initialize properly,
1114         so as not to use a value specified via the environment.
1115         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1116
1117 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1118
1119         regex: diagnose too-large repeat counts in EREs
1120         Previously, the code did not diagnose the too-large repeat count
1121         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1122         as if it were 'b\{1000000000}', which is unexpected.
1123         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1124         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1125         is a reasonable one for this problem.  Another option would be to
1126         create a new REG_OVERFLOW error for repeat counts that are too large.
1127         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1128         count is too large, so that the caller can distinguish the two cases.
1129         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1130         "Too large" return code, and that repeat counts are one example of this.
1131
1132 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1133
1134         doc: some glibc x32 integer width issues
1135         * doc/posix-headers/sys_types.texi (sys/types.h):
1136         * doc/posix-headers/time.texi (time.h):
1137         Mention that glibc x32 does not conform to POSIX in a couple of
1138         areas related to integer widths.
1139
1140 2012-03-15  Bruno Haible  <bruno@clisp.org>
1141
1142         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1143         * lib/fma.c (VOLATILE): New macro.
1144         (FUNC): Use it to work around a GCC compiler bug.
1145
1146 2012-03-13  Bruno Haible  <bruno@clisp.org>
1147
1148         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1149         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1150         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1151         REPLACE_HYPOTL to 1.
1152         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1153
1154 2012-03-13  Bruno Haible  <bruno@clisp.org>
1155
1156         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1157         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1158         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1159         REPLACE_REMAINDERL to 1.
1160         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1161         bug.
1162
1163 2012-03-13  Bruno Haible  <bruno@clisp.org>
1164
1165         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1166         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1167         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1168         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1169         too big rounding errors.
1170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1171         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1172         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1173         (Depends-on): Update conditions.
1174         * tests/test-sqrtl.c (my_ldexpl): New function.
1175         (main): Add test of a particular value.
1176         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1177
1178 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1179
1180         doc: Update timer_* platform portability notes.
1181         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1182         that always return ENOSYS.
1183         * doc/posix-functions/timer_delete.texi: Likewise.
1184         * doc/posix-functions/timer_gettime.texi: Likewise.
1185         * doc/posix-functions/timer_settime.texi: Likewise.
1186
1187 2012-03-13  Bruno Haible  <bruno@clisp.org>
1188
1189         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1190         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1191         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1192         REPLACE_CBRTL to 1.
1193         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1194
1195 2012-03-13  Bruno Haible  <bruno@clisp.org>
1196
1197         remainderl: Avoid compilation error on AIX >= 5.2.
1198         * lib/math.in.h (remainderl): Undefine macro from the system header.
1199
1200 2012-03-13  Bruno Haible  <bruno@clisp.org>
1201
1202         Avoid compilation errors with MSVC option -fp:strict.
1203         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1204         * lib/cbrtf.c: Likewise.
1205         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1206
1207 2012-03-12  Bruno Haible  <bruno@clisp.org>
1208
1209         uninorm: Don't crash in out-of-memory conditions.
1210         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1211         gracefully.
1212         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1213         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1214
1215 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1216
1217         quote: fix syntax-check
1218         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1219         also exports quote_quoting_options.
1220
1221 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1222
1223         Collapse list of copyright years to ranges.  See
1224         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1225         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1226         build-aux/csharpexec.sh.in, build-aux/gnupload,
1227         build-aux/install-reloc, build-aux/javacomp.sh.in,
1228         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1229         build-aux/move-if-change, build-aux/reloc-ldflags,
1230         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1231
1232 2012-03-11  Bruno Haible  <bruno@clisp.org>
1233
1234         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1235         * m4/log2f-ieee.m4: New file.
1236         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1237         whether log2f works with a minus zero argument. Replace it if not.
1238         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1239         (Depends-on): Add log2-ieee.
1240         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1241         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1242
1243         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1244         * m4/log2-ieee.m4: New file.
1245         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1246         whether log2 works with a minus zero argument. Replace it if not.
1247         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1248         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1249         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1250
1251         Tests for module 'log2l-ieee'.
1252         * modules/log2l-ieee-tests: New file.
1253         * tests/test-log2l-ieee.c: New file.
1254
1255         New module 'log2l-ieee'.
1256         * modules/log2l-ieee: New file.
1257
1258         Tests for module 'log2-ieee'.
1259         * modules/log2-ieee-tests: New file.
1260         * tests/test-log2-ieee.c: New file.
1261
1262         New module 'log2-ieee'.
1263         * modules/log2-ieee: New file.
1264
1265         Tests for module 'log2f-ieee'.
1266         * modules/log2f-ieee-tests: New file.
1267         * tests/test-log2f-ieee.c: New file.
1268         * tests/test-log2-ieee.h: New file.
1269
1270         New module 'log2f-ieee'.
1271         * modules/log2f-ieee: New file.
1272
1273 2012-03-11  Bruno Haible  <bruno@clisp.org>
1274
1275         Tests for module 'log2l'.
1276         * modules/log2l-tests: New file.
1277         * tests/test-log2l.c: New file.
1278
1279         New module 'log2l'.
1280         * lib/math.in.h (log2l): New declaration.
1281         * lib/log2l.c: New file.
1282         * m4/log2l.m4: New file.
1283         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1285         REPLACE_LOG2L.
1286         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1287         REPLACE_LOG2L.
1288         * modules/log2l: New file.
1289         * tests/test-math-c++.cc: Check the declaration of log2l.
1290         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1291         and OSF/1 problems.
1292
1293 2012-03-11  Bruno Haible  <bruno@clisp.org>
1294
1295         Tests for module 'log2f'.
1296         * modules/log2f-tests: New file.
1297         * tests/test-log2f.c: New file.
1298
1299         New module 'log2f'.
1300         * lib/math.in.h (log2f): New declaration.
1301         * lib/log2f.c: New file.
1302         * m4/log2f.m4: New file.
1303         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1305         REPLACE_LOG2F.
1306         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1307         REPLACE_LOG2F.
1308         * modules/log2f: New file.
1309         * tests/test-math-c++.cc: Check the declaration of log2f.
1310         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1311         and OSF/1 and Cygwin problems.
1312
1313 2012-03-11  Bruno Haible  <bruno@clisp.org>
1314
1315         Tests for module 'log2'.
1316         * modules/log2-tests: New file.
1317         * tests/test-log2.c: New file.
1318         * tests/test-log2.h: New file.
1319
1320         New module 'log2'.
1321         * lib/math.in.h (log2): New declaration.
1322         * lib/log2.c: New file.
1323         * m4/log2.m4: New file.
1324         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1326         REPLACE_LOG2.
1327         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1328         REPLACE_LOG2.
1329         * modules/log2: New file.
1330         * tests/test-math-c++.cc: Check the declaration of log2.
1331         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1332         and OSF/1 and Cygwin problems.
1333
1334 2012-03-11  Bruno Haible  <bruno@clisp.org>
1335
1336         exp2* tests: More tests.
1337         * tests/test-exp2.h (test_function): Test all integral arguments that
1338         don't need to overflow or denormalized numbers.
1339         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1340         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1341         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1342
1343 2012-03-10  Bruno Haible  <bruno@clisp.org>
1344
1345         log1pl-ieee: Work around test failure on AIX 7.1.
1346         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1347
1348         log1pl-ieee: Work around test failure on IRIX 6.5.
1349         * m4/log1pl-ieee.m4: New file.
1350         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1351         test whether log1pl works with a minus zero argument. Replace it if
1352         not.
1353         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1355         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1356         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1357         (Depends-on): Update conditions.
1358         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1359         m4/signbit.m4.
1360         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1361         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1362
1363         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1364         * m4/log1pf-ieee.m4: New file.
1365         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1366         test whether log1pf works with a minus zero argument. Replace it if
1367         not.
1368         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1369         m4/signbit.m4.
1370         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1371         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1372
1373         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1374         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1375         (configure.ac): Require gl_FUNC_LOG1PF.
1376
1377         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1378         * m4/log1p-ieee.m4: New file.
1379         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1380         whether log1p works with a minus zero argument. Replace it if not.
1381         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1383         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1384         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1385         (Depends-on): Update conditions.
1386         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1387         m4/signbit.m4.
1388         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1389         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1390
1391         Tests for module 'log1pl-ieee'.
1392         * modules/log1pl-ieee-tests: New file.
1393         * tests/test-log1pl-ieee.c: New file.
1394
1395         New module 'log1pl-ieee'.
1396         * modules/log1pl-ieee: New file.
1397
1398         Tests for module 'log1p-ieee'.
1399         * modules/log1p-ieee-tests: New file.
1400         * tests/test-log1p-ieee.c: New file.
1401
1402         New module 'log1p-ieee'.
1403         * modules/log1p-ieee: New file.
1404
1405         Tests for module 'log1pf-ieee'.
1406         * modules/log1pf-ieee-tests: New file.
1407         * tests/test-log1pf-ieee.c: New file.
1408         * tests/test-log1p-ieee.h: New file.
1409
1410         New module 'log1pf-ieee'.
1411         * modules/log1pf-ieee: New file.
1412
1413 2012-03-10  Bruno Haible  <bruno@clisp.org>
1414
1415         Tests for module 'log1pl'.
1416         * modules/log1pl-tests: New file.
1417         * tests/test-log1pl.c: New file.
1418
1419         New module 'log1pl'.
1420         * lib/math.in.h (log1pl): New declaration.
1421         * lib/log1pl.c: New file.
1422         * m4/log1pl.m4: New file.
1423         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1425         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1426         * modules/log1pl: New file.
1427         * tests/test-math-c++.cc: Check the declaration of log1pl.
1428         * doc/posix-functions/log1pl.texi: Mention the new module.
1429
1430 2012-03-10  Bruno Haible  <bruno@clisp.org>
1431
1432         Tests for module 'log1pf'.
1433         * modules/log1pf-tests: New file.
1434         * tests/test-log1pf.c: New file.
1435
1436         New module 'log1pf'.
1437         * lib/math.in.h (log1pf): New declaration.
1438         * lib/log1pf.c: New file.
1439         * m4/log1pf.m4: New file.
1440         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1442         REPLACE_LOG1PF.
1443         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1444         REPLACE_LOG1PF.
1445         * modules/log1pf: New file.
1446         * tests/test-math-c++.cc: Check the declaration of log1pf.
1447         * doc/posix-functions/log1pf.texi: Mention the new module.
1448
1449 2012-03-10  Bruno Haible  <bruno@clisp.org>
1450
1451         log1p tests: More tests.
1452         * tests/test-log1p.h: New file.
1453         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1454         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1455         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1456         (main): Invoke test_function.
1457
1458         log1p: Provide replacement for Minix and MSVC.
1459         * lib/math.in.h (log1p): New declaration.
1460         * lib/log1p.c: New file.
1461         * m4/log1p.m4: New file.
1462         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1464         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1465         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1466         (Depends-on): Add math, isnand, log, round.
1467         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1468         HAVE_LOG1P is 0.
1469         * tests/test-math-c++.cc: Check the declaration of log1p.
1470         * doc/posix-functions/log1p.texi: Mention the replacement.
1471
1472 2012-03-10  Bruno Haible  <bruno@clisp.org>
1473
1474         math tests: Small simplification.
1475         * tests/test-exp.h (test_function): Use the same err_bound for
1476         'double' on platforms with sizeof (long double) == sizeof (double)
1477         than on platforms with sizeof (long double) > sizeof (double).
1478         * tests/test-exp2.h (test_function): Likewise.
1479         * tests/test-expm1.h (test_function): Likewise.
1480         * tests/test-log.h (test_function): Likewise.
1481
1482 2012-03-10  Bruno Haible  <bruno@clisp.org>
1483
1484         Fix some comments.
1485         * lib/expl.c: Fix an ambiguous comment.
1486         * lib/expm1.c: Likewise.
1487         * lib/expm1l.c: Likewise.
1488         * lib/exp2.c: Likewise.
1489         * lib/exp2l.c: Likewise.
1490
1491 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1492
1493         regex: allow inclusion of <regex.h> before <limits.h>
1494         Without this patch, portable programs had to include <limits.h> before
1495         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1496         I ran into this problem with a test version of GNU grep on Solaris 8.
1497         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1498         This is done conditionally so that this change can be merged
1499         back to glibc.
1500         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1501         using the included regex.
1502
1503         fts: depend on fdopendir
1504         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1505         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1506         problem was introduced when fdopendir was split out.
1507
1508 2012-03-10  Bruno Haible  <bruno@clisp.org>
1509
1510         Remove unused variables.
1511         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1512         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1513
1514 2012-03-10  Bruno Haible  <bruno@clisp.org>
1515
1516         isnanf-nolibm: Fix last commit.
1517         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1518
1519         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1520         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1521
1522 2012-03-10  Bruno Haible  <bruno@clisp.org>
1523
1524         logf-ieee: Work around test failure on NetBSD 5.1.
1525         * m4/logf-ieee.m4: New file.
1526         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1527         whether logf works with a negative argument. Replace it if not.
1528         * lib/logf.c (logf): For negative arguments, return NaN.
1529         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1530         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1531         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1532
1533         logf-ieee: Work around test failure on Solaris 9.
1534         * modules/logf-ieee (Depends-on): Add log-ieee.
1535         (configure.ac): Require gl_FUNC_LOGF.
1536
1537         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1538         * m4/log-ieee.m4: New file.
1539         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1540         log works with a negative argument. Replace it if not.
1541         * lib/log.c (log): For negative arguments, return NaN.
1542         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1543         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1544         * doc/posix-functions/log.texi: Mention the log-ieee module.
1545
1546         Tests for module 'logl-ieee'.
1547         * modules/logl-ieee-tests: New file.
1548         * tests/test-logl-ieee.c: New file.
1549
1550         New module 'logl-ieee'.
1551         * modules/logl-ieee: New file.
1552
1553         Tests for module 'log-ieee'.
1554         * modules/log-ieee-tests: New file.
1555         * tests/test-log-ieee.c: New file.
1556
1557         New module 'log-ieee'.
1558         * modules/log-ieee: New file.
1559
1560         Tests for module 'logf-ieee'.
1561         * modules/logf-ieee-tests: New file.
1562         * tests/test-logf-ieee.c: New file.
1563         * tests/test-log-ieee.h: New file.
1564
1565         New module 'logf-ieee'.
1566         * modules/logf-ieee: New file.
1567
1568 2012-03-10  Bruno Haible  <bruno@clisp.org>
1569
1570         log: Fix bug introduced on 2012-03-09.
1571         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1572
1573 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1574
1575         timer-time: link explicitly with pthreads on glibc
1576         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1577         to support static linking, when newer glibc is
1578         detected, as that contains pthread emulation of
1579         POSIX timer functions where required.
1580         * modules/timer-time: Depend on threadlib to
1581         pull in the appropriate library to link.
1582
1583 2012-03-10  Bruno Haible  <bruno@clisp.org>
1584
1585         log* tests: More tests.
1586         * tests/test-log.h: New file.
1587         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1588         (main): Invoke test_function.
1589         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1590         (main): Invoke test_function.
1591         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1592         (main): Invoke test_function.
1593         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1594         tests/randomd.c.
1595         (Makefile.am): Add randomd.c to test_log_SOURCES.
1596         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1597         tests/randomf.c.
1598         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1599         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1600         tests/randoml.c.
1601         (Depends-on): Add 'float'.
1602         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1603
1604 2012-03-09  Bruno Haible  <bruno@clisp.org>
1605
1606         logl: Work around OSF/1 5.1 bug.
1607         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1608         * lib/logl.c (logl): If logl exists, use it and provide just the
1609         workaround.
1610         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1611         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1613         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1614         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1615         (Depends-on): Update conditions.
1616         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1617
1618 2012-03-09  Bruno Haible  <bruno@clisp.org>
1619
1620         logf: Work around OSF/1 5.1 bug.
1621         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1622         * lib/logf.c (logf): If logf exists, use it and provide just the
1623         workaround.
1624         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1625         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1627         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1628         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1629         (Depends-on): Update conditions.
1630         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1631
1632 2012-03-09  Bruno Haible  <bruno@clisp.org>
1633
1634         log: Work around OSF/1 5.1 bug.
1635         * lib/math.in.h (log): New declaration.
1636         * lib/log.c: New file.
1637         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1638         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1639         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1641         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1642         * modules/log (Files): Add lib/log.c.
1643         (Depends-on): Add math.
1644         (configure.ac): If REPLACE_LOG is 1, compile an override.
1645         * tests/test-math-c++.cc: Check the declaration of log.
1646         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1647
1648 2012-03-09  Jim Meyering  <meyering@redhat.com>
1649
1650         readtokens.c: adjust wording in a comment
1651         * lib/readtokens.c: Insert omitted "that" in a comment.
1652
1653 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1654
1655         modechange: add notations +40, 00440, etc.
1656         * lib/modechange.c (mode_compile): Support new notations
1657         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1658
1659 2012-03-08  Bruno Haible  <bruno@clisp.org>
1660
1661         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1662         * m4/exp2l-ieee.m4: New file.
1663         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1664         test whether exp2l works with a NaN argument and with a negative
1665         infinity argument. Replace it if not.
1666         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1668         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1669         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1670         (Depends-on): Update conditions.
1671         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1672         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1673         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1674
1675         Tests for module 'exp2l-ieee'.
1676         * modules/exp2l-ieee-tests: New file.
1677         * tests/test-exp2l-ieee.c: New file.
1678
1679         New module 'exp2l-ieee'.
1680         * modules/exp2l-ieee: New file.
1681
1682         Tests for module 'exp2-ieee'.
1683         * modules/exp2-ieee-tests: New file.
1684         * tests/test-exp2-ieee.c: New file.
1685
1686         New module 'exp2-ieee'.
1687         * modules/exp2-ieee: New file.
1688
1689         Tests for module 'exp2f-ieee'.
1690         * modules/exp2f-ieee-tests: New file.
1691         * tests/test-exp2f-ieee.c: New file.
1692         * tests/test-exp2-ieee.h: New file.
1693
1694         New module 'exp2f-ieee'.
1695         * modules/exp2f-ieee: New file.
1696
1697 2012-03-08  Bruno Haible  <bruno@clisp.org>
1698
1699         Tests for module 'exp2l'.
1700         * modules/exp2l-tests: New file.
1701         * tests/test-exp2l.c: New file.
1702
1703         New module 'exp2l'.
1704         * lib/math.in.h (exp2l): New declaration.
1705         * lib/exp2l.c: New file.
1706         * lib/expl-table.c: New file, extracted from lib/expl.c.
1707         * lib/expl.c (gl_expl_table): New declaration.
1708         (expl): Remove expl_table. Update reference.
1709         * m4/exp2l.m4: New file.
1710         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1712         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1713         * modules/exp2l: New file.
1714         * modules/expl (Files): Add lib/expl-table.c.
1715         (configure.ac): Compile also expl-table.c.
1716         * tests/test-math-c++.cc: Check the declaration of exp2l.
1717         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1718         problem.
1719
1720 2012-03-08  Bruno Haible  <bruno@clisp.org>
1721
1722         Tests for module 'exp2f'.
1723         * modules/exp2f-tests: New file.
1724         * tests/test-exp2f.c: New file.
1725
1726         New module 'exp2f'.
1727         * lib/math.in.h (exp2f): New declaration.
1728         * lib/exp2f.c: New file.
1729         * m4/exp2f.m4: New file.
1730         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1732         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1733         * modules/exp2f: New file.
1734         * tests/test-math-c++.cc: Check the declaration of exp2f.
1735         * doc/posix-functions/exp2f.texi: Mention the new module and the
1736         IRIX problem.
1737
1738 2012-03-08  Bruno Haible  <bruno@clisp.org>
1739
1740         Tests for module 'exp2'.
1741         * modules/exp2-tests: New file.
1742         * tests/test-exp2.c: New file.
1743         * tests/test-exp2.h: New file.
1744
1745         New module 'exp2'.
1746         * lib/math.in.h (exp2): New declaration.
1747         * lib/exp2.c: New file.
1748         * m4/exp2.m4: New file.
1749         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1751         REPLACE_EXP2.
1752         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1753         REPLACE_EXP2.
1754         * modules/exp2: New file.
1755         * tests/test-math-c++.cc: Check the declaration of exp2.
1756         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1757         and OpenBSD problems.
1758
1759 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1760
1761         savedir: fix comment typo
1762         * lib/savedir.c (savedirstream): Fix typo in comment.
1763
1764 2012-03-08  Bruno Haible  <bruno@clisp.org>
1765
1766         test-readtokens.c: use const; remove unwarranted cast
1767         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1768
1769 2012-03-08  Bruno Haible  <bruno@clisp.org>
1770
1771         fmal: Avoid compilation error on AIX.
1772         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1773         AIX 5.2..7.1.
1774
1775 2012-03-08  Bruno Haible  <bruno@clisp.org>
1776
1777         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1778         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1779         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1780         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1781         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1782         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1783         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1784
1785 2012-03-08  Bruno Haible  <bruno@clisp.org>
1786
1787         remainderf: Override buggy system function on IRIX 6.5.
1788         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1789         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1790         when it exists.
1791         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1792
1793 2012-03-08  Jim Meyering  <meyering@redhat.com>
1794
1795         test-readtokens.c: avoid const-related compilation warnings
1796         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1797
1798 2012-03-07  Jim Meyering  <meyering@redhat.com>
1799             Bruno Haible  <bruno@clisp.org>
1800
1801         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1802         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1803         tests/randomd.c.
1804         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1805         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1806         tests/randoml.c.
1807         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1808
1809 2012-03-07  Bruno Haible  <bruno@clisp.org>
1810
1811         expm1l: Avoid compilation error on AIX.
1812         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1813         AIX 5.2..7.1.
1814
1815 2012-03-07  Bruno Haible  <bruno@clisp.org>
1816
1817         expm1l: Don't override undeclared system function on IRIX 6.5.
1818         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1819         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1820         it exists. Set HAVE_DECL_EXPM1L.
1821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1822         HAVE_EXPM1L.
1823         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1824         HAVE_EXPM1L.
1825         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1826
1827 2012-03-07  Bruno Haible  <bruno@clisp.org>
1828
1829         remainderl: Don't override undeclared system function on IRIX 6.5.
1830         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1831         HAVE_REMAINDERL.
1832         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1833         declared when it exists. Set HAVE_DECL_REMAINDERL.
1834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1835         not HAVE_REMAINDERL.
1836         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1837         HAVE_REMAINDERL.
1838         * doc/posix-functions/remainderl.texi: Mention missing declaration
1839         problem.
1840
1841 2012-03-07  Bruno Haible  <bruno@clisp.org>
1842
1843         rintf: Don't override undeclared system function on IRIX 6.5.
1844         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1845         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1846         exists. Set HAVE_DECL_RINTF.
1847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1848         HAVE_RINTF.
1849         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1850         HAVE_RINTF.
1851         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1852
1853 2012-03-07  Bruno Haible  <bruno@clisp.org>
1854
1855         roundl: Avoid compilation error on AIX.
1856         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1857         AIX 5.2..7.1.
1858
1859 2012-03-07  Bruno Haible  <bruno@clisp.org>
1860
1861         roundl: Don't override undeclared system function on IRIX 6.5.
1862         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1863         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1864         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1865         * modules/roundl (configure.ac): For replacement code, test
1866         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1867         (Depends-on): Update conditions.
1868         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1869
1870 2012-03-07  Bruno Haible  <bruno@clisp.org>
1871
1872         roundf: Don't override undeclared system function on IRIX 6.5.
1873         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1874         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1875         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1876         * modules/roundf (configure.ac): For replacement code, test
1877         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1878         (Depends-on): Update conditions.
1879         * modules/roundf-ieee (Depends-on): Update conditions.
1880         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1881
1882 2012-03-07  Bruno Haible  <bruno@clisp.org>
1883
1884         round: Don't override undeclared system function on IRIX 6.5.
1885         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1886         argument.
1887         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1888         also when it is not declared. Set HAVE_ROUND. For replacement code,
1889         test HAVE_ROUND, not HAVE_DECL_ROUND.
1890         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1891         not HAVE_DECL_ROUND.
1892         (Depends-on): Update conditions.
1893         * modules/round-ieee (Depends-on): Update conditions.
1894         * doc/posix-functions/round.texi: Mention the IRIX problem.
1895
1896 2012-03-07  Bruno Haible  <bruno@clisp.org>
1897
1898         copysignf: Don't override undeclared system function on IRIX 6.5.
1899         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1900         HAVE_COPYSIGNF.
1901         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1902         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1904         not HAVE_COPYSIGNF.
1905         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1906         HAVE_COPYSIGNF.
1907         * doc/posix-functions/copysignf.texi: Mention missing declaration
1908         problem.
1909
1910 2012-03-07  Jim Meyering  <meyering@redhat.com>
1911
1912         readtokens: add tests
1913         * modules/readtokens-tests: New file.
1914         * tests/test-readtokens.c: New file.
1915
1916 2012-03-07  Jim Meyering  <meyering@redhat.com>
1917
1918         quotearg: the module must now include quote.h
1919         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1920         So must the module.
1921         * modules/quotearg (Files): Add quote.h.
1922
1923 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1924
1925         readtokens: avoid core dumps with unusual calling patterns
1926         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1927         * lib/readtokens.c: Include limits.h.
1928         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1929         (readtoken): Don't cache the delimiters; the cache code was buggy
1930         if !delim && saved_delim, or if the new n_delim differs from the old.
1931         Also, it wasn't thread-safe.
1932
1933 2012-03-07  Bruno Haible  <bruno@clisp.org>
1934
1935         quote: Adhere to common module description layout.
1936         * modules/quote (Makefile.am): Add back empty section.
1937
1938 2012-03-06  Akim Demaille  <demaille@gostai.com>
1939
1940         quote: fuse into quotearg
1941         This patch is made for the benefit of Bison.
1942         quote does not leave the choice of the quoting style to the user.
1943         quoting_style provides poor customizability, yet quoting_options,
1944         which is very rich, is hidden inside quotearg.c.  So in order to
1945         allow quote customization, move its implementation to quotearg.c.
1946         * lib/quote.c: Remove.
1947         * modules/quote: Adjust.
1948         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1949         warning: provide all the members of literal structs.
1950         (quote_quoting_options): New.
1951         (quote, quote_n): Import implementation from quote.c.
1952         * lib/quote.h: Import the comments from quote.c.
1953         (quote_quoting_options): New.
1954
1955 2012-03-06  Bruno Haible  <bruno@clisp.org>
1956
1957         Tests for module 'expm1l-ieee'.
1958         * modules/expm1l-ieee-tests: New file.
1959         * tests/test-expm1l-ieee.c: New file.
1960
1961         New module 'expm1l-ieee'.
1962         * modules/expm1l-ieee: New file.
1963
1964         Tests for module 'expm1f-ieee'.
1965         * modules/expm1f-ieee-tests: New file.
1966         * tests/test-expm1f-ieee.c: New file.
1967
1968         New module 'expm1f-ieee'.
1969         * modules/expm1f-ieee: New file.
1970
1971         Tests for module 'expm1-ieee'.
1972         * modules/expm1-ieee-tests: New file.
1973         * tests/test-expm1-ieee.c: New file.
1974         * tests/test-expm1-ieee.h: New file.
1975
1976         New module 'expm1-ieee'.
1977         * modules/expm1-ieee: New file.
1978         * m4/expm1-ieee.m4: New file.
1979         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1980         whether expm1 works with a minus zero argument. Replace it if not.
1981         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1983         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1984         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1985         (Depends-on): Update conditions.
1986         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1987         AIX problem.
1988
1989 2012-03-06  Bruno Haible  <bruno@clisp.org>
1990
1991         Work around expm1f bug on IRIX 6.5.
1992         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1993         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1994         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1995         not work.
1996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1997         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1998         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1999         (Depends-on): Update conditions.
2000         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2001
2002 2012-03-06  Bruno Haible  <bruno@clisp.org>
2003
2004         Tests for module 'expm1l'.
2005         * modules/expm1l-tests: New file.
2006         * tests/test-expm1l.c: New file.
2007
2008         New module 'expm1l'.
2009         * lib/math.in.h (expm1l): New declaration.
2010         * lib/expm1l.c: New file.
2011         * m4/expm1l.m4: New file.
2012         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2014         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2015         * modules/expm1l: New file.
2016         * tests/test-math-c++.cc: Check the declaration of expm1l.
2017         * doc/posix-functions/expm1l.texi: Mention the new module.
2018
2019 2012-03-06  Bruno Haible  <bruno@clisp.org>
2020
2021         Tests for module 'expm1f'.
2022         * modules/expm1f-tests: New file.
2023         * tests/test-expm1f.c: New file.
2024
2025         New module 'expm1f'.
2026         * lib/math.in.h (expm1f): New declaration.
2027         * lib/expm1f.c: New file.
2028         * m4/expm1f.m4: New file.
2029         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2031         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2032         * modules/expm1f: New file.
2033         * tests/test-math-c++.cc: Check the declaration of expm1f.
2034         * doc/posix-functions/expm1f.texi: Mention the new module.
2035
2036 2012-03-06  Bruno Haible  <bruno@clisp.org>
2037
2038         Tests for module 'expm1'.
2039         * modules/expm1-tests: New file.
2040         * tests/test-expm1.c: New file.
2041         * tests/test-expm1.h: New file.
2042
2043         New module 'expm1'.
2044         * lib/math.in.h (expm1): New declaration.
2045         * lib/expm1.c: New file.
2046         * m4/expm1.m4: New file.
2047         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2049         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2050         * modules/expm1: New file.
2051         * tests/test-math-c++.cc: Check the declaration of expm1.
2052         * doc/posix-functions/expm1.texi: Mention the new module.
2053
2054 2012-03-06  Bruno Haible  <bruno@clisp.org>
2055
2056         math: Ensure declarations of math functions.
2057         * modules/acosf (Depends-on): Add 'extensions'.
2058         * modules/asinf (Depends-on): Likewise.
2059         * modules/atan2f (Depends-on): Likewise.
2060         * modules/atanf (Depends-on): Likewise.
2061         * modules/cbrt (Depends-on): Likewise.
2062         * modules/cbrtf (Depends-on): Likewise.
2063         * modules/cbrtl (Depends-on): Likewise.
2064         * modules/copysignf (Depends-on): Likewise.
2065         * modules/copysignl (Depends-on): Likewise.
2066         * modules/cosf (Depends-on): Likewise.
2067         * modules/coshf (Depends-on): Likewise.
2068         * modules/expf (Depends-on): Likewise.
2069         * modules/fabsf (Depends-on): Likewise.
2070         * modules/fabsl (Depends-on): Likewise.
2071         * modules/fmaf (Depends-on): Likewise.
2072         * modules/fmal (Depends-on): Likewise.
2073         * modules/fmodf (Depends-on): Likewise.
2074         * modules/fmodl (Depends-on): Likewise.
2075         * modules/frexpf (Depends-on): Likewise.
2076         * modules/frexpl (Depends-on): Likewise.
2077         * modules/hypot (Depends-on): Likewise.
2078         * modules/hypotf (Depends-on): Likewise.
2079         * modules/hypotl (Depends-on): Likewise.
2080         * modules/ldexpf (Depends-on): Likewise.
2081         * modules/ldexpl (Depends-on): Likewise.
2082         * modules/log10f (Depends-on): Likewise.
2083         * modules/log10l (Depends-on): Likewise.
2084         * modules/log1p (Depends-on): Likewise.
2085         * modules/logb (Depends-on): Likewise.
2086         * modules/logf (Depends-on): Likewise.
2087         * modules/modff (Depends-on): Likewise.
2088         * modules/modfl (Depends-on): Likewise.
2089         * modules/powf (Depends-on): Likewise.
2090         * modules/remainderf (Depends-on): Likewise.
2091         * modules/remainderl (Depends-on): Likewise.
2092         * modules/rintf (Depends-on): Likewise.
2093         * modules/rintl (Depends-on): Likewise.
2094         * modules/sinf (Depends-on): Likewise.
2095         * modules/sinhf (Depends-on): Likewise.
2096         * modules/sqrtf (Depends-on): Likewise.
2097         * modules/tanf (Depends-on): Likewise.
2098         * modules/tanhf (Depends-on): Likewise.
2099         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2100         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2101         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2102         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2103         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2104         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2105         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2106         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2107         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2108         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2109         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2110         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2111         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2112         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2113         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2114         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2115         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2116         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2117         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2118         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2119         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2120         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2121         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2122         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2123         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2124         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2125         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2126         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2127         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2128         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2129         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2130         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2131         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2132         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2133         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2134         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2135         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2136         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2137         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2138         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2139         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2140
2141 2012-03-06  Bruno Haible  <bruno@clisp.org>
2142
2143         math: Update module names in warnings.
2144         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2145         tanl): Use specific module name in warn-on-use warning.
2146
2147 2012-03-06  Bruno Haible  <bruno@clisp.org>
2148
2149         expl: Simplify computation.
2150         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2151
2152 2012-03-05  Bruno Haible  <bruno@clisp.org>
2153
2154         exp* tests: More tests.
2155         * tests/test-exp.h: New file.
2156         * tests/test-exp.c: Include <float.h> and test-exp.h.
2157         (main): Invoke test_function.
2158         * tests/test-expf.c: Include <float.h> and test-exp.h.
2159         (main): Invoke test_function.
2160         * tests/test-expl.c: Include <float.h> and test-exp.h.
2161         (main): Invoke test_function.
2162         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2163         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2164         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2165         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2166         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2167         (Depends-on): Add 'float'.
2168         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2169
2170         expl: Fix precision of computed result.
2171         * lib/expl.c: Completely rewritten.
2172         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2173         (Maintainer): Add me.
2174         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2175
2176 2012-03-05  Bruno Haible  <bruno@clisp.org>
2177
2178         cbrt* tests: More tests.
2179         * tests/test-cbrt.h: New file.
2180         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2181         (main): Invoke test_function.
2182         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2183         (main): Invoke test_function.
2184         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2185         (main): Invoke test_function.
2186         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2187         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2188         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2189         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2190         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2191         (Depends-on): Add 'float'.
2192         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2193
2194 2012-03-05  Bruno Haible  <bruno@clisp.org>
2195
2196         hypot* tests: More tests.
2197         * tests/test-hypot.h: New file, partially extracted from
2198         tests/test-hypotl.c.
2199         * tests/test-hypot.c: Include test-hypot.h.
2200         (main): Invoke test_function.
2201         * tests/test-hypotf.c: Include test-hypot.h.
2202         (main): Invoke test_function.
2203         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2204         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2205         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2206         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2207         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2208         tests/randomf.c.
2209         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2210         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2211         tests/randoml.c.
2212         (Depends-on): Add 'fpucw', 'float'.
2213         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2214
2215 2012-03-05  Bruno Haible  <bruno@clisp.org>
2216
2217         fpucw: Doc about FreeBSD.
2218         * lib/fpucw.h: Mention FreeBSD in comments.
2219
2220 2012-03-04  Bruno Haible  <bruno@clisp.org>
2221
2222         sqrt* tests: More tests.
2223         * tests/test-sqrt.h: New file.
2224         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2225         (main): Invoke test_function.
2226         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2227         (main): Invoke test_function.
2228         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2229         (main): Invoke test_function.
2230         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2231         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2232         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2233         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2234         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2235         (Depends-on): Add 'float'.
2236         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2237
2238 2012-03-04  Bruno Haible  <bruno@clisp.org>
2239
2240         remainder* tests: More tests.
2241         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2242         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2243         (main): Invoke test_function.
2244         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2245         (main): Invoke test_function.
2246         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2247         (main): Invoke test_function.
2248         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2249         tests/randomd.c.
2250         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2251         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2252         tests/randomf.c.
2253         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2254         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2255         tests/randoml.c.
2256         (Depends-on): Add 'float'.
2257         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2258
2259 2012-03-04  Bruno Haible  <bruno@clisp.org>
2260
2261         remainder, remainderf, remainderl: Fix computation for large quotients.
2262         * lib/remainder.c: Completely rewritten.
2263         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2264         USE_FLOAT.
2265         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2266         USE_LONG_DOUBLE.
2267         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2268         isnand, isinf. Remove round, fma.
2269         * modules/remainderf (Files): Add lib/remainder.c.
2270         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2271         Remove roundf, fmaf.
2272         * modules/remainderl (Files): Add lib/remainder.c.
2273         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2274         isinf. Remove roundl, fmal.
2275         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2276         REMAINDER_LIBM.
2277         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2278         REMAINDERF_LIBM.
2279         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2280         REMAINDERL_LIBM.
2281
2282 2012-03-04  Bruno Haible  <bruno@clisp.org>
2283
2284         fmod* tests: More tests.
2285         * tests/test-fmod.h (my_ldexp): New function.
2286         (test_function): Reduce amount of random numbers to test. Add tests
2287         of very large quotients x / y.
2288         * tests/test-fmod.c (MAX_EXP): New macro.
2289         * tests/test-fmodf.c (MAX_EXP): Likewise.
2290         * tests/test-fmodl.c (MAX_EXP): Likewise.
2291
2292 2012-03-04  Bruno Haible  <bruno@clisp.org>
2293
2294         fmod, fmodl: Fix computation for large quotients x / y.
2295         * lib/fmod.c: Completely rewritten.
2296         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2297         USE_LONG_DOUBLE.
2298         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2299         isnand. Remove fma.
2300         * modules/fmodl (Files): Add lib/fmod.c.
2301         (Depends-on): Add float, isfinite, signbit, fabsl,
2302         frexpl, ldexpl, isnanl. Remove fma.
2303         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2304         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2305
2306 2012-03-03  Bruno Haible  <bruno@clisp.org>
2307
2308         fmod* tests: More tests.
2309         * tests/test-fmod.h: New file.
2310         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2311         (main): Invoke test_function.
2312         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2313         (main): Invoke test_function.
2314         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2315         (main): Invoke test_function.
2316         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2317         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2318         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2319         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2320         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2321         (Depends-on): Add 'float'.
2322         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2323
2324 2012-03-03  Bruno Haible  <bruno@clisp.org>
2325
2326         rint* tests: More tests.
2327         * tests/test-rint.h: New file, partially extracted from
2328         tests/test-rintl.c.
2329         * tests/test-rint.c: Include test-rint.h.
2330         (main): Invoke test_function.
2331         * tests/test-rintf.c: Include test-rint.h.
2332         (main): Invoke test_function.
2333         * tests/test-rintl.c: Include test-rint.h.
2334         (main): Invoke test_function.
2335         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2336         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2337         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2338         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2339         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2340         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2341
2342 2012-03-03  Bruno Haible  <bruno@clisp.org>
2343
2344         modf* tests: More tests.
2345         * tests/test-modf.h: New file.
2346         * tests/test-modf.c: Include <float.h> and test-modf.h.
2347         (main): Invoke test_function.
2348         * tests/test-modff.c: Include <float.h> and test-modf.h.
2349         (main): Invoke test_function.
2350         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2351         (main): Invoke test_function.
2352         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2353         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2354         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2355         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2356         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2357         (Depends-on): Add 'float'.
2358         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2359
2360 2012-03-03  Bruno Haible  <bruno@clisp.org>
2361
2362         fabs* tests: More tests.
2363         * tests/test-fabs.h: New file, partially extracted from
2364         tests/test-fabsl.c.
2365         * tests/test-fabs.c (RANDOM): New macro.
2366         * tests/test-fabsf.c (RANDOM): New macro.
2367         * tests/test-fabsl.c (RANDOM): New macro.
2368         * modules/fabs-tests (Files): Add tests/randomd.c.
2369         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2370         * modules/fabsf-tests (Files): Add tests/randomf.c.
2371         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2372         * modules/fabsl-tests (Files): Add tests/randoml.c.
2373         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2374
2375 2012-03-03  Bruno Haible  <bruno@clisp.org>
2376
2377         ldexp* tests: More tests.
2378         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2379         * tests/test-ldexp.c (RANDOM): New macro.
2380         * tests/test-ldexpf.c (RANDOM): New macro.
2381         * tests/test-ldexpl.c (RANDOM): New macro.
2382         * modules/ldexp-tests (Files): Add tests/randomd.c.
2383         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2384         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2385         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2386         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2387         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2388
2389 2012-03-03  Bruno Haible  <bruno@clisp.org>
2390
2391         frexp* tests: More tests.
2392         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2393         * tests/test-frexp.c (RANDOM): New macro.
2394         * tests/test-frexpf.c (RANDOM): New macro.
2395         * tests/test-frexpl.c (RANDOM): New macro.
2396         * modules/frexp-tests (Files): Add tests/randomd.c.
2397         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2398         * modules/frexpf-tests (Files): Add tests/randomf.c.
2399         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2400         * modules/frexpl-tests (Files): Add tests/randoml.c.
2401         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2402
2403 2012-03-03  Bruno Haible  <bruno@clisp.org>
2404
2405         Support for pseudo-random numbers in tests.
2406         * tests/randomf.c: New file.
2407         * tests/randomd.c: New file.
2408         * tests/randoml.c: New file.
2409         * tests/macros.h (randomf, randomd, randoml): New declarations.
2410
2411 2012-03-03  Bruno Haible  <bruno@clisp.org>
2412
2413         frexp* tests: Refactor.
2414         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2415         * tests/test-frexp.c: Include and use it.
2416         * tests/test-frexpf.c: Likewise.
2417         * tests/test-frexpl.c: Likewise.
2418         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2419         * modules/frexpf-tests (Files): Likewise.
2420         * modules/frexpl-tests (Files): Likewise.
2421
2422 2012-03-02  Jim Meyering  <meyering@redhat.com>
2423
2424         maint: don't specify XZ_OPT=-9ev in dist-related rule
2425         Using xz's -9 option is warranted only if you have a very large
2426         tarball (see xz's documentation for the sizes vs. presets), and
2427         requires 64MiB of memory at decompression time.
2428         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2429         Automake's default of just "-e" is fine.  Override on a
2430         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2431
2432 2012-03-01  Eric Blake  <eblake@redhat.com>
2433
2434         maint.mk: allow announcement for non-gnulib project
2435         * maint.mk (announcement): Skip gnulib version if not used.
2436
2437 2012-03-01  Jim Meyering  <meyering@redhat.com>
2438
2439         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2440         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2441         envvar settings cannot interfere.  Otherwise, setting envvars like
2442         prohibit=foo require=bar, etc. would cause spurious test failures.
2443
2444 2012-03-01  Eric Blake  <eblake@redhat.com>
2445
2446         maint.mk: add per-line exclusions to prohibitions
2447         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2448         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2449         (sc_const_long_option): Use it.
2450
2451 2012-03-01  Bruno Haible  <bruno@clisp.org>
2452
2453         Tests for module 'expl-ieee'.
2454         * modules/expl-ieee-tests: New file.
2455         * tests/test-expl-ieee.c: New file.
2456
2457         New module 'expl-ieee'.
2458         * modules/expl-ieee: New file.
2459
2460         Tests for module 'exp-ieee'.
2461         * modules/exp-ieee-tests: New file.
2462         * tests/test-exp-ieee.c: New file.
2463
2464         New module 'exp-ieee'.
2465         * modules/exp-ieee: New file.
2466
2467         Tests for module 'expf-ieee'.
2468         * modules/expf-ieee-tests: New file.
2469         * tests/test-expf-ieee.c: New file.
2470         * tests/test-exp-ieee.h: New file.
2471
2472         New module 'expf-ieee'.
2473         * modules/expf-ieee: New file.
2474
2475 2012-02-29  Bruno Haible  <bruno@clisp.org>
2476
2477         cbrtl-ieee: Work around test failure on IRIX 6.5.
2478         * m4/cbrtl-ieee.m4: New file.
2479         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2480         test whether cbrtl works with a minus zero argument. Replace it if not.
2481         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2483         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2484         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2485         (Depends-on): Update conditions.
2486         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2487         m4/signbit.m4.
2488         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2489         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2490         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2491
2492         Tests for module 'cbrtl-ieee'.
2493         * modules/cbrtl-ieee-tests: New file.
2494         * tests/test-cbrtl-ieee.c: New file.
2495
2496         New module 'cbrtl-ieee'.
2497         * modules/cbrtl-ieee: New file.
2498
2499         Tests for module 'cbrt-ieee'.
2500         * modules/cbrt-ieee-tests: New file.
2501         * tests/test-cbrt-ieee.c: New file.
2502
2503         New module 'cbrt-ieee'.
2504         * modules/cbrt-ieee: New file.
2505
2506         Tests for module 'cbrtf-ieee'.
2507         * modules/cbrtf-ieee-tests: New file.
2508         * tests/test-cbrtf-ieee.c: New file.
2509         * tests/test-cbrt-ieee.h: New file.
2510
2511         New module 'cbrtf-ieee'.
2512         * modules/cbrtf-ieee: New file.
2513
2514 2012-02-29  Bruno Haible  <bruno@clisp.org>
2515
2516         cbrtf: Work around bug in IRIX 6.5 system function.
2517         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2518         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2519         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2520         work.
2521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2522         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2523         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2524         (Depends-on): Update conditions.
2525         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2526
2527 2012-02-29  Bruno Haible  <bruno@clisp.org>
2528
2529         Tests for module 'cbrtl'.
2530         * modules/cbrtl-tests: New file.
2531         * tests/test-cbrtl.c: New file.
2532
2533         New module 'cbrtl'.
2534         * lib/math.in.h (cbrtl): New declaration.
2535         * lib/cbrtl.c: New file.
2536         * m4/cbrtl.m4: New file.
2537         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2539         HAVE_DECL_CBRTL.
2540         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2541         HAVE_DECL_CBRTL.
2542         * modules/cbrtl: New file.
2543         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2544         * doc/posix-functions/cbrtl.texi: Mention the new module.
2545
2546 2012-02-29  Bruno Haible  <bruno@clisp.org>
2547
2548         Tests for module 'cbrtf'.
2549         * modules/cbrtf-tests: New file.
2550         * tests/test-cbrtf.c: New file.
2551
2552         New module 'cbrtf'.
2553         * lib/math.in.h (cbrtf): New declaration.
2554         * lib/cbrtf.c: New file.
2555         * m4/cbrtf.m4: New file.
2556         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2558         HAVE_DECL_CBRTF.
2559         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2560         HAVE_DECL_CBRTF.
2561         * modules/cbrtf: New file.
2562         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2563         * doc/posix-functions/cbrtf.texi: Mention the new module.
2564
2565 2012-02-29  Bruno Haible  <bruno@clisp.org>
2566
2567         cbrt: Provide replacement on MSVC and Minix.
2568         * lib/math.in.h (cbrt): New declaration.
2569         * lib/cbrt.c: New file.
2570         * m4/cbrt.m4: New file.
2571         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2573         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2574         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2575         (Depends-on): Add dependencies.
2576         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2577         * tests/test-math-c++.cc: Check the declaration of cbrt.
2578         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2579         replacement.
2580
2581 2012-02-29  Bruno Haible  <bruno@clisp.org>
2582
2583         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2584         * m4/hypotl-ieee.m4: New file.
2585         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2586         test whether hypotl works with mixed NaN and Infinity arguments.
2587         Replace it if not.
2588         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2590         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2591         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2592         (Depends-on): Update conditions.
2593         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2594         (Depends-on): Add hypot-ieee.
2595         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2596         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2597
2598         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2599         * m4/hypotf-ieee.m4: New file.
2600         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2601         test whether hypotf works with mixed NaN and Infinity arguments.
2602         Replace it if not.
2603         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2604         (Depends-on): Add hypot-ieee.
2605         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2606         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2607
2608         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2609         * lib/math.in.h (hypot): New declaration.
2610         * lib/hypot.c: New file.
2611         * m4/hypot-ieee.m4: New file.
2612         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2613         whether hypot works with mixed NaN and Infinity arguments. Replace it
2614         if not.
2615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2616         REPLACE_HYPOT.
2617         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2618         * modules/hypot (Files): Add lib/hypot.c.
2619         (Depends-on): Add dependencies.
2620         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2621         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2622         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2623         * tests/test-math-c++.cc: Check the declaration of hypot.
2624         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2625
2626         Tests for module 'hypotl-ieee'.
2627         * modules/hypotl-ieee-tests: New file.
2628         * tests/test-hypotl-ieee.c: New file.
2629
2630         New module 'hypotl-ieee'.
2631         * modules/hypotl-ieee: New file.
2632
2633         Tests for module 'hypot-ieee'.
2634         * modules/hypot-ieee-tests: New file.
2635         * tests/test-hypot-ieee.c: New file.
2636
2637         New module 'hypot-ieee'.
2638         * modules/hypot-ieee: New file.
2639
2640         Tests for module 'hypotf-ieee'.
2641         * modules/hypotf-ieee-tests: New file.
2642         * tests/test-hypotf-ieee.c: New file.
2643         * tests/test-hypot-ieee.h: New file.
2644
2645         New module 'hypotf-ieee'.
2646         * modules/hypotf-ieee: New file.
2647
2648 2012-02-29  Bruno Haible  <bruno@clisp.org>
2649
2650         Remove unused variables.
2651         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2652         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2653         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2654         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2655
2656 2012-02-29  Eric Blake  <eblake@redhat.com>
2657
2658         termios: fix pid_t always, not just for tcgetsid
2659         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2660         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2661         just when building tcgetsid.
2662
2663 2012-02-29  Bruno Haible  <bruno@clisp.org>
2664
2665         Tests for module 'hypotl'.
2666         * modules/hypotl-tests: New file.
2667         * tests/test-hypotl.c: New file.
2668
2669         New module 'hypotl'.
2670         * lib/math.in.h (hypotl): New declaration.
2671         * lib/hypotl.c: New file.
2672         * m4/hypotl.m4: New file.
2673         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2675         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2676         * modules/hypotl: New file.
2677         * tests/test-math-c++.cc: Check the hypotl declaration.
2678         * doc/posix-functions/hypotl.texi: Mention the new module.
2679
2680 2012-02-29  Eric Blake  <eblake@redhat.com>
2681
2682         tcgetsid: fix cygwin header bug
2683         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2684
2685         docs: update cygwin progress
2686         * doc/posix-functions/llround.texi (llround): Added in cygwin
2687         1.7.8.
2688         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2689         * doc/glibc-functions/program_invocation_name.texi
2690         (program_invocation_name): Likewise.
2691         * doc/glibc-functions/program_invocation_short_name.texi
2692         (program_invocation_short_name): Likewise.
2693         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2694         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2695         Likewise.
2696         * doc/posix-functions/pthread_spin_destroy.texi
2697         (pthread_spin_destroy): Added in cygwin 1.7.10.
2698         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2699         Likewise.
2700         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2701         Likewise.
2702         * doc/posix-functions/pthread_spin_trylock.texi
2703         (pthread_spin_trylock): Likewise.
2704         * doc/posix-functions/pthread_spin_unlock.texi
2705         (pthread_spin_unlock): Likewise.
2706         * doc/posix-functions/pthread_setschedprio.texi
2707         (pthread_setschedprio): Likewise.
2708         * doc/posix-functions/pthread_attr_getstack.texi
2709         (pthread_attr_getstack): Likewise.
2710         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2711         (pthread_attr_getstackaddr): Likewise.
2712         * doc/glibc-functions/pthread_getattr_np.texi
2713         (pthread_getattr_np): Likewise.
2714         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2715         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2716         * doc/posix-functions/clock_settime.texi (clock_settime):
2717         Likewise.
2718         * doc/posix-functions/pthread_attr_getguardsize.texi
2719         (pthread_attr_getguardsize): Likewise.
2720         * doc/posix-functions/pthread_attr_setguardsize.texi
2721         (pthread_attr_setguardsize): Likewise.
2722         * doc/posix-functions/pthread_attr_setstack.texi
2723         (pthread_attr_setstack): Likewise.
2724         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2725         (pthread_attr_setstackaddr): Likewise.
2726         * doc/posix-functions/clock_getcpuclockid.texi
2727         (clock_getcpuclockid): Likewise.
2728         * doc/posix-functions/pthread_getcpuclockid.texi
2729         (pthread_getcpuclockid): Likewise.
2730         * doc/glibc-functions/error.texi (error): Likewise.
2731         * doc/glibc-functions/error_at_line.texi (error_at_line):
2732         Likewise.
2733         * doc/glibc-functions/error_message_count.texi
2734         (error_message_count): Likewise.
2735         * doc/glibc-functions/error_one_per_line.texi
2736         (error_one_per_line): Likewise.
2737         * doc/glibc-functions/error_print_progname.texi
2738         (error_print_progname): Likewise.
2739         * doc/posix-functions/pthread_condattr_getclock.texi
2740         (pthread_condattr_getclock): Likewise.
2741         * doc/posix-functions/pthread_condattr_setclock.texi
2742         (pthread_condattr_setclock): Likewise.
2743         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2744         Likewise.
2745         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2746         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2747         * doc/glibc-functions/get_current_dir_name.texi
2748         (get_current_dir_name): Likewise.
2749         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2750         Likewise.
2751         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2752         wrong return type.
2753         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2754         1.7.11.
2755
2756 2012-02-29  Bruno Haible  <bruno@clisp.org>
2757
2758         Tests for module 'hypotf'.
2759         * modules/hypotf-tests: New file.
2760         * tests/test-hypotf.c: New file.
2761
2762         New module 'hypotf'.
2763         * lib/math.in.h (hypotf): New declaration.
2764         * lib/hypotf.c: New file.
2765         * m4/hypotf.m4: New file.
2766         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2768         REPLACE_HYPOTF.
2769         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2770         REPLACE_HYPOTF.
2771         * modules/hypotf: New file.
2772         * tests/test-math-c++.cc: Check the hypotf declaration.
2773         * doc/posix-functions/hypotf.texi: Mention the new module.
2774
2775         hypot: Prepare for hypotf module.
2776         * m4/hypot.m4: New file.
2777         * modules/hypot (Files): Add m4/hypot.m4.
2778         (configure.ac): Invoke gl_FUNC_HYPOT.
2779
2780 2012-02-29  Bruno Haible  <bruno@clisp.org>
2781
2782         hypot tests: More tests.
2783         * tests/test-hypot.c: Include <float.h>.
2784         (main): Add tests about overflow and underflow.
2785
2786 2012-02-29  Bruno Haible  <bruno@clisp.org>
2787
2788         math code: Add comments.
2789         * lib/acosl.c: Add comment about related glibc source files.
2790         * lib/asinl.c: Likewise.
2791         * lib/atanl.c: Likewise.
2792         * lib/expl.c: Likewise.
2793         * lib/logl.c: Likewise.
2794         * lib/sincosl.c: Likewise.
2795         * lib/sinl.c: Likewise.
2796         * lib/tanl.c: Likewise.
2797         * lib/trigl.c: Likewise.
2798         * lib/cosl.c: Likewise. Fix comments.
2799
2800 2012-02-28  Bruno Haible  <bruno@clisp.org>
2801
2802         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2803         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2804         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2805         HUGE_VALL are defined.
2806         (numeric_equald): Renamed from numeric_equal.
2807         (numeric_equalf, numeric_equall): New functions.
2808         (main): Check also HUGE_VALF, HUGE_VALL.
2809         * modules/math-tests (Files): Add tests/macros.h.
2810         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2811         HUGE_VALL.
2812
2813 2012-02-28  Bruno Haible  <bruno@clisp.org>
2814
2815         doc: Move ISO C11 feature notes into POSIX chapters.
2816         * doc/posix-functions/aligned_alloc.texi: Renamed from
2817         doc/glibc-functions/aligned_alloc.texi.
2818         * doc/posix-functions/quick_exit.texi: Renamed from
2819         doc/glibc-functions/quick_exit.texi.
2820         * doc/posix-headers/uchar.texi: Renamed from
2821         doc/glibc-headers/uchar.texi.
2822         * doc/posix-functions/c16rtomb.texi: Renamed from
2823         doc/glibc-functions/c16rtomb.texi.
2824         * doc/posix-functions/c32rtomb.texi: Renamed from
2825         doc/glibc-functions/c32rtomb.texi.
2826         * doc/posix-functions/mbrtoc16.texi: Renamed from
2827         doc/glibc-functions/mbrtoc16.texi.
2828         * doc/posix-functions/mbrtoc32.texi: Renamed from
2829         doc/glibc-functions/mbrtoc32.texi.
2830         * doc/gnulib.texi: Update.
2831         (Glibc uchar.h): Remove section.
2832         Suggested by Eric Blake.
2833
2834 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2835
2836         stdnoreturn: port to MSVC better
2837         MSVC standard headers use __declspec(noreturn), so #define noreturn
2838         to empty on that platform.  Reported by Bruno Haible in
2839         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2840         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2841         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2842
2843 2012-02-28  Bruno Haible  <bruno@clisp.org>
2844
2845         doc: Mention new glibc headers and functions.
2846         * doc/glibc-headers/uchar.texi: New file.
2847         * doc/glibc-functions/aligned_alloc.texi: New file.
2848         * doc/glibc-functions/c16rtomb.texi: New file.
2849         * doc/glibc-functions/c32rtomb.texi: New file.
2850         * doc/glibc-functions/clock_adjtime.texi: New file.
2851         * doc/glibc-functions/fanotify_init.texi: New file.
2852         * doc/glibc-functions/fanotify_mark.texi: New file.
2853         * doc/glibc-functions/inet6_opt_append.texi: New file.
2854         * doc/glibc-functions/inet6_opt_find.texi: New file.
2855         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2856         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2857         * doc/glibc-functions/inet6_opt_init.texi: New file.
2858         * doc/glibc-functions/inet6_opt_next.texi: New file.
2859         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2860         * doc/glibc-functions/inet6_rth_add.texi: New file.
2861         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2862         * doc/glibc-functions/inet6_rth_init.texi: New file.
2863         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2864         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2865         * doc/glibc-functions/inet6_rth_space.texi: New file.
2866         * doc/glibc-functions/login.texi: New file.
2867         * doc/glibc-functions/mbrtoc16.texi: New file.
2868         * doc/glibc-functions/mbrtoc32.texi: New file.
2869         * doc/glibc-functions/name_to_handle_at.texi: New file.
2870         * doc/glibc-functions/ntp_gettimex.texi: New file.
2871         * doc/glibc-functions/open_by_handle_at.texi: New file.
2872         * doc/glibc-functions/prlimit.texi: New file.
2873         * doc/glibc-functions/process_vm_readv.texi: New file.
2874         * doc/glibc-functions/process_vm_writev.texi: New file.
2875         * doc/glibc-functions/recvmmsg.texi: New file.
2876         * doc/glibc-functions/scandirat.texi: New file.
2877         * doc/glibc-functions/sendmmsg.texi: New file.
2878         * doc/glibc-functions/setns.texi: New file.
2879         * doc/glibc-functions/timespec_get.texi: New file.
2880         * doc/gnulib.texi: Include them.
2881         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2882         sections.
2883         Reported by Eric Blake.
2884
2885 2012-02-28  Bruno Haible  <bruno@clisp.org>
2886
2887         Avoid compilation errors with MSVC option -fp:strict.
2888         * lib/floor.c: Use MSVC specific pragma fenv_access.
2889         * lib/ceil.c: Likewise.
2890         * lib/trunc.c: Likewise.
2891         * lib/round.c: Likewise.
2892         * lib/rint.c: Likewise.
2893         * lib/fma.c: Likewise.
2894         * lib/integer_length.c: Likewise.
2895         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2896         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2897         * tests/test-floor2.c: Likewise.
2898         * tests/test-floorf2.c: Likewise.
2899         * tests/test-ceil2.c: Likewise.
2900         * tests/test-ceilf2.c: Likewise.
2901         * tests/test-trunc2.c: Likewise.
2902         * tests/test-truncf2.c: Likewise.
2903         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2904
2905 2012-02-27  Bruno Haible  <bruno@clisp.org>
2906
2907         Tests for module 'sqrtl-ieee'.
2908         * modules/sqrtl-ieee-tests: New file.
2909         * tests/test-sqrtl-ieee.c: New file.
2910
2911         New module 'sqrtl-ieee'.
2912         * modules/sqrtl-ieee: New file.
2913
2914         Tests for module 'sqrt-ieee'.
2915         * modules/sqrt-ieee-tests: New file.
2916         * tests/test-sqrt-ieee.c: New file.
2917
2918         New module 'sqrt-ieee'.
2919         * modules/sqrt-ieee: New file.
2920
2921         Tests for module 'sqrtf-ieee'.
2922         * modules/sqrtf-ieee-tests: New file.
2923         * tests/test-sqrtf-ieee.c: New file.
2924         * tests/test-sqrt-ieee.h: New file.
2925
2926         New module 'sqrtf-ieee'.
2927         * modules/sqrtf-ieee: New file.
2928
2929 2012-02-27  Bruno Haible  <bruno@clisp.org>
2930
2931         remainderl-ieee: Work around test failure on OSF/1.
2932         * m4/remainderl-ieee.m4: New file.
2933         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2934         present, test whether remainderl works with a zero second argument.
2935         Replace it if not.
2936         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2938         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2939         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2940         (Depends-on): Update conditions.
2941         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2942         (Depends-on): Add remainder-ieee.
2943         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2944         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2945         module.
2946
2947         remainderf-ieee: Work around test failure on OSF/1.
2948         * m4/remainderf-ieee.m4: New file.
2949         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2950         present, test whether remainderf works with a zero second argument.
2951         Replace it if not.
2952         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2954         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2955         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2956         (Depends-on): Update conditions.
2957         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2958         (Depends-on): Add remainder-ieee.
2959         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2960         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2961         module.
2962
2963         remainder-ieee: Work around test failure on OSF/1.
2964         * m4/remainder-ieee.m4: New file.
2965         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2966         present, test whether remainder works with a zero second argument.
2967         Replace it if not.
2968         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2970         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2971         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2972         (Depends-on): Update dependencies.
2973         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2974         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2975         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2976
2977         Tests for module 'remainderl-ieee'.
2978         * modules/remainderl-ieee-tests: New file.
2979         * tests/test-remainderl-ieee.c: New file.
2980
2981         New module 'remainderl-ieee'.
2982         * modules/remainderl-ieee: New file.
2983
2984         Tests for module 'remainder-ieee'.
2985         * modules/remainder-ieee-tests: New file.
2986         * tests/test-remainder-ieee.c: New file.
2987
2988         New module 'remainder-ieee'.
2989         * modules/remainder-ieee: New file.
2990
2991         Tests for module 'remainderf-ieee'.
2992         * modules/remainderf-ieee-tests: New file.
2993         * tests/test-remainderf-ieee.c: New file.
2994         * tests/test-remainder-ieee.h: New file.
2995
2996         New module 'remainderf-ieee'.
2997         * modules/remainderf-ieee: New file.
2998
2999 2012-02-27  Bruno Haible  <bruno@clisp.org>
3000
3001         modff, modfl: Fix configure syntax error.
3002         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3003         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3004
3005 2012-02-27  Bruno Haible  <bruno@clisp.org>
3006
3007         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3008         * m4/fmodl-ieee.m4: New file.
3009         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3010         whether fmodl works with zero arguments. Replace it if not.
3011         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3012         (Depends-on): Add fmod-ieee.
3013         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3014         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3015
3016         fmodf-ieee: Work around test failure on OSF/1.
3017         * m4/fmodf-ieee.m4: New file.
3018         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3019         whether fmodf works with zero arguments. Replace it if not.
3020         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3022         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3023         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3024         (Depends-on): Update dependencies.
3025         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3026         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3027         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3028
3029         fmodf-ieee: Work around test failure on MSVC 9.
3030         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3031         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3032
3033         fmod-ieee: Work around test failures on OSF/1, mingw.
3034         * m4/fmod-ieee.m4: New file.
3035         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3036         whether fmod works with zero arguments. Replace it if not.
3037         * lib/math.in.h (fmod): New declaration.
3038         * lib/fmod.c: New file.
3039         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3041         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3042         * modules/fmod (Files): Add lib/fmod.c.
3043         (Depends-on): Add math, isinf, trunc, fma.
3044         (configure.ac): Arrange to compile lib/fmod.c if needed.
3045         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3046         m4/signbit.m4.
3047         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3048         * tests/test-math-c++.cc: Check the declaration of fmod.
3049         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3050
3051         fmodl-ieee: Fix test failures.
3052         * lib/fmodl.c (fmodl): Treat Inf specially.
3053         * modules/fmodl (Depends-on): Add isinf.
3054
3055         Tests for module 'fmodl-ieee'.
3056         * modules/fmodl-ieee-tests: New file.
3057         * tests/test-fmodl-ieee.c: New file.
3058
3059         New module 'fmodl-ieee'.
3060         * modules/fmodl-ieee: New file.
3061
3062         Tests for module 'fmod-ieee'.
3063         * modules/fmod-ieee-tests: New file.
3064         * tests/test-fmod-ieee.c: New file.
3065
3066         New module 'fmod-ieee'.
3067         * modules/fmod-ieee: New file.
3068
3069         Tests for module 'fmodf-ieee'.
3070         * modules/fmodf-ieee-tests: New file.
3071         * tests/test-fmodf-ieee.c: New file.
3072         * tests/test-fmod-ieee.h: New file.
3073
3074         New module 'fmodf-ieee'.
3075         * modules/fmodf-ieee: New file.
3076
3077 2012-02-27  Bruno Haible  <bruno@clisp.org>
3078
3079         Tests for module 'rintl-ieee'.
3080         * modules/rintl-ieee-tests: New file.
3081         * tests/test-rintl-ieee.c: New file.
3082
3083         New module 'rintl-ieee'.
3084         * modules/rintl-ieee: New file.
3085
3086         Tests for module 'rint-ieee'.
3087         * modules/rint-ieee-tests: New file.
3088         * tests/test-rint-ieee.c: New file.
3089
3090         New module 'rint-ieee'.
3091         * modules/rint-ieee: New file.
3092
3093         Tests for module 'rintf-ieee'.
3094         * modules/rintf-ieee-tests: New file.
3095         * tests/test-rintf-ieee.c: New file.
3096         * tests/test-rint-ieee.h: New file.
3097
3098         New module 'rintf-ieee'.
3099         * modules/rintf-ieee: New file.
3100
3101 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3102
3103         regex: re_search etc. should return -2 when memory exhausted
3104         This bug was uncovered when testing 'grep'.  Without the fix,
3105         re_search and friends return -1 when memory is exhausted, but -1
3106         means no match, and this causes grep to falsely report no-match
3107         instead of memory-exhaustion.  See
3108         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3109         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3110         trouble; this can occur if re_search_internal ran out of memory.
3111
3112 2012-02-26  Bruno Haible  <bruno@clisp.org>
3113
3114         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3115         * m4/modfl-ieee.m4: New file.
3116         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3117         whether modfl works with Inf. Replace it if not.
3118         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3120         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3121         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3122         (Depends-on): Update dependencies.
3123         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3124         m4/signbit.m4.
3125         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3126         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3127
3128         modfl-ieee: Fix dependencies.
3129         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3130
3131         modfl-ieee: Fix test failures.
3132         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3133         * modules/modfl (Depends-on): Add isfinite, isinf.
3134
3135         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3136         * m4/modff-ieee.m4: New file.
3137         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3138         whether modff works with NaN and Inf. Replace it if not.
3139         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3141         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3142         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3143         (Depends-on): Update dependencies.
3144         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3145         m4/signbit.m4.
3146         (Depends-on): Add modf-ieee.
3147         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3148         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3149
3150         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3151         * m4/modf-ieee.m4: New file.
3152         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3153         whether modf works with NaN and Inf. Replace it if not.
3154         * lib/math.in.h (modf): New declaration.
3155         * lib/modf.c: New file.
3156         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3158         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3159         * modules/modf (Files): Add lib/modf.c.
3160         (Depends-on): Add math, isfinite, trunc, isinf.
3161         (configure.ac): Addrange to compile lib/modf.c if needed.
3162         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3163         m4/signbit.m4.
3164         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3165         * tests/test-math-c++.cc: Check the declaration of modf.
3166         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3167
3168         Tests for module 'modfl-ieee'.
3169         * modules/modfl-ieee-tests: New file.
3170         * tests/test-modfl-ieee.c: New file.
3171
3172         New module 'modfl-ieee'.
3173         * modules/modfl-ieee: New file.
3174
3175         Tests for module 'modf-ieee'.
3176         * modules/modf-ieee-tests: New file.
3177         * tests/test-modf-ieee.c: New file.
3178
3179         New module 'modf-ieee'.
3180         * modules/modf-ieee: New file.
3181
3182         Tests for module 'modff-ieee'.
3183         * modules/modff-ieee-tests: New file.
3184         * tests/test-modff-ieee.c: New file.
3185         * tests/test-modf-ieee.h: New file.
3186
3187         New module 'modff-ieee'.
3188         * modules/modff-ieee: New file.
3189
3190 2012-02-26  Bruno Haible  <bruno@clisp.org>
3191
3192         Tests for module 'fabsl-ieee'.
3193         * modules/fabsl-ieee-tests: New file.
3194         * tests/test-fabsl-ieee.c: New file.
3195
3196         New module 'fabsl-ieee'.
3197         * modules/fabsl-ieee: New file.
3198
3199         Tests for module 'fabs-ieee'.
3200         * modules/fabs-ieee-tests: New file.
3201         * tests/test-fabs-ieee.c: New file.
3202
3203         New module 'fabs-ieee'.
3204         * modules/fabs-ieee: New file.
3205
3206         Tests for module 'fabsf-ieee'.
3207         * modules/fabsf-ieee-tests: New file.
3208         * tests/test-fabsf-ieee.c: New file.
3209         * tests/test-fabs-ieee.h: New file.
3210
3211         New module 'fabsf-ieee'.
3212         * modules/fabsf-ieee: New file.
3213
3214 2012-02-26  Bruno Haible  <bruno@clisp.org>
3215
3216         Tests for module 'fmal-ieee'.
3217         * modules/fmal-ieee-tests: New file.
3218         * tests/test-fmal-ieee.c: New file.
3219
3220         New module 'fmal-ieee'.
3221         * modules/fmal-ieee: New file.
3222
3223         Tests for module 'fma-ieee'.
3224         * modules/fma-ieee-tests: New file.
3225         * tests/test-fma-ieee.c: New file.
3226
3227         New module 'fma-ieee'.
3228         * modules/fma-ieee: New file.
3229
3230         Tests for module 'fmaf-ieee'.
3231         * modules/fmaf-ieee-tests: New file.
3232         * tests/test-fmaf-ieee.c: New file.
3233         * tests/test-fma-ieee.h: New file.
3234
3235         New module 'fmaf-ieee'.
3236         * modules/fmaf-ieee: New file.
3237
3238 2012-02-26  Bruno Haible  <bruno@clisp.org>
3239
3240         Tests for module 'ldexpl-ieee'.
3241         * modules/ldexpl-ieee-tests: New file.
3242         * tests/test-ldexpl-ieee.c: New file.
3243
3244         New module 'ldexpl-ieee'.
3245         * modules/ldexpl-ieee: New file.
3246
3247         Tests for module 'ldexp-ieee'.
3248         * modules/ldexp-ieee-tests: New file.
3249         * tests/test-ldexp-ieee.c: New file.
3250
3251         New module 'ldexp-ieee'.
3252         * modules/ldexp-ieee: New file.
3253
3254         Tests for module 'ldexpf-ieee'.
3255         * modules/ldexpf-ieee-tests: New file.
3256         * tests/test-ldexpf-ieee.c: New file.
3257         * tests/test-ldexp-ieee.h: New file.
3258
3259         New module 'ldexpf-ieee'.
3260         * modules/ldexpf-ieee: New file.
3261
3262 2012-02-26  Bruno Haible  <bruno@clisp.org>
3263
3264         Refactor frexp*-ieee tests.
3265         * tests/test-frexp-ieee.h: New file.
3266         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3267         (main): Just call test_function.
3268         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3269         (main): Just call test_function.
3270         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3271         (main): Just call test_function.
3272         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3273         * modules/frexp-ieee-tests (Files): Likewise.
3274         * modules/frexpl-ieee-tests (Files): Likewise.
3275
3276         Tests for module 'frexpl-ieee'.
3277         * modules/frexpl-ieee-tests: New file.
3278         * tests/test-frexpl-ieee.c: New file.
3279
3280         New module 'frexpl-ieee'.
3281         * modules/frexpl-ieee: New file.
3282
3283         Tests for module 'frexp-ieee'.
3284         * modules/frexp-ieee-tests: New file.
3285         * tests/test-frexp-ieee.c: New file.
3286
3287         New module 'frexp-ieee'.
3288         * modules/frexp-ieee: New file.
3289
3290         Tests for module 'frexpf-ieee'.
3291         * modules/frexpf-ieee-tests: New file.
3292         * tests/test-frexpf-ieee.c: New file.
3293
3294         New module 'frexpf-ieee'.
3295         * modules/frexpf-ieee: New file.
3296
3297 2012-02-26  Bruno Haible  <bruno@clisp.org>
3298
3299         roundl-ieee tests: More tests.
3300         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3301         (main): Add tests for [MX] shaded specification in POSIX.
3302         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3303         (Depends-on): Add isnanl-nolibm.
3304
3305         round-ieee tests: More tests.
3306         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3307         (main): Add tests for [MX] shaded specification in POSIX.
3308         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3309         (Depends-on): Add isnand-nolibm.
3310
3311         roundf-ieee tests: More tests.
3312         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3313         (main): Add tests for [MX] shaded specification in POSIX.
3314         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3315         (Depends-on): Add isnanf-nolibm.
3316
3317         truncl-ieee tests: More tests.
3318         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3319         (main): Add tests for [MX] shaded specification in POSIX.
3320         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3321         (Depends-on): Add isnanl-nolibm.
3322
3323         trunc-ieee tests: More tests.
3324         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3325         (main): Add tests for [MX] shaded specification in POSIX.
3326         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3327         (Depends-on): Add isnand-nolibm.
3328
3329         truncf-ieee tests: More tests.
3330         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3331         (main): Add tests for [MX] shaded specification in POSIX.
3332         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3333         (Depends-on): Add isnanf-nolibm.
3334
3335         ceill-ieee tests: More tests.
3336         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3337         (main): Add tests for [MX] shaded specification in POSIX.
3338         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3339         (Depends-on): Add isnanl-nolibm.
3340
3341         ceil-ieee tests: More tests.
3342         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3343         (main): Add tests for [MX] shaded specification in POSIX.
3344         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3345         (Depends-on): Add isnand-nolibm.
3346
3347         ceilf-ieee tests: More tests.
3348         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3349         (main): Add tests for [MX] shaded specification in POSIX.
3350         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3351         (Depends-on): Add isnanf-nolibm.
3352
3353         floorl-ieee tests: More tests.
3354         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3355         (main): Add tests for [MX] shaded specification in POSIX.
3356         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3357         (Depends-on): Add isnanl-nolibm.
3358
3359         floor-ieee tests: More tests.
3360         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3361         (main): Add tests for [MX] shaded specification in POSIX.
3362         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3363         (Depends-on): Add isnand-nolibm.
3364
3365         floorf-ieee tests: More tests.
3366         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3367         (main): Add tests for [MX] shaded specification in POSIX.
3368         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3369         (Depends-on): Add isnanf-nolibm.
3370
3371 2012-02-26  Bruno Haible  <bruno@clisp.org>
3372
3373         fpieee: More comments.
3374         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3375
3376 2012-02-25  Bruno Haible  <bruno@clisp.org>
3377
3378         Tests for module 'log10l'.
3379         * modules/log10l-tests: New file.
3380         * tests/test-log10l.c: New file.
3381         * tests/test-math-c++.cc: Check the declaration of log10l.
3382
3383         New module 'log10l'.
3384         * lib/math.in.h (log10l): New declaration.
3385         * lib/log10l.c: New file.
3386         * m4/log10l.m4: New file.
3387         * modules/log10l: New file.
3388         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3390         HAVE_DECL_LOG10L.
3391         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3392         HAVE_DECL_LOG10L.
3393         * doc/posix-functions/log10l.texi: Mention the new module.
3394
3395 2012-02-25  Bruno Haible  <bruno@clisp.org>
3396
3397         fmodl, remainder*: Avoid wrong results due to rounding errors.
3398         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3399         expected bounds.
3400         * lib/remainderf.c (remainderf): Likewise.
3401         * lib/remainder.c (remainder): Likewise.
3402         * lib/remainderl.c (remainderl): Likewise.
3403
3404 2012-02-25  Bruno Haible  <bruno@clisp.org>
3405
3406         Tests for module 'remainderl'.
3407         * modules/remainderl-tests: New file.
3408         * tests/test-remainderl.c: New file.
3409         * tests/test-math-c++.cc: Check the declaration of remainderl.
3410
3411         New module 'remainderl'.
3412         * lib/math.in.h (remainderl): New declaration.
3413         * lib/remainderl.c: New file.
3414         * m4/remainderl.m4: New file.
3415         * modules/remainderl: New file.
3416         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3418         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3419         HAVE_REMAINDERL.
3420         * doc/posix-functions/remainderl.texi: Mention the new module.
3421
3422 2012-02-25  Bruno Haible  <bruno@clisp.org>
3423
3424         Tests for module 'remainderf'.
3425         * modules/remainderf-tests: New file.
3426         * tests/test-remainderf.c: New file.
3427         * tests/test-math-c++.cc: Check the declaration of remainderf.
3428
3429         New module 'remainderf'.
3430         * lib/math.in.h (remainderf): New declaration.
3431         * lib/remainderf.c: New file.
3432         * m4/remainderf.m4: New file.
3433         * modules/remainderf: New file.
3434         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3436         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3437         HAVE_REMAINDERF.
3438         * doc/posix-functions/remainderf.texi: Mention the new module.
3439
3440 2012-02-25  Bruno Haible  <bruno@clisp.org>
3441
3442         remainder: Support for MSVC.
3443         * lib/math.in.h (remainder): New declaration.
3444         * lib/remainder.c: New file.
3445         * m4/remainder.m4: New file.
3446         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3447         (Depends-on): Add math, round, fma.
3448         (configure.ac): Use results of gl_FUNC_REMAINDER.
3449         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3451         HAVE_DECL_REMAINDER.
3452         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3453         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3454         * tests/test-math-c++.cc: Check the declaration of remainder.
3455         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3456         problems are fixed.
3457
3458 2012-02-25  Bruno Haible  <bruno@clisp.org>
3459
3460         Tests for module 'fmodl'.
3461         * modules/fmodl-tests: New file.
3462         * tests/test-fmodl.c: New file.
3463         * tests/test-math-c++.cc: Check the declaration of fmodl.
3464
3465         New module 'fmodl'.
3466         * lib/math.in.h (fmodl): New declaration.
3467         * lib/fmodl.c: New file.
3468         * m4/fmodl.m4: New file.
3469         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3470         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3471         REPLACE_FMODL.
3472         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3473         REPLACE_FMODL.
3474         * modules/fmodl: New file.
3475         * doc/posix-functions/fmodl.texi: Mention the new module.
3476
3477 2012-02-25  Bruno Haible  <bruno@clisp.org>
3478
3479         Tests for module 'modfl'.
3480         * modules/modfl-tests: New file.
3481         * tests/test-modfl.c: New file.
3482         * tests/test-math-c++.cc: Check the declaration of modfl.
3483
3484         New module 'modfl'.
3485         * lib/math.in.h (modfl): New declaration.
3486         * lib/modfl.c: New file.
3487         * m4/modfl.m4: New file.
3488         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3490         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3491         * modules/modfl: New file.
3492         * doc/posix-functions/modfl.texi: Mention the new module.
3493
3494 2012-02-25  Bruno Haible  <bruno@clisp.org>
3495
3496         Tests for module 'fabsl'.
3497         * modules/fabsl-tests: New file.
3498         * tests/test-fabsl.c: New file.
3499         * tests/test-math-c++.cc: Check the declaration of fabsl.
3500
3501         New module 'fabsl'.
3502         * lib/math.in.h (fabsl): New declaration.
3503         * lib/fabsl.c: New file.
3504         * m4/fabsl.m4: New file.
3505         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3507         REPLACE_FABSL.
3508         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3509         REPLACE_FABSL.
3510         * modules/fabsl: New file.
3511         * doc/posix-functions/fabsl.texi: Mention the new module.
3512
3513 2012-02-25  Bruno Haible  <bruno@clisp.org>
3514
3515         fabs tests: More tests.
3516         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3517         (zero): New variable.
3518         (main): Add tests for signed zero.
3519         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3520
3521         fabsf tests: More tests.
3522         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3523         (zero): New variable.
3524         (main): Add tests for signed zero.
3525         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3526
3527 2012-02-24  Bruno Haible  <bruno@clisp.org>
3528
3529         atanl: Provide function definition on MSVC.
3530         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3531         function pointer.
3532         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3533
3534 2012-02-24  Bruno Haible  <bruno@clisp.org>
3535
3536         acosl: Provide function definition on MSVC.
3537         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3538         function pointer.
3539         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3540
3541 2012-02-24  Bruno Haible  <bruno@clisp.org>
3542
3543         asinl: Provide function definition on MSVC.
3544         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3545         function pointer.
3546         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3547
3548 2012-02-24  Bruno Haible  <bruno@clisp.org>
3549
3550         tanl: Provide function definition on MSVC.
3551         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3552         function pointer.
3553         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3554
3555 2012-02-24  Bruno Haible  <bruno@clisp.org>
3556
3557         cosl: Provide function definition on MSVC.
3558         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3559         function pointer.
3560         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3561
3562 2012-02-24  Bruno Haible  <bruno@clisp.org>
3563
3564         sinl: Provide function definition on MSVC.
3565         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3566         function pointer.
3567         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3568
3569 2012-02-24  Bruno Haible  <bruno@clisp.org>
3570
3571         logl: Provide function definition on MSVC.
3572         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3573         function pointer.
3574         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3575
3576 2012-02-24  Bruno Haible  <bruno@clisp.org>
3577
3578         expl: Provide function definition on MSVC.
3579         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3580         function pointer.
3581         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3582
3583 2012-02-24  Bruno Haible  <bruno@clisp.org>
3584
3585         sqrtl: Provide function definition on MSVC.
3586         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3587         a function pointer.
3588         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3589
3590 2012-02-24  Bruno Haible  <bruno@clisp.org>
3591
3592         ceill: Provide function definition on MSVC.
3593         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3594         used as a function pointer.
3595         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3596
3597 2012-02-24  Bruno Haible  <bruno@clisp.org>
3598
3599         floorl: Provide function definition on MSVC.
3600         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3601         used as a function pointer.
3602         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3603
3604 2012-02-24  Bruno Haible  <bruno@clisp.org>
3605
3606         ceilf: Provide function definition on MSVC.
3607         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3608         used as a function pointer.
3609         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3610
3611 2012-02-24  Bruno Haible  <bruno@clisp.org>
3612
3613         floorf: Provide function definition on MSVC.
3614         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3615         used as a function pointer.
3616         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3617
3618 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3619
3620         stdnoreturn: new module
3621         This implements a replacement for C11's <stdnoreturn.h>.
3622         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3623         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3624         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3625         * tests/test-stdnoreturn.c: New files.
3626
3627 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3628
3629         regex: fix false multibyte matches in some regular expressions
3630         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3631         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3632         * lib/regex_internal.c (re_string_skip_chars):
3633         Fix miscomputation of remain_len that may cause incomplete
3634         multi-byte character and false match.
3635
3636 2012-02-24  Jim Meyering  <meyering@redhat.com>
3637
3638         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3639         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3640         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3641         Remove now-unnecessary str''cmp obfuscation.
3642         Suggested by Akim Demaille.
3643
3644 2012-02-24  Bruno Haible  <bruno@clisp.org>
3645
3646         streq: Rename macro.
3647         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3648         * NEWS: Mention the change.
3649         * lib/mbrtowc.c (mbrtowc): Update.
3650         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3651         * lib/wcwidth.c (wcwidth): Update.
3652         Suggested by Akim Demaille and Jim Meyering.
3653
3654 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3655
3656         regex: fix typo in definition of MIN
3657         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3658         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3659
3660 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3661             Bruno Haible  <bruno@clisp.org>
3662
3663         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3664         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3665         entries into a stack-allocated buffer directly.
3666         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3667
3668 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3669             Bruno Haible  <bruno@clisp.org>
3670
3671         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3672
3673          - There were several instances of this pattern:
3674
3675              for (;;) {
3676                n = acl (f, GETACLCNT, 0, NULL);
3677                [ allocate an array A of size N ]
3678                if (acl (f, GETACL, n, a) == n)
3679                  break;
3680              }
3681
3682            This loop might never terminate if some other process is constantly
3683            manipulating the file's ACL.  The loop should be rewritten to
3684            terminate.
3685
3686          - The acl (... GETACLNT ...) call is merely an optimization; its value
3687            is merely a hint as to how big to make the array.  A better
3688            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3689            and just guess a reasonably-big size, growing the size and trying
3690            again if it's not large enough.  This guarantees termination, and
3691            saves a system call.
3692
3693         * lib/acl-internal.h: Include <limits.h>.
3694         (MIN, SIZE_MAX): New macros.
3695         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3696         a stack-allocated buffer, and use malloc if it does not fit. Don't
3697         use GETACLCNT.
3698         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3699
3700 2012-02-19  Bruno Haible  <bruno@clisp.org>
3701
3702         acl: Fix endless loop on Solaris with vxfs.
3703         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3704         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3705         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3706         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3707         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3708         Reported by Bill Jones in
3709         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3710
3711 2012-02-19  Bruno Haible  <bruno@clisp.org>
3712
3713         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3714         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3715         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3716         that this function returns 0 in some more cases.
3717
3718 2012-02-19  Bruno Haible  <bruno@clisp.org>
3719
3720         acl: Update doc references.
3721         * doc/acl-resources.txt: Update links to Solaris documentation.
3722
3723 2012-02-19  Bruno Haible  <bruno@clisp.org>
3724
3725         Fix test failure in many locales on Solaris 11.
3726         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3727         'tr' arguments.
3728         * tests/test-pipe-filter-ii1.c (main): Likewise.
3729         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3730         expressions in the C locale.
3731         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3732         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3733
3734 2012-02-19  Bruno Haible  <bruno@clisp.org>
3735
3736         gnulib-tool: Improve usage message.
3737         * gnulib-tool (func_usage): Move doc of --help and --version to the
3738         section "Operation modes".
3739
3740 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3741
3742         README-release: make it easier to execute commands
3743         * top/README-release: break commands out on to separate lines.
3744
3745 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3746
3747         GNUmakefile: simplify detection of unconfigured trees
3748         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3749         whether the tree make is being run from is already configured or
3750         not.  Related simplifications.
3751
3752 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3753
3754         * gnulib-tool (func_usage): Document --help and --version.
3755
3756 2012-02-11  Jim Meyering  <meyering@redhat.com>
3757
3758         bootstrap: don't exit 0 upon gnulib-tool failure
3759         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3760         its exit status, not 0.
3761
3762 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3763
3764         README-release: various improvements
3765         * top/README-release: Give a command to push changes for the
3766         release.  Add "distcheck" to list of other pre-release checks.
3767         Fix instance of "make stable" which should be "make TYPE".
3768
3769 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3770
3771         maint: replace FSF snail-mail addresses with URLs
3772         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3773         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3774         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3775         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3776         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3777         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3778         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3779         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3780         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3781         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3782         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3783         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3784         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3785         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3786         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3787         * lib/glthread/thread.c, lib/glthread/thread.h:
3788         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3789         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3790         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3791         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3792         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3793         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3794         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3795         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3796         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3797         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3798         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3799         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3800         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3801         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3802         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3803         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3804         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3805         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3806         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3807         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3808         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3809         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3810         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3811         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3812         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3813         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3814         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3815         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3816         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3817         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3818         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3819         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3820         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3821         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3822         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3823         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3824         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3825         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3826         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3827         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3828         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3829         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3830         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3831         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3832         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3833         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3834         * tests/test-poll.c, tests/test-quotearg-simple.c:
3835         * tests/test-quotearg.c, tests/test-quotearg.h:
3836         * tests/test-round-ieee.c, tests/test-round1.c:
3837         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3838         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3839         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3840         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3841         * tests/test-strerror.c, tests/test-strerror_r.c:
3842         * tests/test-strsignal.c, tests/test-strverscmp.c:
3843         * tests/test-xmemdup0.c:
3844         Replace FSF snail mail addresses with URLs, as per GNU coding
3845         standards.  See glibc bug
3846         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3847
3848 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3849
3850         README-release: capitalize a word and split a line
3851         * top/README-release: Fix punctuation and spacing.
3852
3853 2012-02-08  Akim Demaille  <demaille@gostai.com>
3854
3855         fatal-signal: use C prototypes (with explicit void).
3856         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3857         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3858
3859 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3860
3861         regex: spelling fix
3862         * lib/regexec.c: spelling fix
3863
3864         regex: rely on stdint.h for SIZE_MAX
3865         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3866
3867 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3868
3869         regex: merge glibc changes
3870
3871         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3872         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3873         (init_word_char): Work even if bitset words are not exactly 32 or
3874         64 bits wide.  Don't assume there are no padding bits.
3875         * lib/regex.c [_LIBC]: Do not include <config.h>.
3876         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3877         and -Wtype-limits.
3878         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3879         needless disagreement with glibc.  All uses changed.  Define it to
3880         1 only if _GNU_SOURCE, to match glibc.
3881         (_REG_RM_NAME): Remove; no longer needed, since the names in
3882         question are now all protected by __USE_GNU.
3883         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3884         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3885         * lib/regex_internal.h (MIN): New macro.
3886
3887         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3888         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3889
3890         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3891         * lib/regex_internal.c (re_string_fetch_byte_case):
3892         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3893         is miscompiled, and it turns out it is because of an incorrect
3894         attribute on re_string_fetch_byte_case.  Unlike
3895         re_string_peek_byte_case, this one is really not pure, it modifies
3896         memory (increments pstr->cur_idx), and with the pure attribute GCC
3897         assumed it doesn't and it cached the presumed value of
3898         regexp->cur_idx in a variable across the
3899          for (;; ++i)
3900            {
3901              if (i >= BRACKET_NAME_BUF_SIZE)
3902                return REG_EBRACK;
3903              if (token->type == OP_OPEN_CHAR_CLASS)
3904                ch = re_string_fetch_byte_case (regexp);
3905              else
3906                ch = re_string_fetch_byte (regexp);
3907              if (re_string_eoi(regexp))
3908                return REG_EBRACK;
3909              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3910                break;
3911              elem->opr.name[i] = ch;
3912            }
3913
3914         2011-11-29 Andreas Schwab <schwab@redhat.com>
3915         * lib/regcomp.c (build_equiv_class):
3916         Fix access after end of search string in regex matcher.
3917
3918         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3919         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3920
3921         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3922         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3923
3924         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3925         * lib/regcomp.c (parse_branch, parse_sub_exp):
3926         More regex memory leak fixes and tests.
3927         (parse_sub_exp, parse_bracket_exp):
3928         Fix memory leak for some invalid regular expressions.
3929
3930         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3931         * lib/regex_internal.c, lib/regexec.c:
3932         Fix unnecessary overallocation due to incomplete character.  When
3933         incomplete characters are found at the end of a string the code
3934         ran amok and allocated lots of memory.  Stricter limits are now in
3935         place.
3936
3937         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3938         * lib/regex.h: Update documentation.
3939
3940         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3941         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3942
3943         2010-05-05 Andreas Schwab <schwab@redhat.com>
3944         * lib/regexec.c (find_collation_sequence_value):
3945         Fix lookup of collation sequence value during regexp matching.
3946
3947         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3948         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3949
3950         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3951         * lib/regex.h: Cleanup namespace.
3952
3953         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3954         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3955
3956         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3957         * lib/regex_internal.h: Prevent some declarations and definitions
3958         to be seen when used in tests.
3959
3960         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3961         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3962         __libc_lock_* macros if not _LIBC.
3963         (struct re_dfa_t): Add lock.
3964
3965 2012-02-07  Eric Blake  <eblake@redhat.com>
3966
3967         maint.mk: also prohibit lower-case @var@
3968         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3969         lower case, like @top_srcdir@.
3970
3971 2012-02-04  Eric Blake  <eblake@redhat.com>
3972
3973         canonicalize: avoid uninitialized memory use
3974         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3975         random '/' left in dest.
3976         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3977
3978 2012-02-04  Bruno Haible  <bruno@clisp.org>
3979
3980         isatty: Fix test failure of ptsname_r on native Windows.
3981         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3982         and don't set errno.
3983         (isatty): Test first whether fd is valid. Set errno when returning 0.
3984
3985 2012-02-04  Bruno Haible  <bruno@clisp.org>
3986
3987         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3988         * tests/test-spawn-pipe-main.c: Include progname.h.
3989         (main): Invoke set_program_name.
3990         * modules/spawn-pipe-tests (Depends-on): Add progname.
3991
3992         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3993         * tests/test-nonblocking-socket-main.c: Include progname.h.
3994         (main): Invoke set_program_name.
3995         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3996
3997         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3998         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3999         (main): Invoke set_program_name.
4000         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4001
4002 2012-02-04  Eric Blake  <eblake@redhat.com>
4003
4004         canonicalize-lgpl: fix // handling
4005         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4006
4007         canonicalize: fix // handling
4008         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4009         /// to //, since only // is special.
4010
4011 2012-02-04  Bruno Haible  <bruno@clisp.org>
4012
4013         ioctl: Fix test failure on native Windows.
4014         * lib/ioctl.c: Include msvc-nothrow.h.
4015         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4016
4017 2012-02-04  Bruno Haible  <bruno@clisp.org>
4018
4019         fsync: Avoid test failure on native Windows.
4020         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4021         read-only.
4022
4023 2012-02-04  Bruno Haible  <bruno@clisp.org>
4024
4025         sys_select: Avoid syntax error on OpenBSD 5.0.
4026         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4027         currently being included, just include the system's <sys/select.h>.
4028
4029 2012-02-04  Bruno Haible  <bruno@clisp.org>
4030
4031         sys_select: Avoid syntax error on OpenBSD 5.0.
4032         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4033         <sys/select.h>, not before.
4034         Reported by Jiri B <jirib@devio.us>.
4035
4036 2012-02-04  Bruno Haible  <bruno@clisp.org>
4037
4038         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4039         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4040         global variables.
4041         * tests/test-get-rusage-data.c (main): Likewise.
4042         Reported by Jim Meyering.
4043
4044 2012-02-04  Bruno Haible  <bruno@clisp.org>
4045
4046         stdioext: Fix last commit.
4047         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4048
4049 2012-02-03  Bruno Haible  <bruno@clisp.org>
4050
4051         stdioext: Add tentative support for Plan9.
4052         * lib/stdio-impl.h: Include <errno.h>.
4053         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4054         * lib/freadable.c (freadable): Likewise.
4055         * lib/fwritable.c (fwritable): Likewise.
4056         * lib/fbufmode.c (fbufmode): Likewise.
4057         * lib/freading.c (freading): Likewise.
4058         * lib/fwriting.c (fwriting): Likewise.
4059         * lib/freadptr.c (freadptr): Likewise.
4060         * lib/freadseek.c (freadptrinc): Likewise.
4061         * lib/freadahead.c (freadahead): Likewise.
4062         * lib/fpurge.c (fpurge): Likewise.
4063         * lib/fseeko.c (rpl_fseeko): Likewise.
4064         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4065         Reported by Jens Staal <staal1978@gmail.com>.
4066
4067 2012-02-02  Jim Meyering  <meyering@redhat.com>
4068
4069         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4070         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4071         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4072         not even to try to add the attribute.  Instead, add a pragma to suppress
4073         the suggestion/warning.
4074
4075 2012-01-31  Karl Berry  <karl@gnu.org>
4076
4077         setstate doc: typo.
4078         * doc/posix-functions/setstate.texi (setstate): { not (.
4079
4080 2012-01-31  Bruno Haible  <bruno@clisp.org>
4081
4082         popen: Make more robust on Windows.
4083         * lib/popen.c: On native Windows, use the _popen based code even if
4084         HAVE_POPEN is set.
4085         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4086         environment variable on native Windows.
4087
4088 2012-01-30  Bruno Haible  <bruno@clisp.org>
4089
4090         pclose: Fix typo.
4091         * lib/stdio.in.h (pclose): Fix typo in warning message.
4092
4093 2012-01-30  Bruno Haible  <bruno@clisp.org>
4094
4095         doc about getlogin_r, setstate.
4096         * doc/posix-functions/getlogin_r.texi: List the incompatible
4097         declaration problem under "not fixed by gnulib".
4098         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4099         problem on Solaris 11 and other platforms.
4100
4101 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4102             Bruno Haible  <bruno@clisp.org>
4103
4104         poll tests: Make test more robust.
4105         * tests/test-poll.c: Include macros.h.
4106         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4107         return value of various I/O operations.
4108         * modules/poll-tests (Files): Add tests/macros.h.
4109
4110 2012-01-30  Bruno Haible  <bruno@clisp.org>
4111
4112         sys_stat: Fix support for mingw64 and MSVC.
4113         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4114         header files already do it.
4115         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4116         stat itself.
4117         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4118
4119 2012-01-30  Bruno Haible  <bruno@clisp.org>
4120
4121         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4123         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4124
4125 2012-01-29  Bruno Haible  <bruno@clisp.org>
4126
4127         quotearg: Fix test failure on MacOS X 10.5.
4128         * tests/test-quotearg-simple.c: Include localcharset.h.
4129         (main): If the locale encoding is not ASCII, bypass the tests of
4130         locale_quoting_style and clocale_quoting_style.
4131         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4132
4133 2012-01-29  Jim Meyering  <meyering@redhat.com>
4134
4135         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4136         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4137         detect uses of canonicalize_file_name.
4138
4139 2012-01-28  Bruno Haible  <bruno@clisp.org>
4140
4141         test-framework-sh: Fix test failure with AIX 7.1 diff.
4142         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4143         in column 1, like 'diff -c' does.
4144         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4145         whether 'diff -u' is used. Instead, test whether the output contains
4146         some '@' character.
4147
4148 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4149
4150         strtoimax: eliminate need for stdint.h, inttypes.h checks
4151         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4152         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4153         the prerequisites for a recently-introduced strtoimax test.
4154         I guess this might cause strtoimax to be replaced when not
4155         strictly necessary on older hosts, but this shouldn't introduce
4156         any bugs and it should make Emacs 'configure' faster on typical
4157         modern hosts.  Problem discovered when importing the latest gnulib
4158         to an Emacs test version.
4159         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4160
4161 2012-01-28  Bruno Haible  <bruno@clisp.org>
4162
4163         sys_time: Override 'struct timeval' on some native Windows platforms.
4164         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4165         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4166         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4167         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4168         needs to be overridden.
4169         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4170         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4171         * tests/test-sys_select.c: Check that the tv_sec member has the same
4172         size as a 'time_t'.
4173         * tests/test-sys_time.c: Likewise.
4174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4175         is set, set also REPLACE_GETTIMEOFDAY.
4176         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4177         convert the resulting 'struct timeval' before returning.
4178         * lib/select.c: Include <sys/time.h>.
4179         (select, timeval): Undefine at the right place.
4180         * modules/select (Depends-on): Add sys_time.
4181         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4182         some Windows platforms.
4183         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4184
4185 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4186
4187         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4188         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4189         an integer.
4190         * lib/fcntl.c (dupfd): Likewise.
4191         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4192
4193 2012-01-28  Bruno Haible  <bruno@clisp.org>
4194
4195         fcntl: Avoid compilation error on native Windows.
4196         * modules/fcntl (Depends-on): Add 'close'.
4197
4198 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4199
4200         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4201         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4202         pointer to an integer.
4203         * lib/poll.c (IsConsoleHandle): Likewise.
4204         * lib/isatty.c (IsConsoleHandle): Likewise.
4205
4206 2012-01-28  Jim Meyering  <meyering@redhat.com>
4207
4208         doc: clarify README-release
4209         * top/README-release: Clarify: you should make a point to have
4210         the latest stable versions of build tools in your PATH, and the
4211         reference to buildreq is solely for its list of tool names, not
4212         for its minimal-functional version numbers.
4213         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4214
4215         maint.mk: use more readable (yet functionally equivalent) quoting
4216         It is common to quote a single quote in a single quoted string like
4217         this:  '...'\''...'.  Unless you know the idiom, that looks like
4218         gibberish, so prefer to double-quote the string when possible.
4219         Then you can use a more readable, lone single quote: "...'..."
4220         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4221         "don't" is more readable than the equivalent 'don'\''t'.
4222         (sc_cast_of_x_alloc_return_value): Likewise.
4223         (sc_cast_of_alloca_return_value): Likewise.
4224         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4225         rather than '\'':'\''.
4226
4227 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4228
4229         stdalign: relax _Alignof and tighten _Alignas test
4230         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4231         as it was too strict: alignof must divide offsetof, but it need
4232         not equal offsetof.  Inspired by Joseph S. Myers's comment
4233         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4234         Conversely, tighten the _Alignas test a bit, as the resulting
4235         alignment must be exactly 8.
4236
4237 2012-01-27  Bruno Haible  <bruno@clisp.org>
4238
4239         stdalign: Document the last change.
4240         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4241
4242 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4243
4244         stdalign: check that alignof and offsetof are consistent
4245         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4246         Problem reported for gnulib by Richard W.M. Jones in
4247         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4248
4249 2012-01-27  Jim Meyering  <meyering@redhat.com>
4250
4251         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4252         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4253         convert a sequence with gaps to the minimal containing range.
4254         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4255         * tests/test-update-copyright.sh: Test for this.
4256         The FSF confirmed it is ok to do this, assuming there is at
4257         least one significant change per year in the affected range:
4258         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4259
4260 2012-01-26  Bruno Haible  <bruno@clisp.org>
4261
4262         pipe2: refine doc about thread-safety
4263         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4264         multithread-safety problem.
4265         * doc/glibc-functions/accept4.texi: Likewise.
4266
4267 2012-01-26  Bruno Haible  <bruno@clisp.org>
4268
4269         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4270         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4271         In the test program, include <fcntl.h>, for O_RDONLY.
4272
4273 2012-01-26  Eric Blake  <eblake@redhat.com>
4274
4275         pipe2: document lack of thread-safety in replacement
4276         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4277         issue in replacement.
4278         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4279         Based on a report by Eric Wong.
4280
4281 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4282             Bruno Haible  <bruno@clisp.org>
4283
4284         malloca: Avoid warnings on x86_64 mingw64.
4285         * lib/malloca.c: Include <stdint.h>.
4286         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4287         * modules/malloca (Depends-on): Add stdint.
4288         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4289
4290 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4291
4292         obstack: remove __STDC__ conditionals
4293         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4294         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4295         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4296         m4/include_next.m4 as the only gnulib-maintained places that still
4297         refer to __STDC__.
4298
4299 2012-01-24  Bruno Haible  <bruno@clisp.org>
4300
4301         havelib: Modern quoting.
4302         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4303         the recent change to the GNU coding standards.
4304
4305 2012-01-24  Bruno Haible  <bruno@clisp.org>
4306
4307         stdint: Improve support for Android.
4308         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4309         Reported by Simon Josefsson <simon@josefsson.org>.
4310
4311 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4312
4313         doc: omit trailing empty lines from INSTALL etc.
4314         * doc/Makefile (INSTALL): Omit trailing empty lines.
4315         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4316         omit trailing empty lines.  This simplifies the build procedure.
4317
4318 2012-01-23  Jim Meyering  <meyering@redhat.com>
4319
4320         tests: avoid spurious warnings about gl_sockets_startup
4321         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4322         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4323         reporting a "statement with no effect".
4324         * tests/test-accept.c (main): Mark as "(void)".
4325         * tests/test-accept4.c (main): Likewise.
4326         * tests/test-bind.c (main): Likewise.
4327         * tests/test-connect.c (main): Likewise.
4328         * tests/test-getpeername.c (main): Likewise.
4329         * tests/test-getsockname.c (main): Likewise.
4330         * tests/test-getsockopt.c (main): Likewise.
4331         * tests/test-listen.c (main): Likewise.
4332         * tests/test-recv.c (main): Likewise.
4333         * tests/test-recvfrom.c (main): Likewise.
4334         * tests/test-send.c (main): Likewise.
4335         * tests/test-sendto.c (main): Likewise.
4336         * tests/test-setsockopt.c (main): Likewise.
4337         * tests/test-shutdown.c (main): Likewise.
4338
4339 2012-01-21  Bruno Haible  <bruno@clisp.org>
4340
4341         locale-fr.m4: Fix for Android.
4342         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4343         failure of the test program on Bionic libc.
4344
4345 2012-01-21  Jim Meyering  <meyering@redhat.com>
4346
4347         bootstrap: fail when bootstrap_post_import_hook fails
4348         Otherwise, it's far too easy to miss diagnostics emitted
4349         between gnulib-tool's output and that of running configure.
4350         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4351
4352 2012-01-17  Jim Meyering  <meyering@redhat.com>
4353
4354         maint: enable sc_trailing_blank
4355         * build-aux/pmccabe.css: Remove trailing blanks.
4356         * doc/acl-cygwin.txt: Likewise.
4357         * doc/gnu-oids.texi: Likewise
4358         * cfg.mk: Enable sc_trailing_blank.
4359         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4360
4361 2012-01-17  Jim Meyering  <meyering@redhat.com>
4362
4363         maint: enable sc_prohibit_openat_without_use
4364         * cfg.mk: Enable sc_prohibit_openat_without_use.
4365         Exempt lib/selinux-at.c.
4366
4367 2012-01-17  Jim Meyering  <meyering@redhat.com>
4368
4369         maint: enable sc_prohibit_cloexec_without_use
4370         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4371         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4372
4373 2012-01-17  Jim Meyering  <meyering@redhat.com>
4374
4375         maint: enable sc_prohibit_intprops_without_use
4376         * cfg.mk: Enable sc_prohibit_intprops_without_use
4377         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4378
4379 2012-01-17  Jim Meyering  <meyering@redhat.com>
4380
4381         maint: enable sc_prohibit_hash_pjw_without_use
4382         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4383         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4384         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4385         following " (".
4386
4387 2012-01-17  Jim Meyering  <meyering@redhat.com>
4388
4389         maint: enable double-word-prohibiting rule
4390         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4391         Exempt three files.
4392
4393 2012-01-17  Jim Meyering  <meyering@redhat.com>
4394
4395         maint: remove empty lines at EOF, but excluding modules/*
4396         Apply syntax rules at home as well as abroad.  Most changes
4397         were induced by running this:
4398           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4399             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4400             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4401         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4402         Exempt modules/* and two binary files.
4403         Also exempt doc/INSTALL*, per request from Bruno Haible.
4404         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4405         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4406         * doc/Copyright/request-assign.future: Likewise.
4407         * doc/Copyright/request-disclaim.changes: Likewise.
4408         * doc/INSTALL: Likewise.
4409         * doc/INSTALL.ISO: Likewise.
4410         * doc/INSTALL.UTF-8: Likewise.
4411         * doc/acl-cygwin.txt: Likewise.
4412         * doc/acl-resources.txt: Likewise.
4413         * doc/fdl-1.2.texi: Likewise.
4414         * doc/fdl-1.3.texi: Likewise.
4415         * doc/fdl.texi: Likewise.
4416         * lib/argp-pin.c: Likewise.
4417         * lib/round.c: Likewise.
4418         * lib/unicase/u16-totitle.c: Likewise.
4419         * lib/unictype/block_test.c: Likewise.
4420         * lib/uninorm/canonical-decomposition.c: Likewise.
4421         * m4/README: Likewise.
4422         * m4/relocatable-lib.m4: Likewise.
4423         * tests/test-isnand-nolibm.c: Likewise.
4424         * tests/test-isnand.c: Likewise.
4425         * tests/uninorm/NormalizationTest.txt: Likewise.
4426
4427 2012-01-17  Jim Meyering  <meyering@redhat.com>
4428
4429         maint: add framework to run syntax-check rules against gnulib sources
4430         * cfg.mk: New file, to disable all currently-failing tests.
4431         We'll enable them one by one, as they are made to pass.
4432         * Makefile (sc_maint): New rule.
4433
4434 2012-01-21  Bruno Haible  <bruno@clisp.org>
4435
4436         stdint: Add support for Android.
4437         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4438         include the system's <stdint.h>.
4439         Reported by Simon Josefsson <simon@josefsson.org>.
4440
4441 2012-01-19  Jim Meyering  <meyering@redhat.com>
4442
4443         bootstrap: add bootstrap_post_import_hook
4444         Bison does still need something like the gnulib_mk_hook whose
4445         invocation I had to remove along with slurp in commit 767ccd40.
4446         Technically, we could get along without it, but doing so would
4447         have required living with a warning and a mandatory post-bootstrap
4448         automake rerun.
4449         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4450         (bootstrap_post_import_hook): New function.
4451         Invoke it after gnulib-tool --import and before autoreconf.
4452
4453 2012-01-18  Jim Meyering  <meyering@redhat.com>
4454
4455         gitlog-to-changelog: don't use "no_"-prefixed variable name
4456         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4457         to enable both --cluster and --no-cluster.  Change variable name,
4458         s/\$no_cluster/$cluster/, and reverse usage to match.
4459
4460         gitlog-to-changelog: use "||", not "or" in expressions
4461         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4462         expressions.
4463
4464 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4465
4466         gitlog-to-changelog: new option --no-cluster
4467         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4468         clustering of adjacent commit messages.
4469
4470 2012-01-17  Jim Meyering  <meyering@redhat.com>
4471
4472         maint: spell file systems with two words, not one
4473         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4474         two words, not one.
4475
4476 2012-01-16  Jim Meyering  <meyering@redhat.com>
4477
4478         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4479         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4480
4481 2012-01-16  Eric Blake  <eblake@redhat.com>
4482
4483         bootstrap: cater to autoconf 2.59
4484         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4485         is not available.
4486
4487         bootstrap: properly check for libtool
4488         * build-aux/bootstrap (libtoolize): Also run libtool when older
4489         usage is detected.
4490
4491 2012-01-15  Bruno Haible  <bruno@clisp.org>
4492
4493         Improve support for MSVC 9.
4494         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4495         clashes on MSVC.
4496         * lib/fcntl.in.h: Likewise.
4497         * lib/stdlib.in.h: Likewise.
4498         * lib/sys_stat.in.h: Likewise.
4499
4500 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4501
4502         gnupload: we hold the master copy of this script now
4503         For motivation and more information, see:
4504         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4505         * build-aux/gnupload: Make it clear in the heading comments that the
4506         master copy of this file is maintained by gnulib.  Since we are at
4507         it, bump its copyright year and ...
4508         ($scriptversion): ... the date in its version.
4509         ($usage): Patches and bug reports should be sent to the gnulib list,
4510         not the automake one.
4511         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4512         anymore.
4513
4514 2012-01-15  Bruno Haible  <bruno@clisp.org>
4515
4516         Fix module 'random'.
4517         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4518         initstate, setstate are declared.
4519
4520 2012-01-14  Bruno Haible  <bruno@clisp.org>
4521
4522         Tests for module 'random'.
4523         * modules/random-tests: New file.
4524         * tests/test-random.c: New file, based on tests/test-random_r.c.
4525
4526         New module 'random'.
4527         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4528         declarations.
4529         * lib/random.c: New file, based on glibc/stdlib/random.c.
4530         * m4/random.m4: New file.
4531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4532         HAVE_RANDOM.
4533         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4534         * modules/random: New file.
4535         * config/srclist.txt: Add an entry for random.c.
4536         * doc/posix-functions/random.texi: Mention the 'random' module.
4537         * doc/posix-functions/initstate.texi: Likewise.
4538         * doc/posix-functions/setstate.texi: Likewise.
4539         * doc/posix-functions/srandom.texi: Likewise.
4540
4541 2012-01-12  Bruno Haible  <bruno@clisp.org>
4542
4543         random_r: Use common idioms.
4544         * lib/random_r.c: Include <stdlib.h> first.
4545
4546         random_r: Override incompatible API on AIX, OSF/1.
4547         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4548         Override the system function if REPLACE_RANDOM_R is 1.
4549         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4550         and OSF/1, set REPLACE_RANDOM_R.
4551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4552         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4553         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4554         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4555         * doc/glibc-functions/random_r.texi: Likewise.
4556         * doc/glibc-functions/setstate_r.texi: Likewise.
4557
4558         random_r: Support for MSVC 9.
4559         * lib/random_r.c: Include stdint.h, not inttypes.h.
4560
4561 2012-01-12  Eric Blake  <eblake@redhat.com>
4562
4563         inet_ntop: guard extra work by IF_LINT
4564         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4565         better code generation when not checking for warnings.
4566         Suggested by Paul Eggert and Jim Meyering.
4567
4568         strptime: fix regression on mingw
4569         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4570         Fix regression.  Reported by Bruno Haible.
4571
4572 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4573             Bruno Haible  <bruno@clisp.org>
4574
4575         copy-file: add error-code-returning variant.
4576         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4577         (qcopy_file_preserving): New declaration.
4578         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4579         copy_file_preserving. Change return type to 'int'. Don't emit an error
4580         message here.
4581         (copy_file_preserving): New function.
4582         * tests/test-copy-file.c: Include <stdlib.h>.
4583         (main): Test qcopy_file_preserving if the environment variable
4584         NO_STDERR_OUTPUT is set.
4585         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4586         with NO_STDERR_OUTPUT
4587         * tests/test-copy-file-2.sh: Likewise.
4588
4589 2012-01-10  Bruno Haible  <bruno@clisp.org>
4590
4591         copy-file: Use 'quote' module consistently.
4592         * lib/copy-file.c (copy_file_preserving): Use quote().
4593
4594         copy-file: Refactor.
4595         * lib/copy-file.c: Include quote.h.
4596         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4597         message here.
4598         * modules/copy-file (Depends-on): Add quote.
4599
4600         acl: Export qcopy_acl.
4601         * lib/acl.h (qcopy_acl): New declaration.
4602         * lib/copy-acl.c (qcopy_acl): Make non-static.
4603
4604         acl: Rename a local variable.
4605         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4606
4607         acl: Align return values of copy_acl and qcopy_acl.
4608         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4609         maybe < -1.
4610
4611 2012-01-11  Eric Blake  <eblake@redhat.com>
4612
4613         strptime: silence gcc warnings
4614         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4615         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4616         Reported by Daniel P. Berrange.
4617
4618         inet_ntop: silence gcc warning
4619         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4620         Reported by Daniel P. Berrange.
4621
4622 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4623
4624         getloadavg test: skip the test on GNU/Linux without /proc mounted
4625         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4626         file.  When /proc is not mounted, it always fails with ENOENT.
4627         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4628         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4629
4630 2012-01-10  Bruno Haible  <bruno@clisp.org>
4631
4632         regex: Avoid link error on MSVC 9.
4633         * modules/regex (Depends-on): Add wctype.
4634
4635 2012-01-10  Bruno Haible  <bruno@clisp.org>
4636
4637         doc: Mention --with-tests option.
4638         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4639         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4640         --with-tests.
4641         Reported by Reuben Thomas.
4642
4643 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4644
4645         users.txt: order package names lexicographically.
4646         * users.txt: Order package names lexicographically.
4647
4648 2012-01-10  Jim Meyering  <meyering@redhat.com>
4649
4650         maint.mk: fix description in comment
4651         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4652
4653         ignore-value: remove deprecated ignore_ptr function
4654         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4655         * NEWS: Note this.
4656
4657 2012-01-09  Jim Meyering  <meyering@redhat.com>
4658
4659         test-init.sh: avoid a subshell
4660         * tests/test-init.sh: Remove protective subshell.
4661         Suggested by Bernhard Voelker.  While a subshell is normally
4662         required to protect against older shells (Solaris, FreeBSD) that
4663         warn about a missing program before performing redirection, the
4664         shell-selection tests performed by init.sh probably exclude any
4665         offending shell.
4666
4667 2012-01-08  Bruno Haible  <bruno@clisp.org>
4668
4669         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4670         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4671         variable.
4672
4673 2012-01-08  Bruno Haible  <bruno@clisp.org>
4674
4675         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4676         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4677         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4678         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4679         macro.
4680         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4681         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4682         * lib/spawn_faction_addopen.c: Add workaround implementation if
4683         HAVE_WORKING_POSIX_SPAWN.
4684         * modules/spawn (Makefile): Substitute
4685         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4686         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4687         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4688         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4689         (Depends-on): Update conditions.
4690         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4691         the Solaris 11 bug.
4692
4693 2012-01-08  Bruno Haible  <bruno@clisp.org>
4694
4695         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4696         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4697         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4698         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4699         macro.
4700         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4701         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4702         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4703         HAVE_WORKING_POSIX_SPAWN.
4704         * modules/spawn (Makefile): Substitute
4705         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4706         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4707         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4708         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4709         (Depends-on): Update conditions.
4710         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4711         the Solaris 11 bug.
4712
4713 2012-01-08  Bruno Haible  <bruno@clisp.org>
4714
4715         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4716         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4717         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4718         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4719         HAVE_WORKING_POSIX_SPAWN.
4720         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4721         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4722         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4723         * lib/spawn_faction_addclose.c: Add workaround implementation if
4724         HAVE_WORKING_POSIX_SPAWN.
4725         * modules/spawn (Makefile): Substitute
4726         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4727         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4728         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4729         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4730         (Depends-on): Update conditions.
4731         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4732         the Solaris 11 bug.
4733
4734 2012-01-08  Bruno Haible  <bruno@clisp.org>
4735
4736         doc: Update for Solaris 11 2011-11.
4737         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4738         * m4/printf.m4: Update comments.
4739
4740 2012-01-08  Bruno Haible  <bruno@clisp.org>
4741
4742         mktime: Avoid compilation error on Solaris 11.
4743         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4744
4745 2012-01-08  Bruno Haible  <bruno@clisp.org>
4746
4747         doc: Small fix.
4748         * doc/posix-headers/nl_types.texi: Correct platforms list.
4749
4750 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4751
4752         Add lgpl-3.0 module.
4753         * MODULES.html.sh (Support for building documentation): Add
4754         lgpl-3.0.
4755         * modules/lgpl-3.0: New file.
4756
4757 2012-01-08  Jim Meyering  <meyering@redhat.com>
4758
4759         select.c: indent with spaces, not TABs
4760         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4761
4762 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4763
4764         quotearg: do not use grave accent for left quote
4765         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4766         locale_quoting_style.
4767         (quotearg_buffer_restyled): Fix example.
4768         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4769
4770 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4771
4772         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4773         Most programs do not have translation catalogs for English and much
4774         less separate catalogs for British and American English.  Drop the
4775         suggestion to translators about these two, and provide it
4776         automatically for Unicode locales.  Like most programs, even those
4777         using American English, we use single quotation marks.  This conflicts
4778         with the American typographic convention, but works better when you
4779         cite the entire error message within double quotes.  It also tries not
4780         to clash with established practice and with what non-gnulib programs
4781         will usually do.
4782         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4783         using an UTF-8 or GB-18030 locale.  The list of other locales with
4784         quotes was provided by Bruno Haible.
4785         (quotearg_buffer_restyled): Adjust instructions to translators.
4786         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4787         text, since this would be wrong when using Unicode.
4788         * modules/quotearg: Depend on c-strcaseeq.
4789
4790 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4791
4792         quotearg: fix Wikipedia link
4793         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4794
4795 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4796
4797         Fix for mingw with MSVC9.
4798         * m4/ld-version-script.m4: Check that compiler rejects version
4799         scripts with syntax errors.  Reported by Bruno Haible
4800         <bruno@clisp.org>.
4801
4802 2012-01-06  Bruno Haible  <bruno@clisp.org>
4803
4804         Talk about "native Windows API", not "Woe32".
4805         * lib/accept4.c: Update comments to mention native Windows.
4806         * lib/execute.c: Likewise.
4807         * lib/fatal-signal.c: Likewise.
4808         * lib/localcharset.c: Likewise.
4809         * lib/nanosleep.c: Likewise.
4810         * lib/nl_langinfo.c: Likewise.
4811         * lib/pclose.c: Likewise.
4812         * lib/pipe-filter-gi.c: Likewise.
4813         * lib/pipe-filter-ii.c: Likewise.
4814         * lib/pipe.c: Likewise.
4815         * lib/pipe2.c: Likewise.
4816         * lib/popen.c: Likewise.
4817         * lib/progreloc.c: Likewise.
4818         * lib/relocatable.c: Likewise.
4819         * lib/sigaction.c: Likewise.
4820         * lib/sigprocmask.c: Likewise.
4821         * lib/spawn-pipe.h: Likewise.
4822         * lib/spawn-pipe.c: Likewise.
4823         * lib/spawni.c: Likewise.
4824         * lib/stat-time.h: Likewise.
4825         * lib/w32spawn.h: Likewise.
4826         * tests/test-isatty.c: Likewise.
4827         * lib/config.charset: More comments.
4828         * doc/gnulib-intro.texi: Mention native Windows.
4829         * doc/posix-functions/_Exit_C99.texi: Likewise.
4830         * doc/posix-headers/fcntl.texi: Likewise.
4831
4832 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4833
4834         argp: Avoid crash if translator uses % characters in a translation.
4835         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4836         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4837
4838 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4839
4840         doc: C11 and C++11 are now official
4841         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4842         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4843         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4844         * modules/stdalign:
4845         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4846
4847 2012-01-06  Bruno Haible  <bruno@clisp.org>
4848
4849         uc-is-grapheme-break tests: Tweak.
4850         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4851         message.
4852
4853 2012-01-06  Bruno Haible  <bruno@clisp.org>
4854
4855         test-init.sh: correct the test for diff -u
4856         * tests/test-init.sh: Also redirect stdout to /dev/null.
4857
4858 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4859
4860         Use ', not `, for quoting output.
4861         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4862         (print_changelog_deltas, get_tool_versions, main program):
4863         * build-aux/git-version-gen:
4864         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4865         * build-aux/move-if-change (help):
4866         * build-aux/useless-if-before-free (usage, main program):
4867         * check-module (parse_module_file, usage)
4868         (find_included_lib_files, check_module):
4869         * lib/argmatch.c (main) [TEST]:
4870         * lib/argp-help.c (_help):
4871         * lib/getopt1.c (main) [TEST]:
4872         * lib/git-merge-changelog.c (usage):
4873         * lib/xstrtol-error.c (xstrtol_error):
4874         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4875         * m4/argz.m4 (gl_FUNC_ARGZ):
4876         * m4/bison.m4 (gl_BISON):
4877         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4878         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4879         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4880         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4881         * m4/gc-random.m4 (gl_GC_RANDOM):
4882         * m4/intl.m4 (gt_CHECK_DECL):
4883         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4884         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4885         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4886         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4887         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4888         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4889         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4890         * tests/test-dirname.c (main):
4891         * tests/test-getpass.c (main):
4892         * tests/test-iconvme.c (main):
4893         * tests/test-parse-datetime.c (LOG):
4894         * tests/test-xstrtoimax.sh:
4895         * tests/test-xstrtol.sh:
4896         * tests/test-xstrtoll.sh:
4897         * tests/test-xstrtoumax.sh:
4898         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4899         * top/GNUmakefile (abort-due-to-no-makefile):
4900         Quote 'like this', not `like this', as per the recent change to
4901         the GNU coding standards.
4902
4903 2012-01-05  Bruno Haible  <bruno@clisp.org>
4904
4905         strtoimax: Don't force a replacement on systems where intmax_t is int.
4906         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4907         'intmax_t' is not larger than 'int'.
4908         Reported by Pádraig Brady <P@draigBrady.com>.
4909
4910 2012-01-05  Bruno Haible  <bruno@clisp.org>
4911
4912         doc: Mention NetBSD bugs.
4913         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4914         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4915
4916 2012-01-05  Bruno Haible  <bruno@clisp.org>
4917
4918         strtoumax tests: Enhance tests.
4919         * tests/test-strtoumax.c (main): Add tests for large values.
4920
4921 2012-01-05  Bruno Haible  <bruno@clisp.org>
4922
4923         strtoimax: Work around AIX 5.1 bug.
4924         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4925         definition.
4926         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4927         Set HAVE_STRTOIMAX.
4928         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4929         REPLACE_STRTOIMAX.
4930         * modules/inttypes-incomplete (Makefile.am): Substitute
4931         REPLACE_STRTOIMAX.
4932         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4933         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4934         (Depends-on): Update conditions.
4935         * tests/test-strtoimax.c (main): Add tests for large values.
4936         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4937
4938 2012-01-05  Bruno Haible  <bruno@clisp.org>
4939
4940         inttypes: Modernize.
4941         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4942         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4943         (Makefile.am): Update inttypes.h rule.
4944
4945 2012-01-05  Jim Meyering  <meyering@redhat.com>
4946
4947         init.sh: don't waste a subshell just to redirect stderr
4948         * tests/init.sh: In testing for diff -u and diff -c, use a
4949         stderr-redirecting exec inside `...` rather than a subshell.
4950
4951         test-init.sh: avoid failure on HP-UX 11.00
4952         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4953         resolves to diff -c or cmp.  Reported by Bruno Haible.
4954
4955 2012-01-05  Bruno Haible  <bruno@clisp.org>
4956
4957         Tests for module 'strtoull'.
4958         * modules/strtoull-tests: New file.
4959         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4960
4961 2012-01-05  Bruno Haible  <bruno@clisp.org>
4962
4963         Tests for module 'strtoll'.
4964         * modules/strtoll-tests: New file.
4965         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4966
4967 2012-01-05  Bruno Haible  <bruno@clisp.org>
4968
4969         Tests for module 'strtoul'.
4970         * modules/strtoul-tests: New file.
4971         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4972
4973 2012-01-05  Bruno Haible  <bruno@clisp.org>
4974
4975         Tests for module 'strtol'.
4976         * modules/strtol-tests: New file.
4977         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4978
4979 2012-01-04  Jim Meyering  <meyering@redhat.com>
4980
4981         test-init.sh: accommodate Solaris 5.10's different diff -u output
4982         * tests/test-init.sh: Also exempt @@ lines from the comparison
4983         of diff output, since Solaris 5.10 and GNU diff formats differ.
4984         Reported by Stefano Lattarini.
4985
4986 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4987
4988         test-posixtm: don't assume signed integer wraparound
4989         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4990         after signed integer overflow.  Inspired by (though it may not
4991         fix) Bruno Haible's bug report in
4992         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4993
4994         Spell out "Windows 9x" and "Windows XP".
4995         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4996         "Windows 9x" and "WinXP" with "Windows XP".
4997
4998 2012-01-04  Jim Meyering  <meyering@redhat.com>
4999
5000         test-vc-list-files-cvs.sh: remove obsolete comment
5001         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5002         double exit.  Now that's all encapsulated via skip_ and Exit.
5003
5004 2012-01-04  Bruno Haible  <bruno@clisp.org>
5005
5006         Talk about "native Windows API", not "Win32".
5007         * lib/classpath.c: Update comments to mention native Windows.
5008         * lib/csharpexec.c: Likewise.
5009         * lib/dup2.c: Likewise.
5010         * lib/error.c: Likewise.
5011         * lib/fcntl.c: Likewise.
5012         * lib/filename.h: Likewise.
5013         * lib/findprog.c: Likewise.
5014         * lib/get-rusage-as.c: Likewise.
5015         * lib/get-rusage-data.c: Likewise.
5016         * lib/getpagesize.c: Likewise.
5017         * lib/javaexec.c: Likewise.
5018         * lib/msvc-inval.c: Likewise.
5019         * lib/msvc-nothrow.c: Likewise.
5020         * lib/nanosleep.c: Likewise.
5021         * lib/nonblocking.c: Likewise.
5022         * lib/printf-parse.c: Likewise.
5023         * lib/setlocale.c: Likewise.
5024         * lib/sigaction.c: Likewise.
5025         * lib/strerror_r.c: Likewise.
5026         * lib/tmpdir.c: Likewise.
5027         * lib/vasnprintf.c: Likewise.
5028         * lib/w32spawn.h: Likewise.
5029         * lib/waitpid.c: Likewise.
5030         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5031         * m4/locale-ar.m4: Likewise.
5032         * m4/locale-fr.m4: Likewise.
5033         * m4/locale-ja.m4: Likewise.
5034         * m4/locale-tr.m4: Likewise.
5035         * m4/locale-zh.m4: Likewise.
5036         * m4/printf.m4: Likewise.
5037         * tests/test-cloexec.c: Likewise.
5038         * tests/test-copy-acl.sh: Likewise.
5039         * tests/test-copy-file.sh: Likewise.
5040         * tests/test-file-has-acl.sh: Likewise.
5041         * tests/test-set-mode-acl.sh: Likewise.
5042         * tests/test-dup-safer.c: Likewise.
5043         * tests/test-dup2.c: Likewise.
5044         * tests/test-dup3.c: Likewise.
5045         * tests/test-fcntl.c: Likewise.
5046         * tests/test-nonblocking-pipe.h: Likewise.
5047         * tests/test-nonblocking-socket.h: Likewise.
5048         * tests/test-pipe.c: Likewise.
5049         * tests/test-pipe2.c: Likewise.
5050         * tests/test-spawn-pipe-child.c: Likewise.
5051         * doc/acl-resources.txt: Likewise.
5052         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5053         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5054         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5055         * lib/localcharset.c: Update comments to mention native Windows.
5056         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5057         * lib/localename.c: Likewise.
5058         * lib/progreloc.c: Likewise.
5059         * lib/relocatable.c: Likewise.
5060         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5061         (windows_compute_revents): Renamed from win32_compute_revents.
5062         (windows_compute_revents_socket): Renamed from
5063         win32_compute_revents_socket.
5064         * lib/select.c: Update comments to mention native Windows.
5065         (windows_poll_handle): Renamed from win32_poll_handle.
5066         * m4/threadlib.m4: Update comments to mention native Windows.
5067         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5068         --enable-threads=windows instead of --enable-threads=win32. Set
5069         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5070         * lib/glthread/lock.h: Update comments to mention native Windows.
5071         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5072         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5073         USE_WIN32_THREADS.
5074         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5075         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5076         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5077         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5078         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5079         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5080         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5081         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5082         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5083         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5084         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5085         * tests/test-tls.c: Likewise.
5086         Rationale:
5087         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5088         on both 32-bit and 64-bit Windows systems.
5089         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5090         line of distinction is between "native Windows" on one side and Unix/
5091         POSIX systems on the other side. More details in
5092         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5093         Suggested by Paul Eggert.
5094
5095 2012-01-03  Bruno Haible  <bruno@clisp.org>
5096
5097         isatty: Support for MSVC 9.
5098         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5099         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5100         (_isatty_nothrow): New function.
5101         (isatty): Use it instead of _isatty.
5102         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5103         * lib/poll.c (IsConsoleHandle): Likewise.
5104         * lib/select.c (IsConsoleHandle): Likewise.
5105         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5106         (gl_PREREQ_ISATTY): New macro.
5107         * modules/isatty (Depends-on): Add msvc-inval.
5108         (configure.ac): Invoke gl_PREREQ_ISATTY.
5109
5110 2012-01-03  Jim Meyering  <meyering@redhat.com>
5111
5112         maint.mk: remove temporary transition aid from over 1.5 years ago
5113         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5114         purpose was to aid in the transition (avoiding silent malfunction)
5115         from that old name to the new _sc_search_regexp.  This shim was
5116         added by commit 219c504b.
5117
5118         init.sh: do not try to accommodate compare arguments starting with "-"
5119         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5120         compare arguments that start with "-".  Besides, we do not worry
5121         about this when invoking diff or cmp; why start now with sed?
5122         Using "--" to separate options from argument would trigger sed
5123         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5124         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5125
5126 2012-01-02  Bruno Haible  <bruno@clisp.org>
5127
5128         Enhance tests for module 'isatty'.
5129         * modules/isatty-tests (Depends-on): Add pipe-posix.
5130         * tests/test-isatty.c: Include <fcntl.h>.
5131         (DEV_NULL): New macro.
5132         (main): Test the resut of isatty() also on regular files, pipes, and
5133         /dev/null.
5134
5135         New module 'isatty'.
5136         * lib/unistd.in.h (isatty): New declaration.
5137         * lib/isatty.c: New file, based on an idea of
5138         Bastien Roucariès <roucaries.bastien@gmail.com>.
5139         * m4/isatty.m4: New file.
5140         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5141         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5142         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5143         REPLACE_ISATTY.
5144         * modules/isatty: New file.
5145         * doc/posix-functions/isatty.texi: Mention the new module.
5146         Suggested by Paolo Bonzini.
5147
5148 2012-01-02  Bruno Haible  <bruno@clisp.org>
5149
5150         canonicalize: Tweak 2011-12-29 commit.
5151         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5152         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5153
5154 2012-01-02  Jim Meyering  <meyering@redhat.com>
5155
5156         gitlog-to-changelog: describe input syntax in --help output
5157         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5158
5159         gitlog-to-changelog: fix typo in --help: show backslash before email @
5160         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5161         in sources, but not in actual output.
5162
5163 2011-12-30  Jim Meyering  <meyering@redhat.com>
5164
5165         gitlog-to-changelog: don't malfunction when name contains %-directive
5166         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5167         in a name string cause trouble.  E.g., with a user name of "%s",
5168         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5169
5170 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5171
5172         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5173         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5174         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5175         the "  (tiny change)" notation that is appended to the standard
5176         ChangeLog "date  name  email" header line.
5177
5178 2012-01-01  Jim Meyering  <meyering@redhat.com>
5179
5180         test-framework-sh: init.sh: fix "make dist" failure
5181         When using gnulib-tool's --with-tests option and any module that
5182         depends on test-framework-sh, "make dist" would fail due to the
5183         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5184         in the gltests directory, and not in the gllib/ directory.
5185         One way to work around that is to move the EXTRA_DIST += init.sh
5186         from the primary module to the -tests one:
5187         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5188         * modules/test-framework-sh (Makefile.am): ...not here.
5189         Reported by Tom G. Christensen in
5190         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5191
5192         version-etc: update copyright year reported by --version
5193         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5194
5195 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5196
5197         canonicalize: only stat() if required
5198         * lib/canonicalize.c (canonicalize_filename_mode):
5199         Avoid calling l?stat() when both CAN_MISSING,
5200         and CAN_NOLINKS are set, as we neither need
5201         to resolve symlinks or test component existence.
5202
5203 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5204
5205         doc: cover st_ino issues once; add OpenVMS etc.
5206         * doc/posix-functions/stat.texi (stat):
5207         * doc/posix-functions/lstat.texi (lstat):
5208         * doc/posix-functions/fstatat.texi (fstatat):
5209         * doc/posix-functions/fstat.texi (fstat):
5210         Move general 'struct stat' stuff to sys_stat.texi,
5211         leaving behind a pointer.
5212         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5213         Merge duplicate info about 'struct stat' problems into here.
5214         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5215         and suggest partial workarounds.
5216
5217         same-inode: port to OpenVMS
5218         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5219         three st_ino values.
5220
5221 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5222
5223         canonicalize: fix references to stat() and lstat()
5224         * lib/canonicalize.c (canonicalize_filename_mode):
5225         Ensure references always resolve to a replacement
5226         function if required (even via a macro).
5227
5228 2011-12-30  Jim Meyering  <meyering@redhat.com>
5229
5230         gitlog-to-changelog: remove a little duplication
5231         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5232         rather than twice.
5233
5234 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5235
5236         canonicalize: add support for not resolving symlinks
5237         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5238         indicate we don't want to follow symlinks.  Also
5239         provide CAN_MODE_MASK to aid setting these existing
5240         mutually exclusive values.
5241         * lib/canonicalize.c (canonicalize_filename_mode):
5242         Extract the flags from can_mode parameter, which
5243         are currently just used to select between stat()
5244         and lstat().  Also ensure that mutually exclusive
5245         values are flagged immediately as invalid.
5246         * tests/test-canonicalize.c: Verify symlinks are
5247         not followed, and that invalid flag combinations
5248         are diagnosed.
5249
5250 2011-12-25  Jim Meyering  <meyering@redhat.com>
5251
5252         gitlog-to-changelog: do not clump multi-paragraph entries
5253         Identical header lines (date,name,email+coauthors) are suppressed,
5254         thus putting all entries with those same characteristics under
5255         a single header.  However, when a log entry consists of two or
5256         more paragraphs, it may not be clear where it starts and ends.
5257         This change makes it so that such an entry is always separated
5258         from others by a header line, even when that header would
5259         otherwise be suppressed.
5260         * build-aux/gitlog-to-changelog: Implement the above.
5261         Inspired by a related request from Stefano Lattarini in
5262         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5263
5264 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5265
5266         announce-gen: fix `cmd' typo in diagnostic
5267         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5268         diagnostic: a missing '$' meant that the command was not output.
5269
5270 2011-12-23  Jim Meyering  <meyering@redhat.com>
5271
5272         test-framework-sh: distribute init.sh
5273         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5274         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5275         fail due to the lack of init.sh.
5276
5277         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5278         * modules/atexit-tests: Rather than listing tests/init.sh,
5279         now that there's a module for it, simply depend on that new module.
5280         * modules/closein-tests: Likewise.
5281         * modules/exclude-tests: Likewise.
5282         * modules/getcwd-tests: Likewise.
5283         * modules/perror-tests: Likewise.
5284         * modules/pread-tests: Likewise.
5285         * modules/pwrite-tests: Likewise.
5286         * modules/vc-list-files-tests: Likewise.
5287         * modules/verify-tests: Likewise.
5288         * modules/xalloc-die-tests: Likewise.
5289         * modules/xstrtoimax-tests: Likewise.
5290         * modules/xstrtol-tests: Likewise.
5291         * modules/xstrtoll-tests: Likewise.
5292         * modules/xstrtoumax-tests: Likewise.
5293         * modules/yesno-tests: Likewise.
5294
5295 2011-12-22  Jim Meyering  <meyering@redhat.com>
5296
5297         test-framework-sh: add minimal tests of init.sh's compare function
5298         * modules/test-framework-sh-tests: New file.
5299         * tests/test-init.sh: New file.
5300
5301         test-framework-sh: new module
5302         * modules/test-framework-sh: New file.
5303         * MODULES.html.sh (Support for maintaining and releasing projects):
5304         List it.
5305
5306         init.sh: do not emit simulated diff output to stderr
5307         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5308
5309 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5310
5311         .gitignore: ignore gnulib.dvi and regex.info
5312         * doc/.gitignore:add gnulib.dvi and regex.info
5313
5314 2011-12-22  Jim Meyering  <meyering@redhat.com>
5315
5316         init.sh: correct previous change
5317         * tests/init.sh (compare): My previous change was wrong.
5318         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5319
5320         init.sh: avoid unwarranted test failure when using "set -e"
5321         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5322         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5323         a use like "compare exp out" would get evoke an unconditional failure.
5324
5325 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5326
5327         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5328         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5329         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5330         autoreconf that did not.
5331         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5332         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5333
5334 2011-12-17  Jim Meyering  <meyering@redhat.com>
5335
5336         bootstrap: remove some now-unneeded code
5337         This script arose back when gnulib-tool was young.
5338         Since then, it has seen improvements that render much of this
5339         script unnecessary.  In particular, it can now make symlinks
5340         to the files it uses.  Also, I no longer see as much value in
5341         marking files as read-only via comments.
5342         If you relied on the symlink-creation feature of the preceding
5343         version of this script, you can get most of that functionality
5344         by adding the --symlink option to the definition of
5345         gnulib_tool_option_extras in your bootstrap.conf file.
5346         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5347         Run autopoint and libtoolize *before* gnulib-tool.
5348         After it, run an abbreviated autoreconf, rather than a loop around
5349         all tools.
5350         (slirp, bt_mark_as_generated): Remove functions.
5351
5352 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5353
5354         ftoastr: fix typo
5355         * lib/ftoastr.h: Fix misspelling in comment.
5356
5357 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5358
5359         * top/README-release: fix punctuation.
5360
5361 2011-12-17  Jim Meyering  <meyering@redhat.com>
5362
5363         bootstrap: correct the recent buildreq change
5364         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5365         had no effect.
5366         * build-aux/bootstrap (buildreq): Bracket each search term with
5367         "*...*", so that the shell "case" statement works as intended.
5368         Add comments.
5369
5370 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5371
5372         build: let bootstrap resort to wget when downloading .po files
5373         * build-aux/bootstrap (download_po_files): Fallback to wget when
5374         downloading the .po files via rsync fails.  This is necessary to
5375         bootstrap from behind a strict firewall.
5376
5377 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5378
5379         stdint: don't assume C++11 when compiling with g++
5380         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5382         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5383         work also in C++ before C++11, as that improperly inhibits
5384         generating a substitute stdint.h for that case.
5385
5386 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5387
5388         alloca: protect comment from gnulib-tool
5389         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5390         that gnulib-tool doesn't think it's a license, and munge it to
5391         say "GCC version 3".
5392
5393 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5394
5395         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5396         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5397         $(abs_top_builddir) instead of $(top_builddir).
5398
5399 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5400
5401         strftime-tests: also test nanoseconds
5402         * tests/test-strftime.c (T): Add a test of %N.
5403
5404 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5405
5406         inttypes, stdint: add C++11 support
5407         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5408         when including inttypes.h and stdint.h.  Support this change to
5409         the standard.
5410         * doc/posix-headers/inttypes.texi (inttypes.h):
5411         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5412         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5413         Define if not defined already, for the benefit of pre-C++11 hosts.
5414         Define the standard format macros (e.g., PRId8) always.
5415         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5416         Likewise, if __cpluspus.  Define the standard constant and limit
5417         macros (e.g., INT8_C, INT8_MAX) always.
5418         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5419         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5420         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5421         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5422         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5423         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5424         Likewise.
5425
5426 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5427
5428         nonblocking tests: Fix test failure on Linux/PPC.
5429         Suggested by Prerna Saxena in
5430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5431         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5432         Set to 1100000.
5433
5434 2011-12-12  Jim Meyering  <meyering@redhat.com>
5435
5436         argmatch: don't hard-code `' when listing valid option arguments
5437         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5438         use the quote function to add quotes.  Use fputs rather than
5439         fprintf for the format string with no format directive.
5440
5441 2011-12-07  Eric Blake  <eblake@redhat.com>
5442
5443         bootstrap: detect tools required by gnulib-tool
5444         * build-aux/bootstrap (buildreq): Provide minimum implicit
5445         dependencies.
5446         * DEPENDENCIES: Mention patch as a prereq.
5447
5448 2011-12-04  Bruno Haible  <bruno@clisp.org>
5449
5450         sethostname: Port to Windows platforms.
5451         * lib/sethostname.c: Provide an alternate implementation for Windows
5452         platforms.
5453         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5454         (main): Skip the test if sethostname() fails with EPERM. On Windows
5455         platforms, don't check the result of gethostname().
5456
5457 2011-12-04  Bruno Haible  <bruno@clisp.org>
5458             Jim Meyering  <meyering@redhat.com>
5459
5460         tests: Avoid spurious error message on platforms without mktemp program.
5461         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5462
5463 2011-12-04  Bruno Haible  <bruno@clisp.org>
5464
5465         sethostname: Fix documentation.
5466         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5467         "not fixed" section.
5468
5469 2011-12-03  Bruno Haible  <bruno@clisp.org>
5470
5471         gnulib-tool: Verify that the License field is present and non-empty.
5472         * gnulib-tool (func_get_license_raw): New function, extracted from
5473         func_get_license.
5474         (func_get_license): Use it. Warn if the module is not a test module and
5475         has no license.
5476         Suggested by Jim Meyering.
5477
5478 2011-12-03  Bruno Haible  <bruno@clisp.org>
5479
5480         sethostname tests: Fix link error on mingw.
5481         * tests/test-sethostname1.c: New file, extracted from
5482         tests/test-sethostname.c.
5483         * tests/test-sethostname2.c: New file, extracted from
5484         tests/test-sethostname.c.
5485         * tests/test-sethostname.c: Remove file.
5486         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5487         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5488         (Depends-on): Add gethostname.
5489         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5490         Link the latter with $(GETHOSTNAME_LIB).
5491
5492         sethostname tests: Fix compilation error on mingw.
5493         * tests/test-sethostname.c: Don't include <sys/types.h>.
5494         (geteuid): Use a dummy value without uid_t.
5495         * modules/sethostname-tests (Depends-on): Remove sys_types.
5496
5497         sethostname tests: Avoid a gcc warning.
5498         * tests/test-sethostname.c (main): Remove an unused variable.
5499
5500         Tweak last commit.
5501         * modules/sethostname-tests (Files): Sort by decreasing importance.
5502         (configure.ac): Check for geteuid.
5503         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5504         the test when there's nothing to test. Drop an unnecessary cast.
5505         Improve an error message. Verify that the final sethostname() call
5506         succeeds.
5507
5508 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5509
5510         Add a test suite for the sethostname module.
5511         * modules/sethostname-tests: New file.  A test program
5512         for the sethostname module.
5513         * tests/test-sethostname.c: Likewise.
5514
5515 2011-12-03  Bruno Haible  <bruno@clisp.org>
5516
5517         Tweak last commit.
5518         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5519         Fix preprocessor directives indentation. Fix typos.
5520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5521         * modules/unistd (Makefile): Likewise.
5522
5523 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5524
5525         Integrate the sethostname module into unistd.
5526         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5527         into the unistd.h header.
5528         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5529         preprocessor directives.
5530         * modules/unistd: Setup the Makefile substitutions of the
5531         SETHOSTNAME preprocessor directives.
5532
5533 2011-12-03  Bruno Haible  <bruno@clisp.org>
5534
5535         Tweak last commit.
5536         * lib/sethostname.c: Don't include <string.h>.
5537         (sethostname): No need to copy the argument string to the stack. Don't
5538         call clearerr. Preserve errno when fprintf failed.
5539         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5540         Don't invoke AC_REPLACE_FUNCS.
5541         * modules/sethostname (Link): Remove empty section.
5542         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5543         failure problem.
5544
5545 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5546
5547         New module 'sethostname'.
5548         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5549         for systems that lack it.
5550         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5551         sethostname declaration and function.
5552         * modules/sethostname: New file.  Define the sethostname module.
5553
5554 2011-12-03  Bruno Haible  <bruno@clisp.org>
5555
5556         Tweak last commit.
5557         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5558
5559 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5560
5561         Split the HOST_NAME_MAX detection into a separate m4 macro.
5562         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5563         macro so it can be used by the pending sethostname module.
5564
5565 2011-12-03  Bruno Haible  <bruno@clisp.org>
5566
5567         Fix module descriptions syntax.
5568         * modules/argv-iter (License): Fix syntax.
5569         * modules/di-set (License): Likewise.
5570         * modules/ino-map (License): Likewise.
5571         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5572
5573 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5574
5575         stdalign: port to Clang 3.0
5576         Problem reported by Simon Josefsson in
5577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5578         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5579         which has <stdalign.h> but which does not define alignof.
5580         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5581
5582 2011-12-01  Eric Blake  <eblake@redhat.com>
5583
5584         mktempd: silence dd usage
5585         * build-aux/mktempd (rand_bytes): Silence dd.
5586
5587 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5588
5589         manywarnings: Don't mention gcc version in docstring.
5590         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5591         Jim Meyering <meyering@redhat.com>.
5592
5593 2011-11-30  Jim Meyering  <meyering@redhat.com>
5594
5595         hash: mark a few floating point constants with "f" suffix
5596         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5597         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5598         floating point constants with "f", since they're destined to be
5599         saved/used as "float"s.
5600
5601 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5602
5603         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5604         * tests/test-float.c (test_long_double): Correct and re-enable the
5605         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5606
5607 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5608
5609         Avoid subtracting two pointers that don't point into the same block.
5610         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5611         only pointers into the same memory block are subtracted. We cannot
5612         assume that sizeof (ptrdiff_t) == sizeof (void *).
5613
5614 2011-11-29  Eric Blake  <eblake@redhat.com>
5615
5616         maint.mk: add syntax check for use of compare from init.sh
5617         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5618         moved here from coreutils.
5619
5620         manywarnings: drop -Wunsuffixed-float-constants
5621         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5622         '1.0D', which is the only way to silence this warning for 'double'.
5623
5624 2011-11-29  Jim Meyering  <meyering@redhat.com>
5625
5626         hash: mark compute_bucket_size with the pure attribute
5627         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5628
5629         quotearg, propername: correct pragma guard expression
5630         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5631         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5632
5633 2011-11-28  Jim Meyering  <meyering@redhat.com>
5634
5635         propername: do not mark proper_name with the const attribute
5636         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5637         since it examines data pointed to by its parameter.
5638         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5639         the suggestion from -Wsuggest-attribute=const.
5640
5641         propername: mark one more function as const
5642         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5643
5644 2011-11-27  Jim Meyering  <meyering@redhat.com>
5645
5646         mark functions with const and pure attributes
5647
5648         Mark functions per suggestions from gcc-4.6 when using these options:
5649         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5650         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5651         Follow these guidelines: when possible, apply the attribute to
5652         an extern declaration, not to its definition.  Apply it to the
5653         definition only when the definition is static.
5654         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5655         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5656         * lib/base64.h (isbase64): Likewise.
5657         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5658         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5659         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5660         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5661         (c_tolower, c_toupper): Likewise.
5662         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5663         * lib/chdir-long.c (find_non_slash): Likewise.
5664         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5665         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5666         * lib/file-type.h (file_type): Likewise.
5667         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5668         * lib/filevercmp.c (verrevcmp): Likewise.
5669         * lib/freadahead.h (freadahead): Likewise.
5670         * lib/fts.c (fts_maxarglen): Likewise.
5671         * lib/hash-pjw.h (hash_pjw): Likewise.
5672         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5673         * lib/hash.c (is_prime, next_prime): Likewise.
5674         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5675         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5676         (hash_table_ok, hash_get_first, hash_string): Likewise.
5677         (compute_bucket_size): Likewise.
5678         * lib/i-ring.h (i_ring_empty): Likewise.
5679         * lib/isnan.c (isnanl): Likewise.
5680         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5681         * lib/memcasecmp.h (memcasecmp): Likewise.
5682         * lib/memchr2.h (memchr2): Likewise.
5683         * lib/memcmp2.h (memcmp2): Likewise.
5684         * lib/parse-datetime.y (lookup_zone): Likewise.
5685         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5686         [!WINDOWS_SOCKETS]: Likewise.
5687         * lib/strnlen1.h (strnlen1): Likewise.
5688         * lib/uniwidth.in.h (uc_width): Likewise.
5689         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5690         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5691         (quoting_options_from_style): Add a comment.
5692         * lib/propername.h (proper_name): Add a comment.
5693
5694 2011-11-27  Bruno Haible  <bruno@clisp.org>
5695
5696         Remove unused macros from !_LIBC code in glibc-borrowed files.
5697         * lib/fnmatch.c (STRCOLL): Remove macro.
5698         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5699         * lib/glob.c (__stat, __readdir64): Remove macros.
5700         * lib/tempname.c (__open64, __xstat64): Remove macros.
5701         Suggested by Paul Eggert.
5702
5703 2011-11-27  Bruno Haible  <bruno@clisp.org>
5704
5705         getcwd: Fix link error on MSVC 9.
5706         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5707
5708 2011-11-27  Bruno Haible  <bruno@clisp.org>
5709
5710         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5711         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5712         HAVE_OPENDIR is 0.
5713         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5714         HAVE_CLOSEDIR is 0.
5715         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5716         is 0.
5717         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5718
5719 2011-11-27  Bruno Haible  <bruno@clisp.org>
5720
5721         getcwd: Fix bug from 2011-08-17.
5722         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5723         platforms that need it.
5724         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5725         code of 4 to be a failure, not a success. This ensures that
5726         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5727
5728 2011-11-27  Bruno Haible  <bruno@clisp.org>
5729
5730         binary-io tests: Avoid test failure on mingw when libtool is used.
5731         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5732         Don't verify the size of t-bin-out1.tmp here.
5733         * tests/test-binary-io.sh: Verify it here.
5734         Reported by Simon Josefsson.
5735
5736 2011-11-26  Bruno Haible  <bruno@clisp.org>
5737
5738         Fix conflict between two instantiations of module 'unistd'.
5739         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5740         ${include_guard_prefix} also in the autoconf snippet.
5741         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5743         GNULIB_UNISTD_H_GETOPT.
5744         * modules/getopt-posix (configure.ac): Set the
5745         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5746         * modules/getopt-gnu (configure.ac): Likewise.
5747         * modules/unistd (Makefile.am): Change the substitution value of
5748         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5749         Reported by Simon Josefsson.
5750
5751 2011-11-25  Bruno Haible  <bruno@clisp.org>
5752
5753         pagealign_alloc: Doc and comments.
5754         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5755         module.
5756         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5757
5758 2011-11-25  Jim Meyering  <meyering@redhat.com>
5759
5760         test-update-copyright.sh: avoid false-positive failure
5761         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5762         around false positive failure on Cygwin/Windows.  The latter was
5763         matching erroneously-created files with names like
5764         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5765
5766 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5767
5768         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5769         * m4/valgrind-tests.m4: Check that the parameters that will be
5770         used works, not just a subset of them.  Reported by Bruno Haible
5771         <bruno@clisp.org>.
5772
5773 2011-11-24  Jim Meyering  <meyering@redhat.com>
5774
5775         test-stdalign.c: comment out long double tests
5776         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5777         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5778         error: '_Alignas' specifiers cannot reduce alignment of \
5779         'static_longdouble_alignas'.
5780
5781 2011-11-22  Jim Meyering  <meyering@redhat.com>
5782
5783         init.sh: make "compare /dev/null FILE" output more readable
5784         * tests/init.sh (compare_): Document the preferred order of arguments.
5785         (emit_diff_u_header_): New function.
5786         (compare_dev_null_): Emit a simulated diff, rather than just the
5787         contents of the unexpected file.  Suggestion from Bruno Haible.
5788
5789 2011-11-21  Jim Meyering  <meyering@redhat.com>
5790             Eric Blake  <eblake@redhat.com>
5791
5792         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5793         * tests/init.sh: Make our compare function slightly more portable.
5794         Reported by Bruno Haible in
5795         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5796
5797 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5798
5799         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5800         before using it, in code that ends up in config.h.
5801
5802 2011-11-20  Bruno Haible  <bruno@clisp.org>
5803
5804         getcwd: Work around getcwd bug on AIX 5..7.
5805         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5806         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5807         Use a different value for gl_cv_func_getcwd_path_max. Move the
5808         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5809         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5810         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5811         Define HAVE_MINIMALLY_WORKING_GETCWD.
5812         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5813         where it is not even minimally working, that is, on AIX.
5814         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5815         m4/getcwd-path-max.m4.
5816         (main): Update exit code computation.
5817         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5818         getcwd does not handle long file names.
5819
5820 2011-11-20  Bruno Haible  <bruno@clisp.org>
5821
5822         getcwd: Fix bug from 2009-09-10.
5823         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5824         like "no".
5825
5826 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5827
5828         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5829
5830 2011-11-20  Bruno Haible  <bruno@clisp.org>
5831
5832         fma tests: Avoid shadowing local variables.
5833         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5834         expected.
5835
5836 2011-11-20  Bruno Haible  <bruno@clisp.org>
5837
5838         copysignf tests: Fix.
5839         * tests/test-copysignf.c: Fix signature check.
5840
5841 2011-11-20  Bruno Haible  <bruno@clisp.org>
5842
5843         fma: Remove unused code.
5844         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5845         unused macros.
5846
5847 2011-11-20  Bruno Haible  <bruno@clisp.org>
5848
5849         sethostname: Fix doc about AIX.
5850         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5851         sethostname; it has it.
5852
5853         sethostname: Mention more portability problems.
5854         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5855         problem.
5856         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5857
5858 2011-11-19  Bruno Haible  <bruno@clisp.org>
5859
5860         Depend on module fcntl-h when AT_FDCWD is used.
5861         * modules/utimens (Depends-on): Add fcntl-h.
5862         * modules/areadlinkat (Depends-on): Likewise.
5863         * modules/areadlinkat-with-size (Depends-on): Likewise.
5864         * modules/faccessat (Depends-on): Likewise.
5865         * modules/fchmodat (Depends-on): Likewise.
5866         * modules/fchownat (Depends-on): Likewise.
5867         * modules/getcwd (Depends-on): Likewise.
5868         * modules/mkdirat (Depends-on): Likewise.
5869         * modules/mkfifoat (Depends-on): Likewise.
5870         * modules/readlinkat (Depends-on): Likewise.
5871         * modules/symlinkat (Depends-on): Likewise.
5872         * modules/dup2-tests (Depends-on): Likewise.
5873         * modules/fdutimensat-tests (Depends-on): Likewise.
5874         * modules/futimens-tests (Depends-on): Likewise.
5875
5876 2011-11-19  Bruno Haible  <bruno@clisp.org>
5877
5878         euidaccess: Update a comment.
5879         * lib/euidaccess.c: Update comment about platforms with faccessat.
5880
5881 2011-11-19  Bruno Haible  <bruno@clisp.org>
5882
5883         openat: Fix file list.
5884         * modules/openat (Files): Remove lib/at-func.c.
5885
5886 2011-11-19  Bruno Haible  <bruno@clisp.org>
5887
5888         fstatat: Simplify.
5889         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5890         gnulib should define rpl_fstatat, there is a
5891         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5892
5893 2011-11-19  Bruno Haible  <bruno@clisp.org>
5894
5895         Ensure 'inline' can be used in tests/test-utimens-common.h.
5896         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5897         * modules/futimens-tests (configure.ac): Likewise.
5898         * modules/utimens-tests (configure.ac): Likewise.
5899         * modules/utimensat-tests (configure.ac): Likewise.
5900
5901 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5902
5903         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5904         not hash_insert0.
5905         (hash_insert_if_absent): Doc fix.
5906
5907 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5908
5909         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5910
5911 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5912
5913         test-getcwd: disambiguate exit status
5914         * tests/test-getcwd.c (test_long_name): Return 0..7.
5915         (main): Exit with an unambiguous exit status.  The old
5916         code yielded a mysterious mixture of two failure codes.
5917
5918         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5919         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5920         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5921         rpl_fstatat or fstatat.  This should fix the other problem
5922         reported by Kai Habel in
5923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5924         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5926         and I reproduced it on a Solaris 8 host we still have in production.
5927
5928 2011-11-18  Jim Meyering  <meyering@redhat.com>
5929
5930         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5931         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5932         Add a sentence to the comment.
5933         (hash_insert0): New function that simply calls hash_insert_if_absent.
5934         * lib/hash.h (hash_insert_if_absent): Declare it.
5935         (hash_insert0): Add deprecation attribute.
5936         (_GL_ATTRIBUTE_DEPRECATED): Define.
5937         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5938         not hash_insert0.
5939         * NEWS: Mention it, even though it's not really an incompatible change.
5940
5941 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5942
5943         openat: avoid compilation failure due to lack of <errno.h> inclusion
5944         * lib/openat.c: Include <errno.h>.
5945
5946 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5947
5948         * modules/getcwd (Depends-on): Add fdopendir.
5949         This fixes one of the two problems reported by Kai Habel in
5950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5951
5952         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5953         stdalign problem reported by Ian Beckwith in
5954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5955         * modules/crypto/gc-arcfour (Depends-on):
5956         Depend conditionally on crypto/arcfour.
5957         * modules/crypto/gc-arctwo (Depends-on):
5958         Depend conditionally on crypto/arctwo.
5959         * modules/crypto/gc-des (Depends-on):
5960         Depend conditionally on crypto/des.
5961         * modules/crypto/gc-hmac-md5 (Depends-on):
5962         Depend conditionally on crypto/hmac-md5.
5963         * modules/crypto/gc-hmac-sha1 (Depends-on):
5964         Depend conditionally on crypto/hmac-sha1.
5965         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5966         * modules/crypto/gc-md4 (Depends-on):
5967         Depend conditionally on crypto/md4.
5968         * modules/crypto/gc-md5 (Depends-on):
5969         Depend conditionally on crypto/md5.
5970         * modules/crypto/gc-rijndael (Depends-on):
5971         Depend conditionally on crypto/rijndael.
5972         * modules/crypto/gc-sha1 (Depends-on):
5973         Depend conditionally on crypto/sha1.
5974         * modules/crypto/gc-arcfour:
5975         * modules/crypto/gc-arctwo:
5976         * modules/crypto/gc-des:
5977         * modules/crypto/gc-hmac-md5:
5978         * modules/crypto/gc-hmac-sha1:
5979         * modules/crypto/gc-md2:
5980         * modules/crypto/gc-md4:
5981         * modules/crypto/gc-md5:
5982         * modules/crypto/gc-rijndael:
5983         * modules/crypto/gc-sha1:
5984         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5985         now that the conditional dependencies do the work for us.
5986
5987 2011-11-17  Jim Meyering  <meyering@redhat.com>
5988
5989         tests: factor st_ctime-comparison out of two headers
5990         * tests/test-utimens-common.h (ctime_compare): Define.
5991         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5992         * tests/test-lutimens.h (test_lutimens): Likewise.
5993         * tests/test-utimens.h (test_utimens): Likewise.
5994
5995         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5996         Invoke the test program via an init.sh-using wrapper.
5997         * tests/test-getcwd.sh: New file.
5998         * modules/getcwd-tests (Files): Add it.
5999         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6000
6001 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6002
6003         gitlog-to-changelog: support multi-author commits.
6004         The FSF cares about keeping track of all authors of patches to its
6005         projects, but Git doesn't provide obvious support for multi-author
6006         changesets. Consensus seems to be forming around the use of extra
6007         Signed-off-by inspired lines in the log message formatted as
6008         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6009         multi-author commits between version control systems.
6010         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6011         log message and output in standard ChangeLog multi-author format.
6012         Reported by Peter Rosin <peda@lysator.liu.se>
6013
6014 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6015             Bruno Haible  <bruno@clisp.org>
6016
6017         Fix some modules' file list.
6018         * modules/fstatat (Files): Add m4/lstat.m4.
6019         * modules/openat (Files): Likewise.
6020         * modules/unlinkat (Files): Likewise.
6021
6022 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6023
6024         maint.mk: fix tight-scope.mk generation in VPATH builds.
6025         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6026         reference with $(srcdir) so that the file is found correctly even
6027         when running `make syntax-check' in a VPATH build.
6028
6029 2011-11-13  Bruno Haible  <bruno@clisp.org>
6030             Jim Meyering  <meyering@redhat.com>
6031
6032         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6033         * tests/init.sh (compare): Remove "No differences encountered" or
6034         synonymous output from the 'diff' program.
6035
6036 2011-11-13  Bruno Haible  <bruno@clisp.org>
6037
6038         Makefile: Tweak indentation.
6039         * Makefile: Use tab as first character in every line that contains rule
6040         commands.
6041
6042 2011-11-13  Bruno Haible  <bruno@clisp.org>
6043
6044         Syntax check for copyright statements.
6045         * check-copyright: New file.
6046         * Makefile (sc_check_copyright): New rule.
6047
6048 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6049
6050         * build-aux/git-version-gen: Add --prefix to configure the tag
6051         match string.
6052
6053 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6054
6055         * build-aux/git-version-gen: Add --help and --version.
6056
6057 2011-11-12  Jim Meyering  <meyering@redhat.com>
6058
6059         revamp the other test-exclude?.sh scripts to use init.sh, too
6060         * tests/test-exclude1.sh: Use init.sh.
6061         * tests/test-exclude2.sh: Likewise.
6062         * tests/test-exclude3.sh: Likewise.
6063         * tests/test-exclude4.sh: Likewise.
6064         * tests/test-exclude5.sh: Likewise.
6065         * tests/test-exclude6.sh: Likewise.
6066         * tests/test-exclude7.sh: Likewise.
6067         * tests/test-exclude8.sh: Likewise.
6068         * modules/exclude-tests (Files): List init.sh.
6069
6070         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6071         These shell scripts ignored failure of the binary test-exclude,
6072         so making the latter return 77 didn't cause them to be skipped.
6073         * tests/test-exclude5.sh: Exit with test-exclude's error status
6074         when that program fails.  Revamp to use init.sh.
6075         * tests/test-exclude2.sh: Likewise.
6076
6077         test-exclude: fix a typo
6078         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6079
6080 2011-11-11  Bruno Haible  <bruno@clisp.org>
6081
6082         obstack: Fix compilation error on MSVC 9.
6083         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6084
6085 2011-11-11  Jim Meyering  <meyering@redhat.com>
6086
6087         test-exclude: skip tests rather than failing on deficient systems
6088         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6089         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6090         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6091         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6092
6093 2011-11-10  Bruno Haible  <bruno@clisp.org>
6094
6095         ptsname_r test: Avoid gcc warning on glibc systems.
6096         * tests/test-ptsname_r.c (null_ptr): New function.
6097         (test_errors): Use it.
6098
6099 2011-11-10  Bruno Haible  <bruno@clisp.org>
6100
6101         ptsname_r: Avoid compilation error on OSF/1 5.1.
6102         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6104         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6105         function is not declared or incompatibly declared.
6106         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6107         * modules/ptsname_r (Depends-on, configure.ac): Update.
6108         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6109
6110 2011-11-10  Bruno Haible  <bruno@clisp.org>
6111
6112         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6113         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6114         When cross-compiling, guess yes on all platforms except AIX.
6115         Reported by Ludovic Courtès <ludo@gnu.org>.
6116
6117 2011-11-09  Bruno Haible  <bruno@clisp.org>
6118
6119         ptsname_r tests: Fix bugs.
6120         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6121         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6122
6123 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6124
6125         fstatat: work with cross-compilation
6126         Problem reported by Ludovic Courtès in
6127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6128         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6129         "cross-compiling" and assume the bug is present.  Replace
6130         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6131         an inverted sense, to be more conservative about our assumptions.
6132         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6133
6134 2011-11-09  Bruno Haible  <bruno@clisp.org>
6135
6136         Improve MODULES.html output.
6137         * modules/mkfifoat (Description): Use the word "function".
6138         * modules/readlinkat (Description): Likewise.
6139         * modules/symlinkat (Description): Likewise.
6140
6141 2011-11-09  Eric Blake  <eblake@redhat.com>
6142
6143         ptsname_r-tests: new test module
6144         * modules/ptsname_r-tests: New module.
6145         * tests/test-ptsname_r.c: New file.
6146
6147         ptsname_r: new module
6148         * modules/ptsname_r: New module.
6149         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6150         * lib/ptsname.c (__ptsname_r): Split...
6151         * lib/ptsname_r.c: ...into new file.
6152         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6153         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6154         * modules/stdlib (Makefile.am): Substitute witnesses.
6155         * lib/stdlib.in.h (ptsname_r): Declare it.
6156         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6157         * MODULES.html.sh (Misc): Likewise.
6158         * modules/ptsname (Depends-on): Alter dependency.
6159         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6160
6161 2011-11-09  Jim Meyering  <meyering@redhat.com>
6162
6163         announce-gen: be more concise when there's only one URL+tarball
6164         * build-aux/announce-gen (get_tool_versions): When you distribute
6165         only one type of tarball, combine the first two "Here are..."
6166         sections and make the key-checking grammar independent of
6167         how many tarballs there are.
6168
6169 2011-11-09  Eric Blake  <eblake@redhat.com>
6170
6171         openpty: provide a stub on mingw
6172         * lib/pty.in.h (includes): Provide forward declarations.
6173         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6174
6175         raise: fix mingw handling of SIGPIPE
6176         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6177
6178 2011-11-08  Bruno Haible  <bruno@clisp.org>
6179
6180         More conditional dependencies.
6181         * modules/faccessat (Depends-on): Add conditions.
6182         * modules/fchmodat (Depends-on): Likewise.
6183         * modules/fchownat (Depends-on): Likewise.
6184         * modules/fstatat (Depends-on): Likewise.
6185         * modules/mkfifoat (Depends-on): Likewise.
6186         * modules/readlinkat (Depends-on): Likewise.
6187         * modules/symlinkat (Depends-on): Likewise.
6188         * modules/unlinkat (Depends-on): Likewise.
6189         * modules/utimensat (Depends-on): Likewise.
6190         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6191         * modules/linkat (Depends-on): Refine the conditions.
6192         * modules/renameat (Depends-on): Likewise.
6193
6194 2011-11-08  Bruno Haible  <bruno@clisp.org>
6195
6196         faccessat: Move AC_LIBOBJ invocation to module description.
6197         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6198         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6199         invocation from here...
6200         * modules/faccessat (configure.ac): ... to here. Invoke
6201         gl_PREREQ_FACCESSAT.
6202
6203 2011-11-08  Bruno Haible  <bruno@clisp.org>
6204
6205         faccessat: Simplify autoconf macro.
6206         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6207         gl_FUNC_EUIDACCESS.
6208
6209 2011-11-08  Bruno Haible  <bruno@clisp.org>
6210
6211         renameat: Fix dependencies.
6212         * modules/renameat (Depends-on): Add stdbool.
6213
6214 2011-11-08  Bruno Haible  <bruno@clisp.org>
6215
6216         mkfifoat: Fix module description.
6217         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6218         not gl_UNISTD_MODULE_INDICATOR.
6219
6220 2011-11-08  Bruno Haible  <bruno@clisp.org>
6221
6222         fstatat: Remove unused dependency.
6223         * modules/fstatat (Depends-on): Remove fstat.
6224
6225 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6226
6227         GNUmakefile: behave when Makefile is missing.
6228         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6229
6230 2011-11-08  Bruno Haible  <bruno@clisp.org>
6231
6232         openat: Conditionalize dependencies.
6233         * lib/openat.c: Reduce the scope of some #includes.
6234         * modules/openat (Depends-on): Add conditions.
6235
6236 2011-11-07  Jim Meyering  <meyering@redhat.com>
6237
6238         maint.mk: extract GPG key ID without using a temporary file
6239         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6240         without using a temporary file.  Based on a suggestion from Werner Koch
6241         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6242
6243 2011-11-07  Eric Blake  <eblake@redhat.com>
6244
6245         grantpt: fix typo
6246         * lib/stdlib.in.h (grantpt): Check correct function.
6247
6248         maint.mk: silence new syntax check
6249         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6250
6251 2011-11-06  Bruno Haible  <bruno@clisp.org>
6252
6253         Doc about floating-point and math API.
6254         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6255         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6256
6257 2011-11-06  Bruno Haible  <bruno@clisp.org>
6258
6259         stdalign tests: Skip the test when compiled by Sun C.
6260         * tests/test-stdalign.c (main): Skip the test on Sun C.
6261
6262 2011-11-06  Bruno Haible  <bruno@clisp.org>
6263
6264         ansi-c++-opt: Complete the 2011-06-05 change.
6265         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6266         does not support namespaces, set the variable to "no", not to ":".
6267
6268 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6269
6270         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6271
6272 2011-11-06  Bruno Haible  <bruno@clisp.org>
6273
6274         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6275         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6276         (minus_zerol) [HP-UX]: New macro.
6277         (unary_minus) [HP-UX]: New function.
6278         (copysignl) [HP-UX]: Use unary_minus function.
6279
6280 2011-11-06  Bruno Haible  <bruno@clisp.org>
6281
6282         ldexp, ldexpf, ldexpl: Enhance tests.
6283         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6284         and tests/test-ldexpl.c.
6285         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6286         LDEXP, MIN_EXP, MAX_EXP): New macros.
6287         Include test-ldexp.h.
6288         (main): Just call test_function.
6289         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6290         infinity.h, nan.h.
6291         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6292         MAX_EXP): New macros.
6293         Include test-ldexp.h.
6294         (x, y): Remove variables.
6295         (main): Just call test_function.
6296         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6297         infinity.h, nan.h.
6298         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6299         MAX_EXP): New macros.
6300         Include test-ldexp.h.
6301         (x, y): Remove variables.
6302         (main): Just call test_function.
6303         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6304         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6305         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6306         (Depends-on): Add isnand-nolibm, signbit, float.
6307         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6308         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6309         (Depends-on): Add isnanf-nolibm, signbit, float.
6310
6311 2011-11-06  Bruno Haible  <bruno@clisp.org>
6312
6313         math tests: Cosmetics.
6314         * tests/test-math-c++.cc: Reorder declarations.
6315
6316 2011-11-05  Bruno Haible  <bruno@clisp.org>
6317
6318         fma*: Simplify test.
6319         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6320         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6321
6322         Tests for module 'fmal'.
6323         * modules/fmal-tests: New file.
6324         * tests/test-fmal1.c: New file.
6325         * tests/test-fmal2.c: New file.
6326
6327         New module 'fmal'.
6328         * lib/math.in.h (fmal): New declaration.
6329         * lib/fmal.c: New file.
6330         * m4/fmal.m4: New file.
6331         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6333         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6334         REPLACE_FMAL.
6335         * modules/fmal: New file.
6336         * doc/posix-functions/fmal.texi: Mention the new module and the various
6337         bugs.
6338
6339         Tests for module 'fmaf'.
6340         * modules/fmaf-tests: New file.
6341         * tests/test-fmaf1.c: New file.
6342         * tests/test-fmaf2.c: New file.
6343
6344         New module 'fmaf'.
6345         * lib/math.in.h (fmaf): New declaration.
6346         * lib/fmaf.c: New file.
6347         * m4/fmaf.m4: New file.
6348         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6350         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6351         REPLACE_FMAF.
6352         * modules/fmaf: New file.
6353         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6354         bugs.
6355
6356         Tests for module 'fma'.
6357         * modules/fma-tests: New file.
6358         * tests/test-fma1.c: New file.
6359         * tests/test-fma1.h: New file.
6360         * tests/test-fma2.c: New file.
6361         * tests/test-fma2.h: New file.
6362
6363         New module 'fma'.
6364         * lib/math.in.h (fma): New declaration.
6365         * lib/fma.c: New file.
6366         * m4/fma.m4: New file.
6367         * m4/fegetround.m4: New file.
6368         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6370         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6371         REPLACE_FMA.
6372         * modules/fma: New file.
6373         * doc/posix-functions/fma.texi: Mention the new module and the various
6374         bugs.
6375
6376         Extend gl_MATHFUNC.
6377         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6378         Support 'void' as argument type.
6379         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6380
6381 2011-11-05  Jim Meyering  <meyering@redhat.com>
6382
6383         maint.mk: also prohibit inclusion of dirent.h without use
6384         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6385
6386 2011-11-05  Bruno Haible  <bruno@clisp.org>
6387
6388         ldexpl tests: Avoid test failure on MSVC 9.
6389         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6390         value. Needed in order to enforce the conversion from a value greater
6391         than LDBL_MAX to Infinity.
6392
6393 2011-11-05  Bruno Haible  <bruno@clisp.org>
6394
6395         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6396         * modules/at-internal: New file, extracted from modules/openat.
6397         * modules/openat-h: New file.
6398         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6399         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6400         * modules/openat (Description): Add reference to POSIX function.
6401         (Files): Remove lib/openat.h, lib/openat-proc.c.
6402         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6403         intprops, unistd.
6404         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6405         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6406         gl_FCNTL_MODULE_INDICATOR.
6407         (Include): Remove unistd.h, openat.h.
6408         * modules/areadlinkat (Files): Add lib/at-func.c.
6409         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6410         openat-die, openat-h, save-cwd.
6411         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6412         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6413         openat-die, openat-h, save-cwd, unistd.
6414         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6415         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6416         openat-h, save-cwd. Remove fcntl-h, openat.
6417         * modules/fchmodat (Files): Remove lib/openat.h.
6418         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6419         openat, stdbool, unistd.
6420         * modules/fchownat (Files): Remove lib/openat.h.
6421         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6422         openat, stdbool, sys_stat.
6423         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6424         lib/openat-proc.c.
6425         (Depends-on): Add at-internal.
6426         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6427         * modules/fstatat (Files): Remove lib/openat.h.
6428         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6429         stdbool, unistd.
6430         * modules/fts (Depends-on): Add openat-h.
6431         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6432         openat.
6433         * modules/mkdirat (Files): Remove lib/openat.h.
6434         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6435         openat, stdbool, sys_stat.
6436         * modules/mkfifoat (Files): Add lib/at-func.c.
6437         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6438         openat-h, save-cwd. Remove fcntl-h, openat.
6439         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6440         * modules/readlinkat (Files): Add lib/at-func.c.
6441         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6442         openat-h, save-cwd. Remove fcntl-h, openat.
6443         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6444         openat.
6445         * modules/selinux-at (Files): Add lib/at-func.c.
6446         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6447         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6448         * modules/symlinkat (Files): Add lib/at-func.c.
6449         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6450         openat-h, save-cwd. Remove fcntl-h, openat.
6451         * modules/unlinkat (Files): Remove lib/openat.h.
6452         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6453         stdbool.
6454         * modules/utimensat (Files): Add lib/at-func.c.
6455         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6456         openat-die, openat-h, save-cwd.
6457         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6458         * modules/fdutimensat-tests (Depends-on): Add openat.
6459         * modules/fstatat-tests (Depends-on): Add openat-h.
6460         * modules/readlinkat-tests (Depends-on): Add openat.
6461         * modules/symlinkat-tests (Depends-on): Add openat.
6462
6463 2011-11-05  Bruno Haible  <bruno@clisp.org>
6464
6465         openat: Include <stdbool.h>.
6466         * lib/openat.c: Include <stdbool.h>.
6467
6468 2011-11-04  Bruno Haible  <bruno@clisp.org>
6469
6470         fchownat, renameat, unlinkat: Fix dependencies.
6471         * modules/fchownat (Depends-on): Add fstatat.
6472         * modules/renameat (Depends-on): Likewise.
6473         * modules/unlinkat (Depends-on): Likewise.
6474
6475 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6476
6477         openat: remove direct dependency on dirent
6478         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6479         and hasn't been needed ever since fdopendir was split into its own
6480         module on 2009-08-31.
6481         * modules/openat (Depends-on): Remove dirent.
6482
6483 2011-11-04  Bruno Haible  <bruno@clisp.org>
6484
6485         renameat: Optimize code size.
6486         * modules/renameat (configure.ac): Don't compile at-func2.c if
6487         REPLACE_RENAMEAT is 1.
6488
6489 2011-11-04  Bruno Haible  <bruno@clisp.org>
6490
6491         openat tests: Fix file list.
6492         * modules/openat-tests (Files): Add tests/test-open.h.
6493
6494 2011-11-04  Bruno Haible  <bruno@clisp.org>
6495
6496         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6497         * modules/fchmodat (Depends-on): Add openat-die.
6498         * modules/fchownat (Depends-on): Likewise.
6499         * modules/linkat (Depends-on): Likewise.
6500         * modules/renameat (Depends-on): Likewise.
6501         * modules/openat (Depends-on): Add dirent.
6502
6503 2011-11-04  Jim Meyering  <meyering@redhat.com>
6504
6505         at-func*.c: fix comments
6506         * lib/at-func2.c: Correct/improve first-line comment.
6507         * lib/at-func.c: Correct grammar in first-line comment.
6508
6509 2011-11-04  Bruno Haible  <bruno@clisp.org>
6510
6511         New module 'mkdirat', split off from module 'openat'.
6512         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6513         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6514         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6515         * modules/mkdirat: New file, extracted from modules/openat.
6516         * modules/openat (Files): Remove lib/mkdirat.c.
6517         (Depends-on): Remove mkdir.
6518         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6519         (Include): Remove <sys/stat.h>.
6520         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6521         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6522         tests/test-mkdir.h.
6523         (Depends-on): Remove ignore-value.
6524         (Makefile.am): Remove rules for test-mkdirat.
6525         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6526         of module 'openat'.
6527         * NEWS: Mention the change.
6528
6529 2011-11-04  Bruno Haible  <bruno@clisp.org>
6530
6531         closedir: Avoid warning on mingw.
6532         * lib/closedir.c: Include <unistd.h>.
6533
6534 2011-11-04  Bruno Haible  <bruno@clisp.org>
6535
6536         New module 'fstatat', split off from module 'openat'.
6537         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6538         defined.
6539         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6540         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6541         gl_FUNC_FSTATAT.
6542         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6543         * modules/fstatat: New file, extracted from modules/openat.
6544         * modules/openat (Files): Remove lib/fstatat.c.
6545         (Depends-on): Remove lstat.
6546         (configure.ac): Remove AC_LIBOBJ of fstatat.
6547         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6548         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6549         tests/test-lstat.h, tests/test-stat.h.
6550         (Depends-on): Remove getcwd-lgpl.
6551         (Makefile.am): Remove rules for test-fstatat.
6552         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6553         of module 'openat'.
6554         * NEWS: Mention the change.
6555         * modules/getcwd (Depends-on): Add fstatat.
6556         * modules/linkat (Depends-on): Likewise.
6557         * modules/mkfifoat-tests (Depends-on): Likewise.
6558         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6559
6560 2011-11-03  Bruno Haible  <bruno@clisp.org>
6561
6562         New module 'unlinkat', split off from module 'openat'.
6563         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6564         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6565         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6566         * modules/unlinkat: New file, extracted from modules/openat. Correct
6567         the dependency conditions.
6568         * modules/openat (Files): Remove lib/unlinkat.c.
6569         (Depends-on): Remove rmdir, unlink.
6570         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6571         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6572         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6573         tests/test-rmdir.h, tests/test-unlink.h.
6574         (Depends-on): Remove unlinkdir.
6575         (Makefile.am): Remove rules for test-unlinkat.
6576         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6577         of module 'openat'.
6578         * NEWS: Mention the change.
6579         * modules/linkat-tests (Depends-on): Add unlinkat.
6580         * modules/mkfifoat-tests (Depends-on): Likewise.
6581         * modules/readlinkat-tests (Depends-on): Likewise.
6582
6583 2011-11-02  Bruno Haible  <bruno@clisp.org>
6584
6585         New module 'fchmodat', split off from module 'openat'.
6586         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6587         defined.
6588         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6589         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6590         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6591         * modules/fchmodat: New file, extracted from modules/openat.
6592         * modules/openat (Files): Remove lib/fchmodat.c.
6593         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6594         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6595         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6596         (Makefile.am): Remove rules for test-fchmodat.
6597         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6598         of module 'openat'.
6599         * NEWS: Mention the change.
6600
6601 2011-11-02  Jim Meyering  <meyering@redhat.com>
6602
6603         putenv: indent #definition of "environ" to placate cppi
6604         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6605
6606         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6607         Git logs are often treated as immutable, because editing them
6608         changes the SHA1 checksums of all descendants.  Thus, errors in
6609         git logs tend to stay there forever.  However, when we generate
6610         a ChangeLog file -- typically for distribution -- from that git log,
6611         we can actually make corrections in the generated file.  The key
6612         lies in recording in machine-readable/applicable form the desired
6613         corrections.  See --help for description and an example.
6614         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6615         (usage): Describe it; alphabetize option descriptions.
6616         (main): Honor the new option, carefully.
6617
6618 2011-11-01  Jim Meyering  <meyering@redhat.com>
6619
6620         gitlog-to-changelog: avoid an infloop
6621         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6622         that ends up being empty.
6623
6624 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6625
6626         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6627         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6628         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6629         contains (possibly-quoted) backslashes.  This should avoid
6630         all-too-common shell bugs if COMPLICATED contains backslashes in
6631         the "wrong" places.  Reported by David Evans in
6632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6633         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6634         because we want ASCII ranges.  Is there some reason we don't use
6635         the C locale everywhere in this script?
6636         (func_module, top level): Avoid unwanted pathname expansion when
6637         $repo_url_prefix or $repo_url_suffix_repl contain shell
6638         metacharacters like '?' and '*'.
6639
6640 2011-11-01  Bruno Haible  <bruno@clisp.org>
6641
6642         fchownat: Improve description.
6643         * modules/fchownat (Description): Add link to function.
6644
6645 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6646
6647         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6648         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6650         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6651
6652 2011-11-01  Bruno Haible  <bruno@clisp.org>
6653
6654         alignof: Avoid collision with stdalign module.
6655         * lib/alignof.h (alignof): Remove macro.
6656         * NEWS: Mention the change.
6657         Reported by Paul Eggert.
6658
6659 2011-11-01  Bruno Haible  <bruno@clisp.org>
6660
6661         New module 'fchownat', split off from module 'openat'.
6662         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6663         defined.
6664         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6665         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6666         invoke gl_FUNC_FCHOWNAT.
6667         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6668         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6669         * modules/fchownat: New file, extracted from modules/openat.
6670         * modules/openat (Files): Remove lib/fchownat.c.
6671         (Depends-on): Remove lchown.
6672         (configure.ac): Remove AC_LIBOBJ of fchownat.
6673         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6674         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6675         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6676         (Depends-on): Remove mgetgroups, usleep, stat-time.
6677         (configure.ac): Remove test for getegid.
6678         (Makefile.am): Remove rules for test-fchownat.
6679         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6680         of module 'openat'.
6681         * NEWS: Mention the change.
6682
6683 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6684
6685         stdalign: port better to MSVC and to Sun C 5.11
6686         This fixes some of the problems reported by Bruno Haible in
6687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6688         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6689         shortcomings of MSVC and of Sun C 5.11.
6690         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6691         around __declspec arg.
6692         * modules/stdalign-tests (Files): Add tests/macros.h.
6693         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6694         Include macros.h, for ASSERT.
6695         (DECLARE_ALIGNED): Remove.
6696         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6697         to catch bug), and to 1 if not (simplifies the rest of the code).
6698         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6699         (CHECK_AUTO): Remove.
6700         (CHECK_ALIGNED): Check only the alignment of the static vars,
6701         since auto var alignment isn't supported by Sun C 5.11.
6702         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6703         ASSERT failures are easier to diagnose.
6704
6705 2011-10-31  Bruno Haible  <bruno@clisp.org>
6706
6707         doc about some IRIX 5.3 problems.
6708         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6709         on IRIX 5.3.
6710         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6711         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6712         5.3.
6713         * doc/posix-functions/grantpt.texi: Likewise.
6714         * doc/posix-functions/unlockpt.texi: Likewise.
6715         * doc/posix-functions/lgamma.texi: Likewise.
6716         * doc/posix-functions/nextafter.texi: Likewise.
6717         * doc/posix-functions/remainder.texi: Likewise.
6718         * doc/posix-functions/select.texi: Mention misplaced declaration on
6719         IRIX 5.3.
6720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6721
6722 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6723
6724         gitlog-to-changelog: fix git-log invocation.
6725         git-log mishandles date strings before 1970-01-01 UTC, and there is
6726         no use to specify --since=1970-01-01 by default anyway.
6727         * build-aux/gitlog-to-changelog: By default, when no --since option
6728         was given, do not specify explicit --since option to git-log.
6729
6730 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6731
6732         gitlog-to-changelog: new option --append-dot.
6733         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6734         first non-blank line of each commit message terminated with a dot.
6735
6736 2011-10-30  Bruno Haible  <bruno@clisp.org>
6737
6738         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6739         * lib/ffsl.h: Include <config.h>.
6740         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6741
6742 2011-10-30  Jim Meyering  <meyering@redhat.com>
6743
6744         GNUmakefile: reenable "make syntax-check" for most projects
6745         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6746         build-aux variable", "syntax-check" would do nothing but succeed with
6747         the "No version control files detected..." diagnostic (unless you
6748         happened to override _build-aux via cfg.mk).
6749         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6750         to precede inclusion of maint.mk.  Otherwise, these variables would
6751         be used undefined in any project that does not override the default.
6752
6753 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6754
6755         gitlog-to-changelog: treat a message with only blank lines as empty.
6756         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6757         trailing blank lines before the code that issues a warning about an
6758         empty commit message.
6759
6760 2011-10-30  Jim Meyering  <meyering@redhat.com>
6761
6762         test-parse-datetime.c: avoid new DST-related false positive test failure
6763         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6764         based on the time/date we'll convert, not the current time.
6765         Otherwise, the moment we cross a DST boundary like today's in
6766         Europe, (CEST to CET), that offset ends up being one hour off.
6767
6768 2011-10-27  Bruno Haible  <bruno@clisp.org>
6769
6770         fstat: Tweak documentation.
6771         * modules/fstat (Description): More precise description.
6772
6773 2011-10-27  Bruno Haible  <bruno@clisp.org>
6774
6775         Update documentation regarding 'largefile' module.
6776         * doc/posix-functions/fstat.texi: Tweak wording.
6777         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6778         problems with huge directories and/or small ino_t types.
6779         * doc/posix-functions/readdir.texi: Likewise.
6780         * doc/posix-functions/rewinddir.texi: Likewise.
6781
6782 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6783
6784         maint.mk: don't maintain a second build-aux variable.
6785         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6786         depends on GNUmakefile, which already maintains a cfg.mk
6787         overridable $(_build-aux) for projects with a non-standard
6788         build-aux directory location, although without the $(srcdir)
6789         prefix.  Use that variable consistently instead of introducing a
6790         second one.  Adjust all call sites.
6791
6792 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6793
6794         Add stdalign module and use it in other modules.
6795         This is based on a previous proposal by Bruno Haible
6796         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6797
6798         stdalign: new module
6799         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6800         * modules/stdalign: New files.
6801         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6802         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6803
6804         stdalign-tests: new module
6805         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6806
6807         argp: use stdalign
6808         * lib/argp-parse.c: Include <stdalign.h>.
6809         (alignof): Remove.
6810         * modules/argp (Depends-on): Add stdalign.
6811
6812         crypto libraries: use stdalign
6813         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6814         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6815         Do not include <stdlib.h> twice, in md4.c.
6816         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6817         because we are accessing a pointer's bit-pattern, not a size.
6818         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6819         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6820         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6821         * modules/crypto/sha512: Likewise.
6822
6823         sys_socket: use stdalign, not alignof
6824         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6825         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6826
6827 2011-10-27  Bruno Haible  <bruno@clisp.org>
6828
6829         raise test: Avoid a test failure on Linux/MIPS.
6830         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6831         because 99 is a valid signal on Linux/MIPS.
6832
6833 2011-10-27  Bruno Haible  <bruno@clisp.org>
6834
6835         nonblocking tests: Fix test failure on Linux/MIPS.
6836         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6837         Set to 270000.
6838
6839 2011-10-27  Bruno Haible  <bruno@clisp.org>
6840
6841         utimensat: Work around problem on Linux/hppa.
6842         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6843         values.
6844         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6845
6846 2011-10-25  Jim Meyering  <meyering@redhat.com>
6847
6848         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6849         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6850         after symbols like NULL, size_t, etc.
6851         Reported by Alfred M. Szmidt.
6852
6853         maint.mk: exempt ENODATA from a syntax-check rule
6854         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6855         from the sc_prohibit_always-defined_macros syntax-check rule.
6856         Add a comment.  See this for more details:
6857         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6858
6859 2011-10-23  Jim Meyering  <meyering@redhat.com>
6860
6861         fts: close parent dir FD before returning from post-traversal fts_read
6862         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6863         unlink A, even though an FD open on A remained.  This is suboptimal
6864         (holding a file descriptor open longer than needed), but otherwise not
6865         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6866         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6867         that represents a real problem: it causes the removal of A to fail
6868         with e.g., "rm: cannot remove `A': Device or resource busy"
6869
6870         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6871         directory file descriptors.  After completing the final, FTS_DP,
6872         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6873         cache, but then proceeded to add a new FD to it via the subsequent
6874         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6875         final file descriptor would be closed only via fts_close's call to
6876         fd_ring_clear.  Now, it is usually closed earlier, via the final
6877         FTS_DP-returning fts_read call.
6878         * lib/fts.c (restore_initial_cwd): New function, converted from
6879         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6880         Update callers.
6881         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6882         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6883
6884 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6885             Bruno Haible  <bruno@clisp.org>
6886             Jim Meyering  <jim@meyering.net>
6887
6888         readme-release: improve safety of release prep instructions.
6889         * README-release: Don't git pull all branches when only master
6890         is needed for the release process.
6891         Run make maintainer-clean before changing trees and merging.
6892         Don't try to run ./configure right after git pull in case files
6893         that influence the bootstrap process have changed, move the
6894         ./configure step to after running ./bootstrap.
6895         Don't bootstrap "one last time"... it's the first time!
6896
6897 2011-10-22  Bruno Haible  <bruno@clisp.org>
6898
6899         errno, strerror-override: Support for MSVC 10.
6900         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6901         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6902         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6903         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6904         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6905         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6906         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6907         Assign values compatible with MSVC 10.
6908         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6909         New macros.
6910         (GNULIB_defined_EWINSOCK): New macro.
6911         * lib/strerror-override.c (strerror_override): Update accordingly.
6912         * lib/strerror-override.h: Likewise.
6913         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6914         longer equal to the corresponding errno value.
6915         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6916
6917 2011-10-22  Bruno Haible  <bruno@clisp.org>
6918
6919         perror: Recognize when test program crashes.
6920         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6921         strerror, set gl_cv_func_perror_works to no.
6922         Reported by Daniel Richard G. <skunk@iskunk.org>.
6923
6924         perror: Fix indentation.
6925         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6926
6927 2011-10-22  Bruno Haible  <bruno@clisp.org>
6928
6929         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6930         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6931         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6932         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6933         functions, not as a macro.
6934         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6935         macros.
6936         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6937         absence of macro.
6938         Suggested by Eric Blake.
6939         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6940
6941 2011-10-21  Bruno Haible  <bruno@clisp.org>
6942
6943         relocatable-prog-wrapper: Don't leave object files behind.
6944         * build-aux/install-reloc: Re-synchronize list of .o files to be
6945         removed with list of compilation units.
6946
6947 2011-10-20  Bruno Haible  <bruno@clisp.org>
6948
6949         openpty, posix_openpt: Remove code duplication.
6950         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6951         * lib/openpty.c: Include <stdlib.h>.
6952         (openpty): Use posix_openpt on all platforms except IRIX.
6953         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6954
6955 2011-10-20  Bruno Haible  <bruno@clisp.org>
6956
6957         unlockpt: Detect invalid argument.
6958         * lib/unlockpt.c: Include <fcntl.h>.
6959         (unlockpt): Check whether fd is valid, using fcntl().
6960         * modules/unlockpt (Depends-on): Add fcntl-h.
6961
6962 2011-10-20  Bruno Haible  <bruno@clisp.org>
6963
6964         openpty: Avoid compilation error on AIX 6.1.
6965         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6966
6967 2011-10-20  Bruno Haible  <bruno@clisp.org>
6968
6969         posix_openpt: Support for OpenBSD.
6970         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6971         (posix_openpt) [OpenBSD]: New code.
6972         * lib/grantpt.c: Include <fcntl.h>.
6973         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6974         * modules/grantpt (Depends-on): Add fcntl-h.
6975
6976 2011-10-20  Bruno Haible  <bruno@clisp.org>
6977
6978         posix_openpt test: Coding style.
6979         * tests/test-posix_openpt.c: Use GNU coding style.
6980
6981 2011-10-20  Bruno Haible  <bruno@clisp.org>
6982
6983         grantpt: Support --avoid=pt_chown.
6984         * modules/grantpt (Files): Add lib/pty-private.h.
6985
6986 2011-10-20  Bruno Haible  <bruno@clisp.org>
6987
6988         posix_openpt: Fix autoconf macro.
6989         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6990         unneeded check for _getpty.
6991
6992 2011-10-20  Bruno Haible  <bruno@clisp.org>
6993
6994         openpty: Update comments.
6995         * lib/openpty.c: Add comments about Minix.
6996
6997 2011-10-19  Eric Blake  <eblake@redhat.com>
6998
6999         openpty: relax license
7000         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7001
7002         pt_chown: use configmake to simplify build
7003         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7004
7005         ptsname and others: relax license
7006         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7007         * modules/unlockpt (License): Likewise.
7008         * modules/pt_chown (License): Likewise.
7009         * modules/ptsname (License): Likewise.
7010         * modules/ttyname_r (License): Likewise.
7011
7012 2011-10-19  Jim Meyering  <meyering@redhat.com>
7013
7014         posix_openpt: remove spurious #endif
7015         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7016
7017 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7018
7019         maint.mk: Respect $(build_aux) in web-manual rule.
7020         * top/maint.mk (web-manual): Find gen-announce script in user's
7021         $(build_aux) directory instead of hard-coding 'build-aux'.
7022
7023 2011-10-19  Bruno Haible  <bruno@clisp.org>
7024
7025         posix_openpt: Fix compilation error.
7026         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7027         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7028         Mention the openpty module as an alternative.
7029
7030 2011-10-19  Bruno Haible  <bruno@clisp.org>
7031
7032         Support for old NeXTstep 3.3 frexp().
7033         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7034         execution time of the test to 5 seconds.
7035         Reported by Daniel Richard G. <skunk@iskunk.org>.
7036
7037 2011-10-19  Bruno Haible  <bruno@clisp.org>
7038
7039         Support for old NeXTstep 3.3 sed.
7040         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7041         part, use /.../, not \|...|. Escape periods in the header file name.
7042         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7043         Reported by Daniel Richard G. <skunk@iskunk.org>.
7044
7045 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7046
7047         Support for old NeXTstep 3.3 gcc.
7048         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7049         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7050         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7051         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7052         * lib/regex.h (_Restrict_arr_): Likewise.
7053         * lib/regex_internal.h (re_token_t): Likewise.
7054         * lib/regexec.c (check_node_accept_bytes): Likewise.
7055         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7056
7057 2011-10-18  Eric Blake  <eblake@redhat.com>
7058
7059         posix_openpt: new module
7060         * modules/posix_openpt: New module.
7061         * m4/posix_openpt.m4: New file.
7062         * lib/posix_openpt.c: Likewise.
7063         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7064         (gl_STDLIB_H_DEFAULTS): Set defaults.
7065         * modules/stdlib (Makefile.am): Substitute macros.
7066         * lib/stdlib.in.h (posix_openpt): Declare.
7067         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7068         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7069         * modules/posix_openpt-tests: New test module.
7070         * tests/test-posix_openpt.c: New test.
7071
7072 2011-10-15  Bruno Haible  <bruno@clisp.org>
7073
7074         xstrtoll: Fix compilation failure.
7075         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7076         from lib/strtol.c.
7077         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7078         some platforms.
7079         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7080
7081 2011-10-15  Bruno Haible  <bruno@clisp.org>
7082
7083         vasnprintf: Optimize bit search operation.
7084         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7086         gl_DOUBLE_EXPONENT_LOCATION.
7087         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7088         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7089         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7090         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7091         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7092         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7093         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7094         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7095         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7096
7097 2011-10-15  Bruno Haible  <bruno@clisp.org>
7098
7099         vasnprintf: Fix comments.
7100         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7101
7102 2011-10-14  Bruno Haible  <bruno@clisp.org>
7103
7104         Tests for module 'integer_length_ll'.
7105         * modules/integer_length_ll-tests: New file.
7106         * tests/test-integer_length_ll.c: New file.
7107
7108         New module 'integer_length_ll'.
7109         * lib/integer_length_ll.c: New file.
7110         * modules/integer_length_ll: New file.
7111
7112 2011-10-14  Bruno Haible  <bruno@clisp.org>
7113
7114         Tests for module 'integer_length_l'.
7115         * modules/integer_length_l-tests: New file.
7116         * tests/test-integer_length_l.c: New file.
7117
7118         New module 'integer_length_l'.
7119         * lib/integer_length_l.c: New file.
7120         * modules/integer_length_l: New file.
7121
7122 2011-10-14  Bruno Haible  <bruno@clisp.org>
7123
7124         Tests for module 'integer_length'.
7125         * modules/integer_length-tests: New file.
7126         * tests/test-integer_length.c: New file.
7127
7128         New module 'integer_length'.
7129         * lib/integer_length.h: New file.
7130         * lib/integer_length.c: New file.
7131         * modules/integer_length: New file.
7132
7133 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7134
7135         popen: Fix dependency conditions.
7136         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7137
7138 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7139
7140         perror: Fix autoconf test.
7141         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7142         <stdlib.h> and <string.h>.
7143
7144 2011-10-14  Bruno Haible  <bruno@clisp.org>
7145
7146         ffsl: Optimize on 64-bit platforms.
7147         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7148         unrolling.
7149
7150 2011-10-13  Bruno Haible  <bruno@clisp.org>
7151
7152         ffsl: Optimize on 32-bit platforms.
7153         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7154         use ffs() without a loop.
7155
7156         ffsl, ffsll: Optimize for GCC.
7157         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7158         * lib/ffsl.c (GCC_BUILTIN): New macro.
7159         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7160
7161 2011-10-13  Bruno Haible  <bruno@clisp.org>
7162
7163         ffs, bcopy, memset: Support symbol renaming via config.h.
7164         * lib/ffs.c: Include <config.h>.
7165         * lib/bcopy.c: Likewise.
7166         * lib/memset.c: Likewise.
7167
7168 2011-10-10  Bruno Haible  <bruno@clisp.org>
7169
7170         atanl: Simplify for platforms where 'long double' == 'double'.
7171         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7172         alternative implementation.
7173         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7174         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7175         * modules/atanl (Depends-on): Add atan. Update conditions.
7176
7177 2011-10-10  Bruno Haible  <bruno@clisp.org>
7178
7179         acosl: Simplify for platforms where 'long double' == 'double'.
7180         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7181         alternative implementation.
7182         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7183         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7184         * modules/acosl (Depends-on): Add acos. Update conditions.
7185
7186 2011-10-10  Bruno Haible  <bruno@clisp.org>
7187
7188         asinl: Simplify for platforms where 'long double' == 'double'.
7189         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7190         alternative implementation.
7191         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7192         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7193         * modules/asinl (Depends-on): Add asin. Update conditions.
7194
7195 2011-10-10  Bruno Haible  <bruno@clisp.org>
7196
7197         tanl: Simplify for platforms where 'long double' == 'double'.
7198         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7199         implementation.
7200         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7201         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7202         * modules/tanl (Depends-on): Add tan. Update conditions.
7203         (configure.ac): Don't compile trigl.c if
7204         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7205
7206 2011-10-10  Bruno Haible  <bruno@clisp.org>
7207
7208         cosl: Simplify for platforms where 'long double' == 'double'.
7209         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7210         implementation.
7211         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7212         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7213         * modules/cosl (Depends-on): Add cos. Update conditions.
7214         (configure.ac): Don't compile sincosl.c and trigl.c if
7215         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7216
7217 2011-10-10  Bruno Haible  <bruno@clisp.org>
7218
7219         sinl: Simplify for platforms where 'long double' == 'double'.
7220         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7221         implementation.
7222         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7223         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7224         * modules/sinl (Depends-on): Add sin. Update conditions.
7225         (configure.ac): Don't compile sincosl.c and trigl.c if
7226         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7227
7228 2011-10-10  Bruno Haible  <bruno@clisp.org>
7229
7230         logl: Simplify for platforms where 'long double' == 'double'.
7231         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7232         implementation.
7233         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7234         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7235         * modules/logl (Depends-on): Add log. Update conditions.
7236
7237 2011-10-10  Bruno Haible  <bruno@clisp.org>
7238
7239         expl: Simplify for platforms where 'long double' == 'double'.
7240         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7241         implementation.
7242         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7243         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7244         * modules/expl (Depends-on): Add exp. Update conditions.
7245
7246 2011-10-10  Bruno Haible  <bruno@clisp.org>
7247
7248         sqrtl: Simplify for platforms where 'long double' == 'double'.
7249         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7250         alternative implementation.
7251         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7252         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7253         * modules/sqrtl (Depends-on): Update conditions.
7254
7255 2011-10-10  Bruno Haible  <bruno@clisp.org>
7256
7257         ldexpl: Simplify for platforms where 'long double' == 'double'.
7258         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7259         alternative implementation.
7260         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7261         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7262         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7263
7264 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7265
7266         ffsll: set correct witness
7267         * modules/ffsll (configure.ac): Fix typo.
7268
7269 2011-10-10  Bruno Haible  <bruno@clisp.org>
7270
7271         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7272         * lib/printf-frexpl.c: Include <config.h>.
7273         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7274         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7275         second time.
7276         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7277         gl_LONG_DOUBLE_VS_DOUBLE.
7278         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7279         conditions.
7280
7281 2011-10-10  Bruno Haible  <bruno@clisp.org>
7282
7283         frexpl: Simplify for platforms where 'long double' == 'double'.
7284         * lib/frexpl.c: Include <config.h>.
7285         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7286         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7287         time.
7288         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7289         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7290         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7291         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7292         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7293         conditions.
7294
7295 2011-10-10  Jim Meyering  <meyering@redhat.com>
7296
7297         test-renameat: don't leave behind a temporary file
7298         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7299           ERROR: files left in build directory after distclean:
7300           ./gltests/test-renameat.too
7301           make[1]: *** [distcleancheck] Error 1
7302         Reported by Tom G. Christensen.
7303
7304 2011-10-09  Bruno Haible  <bruno@clisp.org>
7305
7306         rint: Determine RINT_LIBM correctly on AIX 7.
7307         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7308         directly, not only through a function pointer. Also accept an optional
7309         4th argument with extra code.
7310         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7311         rintf() call by gcc when optimizing.
7312
7313         mathfunc.m4: Refactor.
7314         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7315         m4 variable.
7316
7317 2011-10-09  Bruno Haible  <bruno@clisp.org>
7318
7319         rintl: Simplify for platforms where 'long double' == 'double'.
7320         * lib/rintl.c: Include <config.h>.
7321         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7322         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7323         time.
7324         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7325         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7326         * modules/rintl (Depends-on): Add rint. Update conditions.
7327
7328 2011-10-09  Bruno Haible  <bruno@clisp.org>
7329
7330         roundl: Simplify for platforms where 'long double' == 'double'.
7331         * lib/roundl.c: Include <config.h>.
7332         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7333         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7334         time.
7335         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7336         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7337         * modules/roundl (Depends-on): Add round. Update conditions.
7338
7339 2011-10-09  Bruno Haible  <bruno@clisp.org>
7340
7341         truncl: Simplify for platforms where 'long double' == 'double'.
7342         * lib/truncl.c: Include <config.h>.
7343         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7344         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7345         time.
7346         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7347         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7348         * modules/truncl (Depends-on): Add trunc. Update conditions.
7349
7350 2011-10-09  Bruno Haible  <bruno@clisp.org>
7351
7352         ceill: Simplify for platforms where 'long double' == 'double'.
7353         * lib/ceill.c: Include <config.h>.
7354         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7355         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7356         time.
7357         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7358         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7359         * modules/ceill (Depends-on): Add ceil. Update conditions.
7360
7361 2011-10-09  Bruno Haible  <bruno@clisp.org>
7362
7363         floorl: Simplify for platforms where 'long double' == 'double'.
7364         * lib/floorl.c: Include <config.h>.
7365         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7366         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7367         time.
7368         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7369         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7370         * modules/floorl (Depends-on): Add floor. Update conditions.
7371
7372 2011-10-09  Bruno Haible  <bruno@clisp.org>
7373
7374         rint: Fix ordering constraints.
7375         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7376         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7377         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7378
7379 2011-10-09  Bruno Haible  <bruno@clisp.org>
7380
7381         copysignl: Simplify for platforms where 'long double' == 'double'.
7382         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7383         alternative.
7384         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7385         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7386         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7387
7388 2011-10-09  Bruno Haible  <bruno@clisp.org>
7389
7390         Tests for module 'rintl'.
7391         * modules/rintl-tests: New file.
7392         * tests/test-rintl.c: New file.
7393
7394         New module 'rintl'.
7395         * lib/math.in.h (rintl): New declaration.
7396         * lib/rintl.c: New file.
7397         * m4/rintl.m4: New file.
7398         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7400         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7401         * modules/rintl: New file.
7402         * tests/test-math-c++.cc: Check the declaration of rintl.
7403         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7404         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7405         * doc/posix-functions/rintl.texi: Mention the new module.
7406
7407 2011-10-09  Bruno Haible  <bruno@clisp.org>
7408
7409         Tests for module 'rintf'.
7410         * modules/rintf-tests: New file.
7411         * tests/test-rintf.c: New file.
7412
7413         New module 'rintf'.
7414         * lib/math.in.h (rintf): New declaration.
7415         * lib/rintf.c: New file.
7416         * m4/rintf.m4: New file.
7417         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7419         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7420         * modules/rintf: New file.
7421         * tests/test-math-c++.cc: Check the declaration of rintf.
7422         * doc/posix-functions/rintf.texi: Mention the new module.
7423
7424 2011-10-09  Bruno Haible  <bruno@clisp.org>
7425
7426         rint: Support for MSVC.
7427         * lib/math.in.h (rint): New declaration.
7428         * lib/rint.c: New file.
7429         * m4/rint.m4: New file.
7430         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7432         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7433         * modules/rint (Description): Fix.
7434         (Files): Add lib/rint.c, m4/rint.m4.
7435         (Depends-on): Add math.
7436         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7437         gl_MATH_MODULE_INDICATOR.
7438         * tests/test-math-c++.cc: Check the declaration of rint.
7439         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7440         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7441         * doc/posix-functions/rint.texi: Mention the replacement provided by
7442         the module.
7443
7444         rint tests: More tests.
7445         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7446         minus-zero.h, infinity.h, nan.h.
7447         (main): Skip the test if the current rounding mode is not standard. Add
7448         tests for negative numbers, minus zero, infinity, NaN.
7449         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7450         tests/nan.h.
7451         (Depends-on): Add isnand-nolibm.
7452
7453 2011-10-09  Bruno Haible  <bruno@clisp.org>
7454
7455         Tests for module 'copysignl'.
7456         * modules/copysignl-tests: New file.
7457         * tests/test-copysignl.c: New file.
7458
7459         New module 'copysignl'.
7460         * lib/math.in.h (copysignl): New declaration.
7461         * lib/copysignl.c: New file.
7462         * m4/copysignl.m4: New file.
7463         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7465         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7466         HAVE_COPYSIGNL.
7467         * modules/copysignl: New file.
7468         * tests/test-math-c++.cc: Check the declaration of copysignl.
7469         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7470         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7471         * doc/posix-functions/copysignl.texi: Mention the new module.
7472
7473 2011-10-09  Bruno Haible  <bruno@clisp.org>
7474
7475         Tests for module 'copysignf'.
7476         * modules/copysignf-tests: New file.
7477         * tests/test-copysignf.c: New file.
7478
7479         New module 'copysignf'.
7480         * lib/math.in.h (copysignf): New declaration.
7481         * lib/copysignf.c: New file.
7482         * m4/copysignf.m4: New file.
7483         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7485         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7486         HAVE_COPYSIGNF.
7487         * modules/copysignf: New file.
7488         * tests/test-math-c++.cc: Check the declaration of copysignf.
7489         * doc/posix-functions/copysignf.texi: Mention the new module.
7490
7491 2011-10-09  Bruno Haible  <bruno@clisp.org>
7492
7493         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7494         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7495         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7496         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7497         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7498         gl_SIGNAL_H_DEFAULTS.
7499
7500 2011-10-09  Bruno Haible  <bruno@clisp.org>
7501
7502         poll: Make macro safer.
7503         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7504         ac_cv_header_poll_h is not set.
7505
7506 2011-10-09  Bruno Haible  <bruno@clisp.org>
7507
7508         copysign: Provide replacement.
7509         * lib/math.in.h (copysign): New declaration.
7510         * lib/copysign.c: New file.
7511         * m4/copysign.m4: New file.
7512         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7514         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7515         HAVE_COPYSIGN.
7516         * modules/copysign (Description): Clarify.
7517         (Files): Add lib/copysign.c, m4/copysign.m4.
7518         (Depends-on): Add math, signbit.
7519         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7520         gl_MATH_MODULE_INDICATOR.
7521         * tests/test-math-c++.cc: Check the declaration of copysign.
7522         * doc/posix-functions/copysign.texi: Mention the effects of the module
7523         on Minix and MSVC.
7524
7525 2011-10-09  Bruno Haible  <bruno@clisp.org>
7526
7527         isinf: Ensure macro on AIX 5.1.
7528         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7529         macro.
7530         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7531
7532 2011-10-09  Bruno Haible  <bruno@clisp.org>
7533
7534         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7535         * modules/snprintf-posix-tests (configure.ac): Require
7536         gl_LONG_DOUBLE_VS_DOUBLE.
7537         * modules/sprintf-posix-tests (configure.ac): Likewise.
7538         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7539         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7540         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7541         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7542         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7543         tests on platforms where 'long double' is the same as 'double'.
7544         * tests/test-sprintf-posix.h (test_function): Likewise.
7545         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7546         * tests/test-vasprintf-posix.c (test_function): Likewise.
7547
7548         *printf: Fix for platforms where 'long double' == 'double'.
7549         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7550         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7551         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7552         * modules/fprintf-posix (Files): Likewise.
7553         * modules/obstack-printf-posix (Files): Likewise.
7554         * modules/snprintf-posix (Files): Likewise.
7555         * modules/sprintf-posix (Files): Likewise.
7556         * modules/vasnprintf (Files): Likewise.
7557         * modules/vasnprintf-posix (Files): Likewise.
7558         * modules/vasprintf-posix (Files): Likewise.
7559         * modules/vdprintf-posix (Files): Likewise.
7560         * modules/vfprintf-posix (Files): Likewise.
7561         * modules/vsnprintf-posix (Files): Likewise.
7562         * modules/vsprintf-posix (Files): Likewise.
7563         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7564         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7565         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7566         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7567         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7568         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7569         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7570
7571         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7572         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7573         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7574         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7575         'long double'.
7576         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7577
7578         isinf: Fix for platforms where 'long double' == 'double'.
7579         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7580         Don't blindly assume 80-bit 'long double'.
7581
7582         isfinite: Fix for platforms where 'long double' == 'double'.
7583         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7584         Don't blindly assume 80-bit 'long double'.
7585
7586         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7587         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7588         * modules/isfinite-tests (configure.ac): Require
7589         gl_LONG_DOUBLE_VS_DOUBLE.
7590         * modules/isinf-tests (configure.ac): Likewise.
7591         * modules/isnan-tests (configure.ac): Likewise.
7592         * modules/isnanl-tests (configure.ac): Likewise.
7593         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7594         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7595         tests on platforms where 'long double' is the same as 'double'.
7596         * tests/test-isinf.c (test_isinfl): Likewise.
7597         * tests/test-isnan.c (test_long_double): Likewise.
7598         * tests/test-isnanl.h (main): Likewise.
7599
7600 2011-10-08  Bruno Haible  <bruno@clisp.org>
7601
7602         Tests for module 'tanhf'.
7603         * modules/tanhf-tests: New file.
7604         * tests/test-tanhf.c: New file.
7605
7606         New module 'tanhf'.
7607         * lib/math.in.h (tanhf): New declaration.
7608         * lib/tanhf.c: New file.
7609         * m4/tanhf.m4: New file.
7610         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7612         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7613         * modules/tanhf: New file.
7614         * tests/test-math-c++.cc: Check the declaration of tanhf.
7615         * doc/posix-functions/tanhf.texi: Mention the new module.
7616
7617         tanh: Use a .m4 file.
7618         * m4/tanh.m4: New file.
7619         * modules/tanh (Files): Add it.
7620         (configure.ac): Just invoke gl_FUNC_TANH.
7621
7622 2011-10-08  Bruno Haible  <bruno@clisp.org>
7623
7624         Tests for module 'coshf'.
7625         * modules/coshf-tests: New file.
7626         * tests/test-coshf.c: New file.
7627
7628         New module 'coshf'.
7629         * lib/math.in.h (coshf): New declaration.
7630         * lib/coshf.c: New file.
7631         * m4/coshf.m4: New file.
7632         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7634         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7635         * modules/coshf: New file.
7636         * tests/test-math-c++.cc: Check the declaration of coshf.
7637         * doc/posix-functions/coshf.texi: Mention the new module.
7638
7639         cosh: Use a .m4 file.
7640         * m4/cosh.m4: New file.
7641         * modules/cosh (Files): Add it.
7642         (configure.ac): Just invoke gl_FUNC_COSH.
7643
7644 2011-10-08  Bruno Haible  <bruno@clisp.org>
7645
7646         Tests for module 'sinhf'.
7647         * modules/sinhf-tests: New file.
7648         * tests/test-sinhf.c: New file.
7649
7650         New module 'sinhf'.
7651         * lib/math.in.h (sinhf): New declaration.
7652         * lib/sinhf.c: New file.
7653         * m4/sinhf.m4: New file.
7654         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7656         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7657         * modules/sinhf: New file.
7658         * tests/test-math-c++.cc: Check the declaration of sinhf.
7659         * doc/posix-functions/sinhf.texi: Mention the new module.
7660
7661         sinh: Use a .m4 file.
7662         * m4/sinh.m4: New file.
7663         * modules/sinh (Files): Add it.
7664         (configure.ac): Just invoke gl_FUNC_SINH.
7665
7666 2011-10-08  Bruno Haible  <bruno@clisp.org>
7667
7668         Tests for module 'atan2f'.
7669         * modules/atan2f-tests: New file.
7670         * tests/test-atan2f.c: New file.
7671
7672         New module 'atan2f'.
7673         * lib/math.in.h (atan2f): New declaration.
7674         * lib/atan2f.c: New file.
7675         * m4/atan2f.m4: New file.
7676         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7678         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7679         * modules/atan2f: New file.
7680         * tests/test-math-c++.cc: Check the declaration of atan2f.
7681         * doc/posix-functions/atan2f.texi: Mention the new module.
7682
7683         atan2: Use a .m4 file.
7684         * m4/atan2.m4: New file.
7685         * modules/atan2 (Files): Add it.
7686         (configure.ac): Just invoke gl_FUNC_ATAN2.
7687
7688 2011-10-08  Bruno Haible  <bruno@clisp.org>
7689
7690         Tests for module 'atanf'.
7691         * modules/atanf-tests: New file.
7692         * tests/test-atanf.c: New file.
7693
7694         New module 'atanf'.
7695         * lib/math.in.h (atanf): New declaration.
7696         * lib/atanf.c: New file.
7697         * m4/atanf.m4: New file.
7698         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7700         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7701         * modules/atanf: New file.
7702         * tests/test-math-c++.cc: Check the declaration of atanf.
7703         * doc/posix-functions/atanf.texi: Mention the new module.
7704
7705         atan: Use a .m4 file.
7706         * m4/atan.m4: New file.
7707         * modules/atan (Files): Add it.
7708         (configure.ac): Just invoke gl_FUNC_ATAN.
7709
7710 2011-10-08  Bruno Haible  <bruno@clisp.org>
7711
7712         Tests for module 'acosf'.
7713         * modules/acosf-tests: New file.
7714         * tests/test-acosf.c: New file.
7715
7716         New module 'acosf'.
7717         * lib/math.in.h (acosf): New declaration.
7718         * lib/acosf.c: New file.
7719         * m4/acosf.m4: New file.
7720         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7722         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7723         * modules/acosf: New file.
7724         * tests/test-math-c++.cc: Check the declaration of acosf.
7725         * doc/posix-functions/acosf.texi: Mention the new module.
7726
7727         acos: Use a .m4 file.
7728         * m4/acos.m4: New file.
7729         * modules/acos (Files): Add it.
7730         (configure.ac): Just invoke gl_FUNC_ACOS.
7731
7732 2011-10-08  Bruno Haible  <bruno@clisp.org>
7733
7734         Tests for module 'asinf'.
7735         * modules/asinf-tests: New file.
7736         * tests/test-asinf.c: New file.
7737
7738         New module 'asinf'.
7739         * lib/math.in.h (asinf): New declaration.
7740         * lib/asinf.c: New file.
7741         * m4/asinf.m4: New file.
7742         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7744         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7745         * modules/asinf: New file.
7746         * tests/test-math-c++.cc: Check the declaration of asinf.
7747         * doc/posix-functions/asinf.texi: Mention the new module.
7748
7749         asin: Use a .m4 file.
7750         * m4/asin.m4: New file.
7751         * modules/asin (Files): Add it.
7752         (configure.ac): Just invoke gl_FUNC_ASIN.
7753
7754 2011-10-08  Bruno Haible  <bruno@clisp.org>
7755
7756         Tests for module 'tanf'.
7757         * modules/tanf-tests: New file.
7758         * tests/test-tanf.c: New file.
7759
7760         New module 'tanf'.
7761         * lib/math.in.h (tanf): New declaration.
7762         * lib/tanf.c: New file.
7763         * m4/tanf.m4: New file.
7764         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7766         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7767         * modules/tanf: New file.
7768         * tests/test-math-c++.cc: Check the declaration of tanf.
7769         * doc/posix-functions/tanf.texi: Mention the new module.
7770
7771         tan: Use a .m4 file.
7772         * m4/tan.m4: New file.
7773         * modules/tan (Files): Add it.
7774         (configure.ac): Just invoke gl_FUNC_TAN.
7775
7776 2011-10-08  Bruno Haible  <bruno@clisp.org>
7777
7778         Tests for module 'cosf'.
7779         * modules/cosf-tests: New file.
7780         * tests/test-cosf.c: New file.
7781
7782         New module 'cosf'.
7783         * lib/math.in.h (cosf): New declaration.
7784         * lib/cosf.c: New file.
7785         * m4/cosf.m4: New file.
7786         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7788         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7789         * modules/cosf: New file.
7790         * tests/test-math-c++.cc: Check the declaration of cosf.
7791         * doc/posix-functions/cosf.texi: Mention the new module.
7792
7793         cos: Use a .m4 file.
7794         * m4/cos.m4: New file.
7795         * modules/cos (Files): Add it.
7796         (configure.ac): Just invoke gl_FUNC_COS.
7797
7798 2011-10-08  Bruno Haible  <bruno@clisp.org>
7799
7800         Tests for module 'sinf'.
7801         * modules/sinf-tests: New file.
7802         * tests/test-sinf.c: New file.
7803
7804         New module 'sinf'.
7805         * lib/math.in.h (sinf): New declaration.
7806         * lib/sinf.c: New file.
7807         * m4/sinf.m4: New file.
7808         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7809         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7810         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7811         * modules/sinf: New file.
7812         * tests/test-math-c++.cc: Check the declaration of sinf.
7813         * doc/posix-functions/sinf.texi: Mention the new module.
7814
7815         sin: Use a .m4 file.
7816         * m4/sin.m4: New file.
7817         * modules/sin (Files): Add it.
7818         (configure.ac): Just invoke gl_FUNC_SIN.
7819
7820 2011-10-08  Bruno Haible  <bruno@clisp.org>
7821
7822         Tests for module 'powf'.
7823         * modules/powf-tests: New file.
7824         * tests/test-powf.c: New file.
7825
7826         New module 'powf'.
7827         * lib/math.in.h (powf): New declaration.
7828         * lib/powf.c: New file.
7829         * m4/powf.m4: New file.
7830         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7832         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7833         * modules/powf: New file.
7834         * tests/test-math-c++.cc: Check the declaration of powf.
7835         * doc/posix-functions/powf.texi: Mention the new module.
7836
7837         pow: Use a .m4 file.
7838         * m4/pow.m4: New file.
7839         * modules/pow (Files): Add it.
7840         (configure.ac): Just invoke gl_FUNC_POW.
7841
7842 2011-10-08  Bruno Haible  <bruno@clisp.org>
7843
7844         Tests for module 'log10f'.
7845         * modules/log10f-tests: New file.
7846         * tests/test-log10f.c: New file.
7847
7848         New module 'log10f'.
7849         * lib/math.in.h (log10f): New declaration.
7850         * lib/log10f.c: New file.
7851         * m4/log10f.m4: New file.
7852         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7854         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7855         * modules/log10f: New file.
7856         * tests/test-math-c++.cc: Check the declaration of log10f.
7857         * doc/posix-functions/log10f.texi: Mention the new module.
7858
7859         log10: Use a .m4 file.
7860         * m4/log10.m4: New file.
7861         * modules/log10 (Files): Add it.
7862         (configure.ac): Just invoke gl_FUNC_LOG10.
7863
7864 2011-10-08  Bruno Haible  <bruno@clisp.org>
7865
7866         Tests for module 'logf'.
7867         * modules/logf-tests: New file.
7868         * tests/test-logf.c: New file.
7869
7870         New module 'logf'.
7871         * lib/math.in.h (logf): New declaration.
7872         * lib/logf.c: New file.
7873         * m4/logf.m4: New file.
7874         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7876         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7877         * modules/logf: New file.
7878         * tests/test-math-c++.cc: Check the declaration of logf.
7879         * doc/posix-functions/logf.texi: Mention the new module.
7880
7881         log: Use a .m4 file.
7882         * m4/log.m4: New file.
7883         * modules/log (Files): Add it.
7884         (configure.ac): Just invoke gl_FUNC_LOG.
7885
7886 2011-10-08  Bruno Haible  <bruno@clisp.org>
7887
7888         Tests for module 'expf'.
7889         * modules/expf-tests: New file.
7890         * tests/test-expf.c: New file.
7891
7892         New module 'expf'.
7893         * lib/math.in.h (expf): New declaration.
7894         * lib/expf.c: New file.
7895         * m4/expf.m4: New file.
7896         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7898         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7899         * modules/expf: New file.
7900         * tests/test-math-c++.cc: Check the declaration of expf.
7901         * doc/posix-functions/expf.texi: Mention the new module.
7902
7903         exp: Use a .m4 file.
7904         * m4/exp.m4: New file.
7905         * modules/exp (Files): Add it.
7906         (configure.ac): Just invoke gl_FUNC_EXP.
7907
7908 2011-10-08  Bruno Haible  <bruno@clisp.org>
7909
7910         Tests for module 'sqrtf'.
7911         * modules/sqrtf-tests: New file.
7912         * tests/test-sqrtf.c: New file.
7913
7914         New module 'sqrtf'.
7915         * lib/math.in.h (sqrtf): New declaration.
7916         * lib/sqrtf.c: New file.
7917         * m4/sqrtf.m4: New file.
7918         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7920         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7921         * modules/sqrtf: New file.
7922         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7923         * doc/posix-functions/sqrtf.texi: Mention the new module.
7924
7925 2011-10-08  Bruno Haible  <bruno@clisp.org>
7926
7927         Tests: Avoid link failures w.r.t. libintl.
7928         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7929         $(LIBINTL).
7930         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7931         $(LIBINTL).
7932         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7933         against $(LIBINTL).
7934         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7935         $(LIBINTL).
7936         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7937         $(LIBINTL).
7938         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7939
7940 2011-10-08  Bruno Haible  <bruno@clisp.org>
7941
7942         pow tests: Defeat compiler optimizations.
7943         * tests/test-pow.c (main): Assign arguments to x and y before use.
7944
7945 2011-10-08  Bruno Haible  <bruno@clisp.org>
7946
7947         gnulib-tool: Improve last commit.
7948         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7949         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7950         ignore dependencies that are not among the modules list.
7951
7952 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7953
7954         gnulib-tool: don't follow dependencies to avoided modules
7955         This fixes a bug that is related to the previous one.
7956         * gnulib-tool (func_modules_transitive_closure)
7957         (func_emit_autoconf_snippets):
7958         Check whether a dependency is acceptable before using it.
7959         (--extract-dependencies): Report an error if --avoid is also used,
7960         since this combination of options is not yet supported.
7961
7962         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7963         Problem reported by Peter Dyballa in
7964         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7965         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7966         when echoing "$condition".
7967
7968 2011-10-07  Bruno Haible  <bruno@clisp.org>
7969
7970         Fix documentation about math functions on MacOS X.
7971         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7972         MacOS X 10.5.
7973         * doc/posix-functions/fdim.texi: Likewise.
7974         * doc/posix-functions/feclearexcept.texi: Likewise.
7975         * doc/posix-functions/fegetenv.texi: Likewise.
7976         * doc/posix-functions/fegetround.texi: Likewise.
7977         * doc/posix-functions/feholdexcept.texi: Likewise.
7978         * doc/posix-functions/feraiseexcept.texi: Likewise.
7979         * doc/posix-functions/fesetenv.texi: Likewise.
7980         * doc/posix-functions/fesetround.texi: Likewise.
7981         * doc/posix-functions/fetestexcept.texi: Likewise.
7982         * doc/posix-functions/feupdateenv.texi: Likewise.
7983         * doc/posix-functions/fmax.texi: Likewise.
7984         * doc/posix-functions/fmin.texi: Likewise.
7985         * doc/posix-functions/log2.texi: Likewise.
7986         * doc/posix-functions/modff.texi: Likewise.
7987         * doc/posix-functions/nan.texi: Likewise.
7988         * doc/posix-functions/nanf.texi: Likewise.
7989         * doc/posix-functions/nextafterf.texi: Likewise.
7990         * doc/posix-functions/remquo.texi: Likewise.
7991
7992 2011-10-07  Bruno Haible  <bruno@clisp.org>
7993
7994         modff: Drop assumption about library that defines modff.
7995         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7996         AC_CHECK_FUNCS.
7997         * modules/modff (Files): Add m4/mathfunc.m4.
7998
7999 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8000
8001         raise tests: Avoid a GCC warning.
8002         * tests/test-raise.c (handler): Use _Noreturn.
8003
8004 2011-10-07  Bruno Haible  <bruno@clisp.org>
8005
8006         Tests for module 'ldexpf'.
8007         * modules/ldexpf-tests: New file.
8008         * tests/test-ldexpf.c: New file.
8009
8010         New module 'ldexpf'.
8011         * lib/math.in.h (ldexpf): New declaration.
8012         * lib/ldexpf.c: New file.
8013         * m4/ldexpf.m4: New file.
8014         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8016         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8017         * modules/ldexpf: New file.
8018         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8019         * doc/posix-functions/ldexpf.texi: Mention the new module.
8020
8021 2011-10-06  Bruno Haible  <bruno@clisp.org>
8022
8023         frexpf: Work around problems on IRIX and mingw.
8024         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8026         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8027         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8028         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8029         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8030         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8031
8032 2011-10-06  Bruno Haible  <bruno@clisp.org>
8033
8034         fabsf: Drop assumption about library that defines fabsf.
8035         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8036         AC_CHECK_FUNCS.
8037         * modules/fabsf (Files): Add m4/mathfunc.m4.
8038
8039 2011-10-06  Bruno Haible  <bruno@clisp.org>
8040
8041         frexpf: Drop assumption about library that defines frexpf.
8042         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8043         'int *', 'float *', 'long double *', 'float', 'long double'.
8044         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8045         AC_CHECK_FUNCS.
8046         * modules/frexpf (Files): Add m4/mathfunc.m4.
8047
8048         Tests for module 'frexpf'.
8049         * modules/frexpf-tests: New file.
8050         * tests/test-frexpf.c: New file.
8051
8052         New module 'frexpf'.
8053         * lib/math.in.h (frexpf): New declaration.
8054         * lib/frexpf.c: New file.
8055         * m4/frexpf.m4: New file.
8056         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8058         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8059         * modules/frexpf: New file.
8060         * tests/test-math-c++.cc: Check the declaration of frexpf.
8061         * doc/posix-functions/frexpf.texi: Mention the new module.
8062
8063 2011-10-06  Bruno Haible  <bruno@clisp.org>
8064
8065         math: Sort function declarations of math.in.h.
8066         * lib/math.in.h (frexp, logb): Move declarations.
8067
8068 2011-10-05  Bruno Haible  <bruno@clisp.org>
8069
8070         Tests for module 'modff'.
8071         * modules/modff-tests: New file.
8072         * tests/test-modff.c: New file.
8073
8074         New module 'modff'.
8075         * lib/math.in.h (modff): New declaration.
8076         * lib/modff.c: New file.
8077         * m4/modff.m4: New file.
8078         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8080         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8081         * modules/modff: New file.
8082         * tests/test-math-c++.cc: Check the declaration of modff.
8083         * doc/posix-functions/modff.texi: Mention the new module.
8084
8085         modf tests: Make test sharper.
8086         * tests/test-modf.c (main): Strengthen upper bound.
8087
8088         modf: Use a .m4 file.
8089         * m4/modf.m4: New file.
8090         * modules/modf (Files): Add it.
8091         (configure.ac): Just invoke gl_FUNC_MODF.
8092
8093 2011-10-05  Bruno Haible  <bruno@clisp.org>
8094
8095         Tests for module 'fmodf'.
8096         * modules/fmodf-tests: New file.
8097         * tests/test-fmodf.c: New file.
8098
8099         New module 'fmodf'.
8100         * lib/math.in.h (fmodf): New declaration.
8101         * lib/fmodf.c: New file.
8102         * m4/fmodf.m4: New file.
8103         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8105         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8106         * modules/fmodf: New file.
8107         * tests/test-math-c++.cc: Check the declaration of fmodf.
8108         * doc/posix-functions/fmodf.texi: Mention the new module.
8109
8110         fmod: Use a .m4 file.
8111         * m4/fmod.m4: New file.
8112         * modules/fmod (Files): Add it.
8113         (configure.ac): Just invoke gl_FUNC_FMOD.
8114
8115 2011-10-05  Bruno Haible  <bruno@clisp.org>
8116
8117         Tests for module 'fabsf'.
8118         * modules/fabsf-tests: New file.
8119         * tests/test-fabsf.c: New file.
8120
8121         New module 'fabsf'.
8122         * lib/math.in.h (fabsf): New declaration.
8123         * lib/fabsf.c: New file.
8124         * m4/fabsf.m4: New file.
8125         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8127         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8128         * modules/fabsf: New file.
8129         * tests/test-math-c++.cc: Check the declaration of fabsf.
8130         * doc/posix-functions/fabsf.texi: Mention the new module.
8131
8132         fabs: Use a .m4 file.
8133         * m4/fabs.m4: New file.
8134         * modules/fabs (Files): Add it.
8135         (configure.ac): Just invoke gl_FUNC_FABS.
8136
8137 2011-10-05  Jim Meyering  <meyering@redhat.com>
8138
8139         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8140         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8141         ls -lL regression introduced in coreutils-8.12, it does so at the
8142         cost of an additional stat call in the common case.  Besides, now
8143         that the kernel change that prompted commit 95f7c57f has been reverted
8144         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8145         we have no use for commit 95f7c57f, "file-has-acl: use
8146         acl_extended_file_nofollow if available".
8147
8148 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8149
8150         file-has-acl: revert unintended change in behavior of ls -L
8151         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8152         derived from...
8153         (file_has_acl): ...code here.  Call it.
8154         This problem was introduced with 2011-07-22 commit 95f7c57f,
8155         "file-has-acl: use acl_extended_file_nofollow if available".
8156         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8157
8158 2011-10-03  Bruno Haible  <bruno@clisp.org>
8159
8160         poll: Avoid link errors on MSVC.
8161         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8162         * modules/poll (Depends-on): Add sockets.
8163         (Link): New section.
8164         * NEWS: Mention the change.
8165         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8166         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8167         $(LIB_POLL) instead of $(LIBSOCKET).
8168
8169 2011-10-03  Bruno Haible  <bruno@clisp.org>
8170
8171         sys_select tests: Fix link error on MSVC 9.
8172         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8173         with $(LIB_SELECT) instead of $(LIBSOCKET).
8174
8175 2011-10-03  Bruno Haible  <bruno@clisp.org>
8176
8177         sys_select: Fix compilation error on mingw.
8178         * lib/sys_select.in.h: On native Windows, include <io.h>.
8179
8180 2011-10-03  Bruno Haible  <bruno@clisp.org>
8181
8182         wmemset: Support for MSVC.
8183         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8184         whether wmemset() exists.
8185
8186 2011-10-03  Bruno Haible  <bruno@clisp.org>
8187
8188         wmemmove: Support for MSVC.
8189         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8190         whether wmemmove() exists.
8191
8192 2011-10-03  Bruno Haible  <bruno@clisp.org>
8193
8194         wmemcpy: Support for MSVC.
8195         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8196         whether wmemcpy() exists.
8197
8198 2011-10-03  Bruno Haible  <bruno@clisp.org>
8199
8200         wmemcmp: Support for MSVC.
8201         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8202         whether wmemcmp() exists.
8203
8204 2011-10-03  Bruno Haible  <bruno@clisp.org>
8205
8206         wmemchr: Support for MSVC.
8207         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8208         whether wmemchr() exists.
8209
8210 2011-10-03  Bruno Haible  <bruno@clisp.org>
8211
8212         glthread/*, strsignal: Support for MSVC.
8213         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8214         including <winsock.h> on MSVC 9.
8215         * lib/glthread/lock.h: Likewise.
8216         * lib/glthread/thread.h: Likewise.
8217         * lib/glthread/tls.h: Likewise.
8218         * lib/glthread/yield.h: Likewise.
8219         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8220         if HAVE_UNISTD_H is false.
8221         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8222
8223 2011-10-03  Bruno Haible  <bruno@clisp.org>
8224
8225         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8226         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8227         Set to 100000.
8228
8229 2011-10-03  Bruno Haible  <bruno@clisp.org>
8230
8231         acl: Fix specification.
8232         * lib/file-has-acl.c (file_has_acl): Fix specification.
8233
8234 2011-10-03  Bruno Haible  <bruno@clisp.org>
8235
8236         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8237         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8238         (compute_curr_prefix, shared_library_fullname,
8239         find_shared_library_fullname, get_shared_library_fullname, relocate):
8240         Use it together with PIC && INSTALLDIR.
8241         Reported by <jojelino@gmail.com>
8242         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8243
8244 2011-10-01  Jim Meyering  <meyering@redhat.com>
8245
8246         maint.mk: adjust a release-related rule not to require use of gzip
8247         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8248         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8249         projects that build only .tar.xz files.  Also fix an erroneous test.
8250
8251         test-linkat: don't leave behind a temporary file
8252         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8253         Otherwise, coreutils' "make distcheck" would fail with this:
8254           Only in /c/cu/tests/torture/coreutils/test/\
8255             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8256           make[2]: *** [my-distcheck] Error 1
8257
8258         float, math: add omitted file
8259         * lib/itold.c: Add file, required for yesterday's float change.
8260
8261 2011-10-01  Bruno Haible  <bruno@clisp.org>
8262
8263         isinf: Fix for OpenBSD/x86.
8264         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8265         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8266         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8267
8268 2011-10-01  Bruno Haible  <bruno@clisp.org>
8269
8270         isfinite: Fix syntax error in configure test.
8271         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8272
8273         isfinite: Fix typo.
8274         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8275         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8276
8277 2011-10-01  Bruno Haible  <bruno@clisp.org>
8278
8279         nonblocking tests: Fix test failure on Linux/IA-64.
8280         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8281         Set to 270000.
8282
8283 2011-10-01  Bruno Haible  <bruno@clisp.org>
8284
8285         mkfifoat tests: Fix a test failure on mingw.
8286         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8287         with error ENOSYS.
8288
8289 2011-09-30  Bruno Haible  <bruno@clisp.org>
8290
8291         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8292         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8293         'long double'. Set REPLACE_ITOLD.
8294         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8295         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8296         * lib/itold.c: New file.
8297         * modules/float (Files): Add lib/itold.c.
8298         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8299         (Makefile.am): Substitute REPLACE_ITOLD.
8300         * modules/math (Depends-on): Add float.
8301         (Makefile.am): Substitute REPLACE_ITOLD.
8302         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8303         * doc/posix-headers/math.texi: Likewise.
8304         * doc/posix-functions/logl.texi: Likewise.
8305
8306 2011-09-30  Bruno Haible  <bruno@clisp.org>
8307
8308         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8309         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8310         Set to 140000.
8311
8312 2011-09-30  Bruno Haible  <bruno@clisp.org>
8313
8314         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8315         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8316         invocation, say "right after AC_PROG_CC_STDC", not "right after
8317         AC_PROG_CC".
8318         Reported by Gary V. Vaughan <gary@gnu.org>.
8319
8320 2011-09-30  Bruno Haible  <bruno@clisp.org>
8321
8322         Centralize C99 requirement.
8323         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8324         * modules/stdarg (configure.ac-early): Invoke it instead of
8325         AC_PROG_CC_STDC.
8326         Reported by Gary V. Vaughan and Paul Eggert.
8327
8328 2011-09-29  Bruno Haible  <bruno@clisp.org>
8329
8330         float: Fix LDBL_MAX value on Linux/PowerPC.
8331         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8332         on Linux/PowerPC.
8333         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8334         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8335         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8336         platform.
8337         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8338
8339 2011-09-29  Bruno Haible  <bruno@clisp.org>
8340
8341         doc: Improve doc about gl_EARLY.
8342         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8343         AC_PROG_CC_STDC invocation.
8344         Reported by Gary V. Vaughan <gary@gnu.org>.
8345
8346 2011-09-28  Bruno Haible  <bruno@clisp.org>
8347
8348         fgetc, fputc, fread, fwrite tests: Fix link error.
8349         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8350         on non-MSVC platforms.
8351         * tests/test-fputc.c (main): Likewise.
8352         * tests/test-fread.c (main): Likewise.
8353         * tests/test-fwrite.c (main): Likewise.
8354         Reported by Jim Meyering.
8355
8356 2011-09-27  Bruno Haible  <bruno@clisp.org>
8357
8358         fputc, fwrite tests: Avoid test failure on MSVC.
8359         * tests/test-fgetc.c: Include msvc-inval.h.
8360         (main): Invoke gl_msvc_inval_ensure_handler.
8361         * tests/test-fputc.c: Include msvc-inval.h.
8362         (main): Invoke gl_msvc_inval_ensure_handler.
8363         * tests/test-fread.c: Include msvc-inval.h.
8364         (main): Invoke gl_msvc_inval_ensure_handler.
8365         * tests/test-fwrite.c: Include msvc-inval.h.
8366         (main): Invoke gl_msvc_inval_ensure_handler.
8367         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8368         * modules/fputc-tests (Depends-on): Likewise.
8369         * modules/fread-tests (Depends-on): Likewise.
8370         * modules/fwrite-tests (Depends-on): Likewise.
8371
8372 2011-09-27  Bruno Haible  <bruno@clisp.org>
8373
8374         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8375         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8376         (raise): Remove older, duplicated declaration.
8377         (_gl_raise_SIGPIPE): New declaration.
8378         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8379         (rpl_raise): Remove function.
8380         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8381         a gnulib-defined SIGPIPE here.
8382         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8383         'sigprocmask' has detected missing signal-blocking and the module
8384         'sigpipe' is enabled.
8385         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8386
8387 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8388
8389         base64-tests: avoid memory leak
8390         * tests/test-base64.c (main): Plug memory leak.
8391
8392         base32: new module
8393         * modules/base32: New module.
8394         * lib/base32.c: New file.
8395         * lib/base32.h: Likewise.
8396         * m4/base32.m4: Likewise.
8397         * modules/base32-tests: New test.
8398         * tests/test-base32.c: Likewise.
8399         * MODULES.html.sh (Misc): Mention it.
8400
8401 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8402
8403         gnulib: use more-standard license notice wording
8404         * gnulib-tool (func_emit_copyright_notice): When emitting a
8405         license notice into a file, use the standard wording as suggested
8406         by the current information for GNU maintainers, except say "file"
8407         rather than "program".  The new wording gives a license version
8408         number, which addresses an issue raised by Glenn Morris in
8409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8410         * m4/onceonly.m4: Use that same wording here, too.
8411
8412         dup2: minor simplification
8413         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8414         as lib/dup2.c no longer uses 'inline'.
8415
8416 2011-09-25  Bruno Haible  <bruno@clisp.org>
8417
8418         strings: Fix compilation error on MSVC.
8419         * lib/strings.in.h: Include <stddef.h> for size_t.
8420
8421 2011-09-25  Bruno Haible  <bruno@clisp.org>
8422
8423         fflush et al.: Document limitation on MSVC.
8424         * doc/posix-functions/fflush.texi: Document possible crash in handling
8425         mode other than DEFAULT_HANDLING.
8426         * doc/posix-functions/fgetc.texi: Likewise.
8427         * doc/posix-functions/fputc.texi: Likewise.
8428         * doc/posix-functions/fread.texi: Likewise.
8429         * doc/posix-functions/fwrite.texi: Likewise.
8430
8431 2011-09-25  Bruno Haible  <bruno@clisp.org>
8432
8433         msvc-inval: Allow three invalid parameter handling modes.
8434         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8435         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8436         macros.
8437         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8438         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8439         SANE_LIBRARY_HANDLING as a no-op.
8440         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8441         <stdlib.h>.
8442         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8443
8444 2011-09-25  Bruno Haible  <bruno@clisp.org>
8445
8446         msvc-inval: Make handler multithread-safe.
8447         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8448         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8449         declarations.
8450         (gl_msvc_inval_current): New declaration.
8451         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8452         Operate on the structure returned by gl_msvc_inval_current().
8453         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8454         Remove varaiables.
8455         (tls_index, tls_initialized): New variables.
8456         (not_per_thread): New variable.
8457         (gl_msvc_inval_current): New function.
8458         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8459         returned by gl_msvc_inval_current().
8460
8461 2011-09-25  Bruno Haible  <bruno@clisp.org>
8462
8463         msvc-inval: Install handler globally.
8464         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8465         !_MSC_VER.
8466         (gl_msvc_invalid_parameter_handler): Remove declaration.
8467         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8468         declarations.
8469         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8470         Install the handler globally, don't uninstall it.
8471         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8472         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8473         currently valid, call RaiseException instead.
8474         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8475         for !_MSC_VER.
8476
8477 2011-09-25  Bruno Haible  <bruno@clisp.org>
8478
8479         strerror_r-posix: Fix for MSVC 9.
8480         * lib/strerror_r.c (local_snprintf): New function.
8481         (snprintf): Define to local_snprintf, not to _snprintf.
8482
8483 2011-09-25  Bruno Haible  <bruno@clisp.org>
8484
8485         ftruncate: Support for MSVC 9.
8486         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8487         (chsize_nothrow): New function.
8488         (chsize): Redefine as a macro.
8489         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8490         * modules/ftruncate (Depends-on): Add msvc-inval.
8491
8492 2011-09-25  Bruno Haible  <bruno@clisp.org>
8493
8494         New module 'fstat'.
8495         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8496         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8497         * lib/fchdir.c (rpl_fstat): Remove function.
8498         * m4/fstat.m4: New file.
8499         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8500         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8501         declared.
8502         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8503         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8504         * modules/fstat: New file.
8505         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8506         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8507         is set.
8508         * doc/posix-functions/fstat.texi: Mention the new module and the
8509         problem on MSVC.
8510         * NEWS: Mention the change.
8511         * modules/acl (Depends-on): Add fstat.
8512         * modules/chdir-safer (Depends-on): Likewise.
8513         * modules/chown (Depends-on): Likewise.
8514         * modules/copy-file (Depends-on): Likewise.
8515         * modules/fchdir (Depends-on): Likewise.
8516         * modules/fdopendir (Depends-on): Likewise.
8517         * modules/fopen (Depends-on): Likewise.
8518         * modules/fts (Depends-on): Likewise.
8519         * modules/getcwd (Depends-on): Likewise.
8520         * modules/isapipe (Depends-on): Likewise.
8521         * modules/linkat (Depends-on): Likewise.
8522         * modules/lseek (Depends-on): Likewise.
8523         * modules/mkdir-p (Depends-on): Likewise.
8524         * modules/open (Depends-on): Likewise.
8525         * modules/openat (Depends-on): Likewise.
8526         * modules/read-file (Depends-on): Likewise.
8527         * modules/renameat (Depends-on): Likewise.
8528         * modules/utimens (Depends-on): Likewise.
8529
8530 2011-09-25  Bruno Haible  <bruno@clisp.org>
8531
8532         linkat: Fix compilation on MSVC 9.
8533         * lib/linkat.c: Don't include <stdint.h>.
8534
8535 2011-09-25  Bruno Haible  <bruno@clisp.org>
8536
8537         fclose: Support for MSVC 9.
8538         * lib/fclose.c: Include msvc-inval.h.
8539         (fclose_nothrow): New function.
8540         (rpl_fclose): Use it.
8541         * modules/fclose (Depends-on): Add msvc-inval.
8542         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8543
8544 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8545
8546         dup2: minor simplifications
8547         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8548         that it's a performance win.
8549         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8550         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8551
8552 2011-09-24  Jim Meyering  <meyering@redhat.com>
8553
8554         test-futimens: avoid a warning from gcc -Wshadow
8555         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8556         to avoid a shadowing warning.
8557
8558 2011-09-24  Bruno Haible  <bruno@clisp.org>
8559
8560         fdopen: Support for MSVC 9.
8561         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8562         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8563         * lib/fdopen.c: Include msvc-inval.h.
8564         (fdopen_nothrow): New function.
8565         (rpl_fdopen): Use it.
8566         * modules/fdopen (Depends-on): Add msvc-inval.
8567         * modules/fclose-tests (Depends-on): Add fdopen.
8568         * modules/fflush-tests (Depends-on): Likewise.
8569         * modules/fgetc-tests (Depends-on): Likewise.
8570         * modules/fputc-tests (Depends-on): Likewise.
8571         * modules/fread-tests (Depends-on): Likewise.
8572         * modules/freopen-tests (Depends-on): Likewise.
8573         * modules/fseeko-tests (Depends-on): Likewise.
8574         * modules/ftello-tests (Depends-on): Likewise.
8575         * modules/fwrite-tests  (Depends-on): Likewise.
8576         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8577
8578 2011-09-24  Bruno Haible  <bruno@clisp.org>
8579
8580         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8581         * modules/fgetc-tests (Depends-on): Add unistd.
8582         * modules/fputc-tests (Depends-on): Likewise.
8583         * modules/fread-tests (Depends-on): Likewise.
8584         * modules/fwrite-tests (Depends-on): Likewise.
8585
8586 2011-09-24  Bruno Haible  <bruno@clisp.org>
8587
8588         dup: Simplify autoconf test.
8589         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8590         on gl_MSVC_INVAL's result.
8591
8592 2011-09-24  Bruno Haible  <bruno@clisp.org>
8593
8594         Tests for function fwrite().
8595         * modules/fwrite-tests: New file.
8596         * tests/test-fwrite.c: New file.
8597         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8598
8599         Tests for function fread().
8600         * modules/fread-tests: New file.
8601         * tests/test-fread.c: New file.
8602         * modules/stdio-tests (Depends-on): Add fread-tests.
8603
8604         Activate fputc tests.
8605         * modules/stdio-tests (Depends-on): Add fputc-tests.
8606
8607         Enhance fgetc, fputc tests.
8608         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8609         * tests/test-fputc.c (main): Likewise.
8610
8611 2011-09-24  Bruno Haible  <bruno@clisp.org>
8612
8613         write: Support for MSVC 9.
8614         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8615         is not 1.
8616         * lib/write.c (write_nothrow): New function.
8617         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8618         not 1. Use write_nothrow.
8619         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8620         invalid parameter handler.
8621         (gl_PREREQ_WRITE): New macro.
8622         * modules/write (Depends-on): Add msvc-inval.
8623         (configure.ac): Invoke gl_PREREQ_WRITE.
8624         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8625
8626 2011-09-24  Bruno Haible  <bruno@clisp.org>
8627
8628         read: Fix last commit.
8629         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8630
8631 2011-09-24  Bruno Haible  <bruno@clisp.org>
8632
8633         dup2: Fix last commit.
8634         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8635         (rpl_dup2): Disable fcntl workaround on native Windows.
8636
8637         sigprocmask: Make code safer.
8638         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8639         section that changes macro definitions for this compilation unit.
8640
8641 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8642
8643         dup2: clarify by coalescing Windows-specific material
8644         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8645         "msvc-nothrow.h"' to the Windows-specific section, so that the
8646         Emacs source need not contain these include files.
8647         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8648         Windows-specific fixes into this function rather than just the
8649         nothrow fix, as this shortens and clarifies the code.  Always
8650         define as a function, as that's a bit cleaner than having it be
8651         sometimes a function and sometimes a macro.
8652         (rpl_dup2): Move the Windows-specific stuff out of here and into
8653         ms_windows_dup2.  Don't protect the Haiku-related fix with
8654         "#if !defined __linux__", as the same code also works around
8655         a Linux kernel bug, and it doesn't add any system calls on any
8656         platform.  Add comment about FreeBSD 6.1.
8657
8658         sigprocmask: move #include directive
8659         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8660         Windows-specific section, so that the Emacs source need not
8661         contain msvc-inval.h.
8662
8663 2011-09-23  Bruno Haible  <bruno@clisp.org>
8664
8665         read: Support for MSVC 9.
8666         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8667         is not 1.
8668         * lib/read.c (read_nothrow): New function.
8669         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8670         read_nothrow.
8671         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8672         invalid parameter handler.
8673         (gl_PREREQ_READ): New macro.
8674         * modules/read (Depends-on): Add msvc-inval.
8675         (configure.ac): Invoke gl_PREREQ_READ.
8676         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8677
8678 2011-09-23  Bruno Haible  <bruno@clisp.org>
8679
8680         close: Support for MSVC 9.
8681         * lib/close.c: Include <errno.h>, msvc-inval.h.
8682         (close_nothrow): New function.
8683         (rpl_close): Use it.
8684         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8685         invalid parameter handler.
8686         * modules/close (Depends-on): Add msvc-inval.
8687         * modules/dup2-tests (Depends-on): Add close.
8688         * modules/dup3-tests (Depends-on): Likewise.
8689         * modules/fcntl-tests (Depends-on): Likewise.
8690         * modules/spawn-pipe-tests (Depends-on): Likewise.
8691         * modules/unistd-safer-tests (Depends-on): Likewise.
8692         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8693
8694 2011-09-23  Bruno Haible  <bruno@clisp.org>
8695
8696         New module 'dup'.
8697         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8698         Allow replacement.
8699         * lib/dup.c: New file.
8700         * lib/fchdir.c (rpl_dup): Remove function.
8701         * m4/dup.m4: New file.
8702         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8703         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8704         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8705         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8706         * modules/dup: New file.
8707         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8708         'dup' module is in use.
8709         * modules/fdopendir (Depends-on): Add dup.
8710         * modules/fdutimensat-tests (Depends-on): Likewise.
8711         * modules/fts (Depends-on): Likewise.
8712         * modules/futimens-tests (Depends-on): Likewise.
8713         * modules/posix_spawnp-tests (Depends-on): Likewise.
8714         * modules/unistd-safer-tests (Depends-on): Likewise.
8715         * modules/utimens-tests (Depends-on): Likewise.
8716         * doc/posix-functions/dup.texi: Mention the new module and the problem
8717         on MSVC.
8718
8719 2011-09-23  Bruno Haible  <bruno@clisp.org>
8720
8721         getdtablesize: Support for MSVC 9.
8722         * lib/getdtablesize.c: Include msvc-inval.h.
8723         (_setmaxstdio_nothrow): New function.
8724         (_setmaxstdio): Redefine it.
8725         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8726         * modules/getdtablesize (Depends-on): Add msvc-inval.
8727         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8728
8729 2011-09-23  Bruno Haible  <bruno@clisp.org>
8730
8731         signal-h: Rename from signal.
8732         * modules/signal-h: Renamed from modules/signal.
8733         * modules/pthread_sigmask (Depends-on): Update.
8734         * modules/raise (Depends-on): Likewise.
8735         * modules/sigaction (Depends-on): Likewise.
8736         * modules/sigpipe (Depends-on): Likewise.
8737         * modules/sigprocmask (Depends-on): Likewise.
8738         * modules/sys_select (Depends-on): Likewise.
8739         * modules/signal-h-tests: Renamed from modules/signal-tests.
8740         (Files, Depends-on, Makefile.am): Update.
8741         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8742         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8743         (Files, Makefile.am): Update.
8744         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8745         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8746         * modules/signal: New placeholder file.
8747         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8748         * doc/posix-headers/signal.texi: Update.
8749         * NEWS: Mention the change.
8750
8751 2011-09-23  Bruno Haible  <bruno@clisp.org>
8752
8753         sigprocmask: Avoid crashes through signal() on MSVC 9.
8754         * lib/sigprocmask.c: Include msvc-inval.h.
8755         (signal_nothrow): New function.
8756         (signal): Redefine it.
8757         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8758         * modules/sigprocmask (Depends-on): Add msvc-inval.
8759         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8760
8761 2011-09-23  Bruno Haible  <bruno@clisp.org>
8762
8763         Tests for module 'raise'.
8764         * modules/raise-tests: New file.
8765         * tests/test-raise.c: New file.
8766
8767         raise: Support for MSVC.
8768         * lib/signal.in.h (raise): New declaration.
8769         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8770         for native Windows platforms.
8771         * m4/raise.m4: New file.
8772         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8773         HAVE_RAISE, REPLACE_RAISE.
8774         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8775         REPLACE_RAISE.
8776         * modules/raise (Status, Notice): Remove fields.
8777         (Files): Add m4/raise.m4.
8778         (Depends-on): Add signal, msvc-inval.
8779         (configure.ac): Use the common idioms.
8780         (Maintainer): Add me.
8781         * tests/test-signal-c++.cc: Check the signature of raise.
8782         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8783
8784 2011-09-23  Bruno Haible  <bruno@clisp.org>
8785
8786         pipe2: Fix compilation on pre-C99 compilers.
8787         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8788
8789 2011-09-23  Bruno Haible  <bruno@clisp.org>
8790
8791         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8792         * lib/msvc-nothrow.h: New file.
8793         * lib/msvc-nothrow.c: New file.
8794         * m4/msvc-nothrow.m4: New file.
8795         * modules/msvc-nothrow: New file.
8796         * lib/dup2.c: Include msvc-nothrow.h.
8797         (rpl_dup2): No need to protect _get_osfhandle call here.
8798         * lib/accept4.c: Include msvc-nothrow.h.
8799         * lib/error.c: Likewise.
8800         * lib/fcntl.c: Likewise.
8801         * lib/lseek.c: Likewise.
8802         * lib/nonblocking.c: Likewise.
8803         * lib/poll.c: Likewise.
8804         * lib/read.c: Likewise.
8805         * lib/select.c: Likewise.
8806         * lib/sockets.h: Likewise.
8807         * lib/sockets.c: Likewise.
8808         * lib/stdio-read.c: Likewise.
8809         * lib/stdio-write.c: Likewise.
8810         * lib/write.c: Likewise.
8811         * lib/w32sock.h: Likewise.
8812         * lib/w32spawn.h: Likewise.
8813         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8814         * lib/fsync.c: Likewise.
8815         * lib/isapipe.c: Likewise.
8816         * modules/dup2 (Depends-on): Add msvc-nothrow.
8817         * modules/accept4 (Depends-on): Likewise.
8818         * modules/error (Depends-on): Likewise.
8819         * modules/fcntl (Depends-on): Likewise.
8820         * modules/lseek (Depends-on): Likewise.
8821         * modules/nonblocking (Depends-on): Likewise.
8822         * modules/poll (Depends-on): Likewise.
8823         * modules/read (Depends-on): Likewise.
8824         * modules/select (Depends-on): Likewise.
8825         * modules/sockets (Depends-on): Likewise.
8826         * modules/sigpipe (Depends-on): Likewise.
8827         * modules/write (Depends-on): Likewise.
8828         * modules/accept (Depends-on): Likewise.
8829         * modules/bind (Depends-on): Likewise.
8830         * modules/connect (Depends-on): Likewise.
8831         * modules/gethostname (Depends-on): Likewise.
8832         * modules/getpeername (Depends-on): Likewise.
8833         * modules/getsockname (Depends-on): Likewise.
8834         * modules/getsockopt (Depends-on): Likewise.
8835         * modules/ioctl (Depends-on): Likewise.
8836         * modules/listen (Depends-on): Likewise.
8837         * modules/recv (Depends-on): Likewise.
8838         * modules/recvfrom (Depends-on): Likewise.
8839         * modules/send (Depends-on): Likewise.
8840         * modules/sendto (Depends-on): Likewise.
8841         * modules/setsockopt (Depends-on): Likewise.
8842         * modules/shutdown (Depends-on): Likewise.
8843         * modules/socket (Depends-on): Likewise.
8844         * modules/execute (Depends-on): Likewise.
8845         * modules/spawn-pipe (Depends-on): Likewise.
8846         * modules/flock (Depends-on): Likewise.
8847         * modules/fsync (Depends-on): Likewise.
8848         * modules/isapipe (Depends-on): Likewise.
8849         * tests/test-cloexec.c: Include msvc-nothrow.h.
8850         * tests/test-dup-safer.c: Likewise.
8851         * tests/test-dup2.c: Likewise.
8852         * tests/test-dup3.c: Likewise.
8853         * tests/test-fcntl.c: Likewise.
8854         * tests/test-pipe.c: Likewise.
8855         * tests/test-pipe2.c: Likewise.
8856         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8857         * modules/unistd-safer-tests (Depends-on): Likewise.
8858         * modules/dup2-tests (Depends-on): Likewise.
8859         * modules/dup3-tests (Depends-on): Likewise.
8860         * modules/fcntl-tests (Depends-on): Likewise.
8861         * modules/pipe-posix-tests (Depends-on): Likewise.
8862         * modules/pipe2-tests (Depends-on): Likewise.
8863
8864 2011-09-23  Bruno Haible  <bruno@clisp.org>
8865
8866         dup2: Make code more maintainable.
8867         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8868         (rpl_dup2): Use it.
8869         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8870         * modules/dup2 (configure.ac): Invoke it.
8871         Reported by Paul Eggert.
8872
8873 2011-09-23  Bruno Haible  <bruno@clisp.org>
8874
8875         msvc-inval: Fix compilation error.
8876         * lib/msvc-inval.h: Include <excpt.h>.
8877
8878 2011-09-23  Bruno Haible  <bruno@clisp.org>
8879
8880         mkdir: Tweak for MSVC 9.
8881         * lib/sys_stat.in.h: Update comments.
8882         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8883
8884         Tests for module 'chdir'.
8885         * modules/chdir-tests: New file.
8886         * tests/test-chdir.c: New file.
8887
8888         New module 'chdir'.
8889         * modules/chdir: New file.
8890         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8891         (chdir): New declaration.
8892         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8893         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8894         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8895         * tests/test-unistd-c++.cc: Check signature of chdir.
8896         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8897         * modules/chdir-long (Depends-on): Add chdir.
8898         * modules/fchdir (Depends-on): Likewise.
8899         * modules/rename (Depends-on): Likewise.
8900         * modules/savewd (Depends-on): Likewise.
8901
8902         rmdir: Support for mingw, MSVC 9.
8903         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8904         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8905
8906         getcwd: Tweak for MSVC 9.
8907         * lib/unistd.in.h: Update comments.
8908         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8909
8910 2011-09-22  Bruno Haible  <bruno@clisp.org>
8911
8912         strerror_r-posix: Avoid a link error on MSVC.
8913         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8914         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8915
8916 2011-09-22  Bruno Haible  <bruno@clisp.org>
8917
8918         select: Avoid link errors on MSVC.
8919         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8920         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8921         * modules/pselect (Link): Likewise.
8922         * NEWS: Mention the change.
8923         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8924         test-select-stdin against $(LIB_SELECT).
8925         * modules/pselect-tests (Makefile.am): Link test-pselect against
8926         $(LIB_SELECT).
8927
8928 2011-09-22  Bruno Haible  <bruno@clisp.org>
8929
8930         select: Avoid compilation error on MSVC.
8931         * lib/select.c: Don't include <stdbool.h>.
8932
8933 2011-09-21  Bruno Haible  <bruno@clisp.org>
8934
8935         Consolidate all uses of PATH_MAX in *.m4 files.
8936         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8937         macros.
8938         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8939         and gl_PATHMAX_SNIPPET.
8940         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8941         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8942         * modules/chdir-long (Files): Add m4/pathmax.m4.
8943         * modules/getcwd (Files): Likewise.
8944
8945 2011-09-21  Bruno Haible  <bruno@clisp.org>
8946
8947         ftruncate: Un-deprecate, concentrate on Win32 support.
8948         * modules/ftruncate (Status, Notice): Remove sections.
8949         (Depends-on): Add largefile.
8950         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8951         non-mingw platforms.
8952         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8953         include <io.h>.
8954         * modules/perror-tests (Depends-on): Add ftruncate.
8955         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8956         'ftruncate' module.
8957
8958 2011-09-21  Bruno Haible  <bruno@clisp.org>
8959
8960         Add dependencies to new dirent related modules.
8961         * modules/opendir (Depends-on): Add closedir.
8962         * modules/getcwd (Depends-on): Add opendir, closedir.
8963         * modules/dirent-safer-tests (Depends-on): Likewise.
8964         * modules/fdopendir-tests (Depends-on): Likewise.
8965         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8966         * modules/renameat-tests (Depends-on): Likewise.
8967
8968 2011-09-21  Bruno Haible  <bruno@clisp.org>
8969
8970         opendir: Avoid compilation error on mingw.
8971         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8972         * modules/opendir (Depends-on): Add unistd.
8973
8974 2011-09-21  Bruno Haible  <bruno@clisp.org>
8975
8976         ftruncate tests: Avoid a test failure on mingw.
8977         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8978
8979 2011-09-21  Bruno Haible  <bruno@clisp.org>
8980
8981         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8982         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8983         native Windows.
8984
8985 2011-09-21  Bruno Haible  <bruno@clisp.org>
8986
8987         New module 'fdopen'.
8988         * lib/stdio.in.h (fdopen): New declaration.
8989         * lib/fdopen.c: New file.
8990         * m4/fdopen.m4: New file.
8991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8992         REPLACE_FDOPEN.
8993         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8994         REPLACE_FDOPEN.
8995         * modules/fdopen: New file.
8996         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8997         * tests/test-stdio-c++.cc: Check signature of fdopen.
8998         * doc/posix-functions/fdopen.texi: Mention the new module.
8999
9000 2011-09-21  Bruno Haible  <bruno@clisp.org>
9001
9002         unlockpt tests: Avoid test failure on NetBSD 5.1.
9003         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9004         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9005
9006 2011-09-21  Bruno Haible  <bruno@clisp.org>
9007
9008         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9009         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9010         * tests/test-getlogin_r.c (main): Likewise.
9011
9012 2011-09-20  Bruno Haible  <bruno@clisp.org>
9013
9014         time tests: Don't require pid_t.
9015         * doc/posix-headers/time.texi: Revert last change.
9016         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9017         * tests/test-time.c: Comment out the check for pid_t.
9018
9019 2011-09-20  Bruno Haible  <bruno@clisp.org>
9020
9021         fsync tests: Avoid a test failure on mingw.
9022         * tests/test-fsync.c (main): Allow a failure with EIO.
9023
9024 2011-09-20  Bruno Haible  <bruno@clisp.org>
9025
9026         euidaccess: Update comments.
9027         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9028
9029 2011-09-20  Bruno Haible  <bruno@clisp.org>
9030
9031         Ensure EBADF returns for socket functions on mingw.
9032         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9033         descriptor is invalid.
9034         * lib/bind.c (rpl_bind): Likewise.
9035         * lib/connect.c (rpl_connect): Likewise.
9036         * lib/getpeername.c (rpl_getpeername): Likewise.
9037         * lib/getsockname.c (rpl_getsockname): Likewise.
9038         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9039         * lib/listen.c (rpl_listen): Likewise.
9040         * lib/recv.c (rpl_recv): Likewise.
9041         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9042         * lib/send.c (rpl_send): Likewise.
9043         * lib/sendto.c (rpl_sendto): Likewise.
9044         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9045         * lib/shutdown.c (rpl_shutdown): Likewise.
9046
9047 2011-09-20  Bruno Haible  <bruno@clisp.org>
9048
9049         select tests: EBADF tests.
9050         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9051         test_bad_fd): New functions.
9052         (test_function): Invoke also test_bad_fd.
9053
9054 2011-09-20  Bruno Haible  <bruno@clisp.org>
9055
9056         Tests for module 'posix_spawn_file_actions_addopen.
9057         * modules/posix_spawn_file_actions_addopen-tests: New file.
9058         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9059
9060         Tests for module 'posix_spawn_file_actions_adddup2'.
9061         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9062         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9063
9064         Tests for module 'posix_spawn_file_actions_addclose'.
9065         * modules/posix_spawn_file_actions_addclose-tests: New file.
9066         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9067
9068 2011-09-20  Bruno Haible  <bruno@clisp.org>
9069
9070         Tests for module 'unlockpt'.
9071         * modules/unlockpt-tests: New file.
9072         * tests/test-unlockpt.c: New file.
9073         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9074
9075         Tests for module 'grantpt'.
9076         * modules/grantpt-tests: New file.
9077         * tests/test-grantpt.c: New file.
9078         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9079
9080 2011-09-20  Bruno Haible  <bruno@clisp.org>
9081
9082         freopen tests: EBADF tests.
9083         * tests/test-freopen.c: Include errno.h, unistd.h.
9084         (main): Add tests for EBADF, commented out for the moment.
9085
9086         fclose tests: EBADF tests.
9087         * tests/test-fclose.c (main): Add tests for EBADF.
9088
9089         fflush tests: EBADF tests.
9090         * tests/test-fflush.c: Include errno.h, macros.h.
9091         (main): Add tests for EBADF.
9092
9093         ftello tests: EBADF tests.
9094         * tests/test-ftello4.sh: New file.
9095         * tests/test-ftello4.c: New file.
9096         * modules/ftello-tests (Files): Add them.
9097         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9098
9099         fseeko tests: EBADF tests.
9100         * tests/test-fseeko4.sh: New file.
9101         * tests/test-fseeko4.c: New file.
9102         * modules/fseeko-tests (Files): Add them.
9103         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9104
9105         Tests for function fputc().
9106         * modules/fputc-tests: New file.
9107         * tests/test-fputc.c: New file.
9108         * modules/stdio-tests (Depends-on): Add fputc-tests.
9109
9110         Tests for function fgetc().
9111         * modules/fgetc-tests: New file.
9112         * tests/test-fgetc.c: New file.
9113         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9114
9115         Tests for function fdopen().
9116         * modules/fdopen-tests: New file.
9117         * tests/test-fdopen.c: New file.
9118         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9119
9120         Tests for module 'vdprintf'.
9121         * modules/vdprintf-tests: New file.
9122         * tests/test-vdprintf.c: New file.
9123
9124         Tests for module 'dprintf'.
9125         * modules/dprintf-tests: New file.
9126         * tests/test-dprintf.c: New file.
9127
9128 2011-09-20  Bruno Haible  <bruno@clisp.org>
9129
9130         Tests for module 'ioctl'.
9131         * modules/ioctl-tests: New file.
9132         * tests/test-ioctl.c: New file.
9133
9134 2011-09-20  Bruno Haible  <bruno@clisp.org>
9135
9136         fcntl tests: EBADF tests.
9137         * tests/test-fcntl.c (main): Add more tests for EBADF.
9138
9139 2011-09-20  Bruno Haible  <bruno@clisp.org>
9140
9141         utimensat tests: EBADF tests.
9142         * tests/test-utimensat.c (main): Add tests for EBADF.
9143
9144         renameat tests: EBADF tests.
9145         * tests/test-renameat.c (main): Add tests for EBADF.
9146
9147         mkfifoat tests: EBADF tests.
9148         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9149
9150         readlinkat tests: EBADF tests.
9151         * tests/test-readlinkat.c (main): Add tests for EBADF.
9152
9153         symlinkat tests: EBADF tests.
9154         * tests/test-symlinkat.c (main): Add tests for EBADF.
9155
9156         linkat tests: EBADF tests.
9157         * tests/test-linkat.c (main): Add tests for EBADF.
9158
9159         Tests for module 'faccessat'.
9160         * modules/faccessat-tests: New file.
9161         * tests/test-faccessat.c: New file.
9162
9163         fdopendir tests: EBADF tests.
9164         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9165
9166         openat tests: EBADF tests.
9167         * tests/test-fchownat.c (main): Add tests for EBADF.
9168         * tests/test-fstatat.c (main): Likewise.
9169         * tests/test-mkdirat.c (main): Likewise.
9170         * tests/test-openat.c (main): Likewise.
9171         * tests/test-unlinkat.c (main): Likewise.
9172         * tests/test-fchmodat.c: New file.
9173         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9174         (Makefile.am): Also run 'test-fchmodat'.
9175
9176 2011-09-20  Bruno Haible  <bruno@clisp.org>
9177
9178         utimens, futimens, fdutimensat tests: EBADF tests.
9179         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9180
9181         Tests for function fstat().
9182         * modules/fstat-tests: New file.
9183         * tests/test-fstat.c: New file.
9184         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9185
9186 2011-09-20  Bruno Haible  <bruno@clisp.org>
9187
9188         test-ttyname_r tests: EBADF tests.
9189         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9190
9191         Tests for module 'isatty'.
9192         * modules/isatty-tests: New file.
9193         * tests/test-isatty.c: New file.
9194
9195         Tests for module 'write'.
9196         * modules/write-tests: New file.
9197         * tests/test-write.c: New file.
9198
9199         Tests for module 'read'.
9200         * modules/read-tests: New file.
9201         * tests/test-read.c: New file.
9202
9203         pwrite tests: EBADF tests.
9204         * tests/test-pwrite.c (main): Add tests for EBADF.
9205
9206         pread tests: EBADF tests.
9207         * tests/test-pread.c (main): Add tests for EBADF.
9208
9209         lseek tests: EBADF tests.
9210         * tests/test-lseek.c (main): Add more tests for EBADF.
9211
9212         Tests for module 'ftruncate'.
9213         * modules/ftruncate-tests: New file.
9214         * tests/test-ftruncate.sh: New file.
9215         * tests/test-ftruncate.c: New file.
9216
9217         fsync tests: EBADF tests.
9218         * tests/test-fsync.c (main): Add more tests for EBADF.
9219
9220         fdatasync tests: EBADF tests.
9221         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9222
9223         Tests for module 'fchown'.
9224         * modules/fchown-tests: New file.
9225         * tests/test-fchown.c: New file.
9226
9227         Tests for module 'fchmod'.
9228         * modules/fchmod-tests: New file.
9229         * tests/test-fchmod.c: New file.
9230
9231         fchdir tests: EBADF tests.
9232         * tests/test-fchdir.c (main): Add more tests for EBADF.
9233
9234         dup2 tests: EBADF tests.
9235         * tests/test-dup2.c (main): Add more tests for EBADF.
9236
9237         Tests for module 'dup'.
9238         * modules/dup-tests: New file.
9239         * tests/test-dup.c: New file.
9240
9241         Tests for module 'close'.
9242         * modules/close-tests: New file.
9243         * tests/test-close.c: New file.
9244
9245 2011-09-20  Bruno Haible  <bruno@clisp.org>
9246
9247         Tests for module 'shutdown'.
9248         * modules/shutdown-tests: New file.
9249         * tests/test-shutdown.c: New file.
9250
9251         Tests for module 'setsockopt'.
9252         * modules/setsockopt-tests: New file.
9253         * tests/test-setsockopt.c: New file.
9254
9255         Tests for module 'sendto'.
9256         * modules/sendto-tests: New file.
9257         * tests/test-sendto.c: New file.
9258
9259         Tests for module 'send'.
9260         * modules/send-tests: New file.
9261         * tests/test-send.c: New file.
9262
9263         Tests for module 'recvfrom'.
9264         * modules/recvfrom-tests: New file.
9265         * tests/test-recvfrom.c: New file.
9266
9267         Tests for module 'recv'.
9268         * modules/recv-tests: New file.
9269         * tests/test-recv.c: New file.
9270
9271         Tests for module 'listen'.
9272         * modules/listen-tests: New file.
9273         * tests/test-listen.c: New file.
9274
9275         Tests for module 'getsockopt'.
9276         * modules/getsockopt-tests: New file.
9277         * tests/test-getsockopt.c: New file.
9278
9279         Tests for module 'getsockname'.
9280         * modules/getsockname-tests: New file.
9281         * tests/test-getsockname.c: New file.
9282
9283         Tests for module 'getpeername'.
9284         * modules/getpeername-tests: New file.
9285         * tests/test-getpeername.c: New file.
9286
9287         Tests for module 'connect'.
9288         * modules/connect-tests: New file.
9289         * tests/test-connect.c: New file.
9290
9291         Tests for module 'bind'.
9292         * modules/bind-tests: New file.
9293         * tests/test-bind.c: New file.
9294
9295         accept4 tests: Fix for native Windows.
9296         * tests/test-accept4.c: Include sockets.h.
9297         (main): Invoke gl_sockets_startup.
9298         * modules/accept4-tests (Depends-on): Add sockets.
9299
9300         accept tests: Fix for native Windows.
9301         * tests/test-accept.c: Include sockets.h.
9302         (main): Invoke gl_sockets_startup.
9303         * modules/accept-tests (Depends-on): Add sockets.
9304
9305 2011-09-19  Bruno Haible  <bruno@clisp.org>
9306
9307         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9308         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9309         do...while(0).
9310         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9311         Suggested by Paul Eggert.
9312
9313 2011-09-19  Bruno Haible  <bruno@clisp.org>
9314
9315         sched: Ensure pid_t is defined.
9316         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9317         not define pid_t.
9318         * lib/sched.in.h: Include <sys/types.h>.
9319         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9320         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9321
9322 2011-09-19  Bruno Haible  <bruno@clisp.org>
9323
9324         msvc-inval: Ensure the entire expansion is a single statement.
9325         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9326         of braces.
9327
9328 2011-09-19  Jim Meyering  <meyering@redhat.com>
9329
9330         tests: use printf, not echo in init.sh's warn_ function
9331         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9332         misbehave when given strings containing a backslash or starting
9333         with e.g., -n.  James Youngman suggested setting IFS.
9334
9335 2011-09-19  Eric Blake  <eblake@redhat.com>
9336
9337         futimens: enhance test
9338         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9339         closed non-negative fd.
9340
9341         date: accept 'hence' as opposite of 'ago'
9342         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9343         * tests/test-parse-datetime.c (main): Enhance test.
9344         Suggested by Jesse Wilson.
9345
9346 2011-09-19  Jim Meyering  <meyering@redhat.com>
9347
9348         getcwd: don't fail in a deep directory on a system without openat
9349         Before this change, getcwd would fail when called from a directory
9350         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9351         the non-openat implementation used "..", "../..", "../../..", etc.
9352         to access ancestor directories.  With too many, that string would
9353         be longer than PATH_MAX.
9354         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9355         using gnulib's openat replacement.
9356         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9357         we're using the replacement function.
9358
9359 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9360
9361         maint.mk: avoid warnings from perl about missing files
9362         * top/maint.mk (def_sym_regex): Ignore files listed in
9363         $(gl_other_headers_) that do not exist, say because a project
9364         does not use a corresponding module.
9365
9366 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9367
9368         stat: use pathmax.h only if needed
9369         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9370         This is better for Emacs, which does not have a mingw port and
9371         therefore can avoid the pathmax module.
9372
9373         utimens: remove dependency on dup2
9374         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9375         to work around the Linux kernel bug.
9376         * modules/utimens (Depends-on): Remove dup2.
9377
9378 2011-09-18  Bruno Haible  <bruno@clisp.org>
9379
9380         inet_ntop, inet_pton: Look for it also in libresolv.
9381         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9382         libnsl, search for it in libresolv.
9383         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9384         Needed on Solaris 7.
9385
9386 2011-09-18  Bruno Haible  <bruno@clisp.org>
9387
9388         accept, accept4 tests: Avoid link error on Solaris.
9389         * modules/accept-tests (Makefile.am): Link test-accept against
9390         $(LIBSOCKET).
9391         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9392         $(LIBSOCKET).
9393
9394         accept4: Avoid link error on Solaris.
9395         * modules/accept4 (Link): New section.
9396
9397         socket functions: Avoid link errors on Solaris.
9398         * modules/accept (Depends-on): Add socketlib.
9399         (Link): New section.
9400         * modules/bind (Depends-on): Add socketlib.
9401         (Link): New section.
9402         * modules/connect (Depends-on): Add socketlib.
9403         (Link): New section.
9404         * modules/getpeername (Depends-on): Add socketlib.
9405         (Link): New section.
9406         * modules/getsockname (Depends-on): Add socketlib.
9407         (Link): New section.
9408         * modules/getsockopt (Depends-on): Add socketlib.
9409         (Link): New section.
9410         * modules/listen (Depends-on): Add socketlib.
9411         (Link): New section.
9412         * modules/recv (Depends-on): Add socketlib.
9413         (Link): New section.
9414         * modules/recvfrom (Depends-on): Add socketlib.
9415         (Link): New section.
9416         * modules/send (Depends-on): Add socketlib.
9417         (Link): New section.
9418         * modules/sendto (Depends-on): Add socketlib.
9419         (Link): New section.
9420         * modules/setsockopt (Depends-on): Add socketlib.
9421         (Link): New section.
9422         * modules/shutdown (Depends-on): Add socketlib.
9423         (Link): New section.
9424         * modules/socket (Depends-on): Add socketlib.
9425         (Link): New section.
9426
9427 2011-09-18  Bruno Haible  <bruno@clisp.org>
9428
9429         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9430         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9431         than 5 seconds.
9432         * modules/ptsname-tests (configure.ac): Test for alarm.
9433
9434 2011-09-18  Bruno Haible  <bruno@clisp.org>
9435
9436         posix_spawn_file_actions_add*: Fix module dependencies.
9437         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9438         posix_spawn_file_actions_init.
9439         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9440         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9441
9442 2011-09-18  Bruno Haible  <bruno@clisp.org>
9443
9444         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9445         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9446         * tests/test-renameat.c (main): Likewise.
9447
9448 2011-09-18  Bruno Haible  <bruno@clisp.org>
9449
9450         Tests for module 'accept4'.
9451         * modules/accept4-tests: New file.
9452         * tests/test-accept4.c: New file.
9453
9454 2011-09-18  Bruno Haible  <bruno@clisp.org>
9455
9456         Tests for module 'accept'.
9457         * modules/accept-tests: New file.
9458         * tests/test-accept.c: New file.
9459
9460 2011-09-18  Bruno Haible  <bruno@clisp.org>
9461
9462         dup2: Support for MSVC.
9463         * lib/dup2.c: Include msvc-inval.h.
9464         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9465         _get_osfhandle calls.
9466         * modules/dup2 (Depends-on): Add msvc-inval.
9467         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9468
9469         New module 'msvc-inval'.
9470         * lib/msvc-inval.h: New file.
9471         * lib/msvc-inval.c: New file.
9472         * m4/msvc-inval.m4: New file.
9473         * modules/msvc-inval: New file.
9474
9475 2011-09-17  Bruno Haible  <bruno@clisp.org>
9476
9477         Tests for module 'pclose'.
9478         * modules/pclose-tests: New file.
9479
9480         New module 'pclose'.
9481         * lib/stdio.in.h (pclose): New declaration.
9482         * lib/pclose.c: New file.
9483         * m4/pclose.m4: New file.
9484         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9485         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9486         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9487         * modules/pclose: New file.
9488         * modules/popen-tests (Depends-on): Add pclose.
9489         * modules/popen-safer-tests (Depends-on): Likewise.
9490         * doc/posix-functions/pclose.texi: Mention the new module.
9491
9492 2011-09-17  Bruno Haible  <bruno@clisp.org>
9493
9494         popen: Support for MSVC.
9495         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9496         * lib/popen.c (popen): Provide alternate definition for native Windows.
9497         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9499         * modules/popen (Depends-on, configure.ac): Update condition.
9500         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9501         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9502         fixed.
9503
9504 2011-09-17  Bruno Haible  <bruno@clisp.org>
9505
9506         isnanl, isnand, isnanf: Work around MSVC bug.
9507         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9508
9509 2011-09-17  Bruno Haible  <bruno@clisp.org>
9510
9511         sys_socket tests: Fix recent mistake.
9512         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9513
9514 2011-09-17  Bruno Haible  <bruno@clisp.org>
9515
9516         putenv: Support for MSVC.
9517         * modules/putenv (Depends-on): Add environ.
9518         * lib/putenv.c (environ): Disable declaration.
9519         * lib/unistd.in.h: Update comment.
9520
9521 2011-09-17  Bruno Haible  <bruno@clisp.org>
9522
9523         math: Avoid macro redefinition warnings on MSVC.
9524         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9525         Undefine before redefining.
9526
9527 2011-09-17  Bruno Haible  <bruno@clisp.org>
9528
9529         doc: Mention functions which are declared as macros.
9530         * doc/posix-functions/*[fl].texi: Mention that some functions are
9531         defined as macros with arguments only.
9532
9533 2011-09-17  Bruno Haible  <bruno@clisp.org>
9534
9535         Add dependencies to new dirent related modules.
9536         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9537         * modules/fts (Depends-on): Likewise.
9538         * modules/glob (Depends-on): Likewise.
9539         * modules/savedir (Depends-on): Likewise.
9540         * modules/scandir (Depends-on): Likewise.
9541         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9542         * modules/fdopendir (Depends-on): Add opendir.
9543
9544 2011-09-17  Bruno Haible  <bruno@clisp.org>
9545
9546         inet_pton: Support for MSVC on Windows Vista or newer.
9547         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9548         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9549         HAVE_DECL_INET_PTON is defined.
9550         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9551         On platforms with <winsock2.h>, test whether inet_pton is declared in
9552         <ws2tcpip.h>. If so, arrange to replace it.
9553         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9554         REPLACE_INET_PTON.
9555         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9556         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9557         (Depends-on, configure.ac): Update condition.
9558         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9559
9560 2011-09-17  Bruno Haible  <bruno@clisp.org>
9561
9562         inet_ntop: Support for MSVC on Windows Vista or newer.
9563         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9564         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9565         HAVE_DECL_INET_NTOP is defined.
9566         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9567         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9568         <ws2tcpip.h>. If so, arrange to replace it.
9569         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9570         REPLACE_INET_NTOP.
9571         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9572         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9573         (Depends-on, configure.ac): Update condition.
9574         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9575
9576 2011-09-16  Eric Blake  <eblake@redhat.com>
9577
9578         test-fsync: yet another enhancement
9579         * tests/test-fsync.c (main): Also test behavior on read-only text
9580         file.
9581
9582 2011-09-16  Bruno Haible  <bruno@clisp.org>
9583
9584         Enhance fsync, fdatasync tests.
9585         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9586         * tests/test-fdatasync.c (main): Likewise.
9587
9588 2011-09-16  Bruno Haible  <bruno@clisp.org>
9589
9590         Support for MSVC compiler: Ensure mode_t gets defined.
9591         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9592         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9593         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9594         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9595         * tests/test-fcntl-h.c: Check that mode_t is defined.
9596         * tests/test-sys_stat.c: Likewise.
9597         * tests/test-sys_types.c: Likewise.
9598         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9599         * doc/posix-headers/sys_stat.texi: Likewise.
9600         * doc/posix-headers/sys_types.texi: Likewise.
9601
9602 2011-09-16  Bruno Haible  <bruno@clisp.org>
9603
9604         sys_stat: Support for MSVC.
9605         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9606         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9607         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9608         MSVC.
9609
9610 2011-09-16  Bruno Haible  <bruno@clisp.org>
9611
9612         Support for MSVC compiler: Ensure off_t gets defined.
9613         * lib/unistd.in.h: Include <sys/types.h>.
9614         * tests/test-fcntl-h.c: Check that off_t is defined.
9615         * tests/test-sys_stat.c: Likewise.
9616         * tests/test-sys_types.c: Likewise.
9617
9618 2011-09-16  Eric Blake  <eblake@redhat.com>
9619
9620         fdatasync: port to Solaris
9621         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9622         * modules/fdatasync (Link): Document it.
9623         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9624
9625         fdatasync: port to MacOS X 10.7
9626         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9627         declared.
9628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9629         * modules/unistd (Makefile.am): Substitute it.
9630         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9631         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9632
9633         fdatasync: minor improvements
9634         * modules/fdatasync (Depends-on): Add condition for fsync.
9635         * lib/fdatasync.c (fdatasync): Add comment.
9636         * tests/test-unistd-c++.cc: Test fdatasync.
9637
9638         unistd: update refs to newer POSIX
9639         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9640         Suggested by Bruno Haible.
9641
9642         fdatasync: new module
9643         * modules/fsync (Description): Document difference to fdatasync.
9644         * modules/fdatasync: New module.
9645         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9646         * lib/fdatasync.c (fdatasync): Likewise.
9647         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9648         defaults.
9649         * modules/unistd (Makefile.am): Set witnesses.
9650         * lib/unistd.in.h (fdatasync): Declare.
9651         * MODULES.html.sh: Document it.
9652         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9653         * modules/fdatasync-tests: New test.
9654         * tests/test-fdatasync.c: Likewise.
9655
9656 2011-09-16  Eric Blake  <eblake@redhat.com>
9657
9658         test-fsync: enhance tests
9659         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9660         * tests/test-fsync.c (main): Enhance test.
9661
9662 2011-09-15  Bruno Haible  <bruno@clisp.org>
9663
9664         Support for MSVC compiler: Ensure ssize_t gets defined.
9665         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9666         * doc/posix-headers/stdio.texi: Likewise.
9667         * modules/stdio (Depends-on): Add ssize_t.
9668         * modules/sys_socket (Depends-on): Likewise.
9669         * modules/sys_types (Depends-on): Likewise.
9670         * modules/sys_uio (Depends-on): Likewise.
9671         * modules/unistd (Depends-on): Likewise.
9672         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9673         * tests/test-sys_types.c: Check that ssize_t is defined.
9674
9675 2011-09-14  Bruno Haible  <bruno@clisp.org>
9676
9677         Avoid using #, the m4 comment starter character, near brackets.
9678         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9679         delimiter character in sed expressions.
9680         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9681         Suggested by Eric Blake.
9682
9683         Properly quote AC_CHECK_DECLS' 4th argument.
9684         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9685         argument.
9686         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9687         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9688         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9689         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9690         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9691         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9692         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9693         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9694         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9695         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9696         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9697         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9698         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9699         * m4/isinf.m4 (gl_ISINF): Likewise.
9700         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9701         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9702         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9703         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9704         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9705         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9706         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9707         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9708         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9709         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9710         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9711         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9713         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9715         Reported by Eric Blake.
9716
9717         Properly quote AC_CHECK_DECL's 4th argument.
9718         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9719         argument.
9720         * m4/argp.m4 (gl_ARGP): Likewise.
9721         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9722         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9723         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9724         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9725         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9726         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9727         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9728         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9729         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9730         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9731         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9732         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9733         Reported by Eric Blake.
9734
9735 2011-09-14  Eric Blake  <eblake@redhat.com>
9736
9737         opendir: avoid compile warning
9738         * lib/opendir.c (includes): Always include errno.h.
9739         Reported by Tatsuro MATSUOKA.
9740
9741 2011-09-14  Jim Meyering  <meyering@redhat.com>
9742
9743         maint.mk: sc_tight_scope: propagate failure from sub-make
9744         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9745         Reported by Martin von Gagern.
9746
9747 2011-09-13  Bruno Haible  <bruno@clisp.org>
9748
9749         tempname: Support for MSVC.
9750         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9751         MSVC.
9752         * modules/tempname (Depends-on): Add fcntl-h.
9753
9754 2011-09-13  Bruno Haible  <bruno@clisp.org>
9755
9756         sys_time: Support for MSVC.
9757         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9758         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9759         include <winsock2.h>.
9760         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9761         function declarations that collide with POSIX.
9762         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9763         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9764
9765 2011-09-13  Bruno Haible  <bruno@clisp.org>
9766
9767         stat: Support for MSVC.
9768         * lib/stat.c: Include pathmax.h.
9769         * modules/stat (Depends-on): Add pathmax.
9770
9771         pathmax: Support for native Windows.
9772         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9773
9774 2011-09-12  Bruno Haible  <bruno@clisp.org>
9775
9776         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9777         * lib/dirent.in.h (struct dirent): New type.
9778         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9779         DT_WHT): New macros.
9780         (DIR): New type.
9781         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9782         (readdir, rewinddir): New declarations.
9783         * lib/dirent-private.h: New file.
9784         * lib/opendir.c: New file.
9785         * lib/readdir.c: New file.
9786         * lib/rewinddir.c: New file.
9787         * lib/closedir.c: New file.
9788         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9789         * m4/opendir.m4: New file.
9790         * m4/readdir.m4: New file.
9791         * m4/rewinddir.m4: New file.
9792         * m4/closedir.m4: New file.
9793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9794         REPLACE_CLOSEDIR here.
9795         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9796         readdir, rewinddir are declared.
9797         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9798         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9799         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9800         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9801         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9802         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9803         * modules/opendir: New file.
9804         * modules/readdir: New file.
9805         * modules/rewinddir: New file.
9806         * modules/closedir: New file.
9807         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9808         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9809         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9810         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9811         * NEWS: Mention the 'fchdir' change.
9812
9813 2011-09-11  Bruno Haible  <bruno@clisp.org>
9814
9815         asm-underscore.m4: Support for MSVC.
9816         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9817         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9818
9819 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9820
9821         Doc about crypt functions.
9822         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9823         needing for _GNU_SOURCE to get crypt.
9824         * doc/posix-functions/encrypt.texi: Likewise.
9825         * doc/posix-functions/setkey.texi: Likewise.
9826
9827 2011-09-11  Bruno Haible  <bruno@clisp.org>
9828
9829         doc: Update regarding MSVC 9.
9830         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9831         tested".
9832         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9833         * doc/posix-headers/*.texi: Likewise.
9834         * doc/pastposix-functions/*.texi: Likewise.
9835         * doc/glibc-functions/*.texi: Likewise.
9836         * doc/glibc-headers/*.texi: Likewise.
9837
9838 2011-09-11  Bruno Haible  <bruno@clisp.org>
9839
9840         unistd et al.: Don't assume <unistd.h> exists.
9841         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9842         does not exist.
9843         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9844         exist. But include <stdlib.h>.
9845         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9846         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9847         symlink() does not exist.
9848         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9849         include <io.h> instead.
9850         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9851         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9852         include <direct.h> instead.
9853         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9854         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9855         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9856         <io.h> instead.
9857         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9858         correctly if the system does not have hard links.
9859         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9860         <direct.h> instead.
9861         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9862         it when looking for function declarations.
9863         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9864         <direct.h> and <io.h> instead.
9865         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9866
9867 2011-09-11  Bruno Haible  <bruno@clisp.org>
9868
9869         strcase: Support for MSVC.
9870         * modules/strcase (Status, Notice): Remove obsoletion mark.
9871         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9872         * doc/posix-functions/strncasecmp.texi: Likewise.
9873
9874         strings: Don't assume <strings.h> exists.
9875         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9876         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9877         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9878         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9879
9880 2011-09-11  Bruno Haible  <bruno@clisp.org>
9881
9882         dirent: Don't assume <dirent.h> exists.
9883         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9884         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9885         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9886         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9887
9888 2011-09-11  Bruno Haible  <bruno@clisp.org>
9889
9890         Fix wint_t on MSVC.
9891         * lib/wchar.in.h (wint_t): On MSVC, override it.
9892         * lib/wctype.in.h (wint_t): Likewise.
9893         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9894         MSVC.
9895         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9896         * doc/posix-headers/wctype.texi: Likewise.
9897
9898 2011-09-11  Bruno Haible  <bruno@clisp.org>
9899
9900         sys_types: Fix typo.
9901         * lib/sys_types.in.h: Fix typo in comment.
9902         Reported by Paul Eggert.
9903
9904         Support for MSVC compiler: Ensure size_t gets defined.
9905         * modules/strings (Depends-on): Add 'sys_types'.
9906         * modules/sys_uio (Depends-on): Likewise.
9907         * lib/sys_uio.in.h: Update comment.
9908
9909         C++ tests for module 'sys_types'.
9910         * modules/sys_types-c++-tests: New file.
9911         * tests/test-sys_types-c++.cc: New file.
9912
9913         Tests for module 'sys_types'.
9914         * modules/sys_types-tests: New file.
9915         * tests/test-sys_types.c: New file.
9916
9917         New module 'sys_types'.
9918         * lib/sys_types.in.h: New file.
9919         * m4/sys_types_h.m4: New file.
9920         * modules/sys_types: New file.
9921         * doc/posix-headers/sys_types.texi: Mention the new module and the
9922         size_t problem on MSVC 9.
9923
9924 2011-09-11  Bruno Haible  <bruno@clisp.org>
9925
9926         Support for MSVC compiler: Avoid division by a literal 0.
9927         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9928         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9929         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9930         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9931         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9932         * tests/infinity.h: New file.
9933         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9934         on MSVC.
9935         * tests/test-ceilf1.c: Include infinity.h.
9936         (main): Use Infinityf.
9937         * tests/test-ceil1.c: Include infinity.h.
9938         (main): Use Infinityd.
9939         * tests/test-ceill.c: Include infinity.h.
9940         (main): Use Infinityl.
9941         * tests/test-dprintf-posix.c: Include infinity.h.
9942         (test_function): Use Infinityd.
9943         * tests/test-floorf1.c: Include infinity.h.
9944         (main): Use Infinityf.
9945         * tests/test-floor1.c: Include infinity.h.
9946         (main): Use Infinityd.
9947         * tests/test-floorl.c: Include infinity.h.
9948         (main): Use Infinityl.
9949         * tests/test-fprintf-posix.c: Include infinity.h.
9950         (test_function): Use Infinityd.
9951         * tests/test-frexp.c: Include infinity.h.
9952         (main): Use Infinityd.
9953         * tests/test-frexpl.c: Include infinity.h.
9954         (main): Use Infinityl.
9955         * tests/test-isfinite.c: Include infinity.h.
9956         (test_isfinitef): Use Infinityf.
9957         (test_isfinited): Use Infinityd.
9958         (test_isfinitel): Use Infinityl.
9959         * tests/test-isinf.c: Include infinity.h.
9960         (test_isinff): Use Infinityf.
9961         (test_isinfd): Use Infinityd.
9962         (test_isinfl): Use Infinityl.
9963         * tests/test-isnan.c: Include infinity.h.
9964         (test_float): Use Infinityf.
9965         (test_double): Use Infinityd.
9966         (test_long_double): Use Infinityl.
9967         * tests/test-isnanf.h: Include infinity.h.
9968         (main): Use Infinityf.
9969         * tests/test-isnand.h: Include infinity.h.
9970         (main): Use Infinityd.
9971         * tests/test-isnanl.h: Include infinity.h.
9972         (main): Use Infinityl.
9973         * tests/test-ldexpl.c: Include infinity.h.
9974         (main): Use Infinityl.
9975         * tests/test-printf-posix.h: Include infinity.h.
9976         (test_function): Use Infinityd.
9977         * tests/test-roundf1.c: Include infinity.h.
9978         (main): Use Infinityf.
9979         * tests/test-round1.c: Include infinity.h.
9980         (main): Use Infinityd.
9981         * tests/test-roundl.c: Include infinity.h.
9982         (main): Use Infinityl.
9983         * tests/test-signbit.c: Include infinity.h.
9984         (test_signbitf): Use Infinityf.
9985         (test_signbitd): Use Infinityd.
9986         (test_signbitl): Use Infinityl.
9987         * tests/test-snprintf-posix.h: Include infinity.h.
9988         (test_function): Use Infinityd, Infinityl.
9989         * tests/test-sprintf-posix.h: Include infinity.h.
9990         (test_function): Use Infinityd, Infinityl.
9991         * tests/test-truncf1.c: Include infinity.h.
9992         (main): Use Infinityf.
9993         * tests/test-trunc1.c: Include infinity.h.
9994         (main): Use Infinityd.
9995         * tests/test-truncl.c: Include infinity.h.
9996         (main): Use Infinityl.
9997         * tests/test-vasnprintf-posix.c: Include infinity.h.
9998         (test_function): Use Infinityd, Infinityl.
9999         * tests/test-vasprintf-posix.c: Include infinity.h.
10000         (test_function): Use Infinityd, Infinityl.
10001         * modules/ceilf-tests (Files): Add tests/infinity.h.
10002         * modules/ceil-tests (Files): Likewise.
10003         * modules/ceill-tests (Files): Likewise.
10004         * modules/dprintf-posix-tests (Files): Likewise.
10005         * modules/floorf-tests (Files): Likewise.
10006         * modules/floor-tests (Files): Likewise.
10007         * modules/floorl-tests (Files): Likewise.
10008         * modules/fprintf-posix-tests (Files): Likewise.
10009         * modules/frexp-tests (Files): Likewise.
10010         * modules/frexp-nolibm-tests (Files): Likewise.
10011         * modules/frexpl-tests (Files): Likewise.
10012         * modules/frexpl-nolibm-tests (Files): Likewise.
10013         * modules/isfinite-tests (Files): Likewise.
10014         * modules/isinf-tests (Files): Likewise.
10015         * modules/isnan-tests (Files): Likewise.
10016         * modules/isnanf-tests (Files): Likewise.
10017         * modules/isnanf-nolibm-tests (Files): Likewise.
10018         * modules/isnand-tests (Files): Likewise.
10019         * modules/isnand-nolibm-tests (Files): Likewise.
10020         * modules/isnanl-tests (Files): Likewise.
10021         * modules/isnanl-nolibm-tests (Files): Likewise.
10022         * modules/ldexpl-tests (Files): Likewise.
10023         * modules/printf-posix-tests (Files): Likewise.
10024         * modules/roundf-tests (Files): Likewise.
10025         * modules/round-tests (Files): Likewise.
10026         * modules/roundl-tests (Files): Likewise.
10027         * modules/signbit-tests (Files): Likewise.
10028         * modules/snprintf-posix-tests (Files): Likewise.
10029         * modules/sprintf-posix-tests (Files): Likewise.
10030         * modules/truncf-tests (Files): Likewise.
10031         * modules/trunc-tests (Files): Likewise.
10032         * modules/truncl-tests (Files): Likewise.
10033         * modules/vasnprintf-posix-tests (Files): Likewise.
10034         * modules/vasprintf-posix-tests (Files): Likewise.
10035         * modules/vdprintf-posix-tests (Files): Likewise.
10036         * modules/vfprintf-posix-tests (Files): Likewise.
10037         * modules/vprintf-posix-tests (Files): Likewise.
10038         * modules/vsnprintf-posix-tests (Files): Likewise.
10039         * modules/vsprintf-posix-tests (Files): Likewise.
10040         * modules/xprintf-posix-tests (Files): Likewise.
10041
10042 2011-09-11  Bruno Haible  <bruno@clisp.org>
10043
10044         Ensure pid_t gets defined.
10045         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10046         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10047         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10048         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10049         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10050         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10051         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10052         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10053         * tests/test-fcntl-h.c: Check that pid_t is defined.
10054         * tests/test-sched.c: Likewise.
10055         * tests/test-termios.c: Likewise.
10056         * tests/test-time.c: Likewise.
10057         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10058         * doc/posix-headers/signal.texi: Likewise.
10059         * doc/posix-headers/sys_types.texi: Likewise.
10060         * doc/posix-headers/time.texi: Likewise.
10061
10062 2011-09-11  Bruno Haible  <bruno@clisp.org>
10063
10064         acl: Fix compilation on Solaris 10 (older version).
10065         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10066         of ACE_EVERYONE.
10067         * lib/set-mode-acl.c (qset_acl): Likewise.
10068         Reported by Christian Jullien <eligis@orange.fr>.
10069
10070 2011-09-10  Bruno Haible  <bruno@clisp.org>
10071
10072         iconv, unsetenv: Add support for MSVC compiler.
10073         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10074         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10075
10076 2011-09-10  Bruno Haible  <bruno@clisp.org>
10077
10078         *printf: Add support for MSVC compiler.
10079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10080         handles the exception caused by the %n directive. When cross-compiling,
10081         guess no on native Windows.
10082         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10083         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10084         emulate it through vsnprintf.
10085         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10086         * doc/posix-functions/dprintf.texi: Update documentation regarding
10087         MSVC 9.
10088         * doc/posix-functions/fprintf.texi: Likewise.
10089         * doc/posix-functions/printf.texi: Likewise.
10090         * doc/posix-functions/snprintf.texi: Likewise.
10091         * doc/posix-functions/sprintf.texi: Likewise.
10092         * doc/posix-functions/swprintf.texi: Likewise.
10093         * doc/posix-functions/vdprintf.texi: Likewise.
10094         * doc/posix-functions/vfprintf.texi: Likewise.
10095         * doc/posix-functions/vprintf.texi: Likewise.
10096         * doc/posix-functions/vsnprintf.texi: Likewise.
10097         * doc/posix-functions/vsprintf.texi: Likewise.
10098         * doc/glibc-functions/asprintf.texi: Likewise.
10099         * doc/glibc-functions/obstack_printf.texi: Likewise.
10100         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10101         * doc/glibc-functions/vasprintf.texi: Likewise.
10102
10103 2011-09-10  Bruno Haible  <bruno@clisp.org>
10104
10105         nocrash: Add support for native Windows.
10106         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10107
10108 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10109             Bruno Haible  <bruno@clisp.org>
10110
10111         absolute-header, include-next: Add support for MSVC compiler.
10112         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10113         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10114         directory separator in #line directives.
10115         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10116         recognize also backslash as directory separator in #line directives.
10117
10118 2011-09-08  Jim Meyering  <meyering@redhat.com>
10119
10120         maint.mk: mark the post-release commit log with "maint: " prefix
10121         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10122         one-line commit-log summary.
10123
10124 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10125             Bruno Haible  <bruno@clisp.org>
10126
10127         Doc about crypt functions.
10128         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10129         systems.
10130         * doc/posix-functions/encrypt.texi: Likewise.
10131         * doc/posix-functions/setkey.texi: Likewise.
10132
10133 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10134
10135         * lib/gc.h: Fix copyright header.
10136
10137 2011-09-07  Bruno Haible  <bruno@clisp.org>
10138
10139         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10140         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10141         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10142
10143 2011-09-07  Bruno Haible  <bruno@clisp.org>
10144
10145         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10146         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10147         * lib/freopen.c: Likewise.
10148         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10149         * lib/lstat.c: Likewise.
10150         * lib/stat.c: Likewise.
10151         * lib/open.c: Use different syntax for include of <fcntl.h>.
10152         * lib/openat.c: Include fcntl.h again, explicitly.
10153
10154 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10155
10156         parse-datetime: document the newly accepted format
10157         * doc/parse-datetime.texi (Combined date and time of day items):
10158         New section.
10159
10160 2011-09-06  Bruno Haible  <bruno@clisp.org>
10161
10162         acl: Fix a test failure on newer Solaris 10 with ZFS.
10163         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10164         ENOSYS as no ACL.
10165         Reported by Jim Meyering.
10166
10167 2011-09-06  Bruno Haible  <bruno@clisp.org>
10168
10169         acl: Update for AIX >= 5.3 with NFS.
10170         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10171         ENOSYS as no ACL.
10172
10173         acl: Fix a test failure on AIX >= 5.3 with NFS.
10174         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10175         as no ACL.
10176
10177 2011-09-06  Bruno Haible  <bruno@clisp.org>
10178
10179         acl: Fix a test failure on IRIX 6.5 with NFS.
10180         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10181         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10182         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10183         * lib/copy-acl.c (qcopy_acl): Likewise.
10184
10185 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10186
10187         openat: port to AIX 7.1 with large files
10188         AIX 7.1 does a "#define openat open64at" if large files are in use,
10189         so we can't simply #undef openat.  Use the orig_openat trick (similar
10190         to orig_open in lib/open.c) to work around the problem.  Problem
10191         reported by Kevin Brott for GNU tar, in the thread containing
10192         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10193         * lib/openat.c (__need_system_fcntl_h): Define first.
10194         Include <fcntl.h> and <sys/types.h> before undefining.
10195         (orig_openat) [HAVE_OPENAT]: New inline function.
10196         (openat) [HAVE_OPENAT]: Do not undef.
10197         (rpl_openat): Use orig_openat, not openat.
10198
10199 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10200             Bruno Haible  <bruno@clisp.org>
10201
10202         acl: Avoid errors on NonStop Kernel.
10203         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10204         ENOTSUP errors.
10205
10206 2011-09-05  Bruno Haible  <bruno@clisp.org>
10207
10208         acl: Clean up Solaris code.
10209         * lib/acl-internal.h: Remove no-op #if.
10210         * lib/file-has-acl.c: Likewise.
10211         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10212         * lib/copy-acl.c (qcopy_acl): Likewise.
10213
10214 2011-09-05  Bruno Haible  <bruno@clisp.org>
10215
10216         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10217         binaries built on the original Solaris 10.
10218         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10219         trivial.
10220
10221 2011-09-05  Bruno Haible  <bruno@clisp.org>
10222
10223         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10224         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10225         10.
10226         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10227         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10228         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10229         instead of acl_get, facl_get, acl_set, facl_set.
10230
10231 2011-09-05  Bruno Haible  <bruno@clisp.org>
10232
10233         copy-file: Try unit tests on more file systems.
10234         * tests/test-copy-file-1.sh: New file.
10235         * tests/test-copy-file-2.sh: New file.
10236         * modules/copy-file-tests (Files): Add them.
10237         (Makefile.am): Add them to TESTS.
10238
10239         acl: Try unit tests on more file systems.
10240         * tests/test-file-has-acl-1.sh: New file.
10241         * tests/test-file-has-acl-2.sh: New file.
10242         * tests/test-set-mode-acl-1.sh: New file.
10243         * tests/test-set-mode-acl-2.sh: New file.
10244         * tests/test-copy-acl-1.sh: New file.
10245         * tests/test-copy-acl-2.sh: New file.
10246         * modules/acl-tests (Files): Add them.
10247         (Makefile.am): Add them to TESTS.
10248
10249 2011-09-04  Bruno Haible  <bruno@clisp.org>
10250
10251         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10252         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10253         10.
10254         (OLD_ALLOW, OLD_DENY): New macros.
10255         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10256         ACE_ACCESS_ALLOWED_ACE_TYPE.
10257         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10258         ACE_ACCESS_DENIED_ACE_TYPE.
10259         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10260         (NEW_ACE_EXECUTE): Fix value.
10261         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10262         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10263         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10264         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10265         NEW_ACE_SYNCHRONIZE): New macros.
10266         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10267         instead of acl_fromtext, acl_set, facl_set.
10268         Fixes a coreutils/tests/cp/perm failure.
10269
10270 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10271
10272         openat: test for fstatat (..., 0) bug
10273         Further testing with tar suggests that fstatat (..., 0)
10274         does not work in general, on AIX 7.1; see
10275         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10276         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10277         replacement fstatat (which is what older AIX releases were using
10278         anyway).
10279         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10280         use is now changed to orig_fstatat.  This was probably the right
10281         thing to do anyway.
10282         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10283         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10284         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10285         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10286         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10287         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10288         if the bug is found.
10289
10290         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10291         This tests for another fstatat bug on AIX 7.1:
10292         fstatat (AT_FDCWD, ..., 0) does not work.  See
10293         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10294         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10295         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10296         (rpl_fstatat): Adjust so that it works around either (or both)
10297         bugs if present.
10298         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10299
10300 2011-09-03  Karl Berry  <karl@gnu.org>
10301
10302         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10303         in index entries.
10304
10305 2011-09-02  Bruno Haible  <bruno@clisp.org>
10306
10307         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10308         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10309         values of AR, ARFLAGS, RANLIB.
10310         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10311
10312 2011-09-02  Bruno Haible  <bruno@clisp.org>
10313
10314         Find 'ar' program that fits with --host argument.
10315         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10316
10317 2011-09-02  Bruno Haible  <bruno@clisp.org>
10318
10319         tests: init.sh: Support any non-GNU diff.
10320         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10321         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10322         Solaris 8.
10323
10324 2011-09-02  Bruno Haible  <bruno@clisp.org>
10325
10326         tests: init.sh: work also with any non-GNU diff that supports -u
10327         * tests/init.sh: Relax check for diff -u support.
10328         Rather than checking for GNU diff via --version, simply check
10329         for support for -u itself.  Useful at least on OpenBSD 4.9,
10330         AIX 7.1, IRIX 6.5, and Solaris 10.
10331
10332 2011-09-01  Bruno Haible  <bruno@clisp.org>
10333
10334         strtoimax, strtoumax: Document problem on HP-UX 11.
10335         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10336         * doc/posix-functions/strtoumax.texi: Likewise.
10337
10338 2011-09-01  Bruno Haible  <bruno@clisp.org>
10339
10340         strtoumax: Avoid link error on OSF/1 with DTK cc.
10341         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10342         defined as a function.
10343         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10344         strtoumax is defined, not whether it is declared.
10345
10346 2011-09-01  Bruno Haible  <bruno@clisp.org>
10347
10348         strtoimax: Avoid link error on OSF/1 with DTK cc.
10349         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10350         defined as a function.
10351         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10352         strtoimax is defined, not whether it is declared.
10353
10354 2011-09-01  Bruno Haible  <bruno@clisp.org>
10355
10356         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10357         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10358         as a function.
10359         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10360         whether it is declared.
10361
10362 2011-09-01  Bruno Haible  <bruno@clisp.org>
10363
10364         imaxabs: Avoid link error on OSF/1 with DTK cc.
10365         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10366         as a function.
10367         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10368         whether it is declared.
10369
10370 2011-09-01  Bruno Haible  <bruno@clisp.org>
10371
10372         Tests for module 'strtoumax'.
10373         * modules/strtoumax-tests: New file.
10374         * tests/test-strtoumax.c: New file.
10375
10376         Tests for module 'strtoimax'.
10377         * modules/strtoimax-tests: New file.
10378         * tests/test-strtoimax.c: New file.
10379
10380         Tests for module 'imaxdiv'.
10381         * modules/imaxdiv-tests: New file.
10382         * tests/test-imaxdiv.c: New file.
10383
10384         Tests for module 'imaxabs'.
10385         * modules/imaxabs-tests: New file.
10386         * tests/test-imaxabs.c: New file.
10387
10388 2011-09-01  Bruno Haible  <bruno@clisp.org>
10389
10390         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10391         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10392         pthread_create.
10393
10394 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10395
10396         openat: work around AIX 7.1 fstatat issue
10397         This should fix the problem that was not properly fixed
10398         in the previous change, dated 2011-08-30.
10399         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10400         __need_system_stat_h defined.
10401         (orig_fstatat) [HAVE_FSTATAT]: New function.
10402         (rpl_fstatat): Go back to the old way of doing things,
10403         except call orig_fstatat instead of fstatat.
10404         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10405         Remove unnecessary check whether fstatat fills in st_size etc.
10406
10407 2011-09-01  Bruno Haible  <bruno@clisp.org>
10408
10409         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10410         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10411         just include the system's header.
10412
10413 2011-08-31  Jim Meyering  <meyering@redhat.com>
10414
10415         tests: avoid spurious assertion failure in test-float.c on ppc64
10416         * tests/test-float.c (test_long_double): Comment out an assertion,
10417         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10418         with gcc-4.4.4.
10419
10420         maint: indent with spaces, not TABs
10421         I need to get in the habit of running gnulib's "make check".
10422         Both of these would have been caught.
10423         * m4/largefile.m4: Indent with spaces, not TABs.
10424         * lib/parse-datetime.y (iso_8601_time): Likewise.
10425         Spotted by Pádraig Brady.
10426
10427         test-parse-datetime.c: accommodate a relatively strict gcc warning
10428         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10429         to avoid a warning from gcc's -Werror=missing-declarations.
10430         Insert a few spaces-before-funcall-parenthesis.
10431
10432 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10433
10434         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10435         The parser now accepts ISO 8601 date-time strings with "T" as the
10436         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10437         with a space between the date and time strings.  Now it also parses
10438         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10439         variants like "2004-02-29T16:21:42.333-07:00"
10440         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10441         of day representation using the 'T' separator character.
10442         * doc/parse-datetime.texi (General date syntax): replace use of
10443         deprecated --iso-8601 option with --rfc-3339 in example of date
10444         command output formats that can be parsed.
10445         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10446         lib/parse-datetime.y.
10447         (gmt_offset): New function.
10448         (main): Add additional test cases to validate ISO8601 extended
10449         date and time of day parsing.
10450
10451 2011-08-31  Bruno Haible  <bruno@clisp.org>
10452
10453         freopen: Documentation.
10454         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10455         name.
10456         Reported by Claudio Bley <claudio.bley@gmail.com>.
10457
10458 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10459
10460         freopen: Don't crash if the filename argument is NULL.
10461         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10462         NULL.
10463
10464 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10465
10466         openat: work around AIX 7.1 fstatat bug
10467         Problem reported by Kevin Brott for GNU tar, in the thread containing
10468         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10469         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10470         FSTATAT_ST_SIZE_ETC_BROKEN.
10471         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10472         rpl_fstatat.
10473         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10474         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10475         AC_CHECK_FUNCS_ONCE for fstatat.
10476         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10477         fchmodat, mkdirat, openat and unlinkat.
10478
10479 2011-08-30  Bruno Haible  <bruno@clisp.org>
10480
10481         Avoid endless recursions if config.h includes some header files.
10482         * lib/fopen.c (__need_FILE): Define already before including config.h.
10483         * lib/freopen.c (__need_FILE): Likewise.
10484         * lib/open.c (__need_system_fcntl_h): Likewise.
10485         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10486         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10487         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10488
10489 2011-08-25  Karl Berry  <karl@gnu.org>
10490
10491         * config/srclist.txt (ylwrap): new try.
10492         * build-aux/ylwrap: new file.
10493
10494 2011-08-23  Bruno Haible  <bruno@clisp.org>
10495
10496         tmpdir: Use a good default directory on native Windows.
10497         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10498         (P_tmpdir): Default to _P_tmpdir on native Windows.
10499         (path_search): On native Windows, try the value returned by GetTempPath
10500         before trying P_tmpdir.
10501         * modules/tmpdir (Depends-on): Add pathmax.
10502         Suggested by John Darrington <john@darrington.wattle.id.au>.
10503
10504 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10505
10506         doc: fix typo in README-release
10507         * top/README-release: Capitalize first word of a sentence.
10508
10509 2011-08-19  Jim Meyering  <meyering@redhat.com>
10510
10511         fts: do not exhaust memory when processing million-entry directories
10512         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10513         directory would require about 256*N bytes of memory.  Thus, it was
10514         easy to construct a directory too large to be processed by any of
10515         those tools.  With this change, fts' maximum memory utilization is
10516         now limited to around 30MB.
10517         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10518         (fts_read): When we've processed the final entry (i.e., when
10519         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10520         using the parent entry to read any remaining entries.  Dispatch
10521         depending on what fts_build returns:
10522         - NULL+stop, aka failure: stop
10523         - NULL otherwise: move up in the dir hierarchy
10524         - non-NULL: handle this new entry
10525         (fts_build): Declare and use new local, continue_readdir.
10526         Prepare to be called from fts_read, when the entries
10527         from a partially-read directory have just been exhausted.
10528         In that case, we'll skip the opendir and instead use the parent's
10529         fts_dirp and derive dir_fd from that.
10530         Finally, in the readdir loop, if we read max_entries entries,
10531         exit the loop ensuring *not* to call closedir.  This is required
10532         so that fts_dirp can be reused on a subsequent call.
10533         Prompted by Ben England's report of memory exhaustion in find
10534         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10535
10536         maint: fts: move decl of `dp' down into while loop; split a long line
10537         * lib/fts.c (fts_build): No semantic change.
10538
10539         fts: add/use new struct member, fts_dirp
10540         We are about to use this to manage any directory with
10541         too many entries to read all of them into memory at once.
10542         To do that, we'll need to save the DIR* pointer in each
10543         affected FTSENT struct.
10544         * lib/fts_.h: Include <dirent.h>.
10545         (struct FTSENT) [fts_dirp]: New member.
10546         * lib/fts.c (closedir_and_clear): Define.
10547         Use it in place of closedir so that we are sure to
10548         clear the new fts_dirp member when done with it.
10549         (fts_alloc): Initialize the new member.
10550         (fts_lfree): Free, if needed.
10551
10552         maint: fts: give __opendir2 a new parameter and rename
10553         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10554         than surreptitiously using sole caller's "dir_fd".
10555         (fts_opendir): Rename from __opendir2.
10556
10557         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10558         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10559
10560         maint: fts.c: correct off-by-one indentation
10561         * lib/fts.c (fts_build): Correct indentation, change style
10562         of a couple of block comments, and bracing style.
10563
10564         maint: fts.c: move __opendir2 #define "up" out of function body
10565         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10566
10567         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10568         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10569         out for a long time and besides was useful only on BSD systems.
10570
10571 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10572
10573         regex: port to Stratus OpenVOS
10574         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10575         define to empty, rather than attempting nonportable optimizations.
10576         Problem reported by Paul Green in:
10577         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10578         and fix suggested by Eric Blake in:
10579         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10580
10581 2011-08-17  Eric Blake  <eblake@redhat.com>
10582
10583         getcwd: fix test failures on mingw
10584         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10585         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10586         test if long directory cannot be created, and allow mingw errno.
10587
10588         getcwd-lgpl: fix m4 to match relaxed test for BSD
10589         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10590         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10591         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10592         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10593         signature problem.
10594
10595         getcwd: fix compilation on mingw64
10596         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10597         getcwd.
10598         Reported by Marc-André Lureau.
10599
10600         pipe2: silence compiler warning
10601         * lib/pipe2.c (pipe2): Hide label if it is not used.
10602
10603 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10604
10605         relocatable-prog: fix link error
10606         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10607         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10608         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10609         into modules/relocatable-lib without noticing that
10610         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10611         also needs to build relocatable.c.
10612
10613 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10614
10615         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10617         shell code: it contained a 'break' that was not in a loop.
10618         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10619         via a shell-language loop; this may have been true in old Autoconf
10620         versions, but it's not true in Autoconf 2.68.  I found this bug
10621         when testing coreutils git on Solaris 8, whose shell complains
10622         about the syntax error.
10623
10624 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10625
10626         * lib/base64.c: Fix comment to reference RFC 4648.
10627         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10628         <gvtulder@gmail.com>.
10629
10630 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10631
10632         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10633
10634         po/Makefile.in.in: fix make -q problem
10635         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10636         rule, since there's no file named 'check-macro-version' and its
10637         use as a file breaks make -q.
10638         (all): Don't depend on check-macro-version.
10639         (CHECK_MACRO_VERSION): New macro.
10640         (stamp-po): Use it.
10641
10642         configmake: fix make -q problem
10643         * modules/configmake (configmake.h): Update configmake.h's time stamp
10644         even if the file does not change.  Otherwise, 'make -q' fails.
10645         Problem reported by Simon Josefsson in
10646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10647
10648 2011-08-11  Jim Meyering  <meyering@redhat.com>
10649
10650         git-version-gen: correct the advice in a comment
10651         * build-aux/git-version-gen: Correct comment.
10652         Don't recommend to list .tarball-version in .gitignore.
10653
10654 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10655
10656         base64: fix off-by-one buffer size bug
10657         Problem and (trivial) fix reported by Gijs van Tulder in
10658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10659         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10660         * tests/test-base64.c (main): Catch the bug.
10661
10662 2011-08-10  Eric Blake  <eblake@redhat.com>
10663
10664         closein: correct comments
10665         * lib/closein.c (close_stdin): Improve comments.
10666
10667 2011-08-09  Bruno Haible  <bruno@clisp.org>
10668
10669         More tests for 'fseeko'.
10670         * tests/test-fseeko3.c: New file, from Eric Blake.
10671         * tests/test-fseeko3.sh: New file.
10672         * modules/fseeko-tests (Files): Add them.
10673         (TESTS): Add test-fseeko3.sh.
10674         (check_PROGRAMS): Add test-fseeko3.
10675
10676 2011-08-09  Eric Blake  <eblake@redhat.com>
10677
10678         fseeko: remove unneeded hack
10679         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10680
10681         fseeko: fix bug on glibc
10682         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10683         Reported by John W. Eaton.
10684
10685 2011-08-08  Bruno Haible  <bruno@clisp.org>
10686
10687         unictype/base: Fix interoperability with preinstalled libunistring.
10688         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10689         Reported by Simon Josefsson.
10690
10691 2011-08-08  Bruno Haible  <bruno@clisp.org>
10692
10693         iswblank: Detect declaration correctly.
10694         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10695         AC_CHECK_DECLS invocation.
10696
10697 2011-08-08  Bruno Haible  <bruno@clisp.org>
10698
10699         tcgetsid: Detect declaration correctly.
10700         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10701         AC_CHECK_DECLS invocation.
10702         Reported by Simon Josefsson.
10703
10704 2011-08-08  Eric Blake  <eblake@redhat.com>
10705
10706         largefile: fix typo that regressed large file support
10707         * modules/largefile (configure.ac-early): Fix section name.
10708
10709 2011-08-06  Karl Berry  <karl@gnu.org>
10710
10711         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10712         a separate module.
10713
10714 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10715
10716         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10717         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10718         get prototype for free.
10719
10720 2011-08-04  Bruno Haible  <bruno@clisp.org>
10721
10722         Tests for module 'pathmax'.
10723         * modules/pathmax-tests: New file.
10724         * tests/test-pathmax.c: New file.
10725
10726         canonicalize-lgpl: Support larger filenames on the Hurd.
10727         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10728         Reported by Paul Eggert.
10729
10730         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10731         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10732         * lib/chdir-long.h: Include pathmax.h.
10733         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10734         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10735         (PATH_MAX): Remove code that is done by pathmax.h.
10736         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10737         * lib/tmpfile.c: Add a comment.
10738         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10739         * modules/chdir-long (Depends-on): Add pathmax.
10740         * modules/getcwd (Depends-on): Add pathmax.
10741         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10742         is not defined.
10743         * doc/posix-headers/limits.texi: Mention the pathmax module.
10744         * NEWS: Mention the change.
10745
10746 2011-08-02  Bruno Haible  <bruno@clisp.org>
10747
10748         pthread_sigmask: Actually use results of gl_THREADLIB.
10749         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10750         gl_THREADLIB, not gl_[]THREADLIB.
10751         Reported by Eric Blake.
10752
10753 2011-08-02  Jim Meyering  <meyering@redhat.com>
10754
10755         maint.mk: relax the default _gl_TS_function_match regexp
10756         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10757         space between function name and "(" in an "extern" declaration.
10758         That would fail to match a decl with no space there: extern void foo();
10759
10760 2011-07-31  Iain Nicol  <iain@thenicols.net>
10761
10762         git-version-gen: document that EXTRA_DIST must include .version
10763         * build-aux/git-version-gen: In the how-to-use comment, document
10764         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10765         will fail when run from an unpacked distribution tarball.
10766
10767 2011-08-01  Bruno Haible  <bruno@clisp.org>
10768
10769         wctype-h: Fix last change.
10770         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10771         REPLACE_TOWLOWER to 0.
10772         Reported by Sam Steingold <sds@gnu.org>.
10773
10774 2011-07-31  Bruno Haible  <bruno@clisp.org>
10775
10776         frexpl: Update autoconf test.
10777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10778         according to changes of 2011-06-20.
10779
10780 2011-07-31  Bruno Haible  <bruno@clisp.org>
10781
10782         sys_utsname: Add support for Minix.
10783         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10784         <sys/utsname.h>.
10785         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10786         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10787
10788 2011-07-31  Bruno Haible  <bruno@clisp.org>
10789
10790         strings: Add support for Minix.
10791         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10792         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10793         * doc/posix-headers/strings.texi: Document the Minix problem.
10794
10795 2011-07-31  Bruno Haible  <bruno@clisp.org>
10796
10797         wctype-h: Add support for Minix.
10798         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10799         REPLACE_TOWLOWER.
10800         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10801         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10802         REPLACE_ISWCNTRL.
10803
10804 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10805
10806         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10807         This is a performance improvement for 64-bit hosts: it causes the
10808         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10809
10810 2011-07-31  Bruno Haible  <bruno@clisp.org>
10811
10812         stdioext: Add support for Minix.
10813         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10814         * lib/fpurge.c (fpurge): Likewise.
10815         * lib/freadahead.c (freadahead): Likewise.
10816         * lib/freadable.c (freadable): Likewise.
10817         * lib/freading.c (freading): Likewise.
10818         * lib/freadptr.c (freadptr): Likewise.
10819         * lib/freadseek.c (freadptrinc): Likewise.
10820         * lib/fseeko.c (rpl_fseeko): Likewise.
10821         * lib/fseterr.c (fseterr): Likewise.
10822         * lib/fwritable.c (fwritable): Likewise.
10823         * lib/fwriting.c (fwriting): Likewise.
10824         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10825         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10826
10827 2011-07-31  Bruno Haible  <bruno@clisp.org>
10828
10829         errno: Port to Minix.
10830         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10831         ECONNABORTED are defined.
10832         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10833         GNULIB_defined_ECONNABORTED): New macros.
10834         * lib/strerror-override.h (strerror_override): Test also
10835         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10836         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10837         ECONNABORTED.
10838         * doc/posix-headers/errno.texi: Mention the Minix problem.
10839
10840 2011-07-31  Bruno Haible  <bruno@clisp.org>
10841
10842         Work around declaration collisions on Minix.
10843         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10844         defined, set REPLACE_MBSINIT.
10845         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10846         defined, set REPLACE_MBRTOWC.
10847         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10848         set REPLACE_MBRLEN.
10849         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10850         defined, set REPLACE_MBSRTOWCS.
10851         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10852         defined, set REPLACE_WCRTOMB.
10853         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10854         defined, set REPLACE_WCSRTOMBS.
10855
10856 2011-07-31  Bruno Haible  <bruno@clisp.org>
10857
10858         Add support for Minix with ACK compiler.
10859         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10860         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10861         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10862
10863 2011-07-31  Bruno Haible  <bruno@clisp.org>
10864
10865         Documentation about Minix.
10866         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10867         * doc/glibc-headers/*.texi: Likewise.
10868         * doc/posix-functions/*.texi: Likewise.
10869         * doc/glibc-functions/*.texi: Likewise.
10870
10871 2011-07-31  Bruno Haible  <bruno@clisp.org>
10872
10873         snippet/warn-on-use: Fix indentation.
10874         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10875
10876 2011-07-25  Jim Meyering  <meyering@redhat.com>
10877
10878         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10879         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10880         commands.
10881
10882 2011-07-27  Jim Meyering  <meyering@redhat.com>
10883
10884         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10885         * top/maint.mk (gl_extract_significant_defines_): Now that
10886         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10887         gnulib/lib/signal.in.h, and now that we recommend to
10888         define-if-undefined those two symbols in application code,
10889         we must filter them out of the "significant" list.
10890         This avoids a "make syntax-check" failure in coreutils.
10891
10892 2011-07-26  Eric Blake  <eblake@redhat.com>
10893
10894         warnings: add comments about previous patch
10895         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10896         * m4/include_next.m4: Likewise.
10897         * m4/warn-on-use.m4: Likewise.
10898         * m4/warnings.m4: Likewise, and simplify use.
10899         Suggested by Stefano Lattarini.
10900
10901         include-next, warnings: support older autoconf
10902         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10903         AS_VAR_PUSHDEF in a way that works with older autoconf.
10904         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10905         Reported by Daniel P. Berrange.
10906
10907 2011-07-25  Bruno Haible  <bruno@clisp.org>
10908
10909         fseek, ftell: Fix doc.
10910         * doc/posix-functions/fseek.texi: Reword statement about
10911         AC_SYS_LARGEFILE.
10912         * doc/posix-functions/ftell.texi: Likewise.
10913
10914 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10915             Bruno Haible  <bruno@clisp.org>
10916
10917         Add dependencies to the 'largefile' module.
10918         * modules/fopen (Depends-on): Add 'largefile'.
10919         * modules/freopen (Depends-on): Likewise.
10920         * modules/fseeko (Depends-on): Likewise.
10921         * modules/ftello (Depends-on): Likewise.
10922         * modules/glob (Depends-on): Likewise.
10923         * modules/lseek (Depends-on): Likewise.
10924         * modules/lstat (Depends-on): Likewise.
10925         * modules/mkostemp (Depends-on): Likewise.
10926         * modules/mkostemps (Depends-on): Likewise.
10927         * modules/mkstemp (Depends-on): Likewise.
10928         * modules/mkstemps (Depends-on): Likewise.
10929         * modules/open (Depends-on): Likewise.
10930         * modules/openat (Depends-on): Likewise.
10931         * modules/pread (Depends-on): Likewise.
10932         * modules/pwrite (Depends-on): Likewise.
10933         * modules/scandir (Depends-on): Likewise.
10934         * modules/stat (Depends-on): Likewise.
10935         * modules/tmpfile (Depends-on): Likewise.
10936         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10937         since the containing module now depends on the largefile module.
10938         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10939         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10940         off_t is fixed by gnulib.
10941         * doc/posix-functions/freopen.texi: Likewise.
10942         * doc/posix-functions/fseeko.texi: Likewise.
10943         * doc/posix-functions/fstatat.texi: Likewise.
10944         * doc/posix-functions/ftello.texi: Likewise.
10945         * doc/posix-functions/glob.texi: Likewise.
10946         * doc/posix-functions/lseek.texi: Likewise.
10947         * doc/posix-functions/lstat.texi: Likewise.
10948         * doc/posix-functions/mkstemp.texi: Likewise.
10949         * doc/posix-functions/open.texi: Likewise.
10950         * doc/posix-functions/openat.texi: Likewise.
10951         * doc/posix-functions/pread.texi: Likewise.
10952         * doc/posix-functions/pwrite.texi: Likewise.
10953         * doc/posix-functions/scandir.texi: Likewise.
10954         * doc/posix-functions/stat.texi: Likewise.
10955         * doc/posix-functions/tmpfile.texi: Likewise.
10956         * doc/glibc-functions/mkostemp.texi: Likewise.
10957         * doc/glibc-functions/mkostemps.texi: Likewise.
10958         * doc/glibc-functions/mkstemps.texi: Likewise.
10959
10960 2011-07-25  Bruno Haible  <bruno@clisp.org>
10961
10962         fcntl: Move AC_LIBOBJ invocation to module description.
10963         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10964         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10965
10966         fcntl: Remove call-in from fchdir.m4.
10967         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10969
10970         dup3: Remove potential call-in from fchdir.m4.
10971         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10973
10974         dup2: Move AC_LIBOBJ invocation to module description.
10975         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10976         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10977         Don't invoke AC_LIBOBJ.
10978         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10979
10980         dup2: Remove call-in from fchdir.m4.
10981         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10983
10984         fclose: Move AC_LIBOBJ invocation to module description.
10985         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10986         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10987         to 1.
10988         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10989
10990         fclose: Remove call-in from close.m4.
10991         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10992         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10993
10994         close: Move AC_LIBOBJ invocation to module description.
10995         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10996         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10997         1.
10998         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10999
11000         close: Remove call-in from fchdir.m4.
11001         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11003
11004         open: Move AC_LIBOBJ invocation to module description.
11005         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11006         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11007         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11008
11009         open: Remove call-in from fchdir.m4.
11010         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11011         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11012
11013         fchdir: Start to remove gl_REPLACE_* idiom.
11014         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11015         (gl_FUNC_FCHDIR): Invoke it.
11016
11017 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11018
11019         * lib/ftell.c (ftell): Comment out cast.
11020
11021         close: use gl_REPLACE_FCLOSE only if defined
11022         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11023         is defined.  The close module doesn't depend on the fclose module
11024         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11026         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11027
11028 2011-07-24  Jim Meyering  <meyering@redhat.com>
11029
11030         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11031         * tests/test-select.h (test_function): Declare as "static".
11032
11033 2011-07-24  Bruno Haible  <bruno@clisp.org>
11034
11035         doc: Mention the effects of AC_SYS_LARGEFILE.
11036         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11037         on this function.
11038         * doc/posix-functions/aio_error.texi: Likewise.
11039         * doc/posix-functions/aio_fsync.texi: Likewise.
11040         * doc/posix-functions/aio_read.texi: Likewise.
11041         * doc/posix-functions/aio_return.texi: Likewise.
11042         * doc/posix-functions/aio_suspend.texi: Likewise.
11043         * doc/posix-functions/aio_write.texi: Likewise.
11044         * doc/posix-functions/fgetpos.texi: Likewise.
11045         * doc/posix-functions/fopen.texi: Likewise.
11046         * doc/posix-functions/freopen.texi: Likewise.
11047         * doc/posix-functions/fsetpos.texi: Likewise.
11048         * doc/posix-functions/fstatvfs.texi: Likewise.
11049         * doc/posix-functions/ftruncate.texi: Likewise.
11050         * doc/posix-functions/ftw.texi: Likewise.
11051         * doc/posix-functions/getrlimit.texi: Likewise.
11052         * doc/posix-functions/glob.texi: Likewise.
11053         * doc/posix-functions/lio_listio.texi: Likewise.
11054         * doc/posix-functions/lockf.texi: Likewise.
11055         * doc/posix-functions/mkstemp.texi: Likewise.
11056         * doc/posix-functions/mmap.texi: Likewise.
11057         * doc/posix-functions/nftw.texi: Likewise.
11058         * doc/posix-functions/openat.texi: Likewise.
11059         * doc/posix-functions/opendir.texi: Likewise.
11060         * doc/posix-functions/posix_fadvise.texi: Likewise.
11061         * doc/posix-functions/posix_fallocate.texi: Likewise.
11062         * doc/posix-functions/pread.texi: Likewise.
11063         * doc/posix-functions/pwrite.texi: Likewise.
11064         * doc/posix-functions/readdir.texi: Likewise.
11065         * doc/posix-functions/readdir_r.texi: Likewise.
11066         * doc/posix-functions/rewinddir.texi: Likewise.
11067         * doc/posix-functions/scandir.texi: Likewise.
11068         * doc/posix-functions/seekdir.texi: Likewise.
11069         * doc/posix-functions/setrlimit.texi: Likewise.
11070         * doc/posix-functions/statvfs.texi: Likewise.
11071         * doc/posix-functions/telldir.texi: Likewise.
11072         * doc/posix-functions/tmpfile.texi: Likewise.
11073         * doc/posix-functions/truncate.texi: Likewise.
11074         * doc/glibc-functions/fallocate.texi: Likewise.
11075         * doc/glibc-functions/fstatfs.texi: Likewise.
11076         * doc/glibc-functions/fts_children.texi: Likewise.
11077         * doc/glibc-functions/fts_read.texi: Likewise.
11078         * doc/glibc-functions/getdirentries.texi: Likewise.
11079         * doc/glibc-functions/mkostemp.texi: Likewise.
11080         * doc/glibc-functions/mkostemps.texi: Likewise.
11081         * doc/glibc-functions/mkstemps.texi: Likewise.
11082         * doc/glibc-functions/preadv.texi: Likewise.
11083         * doc/glibc-functions/pwritev.texi: Likewise.
11084         * doc/glibc-functions/sendfile.texi: Likewise.
11085         * doc/glibc-functions/statfs.texi: Likewise.
11086
11087 2011-07-24  Bruno Haible  <bruno@clisp.org>
11088
11089         doc: Fix typo.
11090         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11091
11092 2011-07-24  Bruno Haible  <bruno@clisp.org>
11093
11094         doc: Mention fsusage.
11095         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11096
11097 2011-07-24  Bruno Haible  <bruno@clisp.org>
11098
11099         doc: Mention new glibc headers and functions.
11100         * doc/glibc-headers/gshadow.texi: New file.
11101         * doc/glibc-functions/endsgent.texi: New file.
11102         * doc/glibc-functions/fgetsgent.texi: New file.
11103         * doc/glibc-functions/fgetsgent_r.texi: New file.
11104         * doc/glibc-functions/getsgent.texi: New file.
11105         * doc/glibc-functions/getsgent_r.texi: New file.
11106         * doc/glibc-functions/getsgnam.texi: New file.
11107         * doc/glibc-functions/getsgnam_r.texi: New file.
11108         * doc/glibc-functions/putsgent.texi: New file.
11109         * doc/glibc-functions/setsgent.texi: New file.
11110         * doc/glibc-functions/sgetsgent.texi: New file.
11111         * doc/glibc-functions/sgetsgent_r.texi: New file.
11112         * doc/glibc-functions/malloc_info.texi: New file.
11113         * doc/glibc-functions/preadv.texi: New file.
11114         * doc/glibc-functions/pwritev.texi: New file.
11115         * doc/glibc-functions/register_printf_modifier.texi: New file.
11116         * doc/glibc-functions/register_printf_specifier.texi: New file.
11117         * doc/glibc-functions/register_printf_type.texi: New file.
11118         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11119         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11120         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11121         * doc/glibc-functions/pthread_getname_np.texi: New file.
11122         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11123         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11124         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11125         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11126         * doc/glibc-functions/pthread_setname_np.texi: New file.
11127         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11128         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11129         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11130         * doc/glibc-functions/qsort_r.texi: New file.
11131         * doc/glibc-functions/quick_exit.texi: New file.
11132         * doc/glibc-functions/syncfs.texi: New file.
11133         * doc/gnulib.texi: Include them.
11134         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11135         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11136         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11137         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11138         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11139         * doc/glibc-functions/execvpe.texi: Likewise.
11140
11141 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11142
11143         ftell: don't include <unistd.h>
11144         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11145         guaranteed to define off_t, and the ftell module depends on the
11146         stdio module.
11147
11148         ftell: do not assume wraparound signed arithmetic
11149         * lib/ftell.c: Include <limits.h>.
11150         (ftell): Don't assume wraparound signed arithmetic.
11151
11152 2011-07-24  Bruno Haible  <bruno@clisp.org>
11153
11154         close: No longer depend on module 'fclose'.
11155         * modules/close (Depends-on): Remove fclose.
11156         * NEWS: Mention the change.
11157         Suggested by Sam Steingold <sds@gnu.org>.
11158
11159 2011-07-24  Bruno Haible  <bruno@clisp.org>
11160
11161         fsusage: Enable large volume support on AIX >= 5.2.
11162         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11163         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11164         instead of STAT_STATVFS.
11165         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11166
11167         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11168         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11169         f_blocks field only on MacOS X.
11170
11171         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11172         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11173         * modules/fsusage (Depends-on): Add largefile.
11174
11175 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11176
11177         * README: Modernize discussion of signed integers.
11178         Assuming overflow wraparound is no longer safe.
11179         Mention ones' complement and signed magnitude.
11180
11181 2011-07-22  Bruno Haible  <bruno@clisp.org>
11182
11183         select tests, pselect tests: Refactor.
11184         * tests/test-select.h: New file, extracted from tests/test-select.c.
11185         (select_fn): New type.
11186         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11187         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11188         test_pipe): Add my_select argument.
11189         (test_function): Renamed from main. Add my_select argument.
11190         * tests/test-select.c: Move most code to tests/test-select.h. Include
11191         test-select.h.
11192         * modules/select-tests (Files): Add tests/test-select.h.
11193         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11194         (my_select, main): New functions.
11195         * modules/pselect-tests (Files): Add tests/test-select.h,
11196         tests/macros.h, tests/signature.h.
11197         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11198         (configure.ac): Check for <sys/wait.h>.
11199
11200 2011-07-22  Bruno Haible  <bruno@clisp.org>
11201
11202         sys_select tests: Check the signature of FD_*.
11203         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11204         signature tests from here...
11205         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11206         here.
11207         * modules/sys_select-tests (Files): Add tests/signature.h.
11208
11209 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11210
11211         largefile: new module, replacing large-inode
11212         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11213         * MODULES.html.sh: Add largefile, remove large-inode.
11214         * modules/largefile, m4/largefile.m4: New files.
11215         * modules/large-inode, m4/large-inode.m4: Remove.
11216
11217         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11218         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11219         implementations that use only 32 bits to count blocks.
11220         On typical hosts with 1024-byte blocks, this fails with file
11221         systems as small as 4 TiB.  Problem reported by Herb Wartens
11222         <http://debbugs.gnu.org/9140> and this should also fix a similar
11223         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11224
11225         large-inode: New module
11226         * MODULES.html.sh: Add it.
11227         * modules/large-inode, m4/large-inode.m4: New files.
11228
11229         extensions: Enable extensions on MacOS X 10.5 and later.
11230         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11231
11232 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11233
11234         file-has-acl: use acl_extended_file_nofollow if available
11235         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11236         (acl_extended_file): New macro.
11237         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11238         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11239
11240 2011-07-21  Bruno Haible  <bruno@clisp.org>
11241
11242         Declare system functions in a way that works with C++.
11243         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11244         declare fdopendir as extern "C".
11245         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11246         declare frexpl as extern "C".
11247         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11248         declare gai_strerror as extern "C".
11249         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11250         programs, declare gai_strerror as extern "C".
11251         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11252         declare getlogin_r as extern "C".
11253         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11254         as extern "C".
11255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11256         declare ldexpl as extern "C".
11257         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11258         as extern "C".
11259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11260         program, declare getmntinfo as extern "C".
11261         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11262         stpncpy as extern "C".
11263         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11264         program, declare __xpg_strerror_r as extern "C".
11265         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11266         strndup as extern "C".
11267         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11268         declare memset and bzero as extern "C".
11269         Reported by Sam Steingold <sds@gnu.org>.
11270
11271 2011-07-12  Jim Meyering  <meyering@redhat.com>
11272
11273         maint.mk: prohibit inclusion of "verify.h" without use
11274         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11275
11276 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11277
11278         timer-time: A new module to check for timer_settime()
11279         * m4/timer_time.m4: Check for the posix function.
11280         * modules/timer-time: Add the new module.
11281         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11282         Mention it.
11283
11284 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11285             Bruno Haible  <bruno@clisp.org>
11286
11287         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11288         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11289         not defined, assume POSIX threads and look for pthread_sigmask in
11290         $LIBS, without changing $CPPFLAGS.
11291
11292 2011-07-19  Bruno Haible  <bruno@clisp.org>
11293
11294         strstr: Update cross-compilation guess.
11295         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11296         CPUs, guess no, in view of glibc
11297         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11298         Suggested by Eric Blake. Reported by Reuben Thomas.
11299
11300 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11301
11302         getopt-gnu: suppress core dumps from detection code
11303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11304         to suppress core dumps that may well occur on glibc systems.
11305         * modules/getopt-gnu: Depend on nocrash.
11306
11307 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11308
11309         pthread_sigmask: ensure usleep is declared
11310         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11311         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11312
11313 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11314
11315         doc: Document NonStop portability issues.
11316         * doc/posix-functions/sigaction.texi (sigaction):
11317         * doc/posix-headers/signal.texi (signal.h):
11318         Document NonStop.  See Joachim Schmitz in
11319         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11320
11321 2011-07-15  Bruno Haible  <bruno@clisp.org>
11322
11323         ffsl, ffsll: Avoid unportable behaviour.
11324         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11325
11326 2011-07-15  Bruno Haible  <bruno@clisp.org>
11327
11328         ffs: More tests.
11329         * tests/test-ffs.c (NBITS): New macro.
11330         (main): Add more tests.
11331         * tests/test-ffsl.c (NBITS): New macro.
11332         (main): Add more tests.
11333         * tests/test-ffsll.c (NBITS): New macro.
11334         (main): Add more tests.
11335
11336 2011-07-15  Eric Blake  <eblake@redhat.com>
11337
11338         ffsl, ffsll: new modules
11339         * modules/ffsl: New file.
11340         * modules/ffsll: Likewise.
11341         * m4/ffsl.m4: Likewise.
11342         * m4/ffsll.m4: Likewise.
11343         * lib/ffsl.c: Likewise.
11344         * lib/ffsl.h: Likewise.
11345         * lib/ffsll.c: Likewise.
11346         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11347         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11348         * modules/string (Makefile.am): Substitute witnesses.
11349         * lib/strings.in.h (ffsl, ffsll): Declare.
11350         * modules/ffsl-tests: New test file.
11351         * modules/ffsll-tests: Likewise.
11352         * tests/test-ffsl.c: Likewise.
11353         * tests/test-ffsll.c: Likewise.
11354         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11355         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11356         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11357
11358         ffs: fix m4 prerequisite
11359         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11360
11361         ffs: avoid undefined behavior
11362         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11363         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11364         Reported by Bruno Haible.
11365
11366 2011-07-12  Bruno Haible  <bruno@clisp.org>
11367
11368         pthread_sigmask: Rely on module 'threadlib'.
11369         * modules/pthread_sigmask (Depends-on): Add threadlib.
11370         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11371         is defined.
11372
11373 2011-07-12  Bruno Haible  <bruno@clisp.org>
11374
11375         regex: Depend on module 'strcase'.
11376         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11377
11378 2011-07-12  Jim Meyering  <meyering@redhat.com>
11379
11380         warn-on-use: fix typo in file name
11381         * modules/snippet/warn-on-use (Files): Correct file name:
11382         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11383
11384 2011-07-12  Bruno Haible  <bruno@clisp.org>
11385
11386         strings: Document module.
11387         * doc/posix-headers/strings.texi: Mention module 'strings'.
11388
11389 2011-07-12  Bruno Haible  <bruno@clisp.org>
11390
11391         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11392         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11393         (Files, Makefile.am): Update.
11394         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11395         * modules/stdlib (Depends-on): Update.
11396
11397 2011-07-12  Bruno Haible  <bruno@clisp.org>
11398
11399         * NEWS: Mention the changes.
11400
11401         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11402         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11403         (Files, Makefile.am): Update.
11404         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11405         * modules/arpa_inet (Depends-on): Update.
11406         * modules/ctype (Depends-on): Update.
11407         * modules/dirent (Depends-on): Update.
11408         * modules/fcntl-h (Depends-on): Update.
11409         * modules/glob (Depends-on): Update.
11410         * modules/iconv-h (Depends-on): Update.
11411         * modules/inttypes-incomplete (Depends-on): Update.
11412         * modules/langinfo (Depends-on): Update.
11413         * modules/locale (Depends-on): Update.
11414         * modules/math (Depends-on): Update.
11415         * modules/netdb (Depends-on): Update.
11416         * modules/poll-h (Depends-on): Update.
11417         * modules/pty (Depends-on): Update.
11418         * modules/search (Depends-on): Update.
11419         * modules/signal (Depends-on): Update.
11420         * modules/spawn (Depends-on): Update.
11421         * modules/stdio (Depends-on): Update.
11422         * modules/stdlib (Depends-on): Update.
11423         * modules/string (Depends-on): Update.
11424         * modules/strings (Depends-on): Update.
11425         * modules/sys_file (Depends-on): Update.
11426         * modules/sys_ioctl (Depends-on): Update.
11427         * modules/sys_select (Depends-on): Update.
11428         * modules/sys_socket (Depends-on): Update.
11429         * modules/sys_stat (Depends-on): Update.
11430         * modules/sys_time (Depends-on): Update.
11431         * modules/sys_times (Depends-on): Update.
11432         * modules/sys_utsname (Depends-on): Update.
11433         * modules/sys_wait (Depends-on): Update.
11434         * modules/termios (Depends-on): Update.
11435         * modules/time (Depends-on): Update.
11436         * modules/unistd (Depends-on): Update.
11437         * modules/wchar (Depends-on): Update.
11438         * modules/wctype-h (Depends-on): Update.
11439         * MODULES.html.sh (Support for building libraries and executables):
11440         Update.
11441
11442         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11443         * modules/snippet/unused-parameter: Renamed from
11444         modules/unused-parameter.
11445         (Files, Makefile.am): Update.
11446         * build-aux/snippet/unused-parameter.h: Renamed from
11447         build-aux/unused-parameter.h.
11448         * modules/selinux-h (Depends-on): Update.
11449         * modules/unistr/base (Depends-on): Update.
11450         * MODULES.html.sh (Core language properties): Update.
11451
11452         Rename module 'link-warning' to 'snippet/link-warning'.
11453         * modules/snippet/link-warning: Renamed from modules/link-warning.
11454         (Files, Makefile.am): Update.
11455         * build-aux/snippet/link-warning.h: Renamed from
11456         build-aux/link-warning.h.
11457         * MODULES.html.sh (Support for building libraries and executables):
11458         Update.
11459
11460         Rename module 'c++defs' to 'snippet/c++defs'.
11461         * modules/snippet/c++defs: Renamed from modules/c++defs.
11462         (Files, Makefile.am): Update.
11463         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11464         * modules/arpa_inet (Depends-on): Update.
11465         * modules/ctype (Depends-on): Update.
11466         * modules/dirent (Depends-on): Update.
11467         * modules/fcntl-h (Depends-on): Update.
11468         * modules/glob (Depends-on): Update.
11469         * modules/iconv-h (Depends-on): Update.
11470         * modules/langinfo (Depends-on): Update.
11471         * modules/locale (Depends-on): Update.
11472         * modules/math (Depends-on): Update.
11473         * modules/netdb (Depends-on): Update.
11474         * modules/poll-h (Depends-on): Update.
11475         * modules/pty (Depends-on): Update.
11476         * modules/search (Depends-on): Update.
11477         * modules/signal (Depends-on): Update.
11478         * modules/spawn (Depends-on): Update.
11479         * modules/stdio (Depends-on): Update.
11480         * modules/stdlib (Depends-on): Update.
11481         * modules/string (Depends-on): Update.
11482         * modules/strings (Depends-on): Update.
11483         * modules/sys_ioctl (Depends-on): Update.
11484         * modules/sys_select (Depends-on): Update.
11485         * modules/sys_socket (Depends-on): Update.
11486         * modules/sys_stat (Depends-on): Update.
11487         * modules/sys_time (Depends-on): Update.
11488         * modules/sys_wait (Depends-on): Update.
11489         * modules/termios (Depends-on): Update.
11490         * modules/time (Depends-on): Update.
11491         * modules/unistd (Depends-on): Update.
11492         * modules/wchar (Depends-on): Update.
11493         * modules/wctype-h (Depends-on): Update.
11494
11495         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11496         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11497         (Files, Makefile.am): Update.
11498         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11499         * modules/argv-iter (Depends-on): Update.
11500         * modules/arpa_inet (Depends-on): Update.
11501         * modules/dirent (Depends-on): Update.
11502         * modules/fcntl-h (Depends-on): Update.
11503         * modules/fnmatch (Depends-on): Update.
11504         * modules/getopt-posix (Depends-on): Update.
11505         * modules/glob (Depends-on): Update.
11506         * modules/iconv-h (Depends-on): Update.
11507         * modules/inttypes-incomplete (Depends-on): Update.
11508         * modules/locale (Depends-on): Update.
11509         * modules/math (Depends-on): Update.
11510         * modules/netdb (Depends-on): Update.
11511         * modules/search (Depends-on): Update.
11512         * modules/signal (Depends-on): Update.
11513         * modules/spawn (Depends-on): Update.
11514         * modules/stdio (Depends-on): Update.
11515         * modules/stdlib (Depends-on): Update.
11516         * modules/string (Depends-on): Update.
11517         * modules/strings (Depends-on): Update.
11518         * modules/sys_socket (Depends-on): Update.
11519         * modules/sys_stat (Depends-on): Update.
11520         * modules/sys_time (Depends-on): Update.
11521         * modules/sys_times (Depends-on): Update.
11522         * modules/sys_utsname (Depends-on): Update.
11523         * modules/time (Depends-on): Update.
11524         * modules/unistd (Depends-on): Update.
11525         * modules/wchar (Depends-on): Update.
11526         * MODULES.html.sh (Support for building libraries and executables):
11527         Update.
11528
11529 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11530
11531         Improvements on _Noreturn and related modules.
11532
11533         modules/_Exit-tests: test _Noreturn too
11534         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11535         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11536         (main): Use them.
11537
11538         stdnoreturn, stdnoreturn-tests: remove modules
11539         They're not needed here and a bit premature for use elsewhere.  See
11540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11541         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11542         * tests/test-stdnoreturn.c: Remove files.
11543         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11544         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11545         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11546         and using noreturn.
11547         * modules/openat, modules/sigpipe-die, modules/xalloc:
11548         * modules/xmemdup0, modules/xstrtol:
11549         Remove dependency on stdnoreturn.
11550
11551         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11552         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11553         Reparenthesize to avoid GCC warning.
11554         Support Microsoft's syntax.
11555         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11556
11557         _Noreturn-tests: remove module
11558         * modules/_Noreturn-tests: Remove.
11559         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11560         * tests/test-_Noreturn.c: Remove.
11561         * tests/test-stdnoreturn.c: Merge from the old
11562         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11563
11564 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11565
11566         _Noreturn, stdnoreturn, and related modules.
11567
11568         * top/maint.mk: Adjust to new noreturn support.
11569         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11570         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11571
11572         xalloc: use stdnoreturn.h
11573         * lib/xalloc.h: Include <stdnoreturn.h>.
11574         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11575         * modules/xalloc (Depends-on): Add stdnoreturn.
11576
11577         xstrtol: use stdnoreturn.h
11578         * lib/xstrtol.h: Include <stdnoreturn.h>.
11579         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11580         * modules/xstrtol (Depends-on): Add stdnoreturn.
11581
11582         xmemdup0: use stdnoreturn.h
11583         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11584         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11585         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11586
11587         sigpipe-die: use stdnoreturn.h
11588         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11589         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11590         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11591
11592         openat: use stdnoreturn.h
11593         * lib/openat.h: Include <stdnoreturn.h>.
11594         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11595         * modules/openat (Depends-on): Add stdnoreturn.
11596
11597         * lib/openat-die.c (openat_save_fail): Modernize comment.
11598
11599         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11600
11601         * lib/glthread/thread.h: Modernize comment.
11602
11603         obstack: use _Noreturn
11604         * lib/obstack.c (__attribute__): Remove macro.
11605         (print_and_abort): Use _Noreturn.
11606
11607         c-stack: use _Noreturn
11608         * lib/c-stack.c (die, overflow_handler, segv_handler):
11609         Use _Noreturn rather than __attribute__((noreturn)).
11610
11611         argmatch-tests, exclude_tests: use _Noreturn
11612         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11613         Remove.
11614         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11615
11616         stdlib: use _Noreturn
11617         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11618         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11619         * modules/stdlib (Depends-on): Add _Noreturn.
11620         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11621
11622         stdnoreturn-tests: new module
11623         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11624
11625         stdnoreturn: new module
11626         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11627         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11628
11629         _Noreturn-tests: new module
11630         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11631
11632         _Noreturn: new module
11633         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11634         New section, mentioning it.
11635         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11636
11637         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11638
11639 2011-07-11  Eric Blake  <eblake@redhat.com>
11640
11641         ffs: new module
11642         * modules/ffs: New file.
11643         * m4/ffs.m4: Likewise.
11644         * lib/ffs.c: Likewise.
11645         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11646         * modules/strings (Makefile.am): Substitute witness.
11647         (Depends-on): Add c++defs.
11648         * lib/strings.in.h (ffs): Declare.
11649         * modules/ffs-tests: New test file.
11650         * tests/test-ffs.c: Test new module.
11651         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11652         * doc/posix-functions/ffs.texi (ffs): Likewise.
11653
11654         regex: avoid compiler warning
11655         * lib/regex.c (includes): Include <strings.h>, for use of
11656         strcasecmp in regcomp.c.
11657         Reported by Joachim Schmitz.
11658
11659 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11660
11661         stdint: respect system's intmax_t if INTMAX_MAX
11662         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11663         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11664         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11665         long but int64_t is long long, and where we will clash with the
11666         system intmax_t if we override it.  See
11667         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11668         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11669         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11670         similarly for UINTMAX_C.
11671
11672 2011-07-08  Bruno Haible  <bruno@clisp.org>
11673
11674         pthread_sigmask tests: Avoid a compiler warning.
11675         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11676         non-zero.
11677
11678         sigprocmask tests: A better way to avoid a compiler warning.
11679         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11680         (main): Complain if system() returns non-zero.
11681         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11682
11683 2011-07-08  Bruno Haible  <bruno@clisp.org>
11684
11685         pthread_sigmask: Work around IRIX bug.
11686         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11687         bug.
11688         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11689         there may be unblocked pending signals.
11690         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11691
11692 2011-07-08  Bruno Haible  <bruno@clisp.org>
11693
11694         pthread_sigmask: Work around Cygwin bug.
11695         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11696         bug.
11697         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11698         the system's pthread_sigmask function.
11699         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11700
11701 2011-07-08  Bruno Haible  <bruno@clisp.org>
11702
11703         pthread_sigmask: Work around bug in single-threaded implementation.
11704         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11705         FreeBSD, HP-UX, Solaris bug.
11706         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11707         * lib/pthread_sigmask.c: Include <stddef.h>.
11708         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11709         the system's pthread_sigmask function.
11710         * modules/pthread_sigmask (configure.ac): Invoke
11711         gl_PREREQ_PTHREAD_SIGMASK.
11712         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11713         HP-UX, Solaris.
11714
11715 2011-07-08  Eric Blake  <eblake@redhat.com>
11716
11717         test-sigprocmask: avoid compiler warning
11718         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11719         * tests/test-sigprocmask.c (main): Use it to silence warning.
11720         Reported by Jim Meyering.
11721
11722         test-snprintf: avoid compiler warning
11723         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11724         * tests/test-vsnprintf.c (main): Likewise.
11725         Reported by Jim Meyering.
11726
11727 2011-07-08  Bruno Haible  <bruno@clisp.org>
11728
11729         Tests for module 'pthread_sigmask'.
11730         * modules/pthread_sigmask-tests: New file.
11731         * tests/test-pthread_sigmask1.c: New file, based on
11732         tests/test-sigprocmask.c.
11733         * tests/test-pthread_sigmask2.c: New file.
11734
11735 2011-07-08  Jim Meyering  <meyering@redhat.com>
11736
11737         test-getopt.h: avoid warning about an unused variable
11738         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11739
11740 2011-07-07  Jim Meyering  <meyering@redhat.com>
11741
11742         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11743         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11744         now that it no longer contains leading TABs.
11745         Remove unused "url=FIXME" statement.
11746
11747 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11748
11749         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11750         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11751         When gl_THREADLIB is not in use, assume that the POSIX sematics
11752         are desired.  This is better for Emacs, which uses POSIX semantics
11753         on GNUish and/or POSIXish platforms, and does not use threads at
11754         all otherwise.
11755
11756         pthread_sigmask: fix typo when testing for libraries
11757         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11758         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11759
11760 2011-07-08  Eric Blake  <eblake@redhat.com>
11761
11762         fts: introduce FTS_NOATIME
11763         * lib/fts_.h (FTS_NOATIME): New bit flag.
11764         (FTS_OPTIONMASK): Adjust.
11765         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11766         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11767
11768 2011-07-08  Bruno Haible  <bruno@clisp.org>
11769
11770         Tests for module 'thread'.
11771         * modules/thread-tests: New file.
11772         * tests/test-thread_self.c: New file.
11773         * tests/test-thread_create.cc: New file.
11774
11775 2011-07-08  Bruno Haible  <bruno@clisp.org>
11776
11777         thread: Avoid gcc warnings when using gl_thread_self().
11778         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11779         'void *'.
11780         (gl_thread_self_pointer): Update.
11781
11782 2011-07-07  Bruno Haible  <bruno@clisp.org>
11783
11784         signal-c++-tests: Check declaration of pthread_sigmask.
11785         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11786         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11787         $(LIB_PTHREAD_SIGMASK).
11788
11789 2011-07-07  Bruno Haible  <bruno@clisp.org>
11790
11791         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11792         * lib/signal.in.h (pthread_sigmask): Override if
11793         REPLACE_PTHREAD_SIGMASK is 1.
11794         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11795         REPLACE_PTHREAD_SIGMASK.
11796         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11797         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11798         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11799         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11800         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11801
11802 2011-07-07  Bruno Haible  <bruno@clisp.org>
11803
11804         pthread_sigmask: Ensure declaration in <signal.h>.
11805         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11806         include <pthread.h>.
11807         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11808         problem.
11809
11810 2011-07-07  Bruno Haible  <bruno@clisp.org>
11811
11812         pthread_sigmask: Document the module.
11813         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11814
11815 2011-07-07  Bruno Haible  <bruno@clisp.org>
11816
11817         pthread_sigmask: Follow gnulib conventions.
11818         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11819         gl_PTHREAD_SIGMASK.
11820         * modules/pthread_sigmask (configure.ac): Update.
11821
11822 2011-07-07  Bruno Haible  <bruno@clisp.org>
11823
11824         pthread_sigmask: Make declaration C++ safe.
11825         * lib/signal.in.h: In two special conditions, just do an #include_next.
11826         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11827         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11828         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11829         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11830         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11831         not REPLACE_PTHREAD_MASK.
11832         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11833         not REPLACE_PTHREAD_MASK.
11834         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11835
11836 2011-07-07  Bruno Haible  <bruno@clisp.org>
11837
11838         pthread_sigmask: Fix return value.
11839         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11840         * lib/pthread_sigmask.c: New file.
11841         * modules/pthread_sigmask (Files): Add it.
11842         (configure.ac): Invoke AC_LIBOBJ.
11843
11844 2011-07-07  Eric Blake  <eblake@redhat.com>
11845
11846         getopt: more portable argv creation
11847         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11848         const, use char arrays rather than strings.
11849         Suggested by Paul Eggert.
11850
11851 2011-07-07  Bruno Haible  <bruno@clisp.org>
11852
11853         Tests for module 'sigprocmask'.
11854         * modules/sigprocmask-tests: New file.
11855         * tests/test-sigprocmask.c: New file.
11856
11857 2011-07-07  Bruno Haible  <bruno@clisp.org>
11858
11859         float tests: Tweak.
11860         * tests/test-float.c (main): Tweak skip message.
11861
11862 2011-07-07  Eric Blake  <eblake@redhat.com>
11863
11864         getopt: avoid compiler warning during configure
11865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11866         assigning string literals to non-const pointer.
11867
11868         getopt-gnu: avoid crash in glibc getopt
11869         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11870         * tests/test-getopt.h (test_getopt): Enhance test.
11871         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11872         * doc/posix-functions/getopt.texi (getopt): Document it.
11873         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11874         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11875         Likewise.
11876
11877 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11878
11879         getopt: handle W; without long options in getopt [BZ #12922]
11880         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11881         but no long options are defined, just return 'W'.
11882
11883 2011-07-07  Bruno Haible  <bruno@clisp.org>
11884
11885         Avoid literal tabs.
11886         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11887         variable containing a tab instead of a literal tab.
11888         Reported by Jim Meyering.
11889
11890 2011-07-07  Bruno Haible  <bruno@clisp.org>
11891
11892         Comments.
11893         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11894
11895 2011-07-06  Bruno Haible  <bruno@clisp.org>
11896
11897         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11898         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11899         <winsock2.h>.
11900         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11901         lib/sys_socket.in.h.
11902         (close, gethostname): Hide declarations from <winsock2.h>.
11903         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11904         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11905         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11906         (select): Don't override if gnulib's <sys/select.h> was already
11907         included.
11908         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11909         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11910         setsockopt, shutdown, select): Tweak indentation.
11911
11912 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11913
11914         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11915         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11916         in an application that does not use the sys_select module.
11917
11918 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11919
11920         poll: do not return 0 on timeout=-1
11921         * lib/poll.c: Loop with yield if no events occured
11922
11923 2011-07-06  Eric Blake  <eblake@redhat.com>
11924
11925         pthread_sigmask: always replace when not using pthread
11926         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11927         replacement when using some threading other than pthread.  Fix
11928         logic bug.
11929
11930 2011-07-06  Bruno Haible  <bruno@clisp.org>
11931
11932         Comments.
11933         * m4/printf.m4: Update comments about mingw.
11934
11935 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11936
11937         sys_select: define sigset_t more portably
11938         * lib/sys_select.in.h: Always include <sys/types.h>, since
11939         we now need sigset_t and mingw defines it there.
11940         Include <signal.h> before split inclusion guard, to avoid
11941         mishaps on Solaris, whose <signal.h> eventually includes us.
11942         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11943         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11944         which come from ...
11945         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11946         gl_CHECK_TYPE_SIGSET_T.
11947         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11948         does the real work.
11949         * modules/sys_select (Depends-on): Add 'signal'.
11950
11951         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11952         Suggested by Bruno Haible.
11953
11954         pselect: Use pthread_sigmask, not sigprocmask.
11955         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11956         multithreaded apps better than sigprocmask does.
11957         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11958         sigprocmask directly.
11959
11960 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11961
11962         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11963         Don't #undef,  since we don't need any underlying pselect.
11964         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11965         (Depends-on): Add select.
11966         (Link): Add $(LIBSOCKET).
11967         These changes suggested by Bruno Haible.
11968
11969         pselect: document better
11970         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11971         * doc/posix-functions/pselect.texi (pselect): Document new module.
11972
11973         pthread_sigmask: new module
11974         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11975         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11976         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11977         This is done only as a macro; I don't know how well that'll
11978         work for C++.  Move <sys/types.h> include before the include_next,
11979         to avoid mishap on Solaris.
11980         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11981         * modules/signal (Makefile.am): Substitute the check's results.
11982         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11983
11984         test-pselect: new module
11985         * modules/pselect-tests, tests/test-pselect.c: New files.
11986         * tests/test-select.c, tests/test-sys_select-c++.cc:
11987         If TEST_PSELECT is defined, test pselect instead of testing select.
11988
11989         * tests/test-sys_select.c (sigset_t): Test for it, too.
11990         Suggested by Bruno Haible.
11991
11992 2011-07-05  Eric Blake  <eblake@redhat.com>
11993
11994         snprintf: guarantee %1$d, for libintl
11995         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11996         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11997         * doc/posix-functions/snprintf.texi (snprintf): Update.
11998         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11999         * tests/test-snprintf.c (main): Enhance test.
12000         * tests/test-vsnprintf.c (main): Likewise.
12001
12002 2011-07-05  Jim Meyering  <meyering@redhat.com>
12003
12004         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12005         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12006         per Bruno's request, to accommodate this idiom (no space after "#")
12007         even when the function is inside an #if block:
12008         char *
12009         gets (char *s)
12010         #undef gets
12011         {
12012           ...
12013         }
12014
12015 2011-07-04  Jim Meyering  <meyering@redhat.com>
12016
12017         maint: indent with spaces, not TABs, and add a rule to check this
12018         * tests/test-userspec.c: Indent with spaces, not TABs.
12019         * tests/test-argp.c: Likewise.
12020         * tests/test-c-stack2.sh: Likewise.
12021         * tests/test-parse-duration.sh: Likewise
12022         * m4/strtod.m4: Likewise.
12023         * m4/alloca.m4: Likewise.
12024         * m4/pselect.m4: Likewise.
12025         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12026
12027 2011-07-03  Jim Meyering  <meyering@redhat.com>
12028
12029         maint.mk: correct omissions in prohibit_argmatch_without_use check
12030         This rule would mistakenly report that argmatch.h is included without
12031         use even when both the argmatch and invalid_arg macro were used.
12032         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12033         of argmatch and invalid_arg.
12034
12035 2011-07-03  Bruno Haible  <bruno@clisp.org>
12036
12037         Comments about EINTR.
12038         * lib/safe-read.h: Explain the purpose of this module.
12039         * lib/safe-write.h: Likewise.
12040         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12041         module.
12042         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12043         module.
12044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12045
12046 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12047
12048         xnanosleep: Rewrite to use new dtotimespec module.
12049         It has the conversion code that used to be in xnanosleep.
12050         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12051         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12052         (TIME_T_MAX): Remove.
12053         (xnanosleep): Rewrite in terms of dtotimespec.
12054         * modules/xnanosleep (Depends-on): Add dtotimespec.
12055         Remove intprops, stdbool.
12056
12057         timespec-add, timespec-sub: new modules
12058         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12059         * lib/timespec-add.c, lib/timespec-sub.c:
12060         * modules/timespec-add, modules/timespec-sub: New files.
12061
12062         dtotimespec: new module
12063         * lib/timespec.h (dtotimespec): New decl.
12064         * lib/dtotimespec.c, modules/dtotimespec: New files.
12065
12066         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12067
12068         pselect: new module
12069         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12070         (pselect): New decls.
12071         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12072         since the standard pselect decl uses 'restrict'.
12073         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12074         HAVE_PSELECT, REPLACE_PSELECT.
12075         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12076         HAVE_PSELECT, REPLACE_PSELECT.
12077         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12078
12079         sys_select: don't depend on sys_socket
12080         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12082         This fix works on GNU and GNU-like platforms, but has not been tested
12083         on native Windows.
12084         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12085         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12086         gl_HEADER_SYS_SOCKET.
12087         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12088         gl_PREREQ_SYS_H_WINSOCK2.
12089
12090 2011-06-29  Eric Blake  <eblake@redhat.com>
12091
12092         pipe2: fix C89 compile problem
12093         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12094         Reported by Bruno Haible.
12095
12096         pipe, pipe2: don't corrupt fd on error
12097         * lib/pipe.c (pipe): Leave fd unchanged on error.
12098         * lib/pipe2.c (pipe2): Likewise.
12099         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12100         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12101
12102 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12103
12104         mmap-anon: do not use regular expressions inadvertently
12105         * m4/mmap-anon.m4: Remove trailing period from strings sought
12106         in the output.
12107
12108 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12109
12110         nanosleep: fix integer overflow problem
12111         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12112         arithmetic wraps around on overflow.
12113
12114         nanosleep: simplify carrying
12115         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12116         first call to the underyling nanosleep, not for the last one.
12117         This doesn't fix any bugs, but it simplifies the computation of
12118         the remaining delay.  Found while auditing integer overflow issues.
12119
12120         dup2: remove test for existence of fcntl
12121         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12122         "#if HAVE_FCNTL", in the configure-time test program.
12123         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12124         and therefore speeds up "configure" a bit.  Found while
12125         adding the dup2 module to Emacs.
12126
12127 2011-06-24  Eric Blake  <eblake@redhat.com>
12128
12129         maint.mk: enhance useless header checks
12130         * top/maint.mk (_sc_header_without_use): Check both include
12131         styles.
12132         (sc_prohibit_assert_without_use)
12133         (sc_prohibit_close_stream_without_use)
12134         (sc_prohibit_getopt_without_use)
12135         (sc_prohibit_quotearg_without_use)
12136         (sc_prohibit_quote_without_use)
12137         (sc_prohibit_long_options_without_use)
12138         (sc_prohibit_inttostr_without_use)
12139         (sc_prohibit_ignore_value_without_use)
12140         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12141         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12142         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12143         (sc_prohibit_hash_pjw_without_use)
12144         (sc_prohibit_safe_read_without_use)
12145         (sc_prohibit_argmatch_without_use)
12146         (sc_prohibit_canonicalize_without_use)
12147         (sc_prohibit_root_dev_ino_without_use)
12148         (sc_prohibit_openat_without_use)
12149         (sc_prohibit_c_ctype_without_use)
12150         (sc_prohibit_signal_without_use)
12151         (sc_prohibit_stdio--_without_use)
12152         (sc_prohibit_stdio-safer_without_use)
12153         (sc_prohibit_strings_without_use)
12154         (sc_prohibit_intprops_without_use)
12155         (sc_prohibit_stddef_without_use)
12156         (sc_prohibit_xfreopen_without_use): Update clients.
12157
12158 2011-06-24  Jim Meyering  <meyering@redhat.com>
12159
12160         syntax-check: keep one maint.mk rule in sync with its header
12161         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12162         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12163         I prefer to avoid temporary files here, so use <(...), but that
12164         is not supported by /bin/sh, so...
12165         (SHELL): Define to /bin/bash.
12166
12167 2011-06-24  Eric Blake  <eblake@redhat.com>
12168
12169         maint.mk: update sc_prohibit_intprops_without_use
12170         * top/maint.mk (_intprops_names): Match recent changes.
12171
12172 2011-06-24  Bruno Haible  <bruno@clisp.org>
12173
12174         strerror-override: No-op tweak.
12175         * lib/strerror-override.h (strerror_override): Reorder conditions,
12176         for consistency with lib/strerror-override.c.
12177
12178 2011-06-23  Eric Blake  <eblake@redhat.com>
12179
12180         maint.mk: test further PATH_MAX issues
12181         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12182         (sc_prohibit_path_max_allocation): ...and also test alloca.
12183         Suggested by Jim Meyering.
12184
12185 2011-06-22  Eric Blake  <eblake@redhat.com>
12186
12187         maint.mk: add syntax-check to avoid char[PATH_MAX]
12188         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12189
12190         stat: be robust to PATH_MAX definition
12191         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12192         * modules/stat (Depends-on): Add verify.
12193
12194         link: work around IRIX bug
12195         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12196         * lib/link.c (rpl_link): Work around it.
12197         * tests/test-link.h (test_link): Enhance test.
12198         * doc/posix-functions/link.texi (link): Document the bug.
12199
12200         getopt: silence clang warning
12201         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12202         dereference.
12203         Reported by Gustavo Martin Domato.
12204
12205 2011-06-22  Jim Meyering  <meyering@redhat.com>
12206
12207         bootstrap: do not insert a blank line into each .gitignore file
12208         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12209
12210 2011-06-21  Eric Blake  <eblake@redhat.com>
12211
12212         perror: test for output mismatch
12213         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12214         perror on IRIX.
12215
12216         strerror_r: fix OpenBSD behavior on out-of-range
12217         * lib/strerror_r.c (strerror_r): Always use maximal string.
12218         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12219
12220         strerror_r: fix OpenBSD behavior on 0
12221         * lib/strerror-override.c (strerror_override): Also override 0
12222         when needed.
12223         * lib/strerror-override.h (strerror_override): Likewise.
12224         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12225         earlier.
12226         * lib/strerror_r.c (strerror_r): Likewise.
12227         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12228         behavior...
12229         (gl_FUNC_STRERROR_0): ...into new macro.
12230         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12231         is overridden.
12232         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12233         * modules/strerror-override (Files): Add strerror.m4.
12234         (configure.ac): Also provide override for 0 when needed.
12235         * doc/posix-functions/strerror.texi (strerror): Document this.
12236         * doc/posix-functions/perror.texi (perror): Likewise.
12237
12238         perror: adjust array size
12239         * modules/perror (Depends-on): Add strerror-override.
12240         * lib/perror.c (perror): Use it to avoid magic number.
12241
12242         strerror-override: reduce size
12243         * lib/strerror-override.c (strerror_override): Use fewer lines.
12244
12245 2011-06-20  Bruno Haible  <bruno@clisp.org>
12246
12247         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12248         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12249
12250 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12251
12252         alloca: port to compilers that can optimize like GCC 4.6.0
12253         * lib/alloca.c (find_stack_direction): New signature, taken from
12254         Autoconf git.  This works with GCC 4.6.0.  This code should never
12255         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12256         be used with other compilers that optimize as well as GCC 4.6.0 does.
12257         (alloca): Adjust to new signature.
12258         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12259         New macro, which patches Autoconf in a similar way.
12260
12261         c-stack: stop worrying about stack direction
12262         * lib/c-stack.c (find_stack_direction): Remove.
12263         (segv_handler): Don't worry about stack direction growth, as it's
12264         too much of a pain to configure this correctly, given how compilers
12265         are optimizing-away our stack-growth detection code.  Instead, assume
12266         that any access to just before or just after the stack is OK.
12267         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12268         Don't require AC_FUNC_ALLOCA; no longer needed.
12269
12270 2011-06-20  Eric Blake  <eblake@redhat.com>
12271
12272         test-stat: don't allocate PATH_MAX bytes
12273         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12274         PATH_MAX-sized buffer.
12275         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12276         * modules/stat-tests (Depends-on): Likewise.
12277         * tests/test-fstatat.c (includes): Drop pathmax.h.
12278         * tests/test-stat.c (includes): Likewise.
12279         Reported by Bruno Haible.
12280
12281 2011-06-20  Bruno Haible  <bruno@clisp.org>
12282
12283         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12284         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12285         * lib/float.c: New file.
12286         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12287         REPLACE_FLOAT_LDBL.
12288         * modules/float (Files): Add lib/float.c.
12289         (configure.ac): Invoke AC_LIBOBJ.
12290         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12291
12292 2011-06-20  Bruno Haible  <bruno@clisp.org>
12293
12294         Tests for module 'float'.
12295         * modules/float-tests: New file.
12296         * tests/test-float.c: New file.
12297
12298 2011-06-19  Bruno Haible  <bruno@clisp.org>
12299
12300         isinf: Coding style.
12301         * lib/isinf.c: Use GNU coding style.
12302
12303 2011-06-19  Bruno Haible  <bruno@clisp.org>
12304
12305         linkat test: Avoid test failure on AIX 7.1.
12306         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12307         * tests/test-link.h (test_link): Likewise.
12308
12309 2011-06-19  Bruno Haible  <bruno@clisp.org>
12310
12311         pread test: Avoid test failure on OpenBSD 4.9.
12312         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12313
12314 2011-06-19  Bruno Haible  <bruno@clisp.org>
12315
12316         sprintf-posix: Fix test failure on AIX 7.1.
12317         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12318         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12319         on AIX.
12320         * doc/posix-functions/fprintf.texi: Likewise.
12321         * doc/posix-functions/printf.texi: Likewise.
12322         * doc/posix-functions/snprintf.texi: Likewise.
12323         * doc/posix-functions/sprintf.texi: Likewise.
12324         * doc/posix-functions/vdprintf.texi: Likewise.
12325         * doc/posix-functions/vfprintf.texi: Likewise.
12326         * doc/posix-functions/vprintf.texi: Likewise.
12327         * doc/posix-functions/vsnprintf.texi: Likewise.
12328         * doc/posix-functions/vsprintf.texi: Likewise.
12329
12330 2011-06-19  Bruno Haible  <bruno@clisp.org>
12331
12332         roundl-ieee: Fix test failure on AIX 7.1.
12333         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12334         * doc/posix-functions/roundl.texi: Mention problem with negative
12335         arguments.
12336
12337 2011-06-19  Bruno Haible  <bruno@clisp.org>
12338
12339         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12340         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12341         * doc/posix-functions/round.texi: Mention problem with negative
12342         arguments.
12343         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12344
12345 2011-06-19  Bruno Haible  <bruno@clisp.org>
12346
12347         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12349         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12350         * doc/posix-functions/roundf.texi: Mention problem with negative
12351         arguments.
12352         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12353
12354 2011-06-19  Bruno Haible  <bruno@clisp.org>
12355
12356         ceilf-ieee: Work around bug on MacOS X 10.5.
12357         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12358
12359         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12360         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12361         IEEE compliant, avoid compiler optimizations.
12362         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12363         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12364         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12365         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12366         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12367         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12368         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12369         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12370         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12371         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12372
12373 2011-06-19  Bruno Haible  <bruno@clisp.org>
12374
12375         ceilf-ieee: Work around bug on AIX 7.1.
12376         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12377         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12378
12379 2011-06-19  Bruno Haible  <bruno@clisp.org>
12380
12381         ceil-ieee: Work around bug on AIX 7.1.
12382         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12383         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12384
12385 2011-06-18  Bruno Haible  <bruno@clisp.org>
12386
12387         fsync test: Avoid test failure on MacOS X and AIX.
12388         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12389         EINVAL.
12390
12391 2011-06-18  Bruno Haible  <bruno@clisp.org>
12392
12393         openat, fdopendir tests: Fix link errors.
12394         * modules/openat-tests (Depends-on): Add progname.
12395         * modules/fdopendir-tests (Depends-on): Likewise.
12396         * tests/test-fchownat.c: Include progname.h.
12397         (main): Call set_program_name.
12398         * tests/test-fstatat.c: Include progname.h.
12399         (main): Call set_program_name.
12400         * tests/test-mkdirat.c: Include progname.h.
12401         (main): Call set_program_name.
12402         * tests/test-openat.c: Include progname.h.
12403         (main): Call set_program_name.
12404         * tests/test-unlinkat.c: Include progname.h.
12405         (main): Call set_program_name.
12406         * tests/test-fdopendir.c: Include progname.h.
12407         (main): Call set_program_name.
12408
12409 2011-06-18  Bruno Haible  <bruno@clisp.org>
12410
12411         Doc update.
12412         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12413         HP-UX.
12414         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12415
12416 2011-06-18  Bruno Haible  <bruno@clisp.org>
12417
12418         getcwd tests: Avoid compilation error on HP-UX 11.31.
12419         * modules/getcwd-tests (Depends-on): Add pathmax.
12420         * tests/test-getcwd.c: Include pathmax.h.
12421
12422 2011-06-18  Bruno Haible  <bruno@clisp.org>
12423
12424         isfinite, isinf: Fix link error on AIX 6 and 7.
12425         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12426         needed, also test the macro with a 'float' argument.
12427         * m4/isinf.m4 (gl_ISINF): Likewise.
12428
12429 2011-06-18  Bruno Haible  <bruno@clisp.org>
12430
12431         getloadavg: Don't clobber LIBS. Regression from previous commit.
12432         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12433         AC_CHECK_LIB from here...
12434         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12435         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12436         gl_func_getloadavg_done.
12437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12438
12439 2011-06-18  Bruno Haible  <bruno@clisp.org>
12440
12441         clean-temp: Improve documentation.
12442         * lib/clean-temp.h: Explain better how to use this module.
12443         Reported by John Darrington <john@darrington.wattle.id.au>.
12444
12445 2011-06-17  Bruno Haible  <bruno@clisp.org>
12446
12447         pread, pwrite: Avoid cc warning on AIX.
12448         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12449         (pwrite): Likewise.
12450
12451 2011-06-17  Bruno Haible  <bruno@clisp.org>
12452
12453         spawn-pipe tests: Fix link error.
12454         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12456
12457 2011-06-17  Bruno Haible  <bruno@clisp.org>
12458
12459         Tests: Remove unnecessary dependency.
12460         * modules/canonicalize-tests (Depends-on): Remove progname.
12461         * modules/chown-tests (Depends-on): Likewise.
12462         * modules/dirname-tests (Depends-on): Likewise.
12463         * modules/fdopendir-tests (Depends-on): Likewise.
12464         * modules/fdutimensat-tests (Depends-on): Likewise.
12465         * modules/hash-tests (Depends-on): Likewise.
12466         * modules/lchown-tests (Depends-on): Likewise.
12467         * modules/linkat-tests (Depends-on): Likewise.
12468         * modules/renameat-tests (Depends-on): Likewise.
12469         * modules/spawn-pipe-tests (Depends-on): Likewise.
12470         * modules/utimensat-tests (Depends-on): Likewise.
12471
12472 2011-06-17  Bruno Haible  <bruno@clisp.org>
12473
12474         spawn-pipe tests: Fix link error.
12475         * tests/test-spawn-pipe-child.c: Undefine fflush.
12476
12477 2011-06-17  Bruno Haible  <bruno@clisp.org>
12478
12479         Fix tests link errors.
12480         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12481         * modules/chown-tests (Makefile.am): Don't link test-chown with
12482         LIBINTL.
12483         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12484         LIBINTL.
12485         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12486         LIBINTL.
12487         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12488         LIBINTL.
12489
12490 2011-06-16  Bruno Haible  <bruno@clisp.org>
12491
12492         crypto/gc-sha1: Fix recent regression.
12493         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12494         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12495
12496         crypto/gc-md5: Fix recent regression.
12497         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12498
12499         crypto/gc-md4: Fix recent regression.
12500         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12501         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12502
12503         crypto/gc-arctwo: Fix recent regression.
12504         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12505         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12506
12507         crypto/gc-rijndael: Fix recent regression.
12508         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12509         (configure.ac): Invoke AC_LIBOBJ here.
12510         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12512
12513         crypto/gc-hmac-sha1: Fix recent regression.
12514         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12515         (configure.ac): Invoke AC_LIBOBJ here.
12516         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12518
12519         crypto/gc-hmac-md5: Fix recent regression.
12520         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12521         (configure.ac): Invoke AC_LIBOBJ here.
12522         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12524
12525         crypto/gc-des: Fix recent regression.
12526         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12527         (configure.ac): Invoke AC_LIBOBJ here.
12528         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12530
12531         crypto/gc-arcfour: Fix recent regression.
12532         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12533         (configure.ac): Invoke AC_LIBOBJ here.
12534         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12536
12537 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12538
12539         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12540         After the 2011-05-21 change, this macro requires
12541         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12542         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12543
12544 2011-06-16  Bruno Haible  <bruno@clisp.org>
12545
12546         fprintftime: Move AC_LIBOBJ invocations to module description.
12547         * m4/fprintftime.m4: Remove file.
12548         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12549         (configure.ac): Remove gl_FPRINTFTIME call.
12550         (Makefile.am): Augment lib_SOURCES.
12551         Reported by Jim Meyering.
12552
12553 2011-06-16  Bruno Haible  <bruno@clisp.org>
12554
12555         tmpfile-safer: Finish 2011-05-23 commit.
12556         * m4/stdio-safer.m4: Really remove file.
12557         Reported by Jim Meyering.
12558
12559 2011-06-16  Bruno Haible  <bruno@clisp.org>
12560
12561         syntax-check: Fix typo.
12562         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12563         printf-posix.m4.
12564         Reported by Jim Meyering.
12565
12566 2011-06-13  Jim Meyering  <meyering@redhat.com>
12567
12568         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12569         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12570
12571 2011-05-23  Bruno Haible  <bruno@clisp.org>
12572
12573         yesno: Move AC_LIBOBJ invocations to module description.
12574         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12575         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12576
12577 2011-05-23  Bruno Haible  <bruno@clisp.org>
12578
12579         xstrtol: Move AC_LIBOBJ invocations to module description.
12580         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12581         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12582
12583 2011-05-23  Bruno Haible  <bruno@clisp.org>
12584
12585         xstrtold: Move AC_LIBOBJ invocations to module description.
12586         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12587         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12588
12589 2011-05-23  Bruno Haible  <bruno@clisp.org>
12590
12591         xstrtod: Move AC_LIBOBJ invocations to module description.
12592         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12593         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12594
12595 2011-05-23  Bruno Haible  <bruno@clisp.org>
12596
12597         xnanosleep: Move AC_LIBOBJ invocations to module description.
12598         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12599         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12600
12601 2011-05-23  Bruno Haible  <bruno@clisp.org>
12602
12603         xgetcwd: Move AC_LIBOBJ invocations to module description.
12604         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12605         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12606
12607 2011-05-23  Bruno Haible  <bruno@clisp.org>
12608
12609         xalloc: Move AC_LIBOBJ invocations to module description.
12610         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12611         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12612
12613 2011-05-23  Bruno Haible  <bruno@clisp.org>
12614
12615         write-any-file: Move AC_LIBOBJ invocations to module description.
12616         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12617         invocation.
12618         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12619
12620 2011-05-23  Bruno Haible  <bruno@clisp.org>
12621
12622         utimens: Move AC_LIBOBJ invocations to module description.
12623         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12624         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12625
12626 2011-05-23  Bruno Haible  <bruno@clisp.org>
12627
12628         utimecmp: Move AC_LIBOBJ invocations to module description.
12629         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12630         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12631
12632 2011-05-23  Bruno Haible  <bruno@clisp.org>
12633
12634         userspec: Move AC_LIBOBJ invocations to module description.
12635         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12636         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12637
12638 2011-05-23  Bruno Haible  <bruno@clisp.org>
12639
12640         unlinkdir: Move AC_LIBOBJ invocations to module description.
12641         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12642         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12643
12644 2011-05-23  Bruno Haible  <bruno@clisp.org>
12645
12646         unistd-safer: Move AC_LIBOBJ invocations to module description.
12647         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12648         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12649
12650 2011-05-23  Bruno Haible  <bruno@clisp.org>
12651
12652         tempname: Move AC_LIBOBJ invocations to module description.
12653         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12654         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12655
12656 2011-05-23  Bruno Haible  <bruno@clisp.org>
12657
12658         strftime: Move AC_LIBOBJ invocations to module description.
12659         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12660         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12661
12662 2011-05-23  Bruno Haible  <bruno@clisp.org>
12663
12664         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12665         * m4/stdlib-safer.m4: Remove file.
12666         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12667         (configure.ac): Remove gl_STDLIB_SAFER call.
12668         (Makefile.am): Augment lib_SOURCES.
12669
12670 2011-05-23  Bruno Haible  <bruno@clisp.org>
12671
12672         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12673         * m4/stdio-safer.m4: Remove file.
12674         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12675         (configure.ac): Remove gl_TMPFILE_SAFER call.
12676         (Makefile.am): Augment lib_SOURCES.
12677
12678 2011-05-23  Bruno Haible  <bruno@clisp.org>
12679
12680         popen-safer: Move AC_LIBOBJ invocations to module description.
12681         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12682         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12683         (configure.ac): Remove gl_POPEN_SAFER call.
12684         (Makefile.am): Augment lib_SOURCES.
12685
12686 2011-05-23  Bruno Haible  <bruno@clisp.org>
12687
12688         freopen-safer: Move AC_LIBOBJ invocations to module description.
12689         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12690         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12691         (configure.ac): Remove gl_FREOPEN_SAFER call.
12692         (Makefile.am): Augment lib_SOURCES.
12693
12694 2011-05-23  Bruno Haible  <bruno@clisp.org>
12695
12696         fopen-safer: Move AC_LIBOBJ invocations to module description.
12697         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12698         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12699         (configure.ac): Remove gl_FOPEN_SAFER call.
12700         (Makefile.am): Augment lib_SOURCES.
12701
12702 2011-05-23  Bruno Haible  <bruno@clisp.org>
12703
12704         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12705         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12706         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12707
12708 2011-05-23  Bruno Haible  <bruno@clisp.org>
12709
12710         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12711         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12712         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12713
12714 2011-05-23  Bruno Haible  <bruno@clisp.org>
12715
12716         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12717         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12718         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12719
12720 2011-05-23  Bruno Haible  <bruno@clisp.org>
12721
12722         settime: Move AC_LIBOBJ invocations to module description.
12723         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12724         * modules/settime (Makefile.am): Augment lib_SOURCES.
12725
12726 2011-05-23  Bruno Haible  <bruno@clisp.org>
12727
12728         savedir: Move AC_LIBOBJ invocations to module description.
12729         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12730         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12731
12732 2011-05-23  Bruno Haible  <bruno@clisp.org>
12733
12734         save-cwd: Move AC_LIBOBJ invocations to module description.
12735         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12736         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12737
12738 2011-05-23  Bruno Haible  <bruno@clisp.org>
12739
12740         same: Move AC_LIBOBJ invocations to module description.
12741         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12742         * modules/same (Makefile.am): Augment lib_SOURCES.
12743
12744 2011-05-23  Bruno Haible  <bruno@clisp.org>
12745
12746         safe-write: Move AC_LIBOBJ invocations to module description.
12747         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12748         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12749         instead of gl_SAFE_WRITE.
12750         (Makefile.am): Augment lib_SOURCES.
12751
12752 2011-05-23  Bruno Haible  <bruno@clisp.org>
12753
12754         safe-read: Move AC_LIBOBJ invocations to module description.
12755         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12756         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12757         of gl_SAFE_READ.
12758         (Makefile.am): Augment lib_SOURCES.
12759
12760 2011-05-23  Bruno Haible  <bruno@clisp.org>
12761
12762         safe-alloc: Move AC_LIBOBJ invocations to module description.
12763         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12764         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12765
12766 2011-05-23  Bruno Haible  <bruno@clisp.org>
12767
12768         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12769         * m4/rijndael.m4: Remove file.
12770         * modules/crypto/rijndael (Files): Remove it.
12771         (configure.ac): Remove gl_RIJNDAEL call.
12772         (Makefile.am): Augment lib_SOURCES.
12773
12774 2011-05-23  Bruno Haible  <bruno@clisp.org>
12775
12776         readtokens: Move AC_LIBOBJ invocations to module description.
12777         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12778         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12779
12780 2011-05-23  Bruno Haible  <bruno@clisp.org>
12781
12782         read-file: Move AC_LIBOBJ invocations to module description.
12783         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12784         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12785         of gl_FUNC_READ_FILE.
12786         (Makefile.am): Augment lib_SOURCES.
12787
12788 2011-05-23  Bruno Haible  <bruno@clisp.org>
12789
12790         quotearg: Move AC_LIBOBJ invocations to module description.
12791         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12792         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12793
12794 2011-05-23  Bruno Haible  <bruno@clisp.org>
12795
12796         quote: Move AC_LIBOBJ invocations to module description.
12797         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12798         * modules/quote (Makefile.am): Augment lib_SOURCES.
12799
12800 2011-05-23  Bruno Haible  <bruno@clisp.org>
12801
12802         posixver: Move AC_LIBOBJ invocations to module description.
12803         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12804         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12805
12806 2011-05-23  Bruno Haible  <bruno@clisp.org>
12807
12808         posixtm: Move AC_LIBOBJ invocations to module description.
12809         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12810         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12811
12812 2011-05-23  Bruno Haible  <bruno@clisp.org>
12813
12814         physmem: Move AC_LIBOBJ invocations to module description.
12815         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12816         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12817
12818 2011-05-23  Bruno Haible  <bruno@clisp.org>
12819
12820         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12821         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12822         invocation.
12823         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12824
12825 2011-05-23  Bruno Haible  <bruno@clisp.org>
12826
12827         mpsort: Move AC_LIBOBJ invocations to module description.
12828         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12829         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12830
12831 2011-05-23  Bruno Haible  <bruno@clisp.org>
12832
12833         modechange: Move AC_LIBOBJ invocations to module description.
12834         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12835         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12836
12837 2011-05-23  Bruno Haible  <bruno@clisp.org>
12838
12839         mkdir-p: Move AC_LIBOBJ invocations to module description.
12840         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12841         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12842
12843 2011-05-23  Bruno Haible  <bruno@clisp.org>
12844
12845         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12846         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12847         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12848
12849 2011-05-23  Bruno Haible  <bruno@clisp.org>
12850
12851         mgetgroups: Move AC_LIBOBJ invocations to module description.
12852         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12853         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12854
12855 2011-05-23  Bruno Haible  <bruno@clisp.org>
12856
12857         memxor: Move AC_LIBOBJ invocations to module description.
12858         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12859         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12860
12861 2011-05-23  Bruno Haible  <bruno@clisp.org>
12862
12863         memcoll: Move AC_LIBOBJ invocations to module description.
12864         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12865         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12866
12867 2011-05-23  Bruno Haible  <bruno@clisp.org>
12868
12869         memcasecmp: Move AC_LIBOBJ invocations to module description.
12870         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12871         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12872
12873 2011-05-23  Bruno Haible  <bruno@clisp.org>
12874
12875         crypto/md5: Move AC_LIBOBJ invocations to module description.
12876         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12877         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12878
12879 2011-05-23  Bruno Haible  <bruno@clisp.org>
12880
12881         crypto/md4: Move AC_LIBOBJ invocations to module description.
12882         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12883         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12884
12885 2011-05-23  Bruno Haible  <bruno@clisp.org>
12886
12887         crypto/md2: Move AC_LIBOBJ invocations to module description.
12888         * m4/md2.m4: Remove file.
12889         * modules/crypto/md2 (Files): Remove it.
12890         (configure.ac): Remove gl_MD2 call.
12891         (Makefile.am): Augment lib_SOURCES.
12892
12893 2011-05-23  Bruno Haible  <bruno@clisp.org>
12894
12895         long-options: Move AC_LIBOBJ invocations to module description.
12896         * m4/long-options.m4: Remove file.
12897         * modules/long-options (Files): Remove it.
12898         (configure.ac): Remove gl_LONG_OPTIONS call.
12899         (Makefile.am): Augment lib_SOURCES.
12900
12901 2011-05-23  Bruno Haible  <bruno@clisp.org>
12902
12903         i-ring: Move AC_LIBOBJ invocations to module description.
12904         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12905         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12906
12907 2011-05-23  Bruno Haible  <bruno@clisp.org>
12908
12909         idcache: Move AC_LIBOBJ invocations to module description.
12910         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12911         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12912
12913 2011-05-23  Bruno Haible  <bruno@clisp.org>
12914
12915         human: Move AC_LIBOBJ invocations to module description.
12916         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12917         * modules/human (Makefile.am): Augment lib_SOURCES.
12918
12919 2011-05-23  Bruno Haible  <bruno@clisp.org>
12920
12921         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12922         * m4/hmac-sha1.m4: Remove file.
12923         * modules/crypto/hmac-sha1 (Files): Remove it.
12924         (configure.ac): Remove gl_HMAC_SHA1 call.
12925         (Makefile.am): Augment lib_SOURCES.
12926
12927 2011-05-23  Bruno Haible  <bruno@clisp.org>
12928
12929         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12930         * m4/hmac-md5.m4: Remove file.
12931         * modules/crypto/hmac-md5 (Files): Remove it.
12932         (configure.ac): Remove gl_HMAC_MD5 call.
12933         (Makefile.am): Augment lib_SOURCES.
12934
12935 2011-05-23  Bruno Haible  <bruno@clisp.org>
12936
12937         hash: Move AC_LIBOBJ invocations to module description.
12938         * m4/hash.m4: Remove file.
12939         * modules/hash (Files): Remove it.
12940         (configure.ac): Remove gl_HASH call.
12941         (Makefile.am): Augment lib_SOURCES.
12942
12943 2011-05-23  Bruno Haible  <bruno@clisp.org>
12944
12945         hard-locale: Move AC_LIBOBJ invocations to module description.
12946         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12947         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12948
12949 2011-05-23  Bruno Haible  <bruno@clisp.org>
12950
12951         getugroups: Move AC_LIBOBJ invocations to module description.
12952         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12953         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12954
12955 2011-05-23  Bruno Haible  <bruno@clisp.org>
12956
12957         gettime: Move AC_LIBOBJ invocations to module description.
12958         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12959         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12960
12961 2011-05-23  Bruno Haible  <bruno@clisp.org>
12962
12963         getndelim2: Move AC_LIBOBJ invocations to module description.
12964         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12965         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12966
12967 2011-05-23  Bruno Haible  <bruno@clisp.org>
12968
12969         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12970         * m4/gc-pbkdf2-sha1.m4: Remove file.
12971         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12972         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12973         (Makefile.am): Augment lib_SOURCES.
12974
12975 2011-05-23  Bruno Haible  <bruno@clisp.org>
12976
12977         fts: Move AC_LIBOBJ invocations to module description.
12978         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12979         * modules/fts (configure.ac): ... to here.
12980
12981 2011-05-23  Bruno Haible  <bruno@clisp.org>
12982
12983         file-type: Move AC_LIBOBJ invocations to module description.
12984         * m4/file-type.m4: Remove file.
12985         * modules/file-type (Files): Remove it.
12986         (configure.ac): Remove gl_FILE_TYPE call.
12987         (Makefile.am): Augment lib_SOURCES.
12988
12989 2011-05-23  Bruno Haible  <bruno@clisp.org>
12990
12991         filenamecat*: Respect rules for use of AC_LIBOBJ.
12992         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12993         Remove AC_LIBOBJ invocation.
12994         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12995         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12996
12997 2011-05-23  Bruno Haible  <bruno@clisp.org>
12998
12999         filemode: Move AC_LIBOBJ invocations to module description.
13000         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13001         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13002
13003 2011-05-23  Bruno Haible  <bruno@clisp.org>
13004
13005         openat-safer: Move AC_LIBOBJ invocations to module description.
13006         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13007         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13008
13009 2011-05-23  Bruno Haible  <bruno@clisp.org>
13010
13011         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13012         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13013         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13014
13015 2011-05-23  Bruno Haible  <bruno@clisp.org>
13016
13017         exclude: Move AC_LIBOBJ invocations to module description.
13018         * m4/exclude.m4: Remove file.
13019         * modules/exclude (Files): Remove it.
13020         (configure.ac): Remove gl_EXCLUDE call.
13021         (Makefile.am): Augment lib_SOURCES.
13022
13023 2011-05-23  Bruno Haible  <bruno@clisp.org>
13024
13025         dirname*: Respect rules for use of AC_LIBOBJ.
13026         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13027         invocations.
13028         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13029         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13030
13031 2011-05-23  Bruno Haible  <bruno@clisp.org>
13032
13033         dirent-safer: Move AC_LIBOBJ invocations to module description.
13034         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13035         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13036
13037 2011-05-23  Bruno Haible  <bruno@clisp.org>
13038
13039         crypto/des: Move AC_LIBOBJ invocations to module description.
13040         * m4/des.m4: Remove file.
13041         * modules/crypto/des (Files): Remove it.
13042         (configure.ac): Remove gl_DES call.
13043         (Makefile.am): Augment lib_SOURCES.
13044
13045 2011-05-23  Bruno Haible  <bruno@clisp.org>
13046
13047         cycle-check: Move AC_LIBOBJ invocations to module description.
13048         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13049         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13050
13051 2011-05-23  Bruno Haible  <bruno@clisp.org>
13052
13053         c-strtold: Move AC_LIBOBJ invocations to module description.
13054         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13055         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13056
13057 2011-05-23  Bruno Haible  <bruno@clisp.org>
13058
13059         c-strtod: Move AC_LIBOBJ invocations to module description.
13060         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13061         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13062
13063 2011-05-23  Bruno Haible  <bruno@clisp.org>
13064
13065         crc: Move AC_LIBOBJ invocations to module description.
13066         * m4/crc.m4: Remove file.
13067         * modules/crc (Files): Remove it.
13068         (configure.ac): Remove gl_CRC call.
13069         (Makefile.am): Augment lib_SOURCES.
13070
13071 2011-05-23  Bruno Haible  <bruno@clisp.org>
13072
13073         close-stream: Move AC_LIBOBJ invocations to module description.
13074         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13075         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13076
13077 2011-05-23  Bruno Haible  <bruno@clisp.org>
13078
13079         closeout: Move AC_LIBOBJ invocations to module description.
13080         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13081         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13082
13083 2011-05-23  Bruno Haible  <bruno@clisp.org>
13084
13085         closein: Move AC_LIBOBJ invocations to module description.
13086         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13087         * modules/closein (Makefile.am): Augment lib_SOURCES.
13088
13089 2011-05-23  Bruno Haible  <bruno@clisp.org>
13090
13091         cloexec: Move AC_LIBOBJ invocations to module description.
13092         * m4/cloexec.m4: Remove file.
13093         * modules/cloexec (Files): Remove it.
13094         (configure.ac): Remove gl_CLOEXEC call.
13095         (Makefile.am): Augment lib_SOURCES.
13096
13097 2011-05-23  Bruno Haible  <bruno@clisp.org>
13098
13099         check-version: Move AC_LIBOBJ invocations to module description.
13100         * m4/check-version.m4: Remove file.
13101         * modules/check-version (Files): Remove it.
13102         (configure.ac): Remove gl_CHECK_VERSION call.
13103         (Makefile.am): Augment lib_SOURCES.
13104
13105 2011-05-23  Bruno Haible  <bruno@clisp.org>
13106
13107         chdir-safer: Move AC_LIBOBJ invocations to module description.
13108         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13109         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13110
13111 2011-05-23  Bruno Haible  <bruno@clisp.org>
13112
13113         canonicalize: Move AC_LIBOBJ invocations to module description.
13114         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13115         AC_LIBOBJ invocation.
13116         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13117
13118 2011-05-23  Bruno Haible  <bruno@clisp.org>
13119
13120         canon-host: Move AC_LIBOBJ invocations to module description.
13121         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13122         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13123         instead of gl_CANON_HOST.
13124         (Makefile.am): Augment lib_SOURCES.
13125
13126 2011-05-23  Bruno Haible  <bruno@clisp.org>
13127
13128         backupfile: Move AC_LIBOBJ invocations to module description.
13129         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13130         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13131
13132 2011-05-23  Bruno Haible  <bruno@clisp.org>
13133
13134         argmatch: Move AC_LIBOBJ invocations to module description.
13135         * m4/argmatch.m4: Remove file.
13136         * modules/argmatch (Files): Remove it.
13137         (configure.ac): Remove gl_ARGMATCH call.
13138         (Makefile.am): Augment lib_SOURCES.
13139
13140 2011-05-23  Bruno Haible  <bruno@clisp.org>
13141
13142         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13143         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13144         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13145
13146 2011-05-23  Bruno Haible  <bruno@clisp.org>
13147
13148         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13149         * m4/arcfour.m4: Remove file.
13150         * modules/crypto/arcfour (Files): Remove it.
13151         (configure.ac): Remove gl_ARCFOUR call.
13152         (Makefile.am): Augment lib_SOURCES.
13153
13154 2011-05-22  Bruno Haible  <bruno@clisp.org>
13155
13156         write: Move AC_LIBOBJ invocations to module description.
13157         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13158         * modules/write (configure.ac): ... to here.
13159
13160 2011-05-22  Bruno Haible  <bruno@clisp.org>
13161
13162         wmemset: Move AC_LIBOBJ invocations to module description.
13163         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13164         here...
13165         * modules/wmemset (configure.ac): ... to here.
13166
13167 2011-05-22  Bruno Haible  <bruno@clisp.org>
13168
13169         wmemmove: Move AC_LIBOBJ invocations to module description.
13170         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13171         here...
13172         * modules/wmemmove (configure.ac): ... to here.
13173
13174 2011-05-22  Bruno Haible  <bruno@clisp.org>
13175
13176         wmemcpy: Move AC_LIBOBJ invocations to module description.
13177         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13178         here...
13179         * modules/wmemcpy (configure.ac): ... to here.
13180
13181 2011-05-22  Bruno Haible  <bruno@clisp.org>
13182
13183         wmemcmp: Move AC_LIBOBJ invocations to module description.
13184         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13185         here...
13186         * modules/wmemcmp (configure.ac): ... to here.
13187
13188 2011-05-22  Bruno Haible  <bruno@clisp.org>
13189
13190         wmemchr: Move AC_LIBOBJ invocations to module description.
13191         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13192         here...
13193         * modules/wmemchr (configure.ac): ... to here.
13194
13195 2011-05-22  Bruno Haible  <bruno@clisp.org>
13196
13197         wcswidth: Move AC_LIBOBJ invocations to module description.
13198         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13199         here...
13200         * modules/wcswidth (configure.ac): ... to here.
13201
13202 2011-05-22  Bruno Haible  <bruno@clisp.org>
13203
13204         wcwidth: Respect rules for use of AC_LIBOBJ.
13205         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13206         invocation from here...
13207         * modules/wcwidth (configure.ac): ... to here.
13208         (Depends-on): Update conditions.
13209
13210 2011-05-22  Bruno Haible  <bruno@clisp.org>
13211
13212         wctype: Move AC_LIBOBJ invocations to module description.
13213         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13214         invocation from here...
13215         * modules/wctype (configure.ac): ... to here.
13216         (Depends-on): Update conditions.
13217
13218 2011-05-22  Bruno Haible  <bruno@clisp.org>
13219
13220         wctrans: Move AC_LIBOBJ invocations to module description.
13221         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13222         invocation from here...
13223         * modules/wctrans (configure.ac): ... to here.
13224
13225 2011-05-22  Bruno Haible  <bruno@clisp.org>
13226
13227         wctomb: Move AC_LIBOBJ invocations to module description.
13228         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13229         invocations from here...
13230         * modules/wctomb (configure.ac): ... to here.
13231
13232 2011-05-22  Bruno Haible  <bruno@clisp.org>
13233
13234         wctob: Move AC_LIBOBJ invocations to module description.
13235         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13236         gl_PREREQ_WCTOB invocations from here...
13237         * modules/wctob (configure.ac): ... to here.
13238         (Depends-on): Update conditions.
13239
13240 2011-05-22  Bruno Haible  <bruno@clisp.org>
13241
13242         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13243         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13244         here...
13245         * modules/wcsxfrm (configure.ac): ... to here.
13246
13247 2011-05-22  Bruno Haible  <bruno@clisp.org>
13248
13249         wcstok: Move AC_LIBOBJ invocations to module description.
13250         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13251         * modules/wcstok (configure.ac): ... to here.
13252
13253 2011-05-22  Bruno Haible  <bruno@clisp.org>
13254
13255         wcsstr: Move AC_LIBOBJ invocations to module description.
13256         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13257         * modules/wcsstr (configure.ac): ... to here.
13258
13259 2011-05-22  Bruno Haible  <bruno@clisp.org>
13260
13261         wcsspn: Move AC_LIBOBJ invocations to module description.
13262         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13263         * modules/wcsspn (configure.ac): ... to here.
13264
13265 2011-05-22  Bruno Haible  <bruno@clisp.org>
13266
13267         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13268         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13269         gl_PREREQ_WCSRTOMBS invocations from here...
13270         * modules/wcsrtombs (configure.ac): ... to here.
13271
13272 2011-05-22  Bruno Haible  <bruno@clisp.org>
13273
13274         wcsrchr: Move AC_LIBOBJ invocations to module description.
13275         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13276         here...
13277         * modules/wcsrchr (configure.ac): ... to here.
13278
13279 2011-05-22  Bruno Haible  <bruno@clisp.org>
13280
13281         wcspbrk: Move AC_LIBOBJ invocations to module description.
13282         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13283         here...
13284         * modules/wcspbrk (configure.ac): ... to here.
13285
13286 2011-05-22  Bruno Haible  <bruno@clisp.org>
13287
13288         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13289         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13290         gl_PREREQ_WCSNRTOMBS invocations from here...
13291         * modules/wcsnrtombs (configure.ac): ... to here.
13292
13293 2011-05-22  Bruno Haible  <bruno@clisp.org>
13294
13295         wcsnlen: Move AC_LIBOBJ invocations to module description.
13296         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13297         here...
13298         * modules/wcsnlen (configure.ac): ... to here.
13299
13300 2011-05-22  Bruno Haible  <bruno@clisp.org>
13301
13302         wcsncpy: Move AC_LIBOBJ invocations to module description.
13303         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13304         here...
13305         * modules/wcsncpy (configure.ac): ... to here.
13306
13307 2011-05-22  Bruno Haible  <bruno@clisp.org>
13308
13309         wcsncmp: Move AC_LIBOBJ invocations to module description.
13310         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13311         here...
13312         * modules/wcsncmp (configure.ac): ... to here.
13313
13314 2011-05-22  Bruno Haible  <bruno@clisp.org>
13315
13316         wcsncat: Move AC_LIBOBJ invocations to module description.
13317         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13318         here...
13319         * modules/wcsncat (configure.ac): ... to here.
13320
13321 2011-05-22  Bruno Haible  <bruno@clisp.org>
13322
13323         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13324         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13325         from here...
13326         * modules/wcsncasecmp (configure.ac): ... to here.
13327
13328 2011-05-22  Bruno Haible  <bruno@clisp.org>
13329
13330         wcslen: Move AC_LIBOBJ invocations to module description.
13331         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13332         * modules/wcslen (configure.ac): ... to here.
13333
13334 2011-05-22  Bruno Haible  <bruno@clisp.org>
13335
13336         wcsdup: Move AC_LIBOBJ invocations to module description.
13337         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13338         * modules/wcsdup (configure.ac): ... to here.
13339
13340 2011-05-22  Bruno Haible  <bruno@clisp.org>
13341
13342         wcscspn: Move AC_LIBOBJ invocations to module description.
13343         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13344         here...
13345         * modules/wcscspn (configure.ac): ... to here.
13346
13347 2011-05-22  Bruno Haible  <bruno@clisp.org>
13348
13349         wcscpy: Move AC_LIBOBJ invocations to module description.
13350         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13351         * modules/wcscpy (configure.ac): ... to here.
13352
13353 2011-05-22  Bruno Haible  <bruno@clisp.org>
13354
13355         wcscoll: Move AC_LIBOBJ invocations to module description.
13356         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13357         here...
13358         * modules/wcscoll (configure.ac): ... to here.
13359
13360 2011-05-22  Bruno Haible  <bruno@clisp.org>
13361
13362         wcscmp: Move AC_LIBOBJ invocations to module description.
13363         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13364         * modules/wcscmp (configure.ac): ... to here.
13365
13366 2011-05-22  Bruno Haible  <bruno@clisp.org>
13367
13368         wcschr: Move AC_LIBOBJ invocations to module description.
13369         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13370         * modules/wcschr (configure.ac): ... to here.
13371
13372 2011-05-22  Bruno Haible  <bruno@clisp.org>
13373
13374         wcscat: Move AC_LIBOBJ invocations to module description.
13375         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13376         * modules/wcscat (configure.ac): ... to here.
13377
13378 2011-05-22  Bruno Haible  <bruno@clisp.org>
13379
13380         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13381         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13382         here...
13383         * modules/wcscasecmp (configure.ac): ... to here.
13384
13385 2011-05-22  Bruno Haible  <bruno@clisp.org>
13386
13387         wcrtomb: Move AC_LIBOBJ invocations to module description.
13388         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13389         invocations from here...
13390         * modules/wcrtomb (configure.ac): ... to here.
13391
13392 2011-05-22  Bruno Haible  <bruno@clisp.org>
13393
13394         wcpncpy: Move AC_LIBOBJ invocations to module description.
13395         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13396         here...
13397         * modules/wcpncpy (configure.ac): ... to here.
13398
13399 2011-05-22  Bruno Haible  <bruno@clisp.org>
13400
13401         wcpcpy: Move AC_LIBOBJ invocations to module description.
13402         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13403         * modules/wcpcpy (configure.ac): ... to here.
13404
13405 2011-05-22  Bruno Haible  <bruno@clisp.org>
13406
13407         waitpid: Move AC_LIBOBJ invocations to module description.
13408         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13409         invocation from here...
13410         * modules/waitpid (configure.ac): ... to here.
13411
13412 2011-05-22  Bruno Haible  <bruno@clisp.org>
13413
13414         utimensat: Move AC_LIBOBJ invocations to module description.
13415         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13416         here...
13417         * modules/utimensat (configure.ac): ... to here.
13418
13419 2011-05-22  Bruno Haible  <bruno@clisp.org>
13420
13421         usleep: Move AC_LIBOBJ invocations to module description.
13422         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13423         here...
13424         * modules/usleep (configure.ac): ... to here.
13425
13426 2011-05-22  Bruno Haible  <bruno@clisp.org>
13427
13428         unlockpt: Move AC_LIBOBJ invocations to module description.
13429         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13430         gl_PREREQ_UNLOCKPT invocations from here...
13431         * modules/unlockpt (configure.ac): ... to here.
13432
13433 2011-05-22  Bruno Haible  <bruno@clisp.org>
13434
13435         unlink: Respect rules for use of AC_LIBOBJ.
13436         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13437         * modules/unlink (configure.ac): ... to here.
13438
13439 2011-05-22  Bruno Haible  <bruno@clisp.org>
13440
13441         uname: Move AC_LIBOBJ invocations to module description.
13442         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13443         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13444         here...
13445         * modules/uname (configure.ac): ... to here.
13446
13447 2011-05-22  Bruno Haible  <bruno@clisp.org>
13448
13449         ttyname_r: Move AC_LIBOBJ invocations to module description.
13450         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13451         gl_PREREQ_TTYNAME_R invocations from here...
13452         * modules/ttyname_r (configure.ac): ... to here.
13453
13454 2011-05-22  Bruno Haible  <bruno@clisp.org>
13455
13456         tsearch: Move AC_LIBOBJ invocations to module description.
13457         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13458         invocations from here...
13459         * modules/tsearch (configure.ac): ... to here.
13460
13461 2011-05-22  Bruno Haible  <bruno@clisp.org>
13462
13463         towctrans: Move AC_LIBOBJ invocations to module description.
13464         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13465         AC_LIBOBJ invocation from here...
13466         * modules/towctrans (configure.ac): ... to here.
13467
13468 2011-05-22  Bruno Haible  <bruno@clisp.org>
13469
13470         tmpfile: Move AC_LIBOBJ invocations to module description.
13471         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13472         invocations from here...
13473         * modules/tmpfile (configure.ac): ... to here.
13474
13475 2011-05-22  Bruno Haible  <bruno@clisp.org>
13476
13477         times: Move AC_LIBOBJ invocations to module description.
13478         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13479         * modules/times (configure.ac): ... to here.
13480
13481 2011-05-22  Bruno Haible  <bruno@clisp.org>
13482
13483         time_r: Move AC_LIBOBJ invocations to module description.
13484         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13485         invocations from here...
13486         * modules/time_r (configure.ac): ... to here.
13487
13488 2011-05-22  Bruno Haible  <bruno@clisp.org>
13489
13490         timegm: Move AC_LIBOBJ invocations to module description.
13491         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13492         invocations from here...
13493         * modules/timegm (configure.ac): ... to here.
13494
13495 2011-05-22  Bruno Haible  <bruno@clisp.org>
13496
13497         tcgetsid: Move AC_LIBOBJ invocations to module description.
13498         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13499         and gl_PREREQ_TCGETSID invocations from here...
13500         * modules/tcgetsid (configure.ac): ... to here.
13501         (Depends-on): Update conditions.
13502
13503 2011-05-22  Bruno Haible  <bruno@clisp.org>
13504
13505         symlinkat: Move AC_LIBOBJ invocations to module description.
13506         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13507         here...
13508         * modules/symlinkat (configure.ac): ... to here.
13509
13510 2011-05-22  Bruno Haible  <bruno@clisp.org>
13511
13512         symlink: Move AC_LIBOBJ invocations to module description.
13513         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13514         here...
13515         * modules/symlink (configure.ac): ... to here.
13516
13517 2011-05-22  Bruno Haible  <bruno@clisp.org>
13518
13519         strverscmp: Move AC_LIBOBJ invocations to module description.
13520         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13521         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13522         from here...
13523         * modules/strverscmp (configure.ac): ... to here.
13524
13525 2011-05-22  Bruno Haible  <bruno@clisp.org>
13526
13527         strtok_r: Move AC_LIBOBJ invocations to module description.
13528         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13529         and gl_PREREQ_STRTOK_R invocations from here...
13530         * modules/strtok_r (configure.ac): ... to here.
13531         (Depends-on): Update conditions.
13532
13533 2011-05-22  Bruno Haible  <bruno@clisp.org>
13534
13535         strtoumax: Move AC_LIBOBJ invocations to module description.
13536         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13537         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13538         from here...
13539         * modules/strtoumax (configure.ac): ... to here.
13540
13541 2011-05-22  Bruno Haible  <bruno@clisp.org>
13542
13543         strtoimax: Move AC_LIBOBJ invocations to module description.
13544         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13545         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13546         from here...
13547         * modules/strtoimax (configure.ac): ... to here.
13548
13549 2011-05-22  Bruno Haible  <bruno@clisp.org>
13550
13551         strtoull: Move AC_LIBOBJ invocations to module description.
13552         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13553         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13554         from here...
13555         * modules/strtoull (configure.ac): ... to here.
13556
13557 2011-05-22  Bruno Haible  <bruno@clisp.org>
13558
13559         strtoll: Move AC_LIBOBJ invocations to module description.
13560         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13561         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13562         here...
13563         * modules/strtoll (configure.ac): ... to here.
13564
13565 2011-05-22  Bruno Haible  <bruno@clisp.org>
13566
13567         strtoul: Move AC_LIBOBJ invocations to module description.
13568         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13569         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13570         * modules/strtoul (configure.ac): ... to here.
13571
13572 2011-05-22  Bruno Haible  <bruno@clisp.org>
13573
13574         strtol: Move AC_LIBOBJ invocations to module description.
13575         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13576         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13577         * modules/strtol (configure.ac): ... to here.
13578
13579 2011-05-22  Bruno Haible  <bruno@clisp.org>
13580
13581         strtod: Move AC_LIBOBJ invocations to module description.
13582         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13583         invocations from here...
13584         * modules/strtod (configure.ac): ... to here.
13585
13586 2011-05-22  Bruno Haible  <bruno@clisp.org>
13587
13588         strstr*: Move AC_LIBOBJ invocations to module description.
13589         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13590         invocations from here...
13591         * modules/strstr-simple (configure.ac): ... to here.
13592         * modules/strstr (configure.ac): ... and here.
13593
13594 2011-05-22  Bruno Haible  <bruno@clisp.org>
13595
13596         strsignal: Move AC_LIBOBJ invocations to module description.
13597         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13598         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13599         * modules/strsignal (configure.ac): ... to here.
13600         (Depends-on): Update conditions.
13601
13602 2011-05-22  Bruno Haible  <bruno@clisp.org>
13603
13604         strsep: Move AC_LIBOBJ invocations to module description.
13605         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13606         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13607         here...
13608         * modules/strsep (configure.ac): ... to here.
13609
13610 2011-05-22  Bruno Haible  <bruno@clisp.org>
13611
13612         strptime: Move AC_LIBOBJ invocations to module description.
13613         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13614         gl_PREREQ_STRPTIME invocations from here...
13615         * modules/strptime (configure.ac): ... to here.
13616
13617 2011-05-22  Bruno Haible  <bruno@clisp.org>
13618
13619         strpbrk: Move AC_LIBOBJ invocations to module description.
13620         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13621         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13622         here...
13623         * modules/strpbrk (configure.ac): ... to here.
13624
13625 2011-05-22  Bruno Haible  <bruno@clisp.org>
13626
13627         strnlen: Move AC_LIBOBJ invocations to module description.
13628         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13629         invocations from here...
13630         * modules/strnlen (configure.ac): ... to here.
13631
13632 2011-05-22  Bruno Haible  <bruno@clisp.org>
13633
13634         strndup: Move AC_LIBOBJ invocations to module description.
13635         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13636         invocations from here...
13637         * modules/strndup (configure.ac): ... to here.
13638         (Depends-on): Update conditions.
13639
13640 2011-05-22  Bruno Haible  <bruno@clisp.org>
13641
13642         strncat: Move AC_LIBOBJ invocations to module description.
13643         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13644         invocations from here...
13645         * modules/strncat (configure.ac): ... to here.
13646
13647 2011-05-22  Bruno Haible  <bruno@clisp.org>
13648
13649         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13650         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13651         invocations from here...
13652         * modules/strdup (configure.ac): ... to here.
13653         * modules/strdup-posix (configure.ac): ... and here.
13654
13655 2011-05-22  Bruno Haible  <bruno@clisp.org>
13656
13657         strcspn: Move AC_LIBOBJ invocations to module description.
13658         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13659         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13660         here...
13661         * modules/strcspn (configure.ac): ... to here.
13662
13663 2011-05-22  Bruno Haible  <bruno@clisp.org>
13664
13665         strchrnul: Move AC_LIBOBJ invocations to module description.
13666         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13667         gl_PREREQ_STRCHRNUL invocations from here...
13668         * modules/strchrnul (configure.ac): ... to here.
13669
13670 2011-05-22  Bruno Haible  <bruno@clisp.org>
13671
13672         strcasestr*: Move AC_LIBOBJ invocations to module description.
13673         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13674         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13675         * modules/strcasestr-simple (configure.ac): ... to here.
13676         * modules/strcasestr (configure.ac): ... and here.
13677
13678 2011-05-22  Bruno Haible  <bruno@clisp.org>
13679
13680         strcase: Move AC_LIBOBJ invocations to module description.
13681         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13682         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13683         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13684         gl_PREREQ_STRNCASECMP invocations from here...
13685         * modules/strcase (configure.ac): ... to here.
13686
13687 2011-05-22  Bruno Haible  <bruno@clisp.org>
13688
13689         stpncpy: Move AC_LIBOBJ invocations to module description.
13690         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13691         here...
13692         * modules/stpncpy (configure.ac): ... to here.
13693
13694 2011-05-22  Bruno Haible  <bruno@clisp.org>
13695
13696         stpcpy: Move AC_LIBOBJ invocations to module description.
13697         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13698         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13699         here...
13700         * modules/stpcpy (configure.ac): ... to here.
13701
13702 2011-05-21  Bruno Haible  <bruno@clisp.org>
13703
13704         stat: Move AC_LIBOBJ invocations to module description.
13705         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13706         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13707         here...
13708         * modules/stat (configure.ac): ... to here.
13709
13710 2011-05-21  Bruno Haible  <bruno@clisp.org>
13711
13712         sleep: Move AC_LIBOBJ invocations to module description.
13713         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13714         * modules/sleep (configure.ac): ... to here.
13715
13716 2011-05-21  Bruno Haible  <bruno@clisp.org>
13717
13718         signbit: Move AC_LIBOBJ invocations to module description.
13719         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13720         * modules/signbit (configure.ac): ... to here.
13721
13722 2011-05-21  Bruno Haible  <bruno@clisp.org>
13723
13724         sigprocmask: Move AC_LIBOBJ invocations to module description.
13725         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13726         gl_PREREQ_SIGPROMASK invocations from here...
13727         * modules/sigprocmask (configure.ac): ... to here.
13728
13729 2011-05-21  Bruno Haible  <bruno@clisp.org>
13730
13731         sigaction: Move AC_LIBOBJ invocations to module description.
13732         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13733         gl_PREREQ_SIGACTION invocations from here...
13734         * modules/sigaction (configure.ac): ... to here.
13735
13736 2011-05-21  Bruno Haible  <bruno@clisp.org>
13737
13738         sig2str: Move AC_LIBOBJ invocations to module description.
13739         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13740         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13741         here...
13742         * modules/sig2str (configure.ac): ... to here.
13743
13744 2011-05-21  Bruno Haible  <bruno@clisp.org>
13745
13746         setlocale: Move AC_LIBOBJ invocations to module description.
13747         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13748         gl_PREREQ_SETLOCALE invocations from here...
13749         * modules/setlocale (configure.ac): ... to here.
13750
13751 2011-05-21  Bruno Haible  <bruno@clisp.org>
13752
13753         unsetenv: Move AC_LIBOBJ invocations to module description.
13754         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13755         and gl_PREREQ_UNSETENV invocations from here...
13756         * modules/unsetenv (configure.ac): ... to here.
13757         (Depends-on): Update.
13758
13759 2011-05-21  Bruno Haible  <bruno@clisp.org>
13760
13761         setenv: Move AC_LIBOBJ invocations to module description.
13762         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13763         here...
13764         * modules/setenv (configure.ac): ... to here.
13765
13766 2011-05-21  Bruno Haible  <bruno@clisp.org>
13767
13768         selinux-h: Move AC_LIBOBJ invocations to module description.
13769         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13770         AC_LIBOBJ invocation from here...
13771         * modules/selinux-h (configure.ac): ... to here.
13772
13773 2011-05-21  Bruno Haible  <bruno@clisp.org>
13774
13775         select: Respect rules for use of AC_LIBOBJ.
13776         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13777         here...
13778         * modules/select (configure.ac): ... to here.
13779
13780 2011-05-21  Bruno Haible  <bruno@clisp.org>
13781
13782         scandir: Move AC_LIBOBJ invocations to module description.
13783         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13784         invocations from here...
13785         * modules/scandir (configure.ac): ... to here.
13786
13787 2011-05-21  Bruno Haible  <bruno@clisp.org>
13788
13789         rpmatch: Move AC_LIBOBJ invocations to module description.
13790         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13791         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13792         here...
13793         * modules/rpmatch (configure.ac): ... to here.
13794
13795 2011-05-21  Bruno Haible  <bruno@clisp.org>
13796
13797         rmdir: Respect rules for use of AC_LIBOBJ.
13798         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13799         * modules/rmdir (configure.ac): ... to here.
13800
13801 2011-05-21  Bruno Haible  <bruno@clisp.org>
13802
13803         renameat: Move AC_LIBOBJ invocations to module description.
13804         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13805         here...
13806         * modules/renameat (configure.ac): ... to here.
13807
13808 2011-05-21  Bruno Haible  <bruno@clisp.org>
13809
13810         rename: Respect rules for use of AC_LIBOBJ.
13811         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13812         here...
13813         * modules/rename (configure.ac): ... to here.
13814
13815 2011-05-21  Bruno Haible  <bruno@clisp.org>
13816
13817         remove: Move AC_LIBOBJ invocations to module description.
13818         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13819         here...
13820         * modules/remove (configure.ac): ... to here.
13821
13822 2011-05-21  Bruno Haible  <bruno@clisp.org>
13823
13824         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13825         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13826         macro.
13827         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13828         * modules/relocatable-lib (configure.ac): ... to here.
13829         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13830         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13831
13832 2011-05-21  Bruno Haible  <bruno@clisp.org>
13833
13834         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13835         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13836         here...
13837         * modules/relocatable-prog (configure.ac): ... to here.
13838
13839 2011-05-21  Bruno Haible  <bruno@clisp.org>
13840
13841         regex: Move AC_LIBOBJ invocations to module description.
13842         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13843         invocations from here...
13844         * modules/regex (configure.ac): ... to here.
13845
13846 2011-05-21  Bruno Haible  <bruno@clisp.org>
13847
13848         realloc-*: Move AC_LIBOBJ invocations to module description.
13849         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13850         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13851         AC_LIBOBJ invocations from here...
13852         * modules/realloc-gnu (configure.ac): ... to here.
13853         * modules/realloc-posix (configure.ac): ... and here.
13854
13855 2011-05-21  Bruno Haible  <bruno@clisp.org>
13856
13857         readutmp: Move AC_LIBOBJ invocations to module description.
13858         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13859         * modules/readutmp (configure.ac): ... to here.
13860
13861 2011-05-21  Bruno Haible  <bruno@clisp.org>
13862
13863         readlinkat: Move AC_LIBOBJ invocations to module description.
13864         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13865         here...
13866         * modules/readlinkat (configure.ac): ... to here.
13867
13868 2011-05-21  Bruno Haible  <bruno@clisp.org>
13869
13870         readlink: Move AC_LIBOBJ invocations to module description.
13871         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13872         gl_PREREQ_READLINK invocations from here...
13873         * modules/readlink (configure.ac): ... to here.
13874
13875 2011-05-21  Bruno Haible  <bruno@clisp.org>
13876
13877         readline: Move AC_LIBOBJ invocations to module description.
13878         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13879         gl_PREREQ_READLINE invocations from here...
13880         * modules/readline (configure.ac): ... to here.
13881
13882 2011-05-21  Bruno Haible  <bruno@clisp.org>
13883
13884         read: Move AC_LIBOBJ invocations to module description.
13885         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13886         * modules/read (configure.ac): ... to here.
13887
13888 2011-05-21  Bruno Haible  <bruno@clisp.org>
13889
13890         rawmemchr: Move AC_LIBOBJ invocations to module description.
13891         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13892         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13893         from here...
13894         * modules/rawmemchr (configure.ac): ... to here.
13895
13896 2011-05-21  Bruno Haible  <bruno@clisp.org>
13897
13898         random_r: Move AC_LIBOBJ invocations to module description.
13899         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13900         gl_PREREQ_RANDOM_R invocations from here...
13901         * modules/random_r (configure.ac): ... to here.
13902
13903 2011-05-21  Bruno Haible  <bruno@clisp.org>
13904
13905         pwrite: Move AC_LIBOBJ invocations to module description.
13906         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13907         * modules/pwrite (configure.ac): ... to here.
13908
13909 2011-05-21  Bruno Haible  <bruno@clisp.org>
13910
13911         putenv: Move AC_LIBOBJ invocations to module description.
13912         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13913         * modules/putenv (configure.ac): ... to here.
13914
13915 2011-05-21  Bruno Haible  <bruno@clisp.org>
13916
13917         login_tty: Move AC_LIBOBJ invocations to module description.
13918         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13919         * modules/login_tty (configure.ac): ... to here.
13920
13921 2011-05-21  Bruno Haible  <bruno@clisp.org>
13922
13923         openpty: Move AC_LIBOBJ invocations to module description.
13924         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13925         * modules/openpty (configure.ac): ... to here.
13926
13927 2011-05-21  Bruno Haible  <bruno@clisp.org>
13928
13929         forkpty: Move AC_LIBOBJ invocations to module description.
13930         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13931         * modules/forkpty (configure.ac): ... to here.
13932
13933 2011-05-21  Bruno Haible  <bruno@clisp.org>
13934
13935         ptsname: Move AC_LIBOBJ invocations to module description.
13936         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13937         invocations from here...
13938         * modules/ptsname (configure.ac): ... to here.
13939
13940 2011-05-21  Bruno Haible  <bruno@clisp.org>
13941
13942         pread: Move AC_LIBOBJ invocations to module description.
13943         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13944         * modules/pread (configure.ac): ... to here.
13945
13946 2011-05-21  Bruno Haible  <bruno@clisp.org>
13947
13948         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13949         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13950         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13951         * modules/posix_spawn (configure.ac): ... to here.
13952         * modules/posix_spawnp (configure.ac): ... and here.
13953
13954 2011-05-21  Bruno Haible  <bruno@clisp.org>
13955
13956         popen: Move AC_LIBOBJ invocations to module description.
13957         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13958         invocations from here...
13959         * modules/popen (configure.ac): ... to here.
13960
13961 2011-05-21  Bruno Haible  <bruno@clisp.org>
13962
13963         poll: Move AC_LIBOBJ invocations to module description.
13964         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13965         invocations from here...
13966         * modules/poll (configure.ac): ... to here.
13967
13968 2011-05-21  Bruno Haible  <bruno@clisp.org>
13969
13970         pipe-posix: Move AC_LIBOBJ invocations to module description.
13971         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13972         * modules/pipe-posix (configure.ac): ... to here.
13973
13974 2011-05-21  Bruno Haible  <bruno@clisp.org>
13975
13976         openat: Respect rules for use of AC_LIBOBJ.
13977         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13978         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13979         * modules/openat (configure.ac): ... to here.
13980
13981 2011-05-21  Bruno Haible  <bruno@clisp.org>
13982
13983         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13984         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13985         invocation from here...
13986         * modules/obstack-printf (configure.ac): ... to here.
13987         * modules/obstack-printf-posix (configure.ac): ... and here.
13988
13989 2011-05-21  Bruno Haible  <bruno@clisp.org>
13990
13991         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13992         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13993         from here...
13994         * modules/nl_langinfo (configure.ac): ... to here.
13995
13996 2011-05-21  Bruno Haible  <bruno@clisp.org>
13997
13998         nanosleep: Move AC_LIBOBJ invocations to module description.
13999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14000         gl_PREREQ_NANOSLEEP invocations from here...
14001         * modules/nanosleep (configure.ac): ... to here.
14002
14003 2011-05-21  Bruno Haible  <bruno@clisp.org>
14004
14005         mountlist: Move AC_LIBOBJ invocations to module description.
14006         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14007         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14008         * modules/mountlist (configure.ac): ... to here.
14009
14010 2011-05-21  Bruno Haible  <bruno@clisp.org>
14011
14012         mktime: Respect rules for use of AC_LIBOBJ.
14013         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14014         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14015         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14016         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14017         * modules/mktime (configure.ac): ... to here.
14018         * modules/mktime-internal (configure.ac): ... and here.
14019         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14020
14021 2011-05-21  Bruno Haible  <bruno@clisp.org>
14022
14023         mkstemps: Move AC_LIBOBJ invocations to module description.
14024         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14025         here...
14026         * modules/mkstemps (configure.ac): ... to here.
14027
14028 2011-05-21  Bruno Haible  <bruno@clisp.org>
14029
14030         mkstemp: Move AC_LIBOBJ invocations to module description.
14031         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14032         gl_PREREQ_MKSTEMP invocations from here...
14033         * modules/mkstemp (configure.ac): ... to here.
14034
14035 2011-05-21  Bruno Haible  <bruno@clisp.org>
14036
14037         mkostemps: Move AC_LIBOBJ invocations to module description.
14038         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14039         here...
14040         * modules/mkostemps (configure.ac): ... to here.
14041
14042 2011-05-21  Bruno Haible  <bruno@clisp.org>
14043
14044         mkostemp: Move AC_LIBOBJ invocations to module description.
14045         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14046         gl_PREREQ_MKOSTEMP invocations from here...
14047         * modules/mkostemp (configure.ac): ... to here.
14048
14049 2011-05-21  Bruno Haible  <bruno@clisp.org>
14050
14051         mknod: Move AC_LIBOBJ invocations to module description.
14052         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14053         * modules/mknod (configure.ac): ... to here.
14054
14055 2011-05-21  Bruno Haible  <bruno@clisp.org>
14056
14057         mkfifoat: Move AC_LIBOBJ invocations to module description.
14058         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14059         here...
14060         * modules/mkfifoat (configure.ac): ... to here.
14061
14062 2011-05-21  Bruno Haible  <bruno@clisp.org>
14063
14064         mkfifo: Respect rules for use of AC_LIBOBJ.
14065         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14066         here...
14067         * modules/mkfifo (configure.ac): ... to here.
14068
14069 2011-05-21  Bruno Haible  <bruno@clisp.org>
14070
14071         mkdtemp: Move AC_LIBOBJ invocations to module description.
14072         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14073         invocations from here...
14074         * modules/mkdtemp (configure.ac): ... to here.
14075
14076 2011-05-21  Bruno Haible  <bruno@clisp.org>
14077
14078         mkdir: Move AC_LIBOBJ invocations to module description.
14079         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14080         * modules/mkdir (configure.ac): ... to here.
14081
14082 2011-05-21  Bruno Haible  <bruno@clisp.org>
14083
14084         memset: Move AC_LIBOBJ invocations to module description.
14085         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14086         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14087         here...
14088         * modules/memset (configure.ac): ... to here.
14089
14090 2011-05-21  Bruno Haible  <bruno@clisp.org>
14091
14092         memrchr: Move AC_LIBOBJ invocations to module description.
14093         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14094         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14095         here...
14096         * modules/memrchr (configure.ac): ... to here.
14097
14098 2011-05-21  Bruno Haible  <bruno@clisp.org>
14099
14100         mempcpy: Move AC_LIBOBJ invocations to module description.
14101         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14102         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14103         here...
14104         * modules/mempcpy (configure.ac): ... to here.
14105
14106 2011-05-21  Bruno Haible  <bruno@clisp.org>
14107
14108         memmove: Move AC_LIBOBJ invocations to module description.
14109         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14110         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14111         here...
14112         * modules/memmove (configure.ac): ... to here.
14113
14114 2011-05-21  Bruno Haible  <bruno@clisp.org>
14115
14116         memmem*: Move AC_LIBOBJ invocations to module description.
14117         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14118         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14119         here...
14120         (gl_FUNC_MEMMEM): ... and here...
14121         * modules/memmem-simple (configure.ac): ... to here.
14122         * modules/memmem (configure.ac): ... and here.
14123
14124 2011-05-21  Bruno Haible  <bruno@clisp.org>
14125
14126         memcpy: Move AC_LIBOBJ invocations to module description.
14127         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14128         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14129         here...
14130         * modules/memcpy (configure.ac): ... to here.
14131
14132 2011-05-21  Bruno Haible  <bruno@clisp.org>
14133
14134         memcmp: Simplify autoconf macro.
14135         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14136         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14137         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14138
14139 2011-05-21  Bruno Haible  <bruno@clisp.org>
14140
14141         memcmp: Move AC_LIBOBJ invocations to module description.
14142         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14143         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14144         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14145         * modules/memcmp (configure.ac): ... to here.
14146         (Depends-on): Update conditions.
14147
14148 2011-05-21  Bruno Haible  <bruno@clisp.org>
14149
14150         memchr: Respect rules for use of AC_LIBOBJ.
14151         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14152         invocations from here...
14153         * modules/memchr (configure.ac): ... to here.
14154
14155 2011-05-21  Bruno Haible  <bruno@clisp.org>
14156
14157         mbtowc: Move AC_LIBOBJ invocations to module description.
14158         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14159         invocations from here...
14160         * modules/mbtowc (configure.ac): ... to here.
14161
14162 2011-05-21  Bruno Haible  <bruno@clisp.org>
14163
14164         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14165         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14166         gl_PREREQ_MBSRTOWCS invocations from here...
14167         * modules/mbsrtowcs (configure.ac): ... to here.
14168
14169 2011-05-21  Bruno Haible  <bruno@clisp.org>
14170
14171         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14172         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14173         gl_PREREQ_MBSNRTOWCS invocations from here...
14174         * modules/mbsnrtowcs (configure.ac): ... to here.
14175
14176 2011-05-21  Bruno Haible  <bruno@clisp.org>
14177
14178         mbsinit: Move AC_LIBOBJ invocations to module description.
14179         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14180         invocations from here...
14181         * modules/mbsinit (configure.ac): ... to here.
14182
14183 2011-05-21  Bruno Haible  <bruno@clisp.org>
14184
14185         mbrlen: Move AC_LIBOBJ invocations to module description.
14186         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14187         invocations from here...
14188         * modules/mbrlen (configure.ac): ... to here.
14189
14190 2011-05-21  Bruno Haible  <bruno@clisp.org>
14191
14192         mbrtowc: Respect rules for use of AC_LIBOBJ.
14193         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14194         invocations from here...
14195         * modules/mbrtowc (configure.ac): ... to here.
14196
14197 2011-05-21  Bruno Haible  <bruno@clisp.org>
14198
14199         malloc-*: Move AC_LIBOBJ invocations to module description.
14200         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14201         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14202         AC_LIBOBJ invocations from here...
14203         * modules/malloc-gnu (configure.ac): ... to here.
14204         * modules/malloc-posix (configure.ac): ... and here.
14205
14206 2011-05-21  Bruno Haible  <bruno@clisp.org>
14207
14208         lstat, openat: Respect rules for use of AC_LIBOBJ.
14209         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14210         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14211         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14212         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14213         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14214         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14215         here.
14216         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14217
14218 2011-05-21  Bruno Haible  <bruno@clisp.org>
14219
14220         lseek: Move AC_LIBOBJ invocations to module description.
14221         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14222         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14223         * modules/lseek (configure.ac): ... to here.
14224
14225 2011-05-21  Bruno Haible  <bruno@clisp.org>
14226
14227         linkat: Move AC_LIBOBJ invocations to module description.
14228         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14229         here...
14230         * modules/linkat (configure.ac): ... to here.
14231
14232 2011-05-21  Bruno Haible  <bruno@clisp.org>
14233
14234         link: Respect rules for use of AC_LIBOBJ.
14235         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14236         * modules/link (configure.ac): ... to here.
14237
14238 2011-05-21  Bruno Haible  <bruno@clisp.org>
14239
14240         lchown: Move AC_LIBOBJ invocations to module description.
14241         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14242         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14243         * modules/lchown (configure.ac): ... to here.
14244
14245 2011-05-21  Bruno Haible  <bruno@clisp.org>
14246
14247         iswctype: Move AC_LIBOBJ invocations to module description.
14248         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14249         here...
14250         * modules/iswctype (configure.ac): ... to here.
14251
14252 2011-05-21  Bruno Haible  <bruno@clisp.org>
14253
14254         iswblank: Move AC_LIBOBJ invocations to module description.
14255         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14256         here...
14257         * modules/iswblank (configure.ac): ... to here.
14258
14259 2011-05-21  Bruno Haible  <bruno@clisp.org>
14260
14261         atanl: Move AC_LIBOBJ invocations to module description.
14262         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14263         * modules/atanl (configure.ac): ... to here.
14264
14265 2011-05-21  Bruno Haible  <bruno@clisp.org>
14266
14267         acosl: Move AC_LIBOBJ invocations to module description.
14268         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14269         * modules/acosl (configure.ac): ... to here.
14270
14271 2011-05-21  Bruno Haible  <bruno@clisp.org>
14272
14273         asinl: Respect rules for use of AC_LIBOBJ.
14274         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14275         * modules/asinl (configure.ac): ... to here.
14276
14277 2011-05-21  Bruno Haible  <bruno@clisp.org>
14278
14279         tanl: Move AC_LIBOBJ invocations to module description.
14280         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14281         * modules/tanl (configure.ac): ... to here.
14282
14283 2011-05-21  Bruno Haible  <bruno@clisp.org>
14284
14285         cosl: Move AC_LIBOBJ invocations to module description.
14286         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14287         * modules/cosl (configure.ac): ... to here.
14288
14289 2011-05-21  Bruno Haible  <bruno@clisp.org>
14290
14291         sinl: Move AC_LIBOBJ invocations to module description.
14292         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14293         * modules/sinl (configure.ac): ... to here.
14294
14295 2011-05-21  Bruno Haible  <bruno@clisp.org>
14296
14297         logl: Move AC_LIBOBJ invocations to module description.
14298         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14299         * modules/logl (configure.ac): ... to here.
14300
14301 2011-05-21  Bruno Haible  <bruno@clisp.org>
14302
14303         expl: Move AC_LIBOBJ invocations to module description.
14304         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14305         * modules/expl (configure.ac): ... to here.
14306
14307 2011-05-21  Bruno Haible  <bruno@clisp.org>
14308
14309         roundl: Move AC_LIBOBJ invocations to module description.
14310         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14311         * modules/roundl (configure.ac): ... to here.
14312
14313 2011-05-21  Bruno Haible  <bruno@clisp.org>
14314
14315         round: Move AC_LIBOBJ invocations to module description.
14316         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14317         * modules/round (configure.ac): ... to here.
14318
14319 2011-05-21  Bruno Haible  <bruno@clisp.org>
14320
14321         roundf: Move AC_LIBOBJ invocations to module description.
14322         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14323         * modules/roundf (configure.ac): ... to here.
14324
14325 2011-05-21  Bruno Haible  <bruno@clisp.org>
14326
14327         truncl: Move AC_LIBOBJ invocations to module description.
14328         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14329         * modules/truncl (configure.ac): ... to here.
14330
14331 2011-05-21  Bruno Haible  <bruno@clisp.org>
14332
14333         trunc: Move AC_LIBOBJ invocations to module description.
14334         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14335         * modules/trunc (configure.ac): ... to here.
14336
14337 2011-05-21  Bruno Haible  <bruno@clisp.org>
14338
14339         truncf: Move AC_LIBOBJ invocations to module description.
14340         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14341         * modules/truncf (configure.ac): ... to here.
14342
14343 2011-05-21  Bruno Haible  <bruno@clisp.org>
14344
14345         ceill: Move AC_LIBOBJ invocations to module description.
14346         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14347         * modules/ceill (configure.ac): ... to here.
14348
14349 2011-05-21  Bruno Haible  <bruno@clisp.org>
14350
14351         ceil: Move AC_LIBOBJ invocations to module description.
14352         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14353         * modules/ceil (configure.ac): ... to here.
14354
14355 2011-05-21  Bruno Haible  <bruno@clisp.org>
14356
14357         ceilf: Move AC_LIBOBJ invocations to module description.
14358         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14359         * modules/ceilf (configure.ac): ... to here.
14360
14361 2011-05-21  Bruno Haible  <bruno@clisp.org>
14362
14363         floorl: Respect rules for use of AC_LIBOBJ.
14364         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14365         * modules/floorl (configure.ac): ... to here.
14366
14367 2011-05-21  Bruno Haible  <bruno@clisp.org>
14368
14369         floor: Respect rules for use of AC_LIBOBJ.
14370         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14371         * modules/floor (configure.ac): ... to here.
14372
14373 2011-05-21  Bruno Haible  <bruno@clisp.org>
14374
14375         floorf: Move AC_LIBOBJ invocations to module description.
14376         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14377         * modules/floorf (configure.ac): ... to here.
14378
14379 2011-05-20  Bruno Haible  <bruno@clisp.org>
14380
14381         sqrtl: Respect rules for use of AC_LIBOBJ.
14382         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14383         * modules/sqrtl (configure.ac): ... to here.
14384
14385 2011-05-20  Bruno Haible  <bruno@clisp.org>
14386
14387         ldexpl: Respect rules for use of AC_LIBOBJ.
14388         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14389         * modules/ldexpl (configure.ac): ... to here.
14390
14391 2011-05-20  Bruno Haible  <bruno@clisp.org>
14392
14393         frexpl*: Respect rules for use of AC_LIBOBJ.
14394         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14395         invocation from here...
14396         * modules/frexpl (configure.ac): ... to here.
14397         * modules/frexpl-nolibm (configure.ac): ... and here.
14398
14399 2011-05-20  Bruno Haible  <bruno@clisp.org>
14400
14401         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14402         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14403         invocation from here...
14404         * modules/frexp (configure.ac): ... to here.
14405         * modules/frexp-nolibm (configure.ac): ... and here.
14406
14407 2011-05-20  Bruno Haible  <bruno@clisp.org>
14408
14409         isnan: Respect rules for use of AC_LIBOBJ.
14410         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14411         invocations here.
14412         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14413         REPLACE_ISNAN.
14414         * modules/isnand (configure.ac): Likewise.
14415         * modules/isnanl (configure.ac): Likewise.
14416
14417 2011-05-20  Bruno Haible  <bruno@clisp.org>
14418
14419         isnanl*: Respect rules for use of AC_LIBOBJ.
14420         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14421         invocation from here...
14422         * modules/isnanl (configure.ac): ... to here.
14423         * modules/isnanl-nolibm (configure.ac): ... and here.
14424
14425 2011-05-20  Bruno Haible  <bruno@clisp.org>
14426
14427         isnand*: Move AC_LIBOBJ invocations to module description.
14428         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14429         invocation from here...
14430         * modules/isnand (configure.ac): ... to here.
14431         * modules/isnand-nolibm (configure.ac): ... and here.
14432
14433 2011-05-20  Bruno Haible  <bruno@clisp.org>
14434
14435         isnanf*: Move AC_LIBOBJ invocations to module description.
14436         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14437         invocation from here...
14438         * modules/isnanf (configure.ac): ... to here.
14439         * modules/isnanf-nolibm (configure.ac): ... and here.
14440
14441 2011-05-20  Bruno Haible  <bruno@clisp.org>
14442
14443         isnan*: Separate the AC_LIBOBJ invocations.
14444         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14445         AC_LIBOBJ invocation.
14446         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14447         here.
14448         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14449         AC_LIBOBJ invocation.
14450         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14451         here.
14452         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14453         AC_LIBOBJ invocation.
14454         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14455         here.
14456         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14457
14458 2011-05-08  Bruno Haible  <bruno@clisp.org>
14459
14460         isinf: Move AC_LIBOBJ invocations to module description.
14461         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14462         * modules/isinf (configure.ac): ... to here.
14463
14464 2011-05-08  Bruno Haible  <bruno@clisp.org>
14465
14466         isfinite: Move AC_LIBOBJ invocations to module description.
14467         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14468         * modules/isfinite (configure.ac): ... to here.
14469
14470 2011-05-08  Bruno Haible  <bruno@clisp.org>
14471
14472         isblank: Move AC_LIBOBJ invocations to module description.
14473         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14474         here...
14475         * modules/isblank (configure.ac): ... to here.
14476
14477 2011-05-08  Bruno Haible  <bruno@clisp.org>
14478
14479         isapipe: Move AC_LIBOBJ invocations to module description.
14480         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14481         gl_PREREQ_ISAPIPE invocations from here...
14482         * modules/isapipe (configure.ac): ... to here.
14483         (Depends-on): Update condition.
14484
14485 2011-05-08  Bruno Haible  <bruno@clisp.org>
14486
14487         ioctl: Move AC_LIBOBJ invocations to module description.
14488         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14489         invocations from here...
14490         * modules/ioctl (configure.ac): ... to here.
14491         (Depends-on): Update condition.
14492
14493 2011-05-08  Bruno Haible  <bruno@clisp.org>
14494
14495         imaxdiv: Move AC_LIBOBJ invocations to module description.
14496         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14497         invocations from here...
14498         * modules/imaxdiv (configure.ac): ... to here.
14499
14500 2011-05-08  Bruno Haible  <bruno@clisp.org>
14501
14502         imaxabs: Move AC_LIBOBJ invocations to module description.
14503         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14504         invocations from here...
14505         * modules/imaxabs (configure.ac): ... to here.
14506
14507 2011-05-08  Bruno Haible  <bruno@clisp.org>
14508
14509         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14510         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14511         AC_LIBOBJ invocations from here...
14512         * modules/getaddrinfo (configure.ac): ... to here.
14513         (Depends-on): Add conditions.
14514
14515 2011-05-08  Bruno Haible  <bruno@clisp.org>
14516
14517         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14518         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14519         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14520         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14521         (gl_PREREQ_INET_PTON): ... from here.
14522         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14523         gl_PREREQ_INET_PTON here.
14524         (Depends-on): Update condition.
14525
14526 2011-05-08  Bruno Haible  <bruno@clisp.org>
14527
14528         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14529         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14530         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14531         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14532         (gl_PREREQ_INET_NTOP): ... from here.
14533         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14534         gl_PREREQ_INET_NTOP here.
14535         (Depends-on): Update condition.
14536
14537 2011-05-08  Bruno Haible  <bruno@clisp.org>
14538
14539         iconv_open: Move AC_LIBOBJ invocations to module description.
14540         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14541         AC_LIBOBJ invocations from here...
14542         * modules/iconv_open (configure.ac): ... to here.
14543
14544 2011-05-08  Bruno Haible  <bruno@clisp.org>
14545
14546         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14547         If module 'iconv_open' is among the main modules and module
14548         'iconv_open-utf' is among the tests dependencies, then
14549         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14550         return the special iconv_t values. Therefore iconv() and iconv_close()
14551         must support these special iconv_t values, already in lib, not only in
14552         tests.
14553         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14554         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14555         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14556         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14557         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14558         (Depends-on): Add the dependencies of iconv_open-utf.
14559         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14560         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14561         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14562
14563 2011-05-08  Bruno Haible  <bruno@clisp.org>
14564
14565         group-member: Move AC_LIBOBJ invocations to module description.
14566         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14567         gl_PREREQ_GROUP_MEMBER invocations from here...
14568         * modules/group-member (configure.ac): ... to here.
14569
14570 2011-05-08  Bruno Haible  <bruno@clisp.org>
14571
14572         grantpt: Move AC_LIBOBJ invocations to module description.
14573         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14574         invocations from here...
14575         * modules/grantpt (configure.ac): ... to here.
14576
14577 2011-05-08  Bruno Haible  <bruno@clisp.org>
14578
14579         glob: Move AC_LIBOBJ invocations to module description.
14580         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14581         from here...
14582         * modules/glob (configure.ac): ... to here.
14583
14584 2011-05-08  Bruno Haible  <bruno@clisp.org>
14585
14586         getusershell: Move AC_LIBOBJ invocations to module description.
14587         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14588         Move AC_LIBOBJ invocation from here...
14589         * modules/getusershell (configure.ac): ... to here.
14590         (Depends-on): Update condition.
14591
14592 2011-05-08  Bruno Haible  <bruno@clisp.org>
14593
14594         gettimeofday: Move AC_LIBOBJ invocations to module description.
14595         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14596         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14597         gl_PREREQ_GETTIMEOFDAY invocations from here...
14598         * modules/gettimeofday (configure.ac): ... to here.
14599
14600 2011-05-08  Bruno Haible  <bruno@clisp.org>
14601
14602         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14603         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14604         just gl_FUNC_TZSET.
14605         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14606         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14607         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14608         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14609
14610 2011-05-08  Bruno Haible  <bruno@clisp.org>
14611
14612         getsubopt: Move AC_LIBOBJ invocations to module description.
14613         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14614         gl_PREREQ_GETSUBOPT invocations from here...
14615         * modules/getsubopt (configure.ac): ... to here.
14616
14617 2011-05-08  Bruno Haible  <bruno@clisp.org>
14618
14619         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14620         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14621         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14622         * modules/getpass-gnu (configure.ac): ... to here.
14623
14624 2011-05-08  Bruno Haible  <bruno@clisp.org>
14625
14626         getpass: Move AC_LIBOBJ invocations to module description.
14627         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14628         gl_PREREQ_GETPASS invocations from here...
14629         * modules/getpass (configure.ac): ... to here.
14630
14631 2011-05-08  Bruno Haible  <bruno@clisp.org>
14632
14633         getpagesize: Move AC_LIBOBJ invocations to module description.
14634         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14635         from here...
14636         * modules/getpagesize (configure.ac): ... to here.
14637
14638 2011-05-08  Bruno Haible  <bruno@clisp.org>
14639
14640         getopt: Move AC_LIBOBJ invocations to module description.
14641         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14642         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14643         invocations from here...
14644         * modules/getopt-gnu (configure.ac): ... to here.
14645         * modules/getopt-posix (configure.ac): ... and here.
14646         (Depends-on): Update condition.
14647
14648 2011-05-08  Bruno Haible  <bruno@clisp.org>
14649
14650         getopt, argp: Respect rules for use of AC_LIBOBJ.
14651         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14652         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14653         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14654         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14655
14656 2011-05-08  Bruno Haible  <bruno@clisp.org>
14657
14658         getlogin_r: Move AC_LIBOBJ invocations to module description.
14659         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14660         gl_PREREQ_GETLOGIN_R invocations from here...
14661         * modules/getlogin_r (configure.ac): ... to here.
14662
14663 2011-05-08  Bruno Haible  <bruno@clisp.org>
14664
14665         getlogin: Move AC_LIBOBJ invocations to module description.
14666         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14667         here...
14668         * modules/getlogin (configure.ac): ... to here.
14669
14670 2011-05-08  Bruno Haible  <bruno@clisp.org>
14671
14672         getloadavg: Move AC_LIBOBJ invocations to module description.
14673         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14674         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14675         * modules/getloadavg (configure.ac): ... to here.
14676
14677 2011-05-08  Bruno Haible  <bruno@clisp.org>
14678
14679         gethrxtime: Move AC_LIBOBJ invocations to module description.
14680         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14681         LIB_GETHRXTIME from here...
14682         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14683         invocations from here...
14684         * modules/gethrxtime (configure.ac): ... to here.
14685
14686 2011-05-08  Bruno Haible  <bruno@clisp.org>
14687
14688         gethostname: Move AC_LIBOBJ invocations to module description.
14689         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14690         gl_PREREQ_GETHOSTNAME invocations from here...
14691         * modules/gethostname (configure.ac): ... to here.
14692
14693 2011-05-08  Bruno Haible  <bruno@clisp.org>
14694
14695         getgroups: Move AC_LIBOBJ invocations to module description.
14696         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14697         here...
14698         * modules/getgroups (configure.ac): ... to here.
14699
14700 2011-05-08  Bruno Haible  <bruno@clisp.org>
14701
14702         getdtablesize: Move AC_LIBOBJ invocations to module description.
14703         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14704         invocation from here...
14705         * modules/getdtablesize (configure.ac): ... to here.
14706
14707 2011-05-08  Bruno Haible  <bruno@clisp.org>
14708
14709         getdomainname: Move AC_LIBOBJ invocations to module description.
14710         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14711         gl_PREREQ_GETDOMAINNAME invocations from here...
14712         * modules/getdomainname (configure.ac): ... to here.
14713
14714 2011-05-08  Bruno Haible  <bruno@clisp.org>
14715
14716         getline: Move AC_LIBOBJ invocations to module description.
14717         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14718         invocations from here...
14719         * modules/getline (configure.ac): ... to here.
14720
14721 2011-05-08  Bruno Haible  <bruno@clisp.org>
14722
14723         getline: Simplify.
14724         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14725         It's already handled through the module dependency.
14726
14727 2011-05-08  Bruno Haible  <bruno@clisp.org>
14728
14729         getdelim: Move AC_LIBOBJ invocations to module description.
14730         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14731         and gl_PREREQ_GETDELIM invocations from here...
14732         * modules/getdelim (configure.ac): ... to here.
14733         (Depends-on): Fix condition.
14734
14735 2011-05-08  Bruno Haible  <bruno@clisp.org>
14736
14737         getcwd: Move AC_LIBOBJ invocations to module description.
14738         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14739         invocations from here...
14740         * modules/getcwd (configure.ac): ... to here.
14741
14742 2011-05-08  Bruno Haible  <bruno@clisp.org>
14743
14744         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14745         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14746         here...
14747         * modules/getcwd-lgpl (configure.ac): ... to here.
14748
14749 2011-05-07  Bruno Haible  <bruno@clisp.org>
14750
14751         crypto/gc: Move AC_LIBOBJ invocations to module description.
14752         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14753         * modules/crypto/gc (configure.ac): ... to here.
14754
14755 2011-05-07  Bruno Haible  <bruno@clisp.org>
14756
14757         fwriting: Move AC_LIBOBJ invocations to module description.
14758         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14759         here...
14760         * modules/fwriting (configure.ac): ... to here.
14761
14762 2011-05-07  Bruno Haible  <bruno@clisp.org>
14763
14764         fwritable: Move AC_LIBOBJ invocations to module description.
14765         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14766         here...
14767         * modules/fwritable (configure.ac): ... to here.
14768
14769 2011-05-07  Bruno Haible  <bruno@clisp.org>
14770
14771         futimens: Move AC_LIBOBJ invocations to module description.
14772         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14773         here...
14774         * modules/futimens (configure.ac): ... to here.
14775
14776 2011-05-07  Bruno Haible  <bruno@clisp.org>
14777
14778         ftruncate: Move AC_LIBOBJ invocations to module description.
14779         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14780         gl_PREREQ_FTRUNCATE invocations from here...
14781         * modules/ftruncate (configure.ac): ... to here.
14782
14783 2011-05-07  Bruno Haible  <bruno@clisp.org>
14784
14785         fsync: Move AC_LIBOBJ invocations to module description.
14786         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14787         invocations from here...
14788         * modules/fsync (configure.ac): ... to here.
14789
14790 2011-05-07  Bruno Haible  <bruno@clisp.org>
14791
14792         fsusage: Move AC_LIBOBJ invocations to module description.
14793         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14794         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14795         * modules/fsusage (configure.ac): ... to here.
14796
14797 2011-05-07  Bruno Haible  <bruno@clisp.org>
14798
14799         freopen: Move AC_LIBOBJ invocations to module description.
14800         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14801         invocations from here...
14802         * modules/freopen (configure.ac): ... to here.
14803
14804 2011-05-07  Bruno Haible  <bruno@clisp.org>
14805
14806         free: Move AC_LIBOBJ invocations to module description.
14807         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14808         invocations from here...
14809         * modules/free (configure.ac): ... to here.
14810
14811 2011-05-07  Bruno Haible  <bruno@clisp.org>
14812
14813         freadable: Move AC_LIBOBJ invocations to module description.
14814         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14815         here...
14816         * modules/freadable (configure.ac): ... to here.
14817
14818 2011-05-07  Bruno Haible  <bruno@clisp.org>
14819
14820         fpurge: Move AC_LIBOBJ invocations to module description.
14821         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14822         invocations from here...
14823         * modules/fpurge (configure.ac): ... to here.
14824
14825 2011-05-07  Bruno Haible  <bruno@clisp.org>
14826
14827         fpending: Move AC_LIBOBJ invocations to module description.
14828         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14829         gl_FUNC_FPENDING.
14830         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14831         invocations from here...
14832         * modules/fpending (configure.ac): ... to here.
14833
14834 2011-05-07  Bruno Haible  <bruno@clisp.org>
14835
14836         fopen: Move AC_LIBOBJ invocations to module description.
14837         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14838         invocations from here...
14839         * modules/fopen (configure.ac): ... to here.
14840
14841 2011-05-07  Bruno Haible  <bruno@clisp.org>
14842
14843         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14844         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14845         gl_FUNC_FNMATCH_POSIX.
14846         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14847         invocations from here...
14848         * modules/fnmatch (configure.ac): ... to here.
14849         * modules/fnmatch-gnu (configure.ac): ... and here.
14850
14851 2011-05-07  Bruno Haible  <bruno@clisp.org>
14852
14853         flock: Move AC_LIBOBJ invocations to module description.
14854         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14855         invocations from here...
14856         * modules/flock (configure.ac): ... to here.
14857
14858 2011-05-07  Bruno Haible  <bruno@clisp.org>
14859
14860         fileblocks: Move AC_LIBOBJ invocations to module description.
14861         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14862         gl_PREREQ_FILEBLOCKS invocations from here...
14863         * modules/fileblocks (configure.ac): ... to here.
14864
14865 2011-05-06  Bruno Haible  <bruno@clisp.org>
14866
14867         fflush: Move AC_LIBOBJ invocations to module description.
14868         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14869         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14870         invocations from here...
14871         * modules/fflush (configure.ac): ... to here.
14872
14873 2011-05-06  Bruno Haible  <bruno@clisp.org>
14874
14875         fdopendir: Move AC_LIBOBJ invocations to module description.
14876         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14877         here...
14878         * modules/fdopendir (configure.ac): ... to here.
14879         (Depends-on): Improve conditions.
14880
14881 2011-05-06  Bruno Haible  <bruno@clisp.org>
14882
14883         _Exit: Move AC_LIBOBJ invocations to module description.
14884         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14885         invocations from here...
14886         * modules/_Exit (configure.ac): ... to here.
14887
14888 2011-05-21  Bruno Haible  <bruno@clisp.org>
14889
14890         euidaccess: Respect rules for use of AC_LIBOBJ.
14891         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14892         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14893         from here...
14894         * modules/euidaccess (configure.ac): ... to here.
14895
14896 2011-05-06  Bruno Haible  <bruno@clisp.org>
14897
14898         error: Move AC_LIBOBJ invocations to module description.
14899         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14900         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14901         invocations from here...
14902         * modules/error (configure.ac): ... to here.
14903
14904 2011-05-06  Bruno Haible  <bruno@clisp.org>
14905
14906         duplocale: Move AC_LIBOBJ invocations to module description.
14907         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14908         gl_PREREQ_DUPLOCALE invocations from here...
14909         * modules/duplocale (configure.ac): ... to here.
14910
14911 2011-05-05  Bruno Haible  <bruno@clisp.org>
14912
14913         dirfd: Move AC_LIBOBJ invocations to module description.
14914         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14915         gl_FUNC_DIRFD.
14916         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14917         here...
14918         * modules/dirfd (configure.ac): ... to here.
14919         (Depends-on): Fix condition.
14920
14921 2011-05-05  Bruno Haible  <bruno@clisp.org>
14922
14923         chown: Respect rules for use of AC_LIBOBJ.
14924         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14925         * modules/chown (configure.ac): ... to here.
14926
14927 2011-05-05  Bruno Haible  <bruno@clisp.org>
14928
14929         chdir-long: Move AC_LIBOBJ invocations to module description.
14930         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14931         gl_PREREQ_CHDIR_LONG invocations from here...
14932         * modules/chdir-long (configure.ac): ... to here.
14933
14934 2011-05-05  Bruno Haible  <bruno@clisp.org>
14935
14936         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14937         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14938         from here...
14939         * modules/canonicalize-lgpl (configure.ac): ... to here.
14940
14941 2011-05-05  Bruno Haible  <bruno@clisp.org>
14942
14943         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14944         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14945         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14946         REPLACE_CALLOC.
14947         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14948         * modules/calloc-gnu (configure.ac): Likewise.
14949
14950 2011-05-05  Bruno Haible  <bruno@clisp.org>
14951
14952         btowc: Move AC_LIBOBJ invocations to module description.
14953         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14954         invocations from here...
14955         * modules/btowc (configure.ac): ... to here.
14956
14957 2011-05-21  Bruno Haible  <bruno@clisp.org>
14958
14959         atexit: Move AC_LIBOBJ invocations to module description.
14960         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14962         here...
14963         * modules/atexit (configure.ac): ... to here.
14964
14965 2011-05-05  Bruno Haible  <bruno@clisp.org>
14966
14967         atoll: Move AC_LIBOBJ invocations to module description.
14968         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14969         invocations from here...
14970         * modules/atoll (configure.ac): ... to here.
14971
14972 2011-05-05  Bruno Haible  <bruno@clisp.org>
14973
14974         argz: Move AC_LIBOBJ invocations to module description.
14975         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14976         * modules/argz (configure.ac): ... to here.
14977
14978 2011-05-05  Bruno Haible  <bruno@clisp.org>
14979
14980         alphasort: Move AC_LIBOBJ invocations to module description.
14981         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14982         gl_PREREQ_ALPHASORT invocations from here...
14983         * modules/alphasort (configure.ac): ... to here.
14984
14985 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14986
14987         verify: new macro verify_expr; verify_true deprecated
14988         * NEWS: Mention this.
14989         * doc/verify.texi (Compile-time Assertions): Document this.
14990         * lib/verify.h (verify_true): Deprecate.
14991         (verify_expr): New macro.
14992         * tests/test-verify.c (function): Test verify_expr.
14993
14994 2011-06-14  Jim Meyering  <meyering@redhat.com>
14995
14996         init.sh: give more portable redirection-related advice in a comment
14997         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14998         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14999         for lots of discussion.  Stefano Lattarini suggested the solution
15000         of putting "9>&2" after the command.  Reported by Bruno Haible.
15001
15002 2011-06-13  Bruno Haible  <bruno@clisp.org>
15003
15004         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15005         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15006         'none'.
15007
15008 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15009
15010         ftoastr: use strtof only if HAVE_STRTOF
15011         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15013         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15014         * modules/ftoastr (configure.ac): Check for strtof.
15015
15016 2011-06-13  Bruno Haible  <bruno@clisp.org>
15017
15018         gnulib-tool: Addendum to 2011-06-08 commit.
15019         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15020         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15021
15022 2011-06-13  Bruno Haible  <bruno@clisp.org>
15023
15024         fseeko: Provide a non-inline replacement of fseek().
15025         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15026         * modules/fseeko (Depends-on): Add fseek.
15027         * modules/fseek (License): Change to LGPLv2+.
15028
15029 2011-06-13  Bruno Haible  <bruno@clisp.org>
15030
15031         ftello: Provide a non-inline replacement of ftell().
15032         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15033         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15034         not have ftello() (such as on mingw).
15035         * modules/ftello (Depends-on): Add ftell.
15036         * modules/ftell (License): Change to LGPLv2+.
15037
15038 2011-05-07  Bruno Haible  <bruno@clisp.org>
15039
15040         ftell: Move AC_LIBOBJ invocations to module description.
15041         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15042         * modules/ftell (configure.ac): ... to here.
15043
15044 2011-05-07  Bruno Haible  <bruno@clisp.org>
15045
15046         ftello: Respect rules for use of AC_LIBOBJ.
15047         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15048         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15049         here...
15050         * modules/ftello (configure.ac): ... to here.
15051
15052 2011-05-07  Bruno Haible  <bruno@clisp.org>
15053
15054         fseeko: Simplify.
15055         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15056         (gl_FUNC_FSEEKO): Inline it here.
15057
15058 2011-05-07  Bruno Haible  <bruno@clisp.org>
15059
15060         fseek: Move AC_LIBOBJ invocations to module description.
15061         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15062         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15063         * modules/fseek (configure.ac): ... to here.
15064
15065 2011-05-07  Bruno Haible  <bruno@clisp.org>
15066
15067         fseek: Respect rules for use of AC_LIBOBJ.
15068         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15069         here...
15070         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15071
15072 2011-05-07  Bruno Haible  <bruno@clisp.org>
15073
15074         fseeko: Respect rules for use of AC_LIBOBJ.
15075         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15076         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15077         here...
15078         * modules/fseeko (configure.ac): ... to here.
15079
15080 2011-06-13  Bruno Haible  <bruno@clisp.org>
15081
15082         gnulib-tool: Allow comments in the 'Depends-on' section.
15083         * doc/gnulib.texi (Module description): Mention comment syntax in the
15084         Depends-on section.
15085         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15086
15087 2011-06-13  Bruno Haible  <bruno@clisp.org>
15088
15089         file-set.h: guard __attibute__ use, now that it's not always defined
15090         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15091         versions that support it.  This fixes a coreutils build failure with
15092         the vendor cc on HP-UX 11.31.
15093
15094 2011-06-12  Bruno Haible  <bruno@clisp.org>
15095
15096         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15097         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15098         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15099         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15100         (acl, aclsort): New declarations.
15101         (aclv_nontrivial): New declaration.
15102         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15103         (file_has_acl): Read also the second kind of HP-UX ACLs.
15104         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15105         kind of HP-UX ACLs if the first kind fails.
15106         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15107         second kind of HP-UX ACLs.
15108         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15109         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15110         agree.
15111         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15112         hpuxjfs.
15113         Handle hpuxjfs.
15114         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15115         hpuxjfs.
15116         Handle hpuxjfs.
15117         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15118         (func_test_same_acls): Use both lsacl and getacl.
15119         Handle hpuxjfs.
15120         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15121         (func_test_same_acls): Use both lsacl and getacl.
15122         Handle hpuxjfs.
15123
15124 2011-06-12  Bruno Haible  <bruno@clisp.org>
15125
15126         acl: Complete the 2010-08-10 fix.
15127         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15128         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15129         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15130         explicitly.
15131         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15132         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15133
15134 2011-06-12  Bruno Haible  <bruno@clisp.org>
15135
15136         spawn-pipe tests: Comments.
15137         * tests/test-spawn-pipe-child.c (main): Update comment.
15138         Reported by James Youngman <jay@gnu.org>.
15139
15140 2011-06-11  James Youngman  <jay@gnu.org>
15141
15142         New module 'stat-size'.
15143         * modules/stat-size: New module.  Provides macros for accessing
15144         file size information in instances of struct stat.  Depends on the
15145         fileblocks module because it calls st_blocks.
15146         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15147         * doc/gnulib.texi: Include stat-size.texi.
15148         * doc/stat-size.texi: Documentation for this module.
15149         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15150         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15151         AC_STRUCT_ST_BLOCKS.
15152
15153 2011-06-09  Bruno Haible  <bruno@clisp.org>
15154
15155         thread: Support pthreads-win32.
15156         * lib/glthread/thread.h (gl_thread_self): Define differently on
15157         pthreads-win32.
15158         (gl_null_thread): New declaration.
15159         (gl_thread_self_pointer): New macro.
15160         * lib/glthread/thread.c (gl_null_thread): New constant.
15161         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15162         gl_thread_self.
15163         * tests/test-tls.c: Likewise.
15164         Suggested by Paul Eggert. Reported by Eric Blake.
15165
15166 2011-06-09  Bruno Haible  <bruno@clisp.org>
15167
15168         thread: Fix confusion between NULL and 0.
15169         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15170         Reported by Paul Eggert.
15171
15172 2011-06-09  Bruno Haible  <bruno@clisp.org>
15173
15174         spawn-pipe tests: Avoid test failure on HP-UX 11.
15175         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15176         is closed.
15177
15178 2011-06-09  Bruno Haible  <bruno@clisp.org>
15179
15180         acl tests: Fix compilation error on HP-UX 11.
15181         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15182
15183 2011-06-09  Bruno Haible  <bruno@clisp.org>
15184
15185         rmdir: Avoid test failure on HP-UX 10.20.
15186         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15187         EEXIST.
15188
15189 2011-06-08  Eric Blake  <eblake@redhat.com>
15190
15191         perror: fix test on mingw
15192         * modules/perror-tests (Depends-on): Add dup2.
15193
15194         strerror_r-posix: fix on MacOS
15195         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15196         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15197         logic bug.
15198         * lib/strerror_r.c (strerror_r): Fix the bug.
15199         * lib/strerror.c (strerror): Likewise.
15200         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15201         problem.
15202         * doc/posix-functions/strerror.texi (strerror): Likewise.
15203         * doc/posix-functions/perror.texi (perror): Likewise.
15204         * tests/test-strerror.c (main): Enhance test.
15205         * tests/test-strerror_r.c (main): Likewise.
15206
15207 2011-06-08  Bruno Haible  <bruno@clisp.org>
15208
15209         gnulib-tool: Better isolation between different gnulib-tool invocations.
15210         * gnulib-tool: New option --witness-c-macro.
15211         (witness_c_macro): New variable.
15212         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15213         AM_CPPFLAGS define it as a C macro.
15214         (func_emit_tests_Makefile_am): Likewise.
15215         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15216         read it from there.
15217         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15218         m4_define, not AC_DEFUN.
15219         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15220         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15221         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15222         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15223         s|...|...|, to substitute the values of the GNULIB_* module indicator
15224         variables.
15225         * modules/dirent (Makefile.am): Likewise.
15226         * modules/fcntl-h (Makefile.am): Likewise.
15227         * modules/iconv-h (Makefile.am): Likewise.
15228         * modules/langinfo (Makefile.am): Likewise.
15229         * modules/locale (Makefile.am): Likewise.
15230         * modules/math (Makefile.am): Likewise.
15231         * modules/netdb (Makefile.am): Likewise.
15232         * modules/poll-h (Makefile.am): Likewise.
15233         * modules/pty (Makefile.am): Likewise.
15234         * modules/search (Makefile.am): Likewise.
15235         * modules/signal (Makefile.am): Likewise.
15236         * modules/spawn (Makefile.am): Likewise.
15237         * modules/stdio (Makefile.am): Likewise.
15238         * modules/stdlib (Makefile.am): Likewise.
15239         * modules/string (Makefile.am): Likewise.
15240         * modules/sys_ioctl (Makefile.am): Likewise.
15241         * modules/sys_select (Makefile.am): Likewise.
15242         * modules/sys_socket (Makefile.am): Likewise.
15243         * modules/sys_stat (Makefile.am): Likewise.
15244         * modules/sys_times (Makefile.am): Likewise.
15245         * modules/sys_utsname (Makefile.am): Likewise.
15246         * modules/sys_wait (Makefile.am): Likewise.
15247         * modules/termios (Makefile.am): Likewise.
15248         * modules/time (Makefile.am): Likewise.
15249         * modules/unistd (Makefile.am): Likewise.
15250         * modules/wchar (Makefile.am): Likewise.
15251
15252 2011-06-08  Eric Blake  <eblake@redhat.com>
15253
15254         strerror: simplify replacement
15255         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15256         * modules/strerror (configure.ac): No prereqs needed here...
15257         * modules/strerror-override (configure.ac): ...but this needs it.
15258         (Files): Add file for needed prereq macro.
15259
15260 2011-06-08  Bruno Haible  <bruno@clisp.org>
15261
15262         strerror_r-posix: Tweaks.
15263         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15264         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15265         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15266         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15267         (gl_FUNC_STRERROR_R): ... to here.
15268         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15269
15270 2011-06-07  Eric Blake  <eblake@redhat.com>
15271
15272         perror: document fixed bugs
15273         * doc/posix-functions/perror.texi (perror): Document recent
15274         patches.
15275
15276 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15277
15278         stat-time: get_stat_birthtime failure is better-defined
15279         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15280         return a timestamp whose tv_sec and tv_nsec values are both -1.
15281         Previously, the spec said only that the tv_nsec value was negative.
15282         This upward-compatible change simplifies GNU tar a bit.
15283
15284 2011-06-07  Eric Blake  <eblake@redhat.com>
15285
15286         strerror_r-posix: work around cygwin 1.7.9
15287         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15288         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15289         bug without replacing strerror_r.
15290         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15291         strerror_r is buggy, but without requiring strerror_r compilation.
15292         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15293
15294         test-perror: relax test to ignore cygwin bug
15295         * tests/test-perror2.c (main): Relax test on requiring detection
15296         of stream errors, and use unbuffered stream.
15297         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15298         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15299         * doc/posix-functions/fputc.texi (fputc): Likewise.
15300         * doc/posix-functions/fputs.texi (fputs): Likewise.
15301         * doc/posix-functions/fputws.texi (fputws): Likewise.
15302         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15303         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15304         * doc/posix-functions/getopt.texi (getopt): Likewise.
15305         * doc/posix-functions/perror.texi (perror): Likewise.
15306         * doc/posix-functions/printf.texi (printf): Likewise.
15307         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15308         * doc/posix-functions/psignal.texi (psignal): Likewise.
15309         * doc/posix-functions/putc.texi (putc): Likewise.
15310         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15311         Likewise.
15312         * doc/posix-functions/putchar.texi (putchar): Likewise.
15313         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15314         Likewise.
15315         * doc/posix-functions/puts.texi (puts): Likewise.
15316         * doc/posix-functions/putwc.texi (putwc): Likewise.
15317         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15318         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15319         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15320         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15321         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15322         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15323         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15324         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15325
15326 2011-05-22  Bruno Haible  <bruno@clisp.org>
15327
15328         strerror: Move AC_LIBOBJ invocations to module description.
15329         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15330         gl_PREREQ_STRERROR invocations from here...
15331         * modules/strerror (configure.ac): ... to here.
15332
15333 2011-05-21  Bruno Haible  <bruno@clisp.org>
15334
15335         perror: Use common idiom.
15336         * modules/perror (configure.ac): Reorder statements.
15337
15338 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15339
15340         tests: fix usage message in 'mktempd_'
15341         * tests/init.sh (mktempd_): In the usage message, use literal
15342         'mktempd_', not '$ME' (which is even undefined), as the name of
15343         the subroutine.
15344
15345 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15346
15347         tests init: new function 'fatal_', for hard errors
15348         Before this patch, the only way offered by tests/init.sh to
15349         properly signal a hard error was the `framework_failure_'
15350         function.  But the error message issued by that function,
15351         as its name would suggest, refers to a set-up failure in the
15352         testsuite, while hard errors can obviously also be due to
15353         other reasons.  The best way to fix this inconsistency is to
15354         introduce a new function with a more general error message.
15355         * tests/init.sh (fatal_): New function.
15356
15357 2011-06-06  Eric Blake  <eblake@redhat.com>
15358
15359         canonicalize-lgpl: use common idiom
15360         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15361         over newer POSIX -Rf.
15362         Reported by Bruno Haible.
15363
15364         canonicalize-lgpl: work around AIX realpath bug
15365         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15366         * doc/posix-functions/realpath.texi (realpath): Document it.
15367         Reported by Bruno Haible.
15368
15369         strerror: work around FreeBSD bug
15370         * lib/strerror.c (strerror): Special case 0.
15371         Reported by Bruno Haible.
15372
15373         strerror-override: avoid bloating errno module
15374         * modules/errno (Files, configure.ac): Move replacement strings...
15375         * modules/strerror-override: ...to new module.
15376         * modules/strerror (Depends-on): Add strerror-override.
15377         * modules/strerror_r-posix (Depends-on): Likewise.
15378         * MODULES.html.sh: Document new module.
15379         Reported by Bruno Haible.
15380
15381 2011-06-06  Bruno Haible  <bruno@clisp.org>
15382
15383         spawn-pipe tests: Rename program.
15384         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15385         * tests/test-spawn-pipe-child.c: Update comment.
15386         * tests/test-spawn-pipe.sh: Update.
15387         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15388
15389         spawn-pipe tests: Link the child program only against libc.
15390         * tests/test-spawn-pipe-child.c: New file, extracted from
15391         tests/test-spawn-pipe.c.
15392         (main): Expect only one argument.
15393         (is_open): New function, copied from tests/test-pipe.c.
15394         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15395         (child_main): Remove function.
15396         (test_pipe): Pass only one argument to the child program.
15397         (main): Remove child process code. Expect the child program's name as
15398         first argument.
15399         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15400         argument.
15401         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15402         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15403         test-spawn-pipe-child against no libraries.
15404
15405 2011-06-06  Bruno Haible  <bruno@clisp.org>
15406
15407         careadlinkat: Avoid mismatch between ssize_t and int.
15408         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15409         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15410
15411 2011-06-06  Jim Meyering  <meyering@redhat.com>
15412
15413         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15414         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15415         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15416
15417 2011-06-05  Bruno Haible  <bruno@clisp.org>
15418
15419         ansi-c++-opt: Interoperability with libtool.
15420         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15421         set the variable to "no", not to ":".
15422         * NEWS: Mention the change.
15423
15424 2011-06-05  Bruno Haible  <bruno@clisp.org>
15425
15426         acl: Fix test failure on AIX 7.
15427         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15428         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15429
15430 2011-06-05  Bruno Haible  <bruno@clisp.org>
15431
15432         pipe-filter-ii: Fix test failure on AIX and IRIX.
15433         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15434         with EAGAIN, retry with a smaller buffer size.
15435
15436 2011-06-05  Bruno Haible  <bruno@clisp.org>
15437
15438         localename: Fix link dependencies.
15439         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15440         * modules/localename-tests (Makefile.am): Link test-localename with
15441         $(LIBTHREAD).
15442
15443 2011-06-05  Bruno Haible  <bruno@clisp.org>
15444
15445         error: Avoid gcc warning.
15446         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15447
15448 2011-06-05  Bruno Haible  <bruno@clisp.org>
15449
15450         unsetenv: Avoid gcc warning.
15451         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15452
15453 2011-06-05  Bruno Haible  <bruno@clisp.org>
15454
15455         setenv: Avoid gcc warning.
15456         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15457
15458 2011-06-05  Bruno Haible  <bruno@clisp.org>
15459
15460         sys_select: Ensure memset is declared also on AIX 7.
15461         * lib/sys_select.in.h: Include <string.h> also on AIX.
15462         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15463         self-contained also on AIX 7.1.
15464
15465 2011-06-04  Jim Meyering  <meyering@redhat.com>
15466
15467         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15468         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15469         function name, "error".
15470         (_gl_translatable_diag_func_re): New configurable variable.
15471
15472 2011-06-04  Bruno Haible  <bruno@clisp.org>
15473
15474         getopt: Avoid gcc warning.
15475         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15476
15477 2011-06-04  Bruno Haible  <bruno@clisp.org>
15478
15479         strerror_r: Fix comments.
15480         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15481         commit.
15482
15483 2011-06-04  Bruno Haible  <bruno@clisp.org>
15484
15485         perror: Fix compilation error.
15486         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15487         Undefine fprintf, not sprintf.
15488         * modules/perror (Depends-on): Remove intprops, verify.
15489
15490 2011-06-04  Bruno Haible  <bruno@clisp.org>
15491
15492         setlocale: Enable replacement on Cygwin 1.5.
15493         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15494         Cygwin 1.5.x.
15495         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15496         LC_CTYPE category also exists on Cygwin 1.5.x.
15497
15498 2011-06-04  Bruno Haible  <bruno@clisp.org>
15499
15500         strerror-override: Don't disable symbol renamings.
15501         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15502         * lib/strerror-override.c: Include config.h.
15503         (strerror_override): Don't undefine.
15504
15505 2011-06-03  Bruno Haible  <bruno@clisp.org>
15506
15507         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15508         * lib/localename.h: Update copyright header.
15509         * lib/localename.c: Likewise.
15510         * lib/relocatable.h: Likewise.
15511         * lib/relocatable.c: Likewise.
15512
15513 2011-06-02  Bruno Haible  <bruno@clisp.org>
15514
15515         doc: Fix a module name.
15516         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15517
15518 2011-06-02  Bruno Haible  <bruno@clisp.org>
15519
15520         pipe2: Remove dependency on 'nonblocking' module.
15521         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15522         O_NONBLOCK is defined by gnulib.
15523         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15524         is zero.
15525         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15526         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15527         defined by gnulib.
15528         (get_nonblocking_flag): New function.
15529         (main): Test O_NONBLOCK flag only if it is nonzero.
15530         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15531
15532 2011-06-03  Jim Meyering  <meyering@redhat.com>
15533
15534         maint: three new prohibit-header-without-use rules
15535         Prohibit use of cloexec.h, posixver.h, same.h without use.
15536         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15537         (sc_prohibit_posixver_without_use): Likewise.
15538         (sc_prohibit_same_without_use): Likewise.
15539
15540 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15541
15542         allocator: 'die' routine is now given requested size
15543         * lib/allocator.h (struct allocator.die): New size arg.
15544         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15545         If the actual problem is an ssize_t limitation, not a size_t or
15546         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15547
15548 2011-06-01  Eric Blake  <eblake@redhat.com>
15549
15550         strerror: drop strerror_r dependency
15551         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15552         * lib/strerror-override.c (strerror_override): ...to new file.
15553         * lib/strerror-override.h: Add prototype.
15554         * lib/strerror-impl.h: Delete.
15555         * lib/strerror.c (strerror): New implementation.
15556         * modules/errno (Files): Add new files.
15557         (configure.ac): Compile new file as appropriate.
15558         * modules/strerror (Files): Drop unused file.
15559         (Depends-on): Drop strerror_r-posix.
15560         * MODULES.html.sh: Document strerror_r-posix.
15561         Requested by Sam Steingold.
15562
15563         perror: call strerror_r directly
15564         * modules/perror (Files): Drop strerror-impl.h.
15565         * lib/perror.c (perror): Use our own stack buffer, rather than
15566         calling a wrapper that uses static storage.
15567         * doc/posix-functions/perror.texi (perror): Document a limitation
15568         of our replacement.
15569
15570         strerror_r: fix includes for FreeBSD
15571         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15572         since we use abort on some platforms.
15573         Reported by Matthias Bolte.
15574
15575 2011-05-31  Bruno Haible  <bruno@clisp.org>
15576
15577         Fix link errors in tests: openat-die uses gettext-h.
15578         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15579         against $(LIBINTL).
15580         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15581         against $(LIBINTL).
15582         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15583         $(LIBINTL).
15584         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15585         against $(LIBINTL).
15586         * modules/linkat-tests (Makefile.am): Link test-linkat against
15587         $(LIBINTL).
15588         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15589         $(LIBINTL).
15590         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15591         against $(LIBINTL).
15592         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15593         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15594         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15595         $(LIBINTL).
15596         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15597         $(LIBINTL).
15598         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15599         $(LIBINTL).
15600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15601
15602 2011-05-31  Bruno Haible  <bruno@clisp.org>
15603
15604         Fix link errors in tests: wait-process uses gettext-h.
15605         * modules/nonblocking-pipe-tests (Makefile.am): Set
15606         test_nonblocking_pipe_main_LDADD.
15607         * modules/nonblocking-socket-tests (Makefile.am): Link
15608         test-nonblocking-socket-main against $(LIBINTL).
15609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15610
15611 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15612
15613         assert-h: work around 'verify' incompatibility
15614         * lib/verify.h: Use @...@ directives, not ifdef.
15615         * modules/assert-h (assert.h): Implement the directives.
15616         (assert.h): Substitute the symbol-prefix more consistently.
15617
15618 2011-05-29  Jim Meyering  <meyering@redhat.com>
15619
15620         trim: remove three superfluous assignments
15621         * lib/trim.c (trim2): Remove three superfluous assignments
15622         and correct brace positioning.
15623
15624 2011-05-29  Bruno Haible  <bruno@clisp.org>
15625
15626         wctype-h: Avoid namespace pollution on Solaris 2.6.
15627         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15628         identifiers.
15629         * doc/posix-headers/wctype.texi: Mention the problem.
15630         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15631
15632 2011-05-28  Jim Meyering  <meyering@redhat.com>
15633
15634         parse-datetime.y: accommodate -Wstrict-overflow
15635         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15636         placate -Wstrict-overflow.
15637
15638         trim: avoid a warning from -O2 -Wstrict-overflow
15639         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15640
15641 2011-05-29  Bruno Haible  <bruno@clisp.org>
15642
15643         gnulib-tool: Fix bug in yesterday's commit.
15644         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15645         twice.
15646
15647 2011-05-29  Bruno Haible  <bruno@clisp.org>
15648
15649         Allow multiple gnulib generated include files to be combined.
15650         * gnulib-tool (func_compute_include_guard_prefix): New function.
15651         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15652         ${gl_include_guard_prefix} references.
15653         (func_import, func_create_testdir): Invoke
15654         func_compute_include_guard_prefix.
15655         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15656         * lib/ctype.in.h: Likewise.
15657         * lib/dirent.in.h: Likewise.
15658         * lib/errno.in.h: Likewise.
15659         * lib/fcntl.in.h: Likewise.
15660         * lib/float.in.h: Likewise.
15661         * lib/getopt.in.h: Likewise.
15662         * lib/iconv.in.h: Likewise.
15663         * lib/langinfo.in.h: Likewise.
15664         * lib/locale.in.h: Likewise.
15665         * lib/math.in.h: Likewise.
15666         * lib/netdb.in.h: Likewise.
15667         * lib/netinet_in.in.h: Likewise.
15668         * lib/poll.in.h: Likewise.
15669         * lib/pthread.in.h: Likewise.
15670         * lib/pty.in.h: Likewise.
15671         * lib/sched.in.h: Likewise.
15672         * lib/se-selinux.in.h: Likewise.
15673         * lib/search.in.h: Likewise.
15674         * lib/signal.in.h: Likewise.
15675         * lib/spawn.in.h: Likewise.
15676         * lib/stdarg.in.h: Likewise.
15677         * lib/stddef.in.h: Likewise.
15678         * lib/stdint.in.h: Likewise.
15679         * lib/stdio.in.h: Likewise.
15680         * lib/stdlib.in.h: Likewise.
15681         * lib/string.in.h: Likewise.
15682         * lib/strings.in.h: Likewise.
15683         * lib/sys_file.in.h: Likewise.
15684         * lib/sys_ioctl.in.h: Likewise.
15685         * lib/sys_select.in.h: Likewise.
15686         * lib/sys_socket.in.h: Likewise.
15687         * lib/sys_stat.in.h: Likewise.
15688         * lib/sys_time.in.h: Likewise.
15689         * lib/sys_times.in.h: Likewise.
15690         * lib/sys_uio.in.h: Likewise.
15691         * lib/sys_utsname.in.h: Likewise.
15692         * lib/sys_wait.in.h: Likewise.
15693         * lib/sysexits.in.h: Likewise.
15694         * lib/termios.in.h: Likewise.
15695         * lib/time.in.h: Likewise.
15696         * lib/unistd.in.h: Likewise.
15697         * lib/wchar.in.h: Likewise.
15698         * lib/wctype.in.h: Likewise.
15699         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15700         * modules/ctype (Makefile.am): Likewise.
15701         * modules/dirent (Makefile.am): Likewise.
15702         * modules/errno (Makefile.am): Likewise.
15703         * modules/fcntl-h (Makefile.am): Likewise.
15704         * modules/float (Makefile.am): Likewise.
15705         * modules/getopt-posix (Makefile.am): Likewise.
15706         * modules/iconv-h (Makefile.am): Likewise.
15707         * modules/langinfo (Makefile.am): Likewise.
15708         * modules/locale (Makefile.am): Likewise.
15709         * modules/math (Makefile.am): Likewise.
15710         * modules/netdb (Makefile.am): Likewise.
15711         * modules/netinet_in (Makefile.am): Likewise.
15712         * modules/poll-h (Makefile.am): Likewise.
15713         * modules/pthread (Makefile.am): Likewise.
15714         * modules/pty (Makefile.am): Likewise.
15715         * modules/sched (Makefile.am): Likewise.
15716         * modules/search (Makefile.am): Likewise.
15717         * modules/selinux-h (Makefile.am): Likewise.
15718         * modules/signal (Makefile.am): Likewise.
15719         * modules/spawn (Makefile.am): Likewise.
15720         * modules/stdarg (Makefile.am): Likewise.
15721         * modules/stddef (Makefile.am): Likewise.
15722         * modules/stdint (Makefile.am): Likewise.
15723         * modules/stdio (Makefile.am): Likewise.
15724         * modules/stdlib (Makefile.am): Likewise.
15725         * modules/string (Makefile.am): Likewise.
15726         * modules/strings (Makefile.am): Likewise.
15727         * modules/sys_file (Makefile.am): Likewise.
15728         * modules/sys_ioctl (Makefile.am): Likewise.
15729         * modules/sys_select (Makefile.am): Likewise.
15730         * modules/sys_socket (Makefile.am): Likewise.
15731         * modules/sys_stat (Makefile.am): Likewise.
15732         * modules/sys_time (Makefile.am): Likewise.
15733         * modules/sys_times (Makefile.am): Likewise.
15734         * modules/sys_uio (Makefile.am): Likewise.
15735         * modules/sys_utsname (Makefile.am): Likewise.
15736         * modules/sys_wait (Makefile.am): Likewise.
15737         * modules/sysexits (Makefile.am): Likewise.
15738         * modules/termios (Makefile.am): Likewise.
15739         * modules/time (Makefile.am): Likewise.
15740         * modules/unistd (Makefile.am): Likewise.
15741         * modules/wchar (Makefile.am): Likewise.
15742         * modules/wctype-h (Makefile.am): Likewise.
15743         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15744
15745 2011-05-29  Bruno Haible  <bruno@clisp.org>
15746
15747         assert-h: Allow multiple gnulib generated replacements to coexist.
15748         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15749
15750 2011-05-29  Bruno Haible  <bruno@clisp.org>
15751
15752         argp: Allow coexistence with strerror_r-posix module.
15753         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15754         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15755         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15756         not the glibc signature.
15757
15758 2011-05-28  Bruno Haible  <bruno@clisp.org>
15759
15760         gnulib-tool: Alternative structure of testdirs, similar to --import.
15761         * gnulib-tool: New option --single-configure.
15762         (func_usage): Document it.
15763         (single_configure): New variable.
15764         (func_modules_transitive_closure_separately,
15765         func_modules_transitive_closure_separately,
15766         func_determine_use_libtests, func_modules_add_dummy_separately,
15767         func_modules_to_filelist_separately): New functions, extracted from
15768         func_import.
15769         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15770         (func_import): Use the new functions.
15771         (func_create_testdir): Set final_modules. Handle $single_configure =
15772         true case.
15773
15774 2011-05-28  Bruno Haible  <bruno@clisp.org>
15775
15776         getloadavg: Remove an unreliable safety check.
15777         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15778         getloadavg.c is in place.
15779         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15780         Reported by Sam Steingold <sds@gnu.org>.
15781
15782 2011-05-28  Bruno Haible  <bruno@clisp.org>
15783
15784         doc: Cleanup yet another file produced by texinfo.tex.
15785         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15786
15787 2011-05-28  Bruno Haible  <bruno@clisp.org>
15788
15789         Finish the conditional dependencies mechanism.
15790         * gnulib-tool: New option --no-conditional-dependencies.
15791         (func_usage): Document it. Don't mark --conditional-dependencies as
15792         experimental.
15793         (cond_dependencies): The possible values can now be true, false, empty.
15794         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15795         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15796         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15797
15798 2011-05-28  Bruno Haible  <bruno@clisp.org>
15799
15800         doc: Use a recent texinfo.tex.
15801         * doc/Makefile (tex_opts): New variable.
15802         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15803
15804 2011-05-28  Jim Meyering  <meyering@redhat.com>
15805
15806         intprops.h: adjust comment to match code change
15807         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15808         only once, it *may* have side effects.  Also fix an unrelated typo.
15809         (_GL_INT_SIGNED): Likewise.
15810
15811 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15812
15813         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15814
15815 2011-05-26  Bruno Haible  <bruno@clisp.org>
15816
15817         mbsrchr: Avoid collision with system function on Interix.
15818         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15819         Reported by Markus Duft <mduft@gentoo.org>.
15820
15821 2011-05-15  James Youngman  <jay@gnu.org>
15822
15823         getopt: for ambiguous options, enumerate the possibilities.
15824         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15825         the ambiguous options when an ambiguous prefix is given. This was
15826         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15827         glibc change was
15828         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15829
15830 2011-05-25  Eric Blake  <eblake@redhat.com>
15831
15832         getcwd: work around mingw bug
15833         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15834         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15835         Reported by Matthias Bolte.
15836
15837 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15838
15839         test-intprops: disable -Wtype-limits diagnostics
15840         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15841         diagnostics.  Otherwise, the integer overflow macros generate many
15842         diagnostics.  Reported by Jim Meyering in
15843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15844
15845         intprops: shorten, to pacify gcc -Woverlength-strings
15846         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15847         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15848         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15849         likely to run afoul of C compiler limits for string constant lengths.
15850         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15851
15852 2011-05-24  Eric Blake  <eblake@redhat.com>
15853
15854         docs: document recently fixed glibc printf bug
15855         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15856         * doc/posix-functions/printf.texi (printf): Likewise.
15857         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15858         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15859
15860         closein-tests: convert to init.sh
15861         * modules/closein-tests (Files): Add init.sh
15862         * tests/test-closein.sh Use it.
15863
15864         yesno-tests: convert to init.sh
15865         * modules/yesno-tests (Files): Add init.sh.
15866         * tests/test-yesno.sh: Use it.
15867
15868         atexit-tests: ensure reliable exit status
15869         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15870         Reported by Bruno Haible.
15871
15872 2011-05-24  Bruno Haible  <bruno@clisp.org>
15873
15874         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15875         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15876         gl_PREREQ_STRERROR_R invocations from here...
15877         * modules/strerror_r-posix (configure.ac): ... to here.
15878
15879 2011-05-24  Eric Blake  <eblake@redhat.com>
15880
15881         strerror_r: fix missing header
15882         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15883
15884         strerror_r: fix AIX test failures
15885         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15886         ERANGE failure.
15887
15888         strerror_r: fix Solaris test failures
15889         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15890         failures.
15891         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15892
15893         strerror_r: enforce POSIX recommendations
15894         * lib/strerror_r.c (safe_copy): New helper method.
15895         (strerror_r): Guarantee a non-empty string.
15896         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15897         recent POSIX rulings and to match our strerror guarantees.
15898         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15899
15900 2011-05-24  Jim Meyering  <meyering@redhat.com>
15901
15902         test-perror2.c: avoid warning about unused variable
15903         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15904
15905 2011-05-24  Eric Blake  <eblake@redhat.com>
15906
15907         perror: avoid spurious test failure on HP-UX
15908         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15909
15910         tests: fix logic bug in init.sh
15911         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15912         shell.
15913
15914 2011-05-24  Jim Meyering  <meyering@redhat.com>
15915
15916         utimensat: do not reference an out-of-scope buffer
15917         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15918         declared in an inner scope, yet "times" would be dereferenced outside
15919         the scope in which "ts" was valid.
15920         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15921         of ts[2] "out/up", so that the use of aliased "times" (via
15922         "times = ts;") does not end up referencing an out-of-scope "ts"
15923
15924         opendir-safer.c: don't clobber errno; don't close negative FD
15925         * lib/opendir-safer.c (opendir_safer):
15926         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15927         file descriptor, and more importantly, don't clobber the
15928         offending errno value with EINVAL.  Before, upon failure
15929         of dup_safer, we would pass the negative file descriptor to
15930         fdopendir, which would clobber errno.
15931
15932 2011-05-23  Bruno Haible  <bruno@clisp.org>
15933
15934         idcache: Fix module description.
15935         * modules/idcache (Include): Set to "idcache.h".
15936
15937 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15938
15939         gnulib-tool: fix portability problem with MacOS sed
15940         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15941         before the "}".  Problem reported by Leo in
15942         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15943         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15944         sed_extract_condition1, sed_extract_condition2.
15945
15946 2011-05-23  Bruno Haible  <bruno@clisp.org>
15947
15948         hash: Simplify autoconf macro.
15949         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15950
15951 2011-05-23  Bruno Haible  <bruno@clisp.org>
15952
15953         getugroups: Fix module description.
15954         * modules/getugroups (Include): Set to "getugroups.h".
15955
15956 2011-05-23  Bruno Haible  <bruno@clisp.org>
15957
15958         linkat: Simplify autoconf macro.
15959         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15960
15961 2011-05-23  Bruno Haible  <bruno@clisp.org>
15962             Eric Blake  <eblake@redhat.com>
15963
15964         linkat, renameat: Update dependencies.
15965         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15966         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15967         symlinkat.
15968
15969 2011-05-23  Jim Meyering  <meyering@redhat.com>
15970
15971         maint.mk: more tight_scope improvements
15972         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15973         (_gl_TS_headers): Define only in if-0'd block.
15974         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15975         sometimes we must *not* use it.  Adjust uses accordingly.
15976         (sc_tight_scope): Use much simpler grep-based test to determine
15977         whether we skip this rule.
15978
15979         maint.mk: generalize/improve the tight-scope rule
15980         * top/maint.mk: Emit a warning when the test is skipped.
15981         (_gl_TS_dir): Add $(srcdir)/ prefix.
15982         (_gl_TS_function_match): Simplify, rather than trying
15983         to enumerate common types.  Otherwise, it would fail to match an
15984         "extern unsigned char const *" declaration in idutils.
15985         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15986         a way to support use of that type of macro.
15987         (_gl_TS_var_match): Simplify regexp.
15988         (_gl_TS_obj_files): New configurable variable.
15989         (_gl_TS_headers): Likewise.
15990
15991 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15992
15993         verify: fix bug when gnulib <assert.h> is also included
15994         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15995         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15996         Perhaps there's a better way, but this fixes the immediate problem.
15997         Problem reported by Bruno Haible in
15998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15999
16000 2011-05-22  Bruno Haible  <bruno@clisp.org>
16001
16002         xgetcwd: Simplify autoconf macro.
16003         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16004
16005 2011-05-22  Bruno Haible  <bruno@clisp.org>
16006
16007         New module 'mktime-internal'.
16008         * modules/mktime-internal: New file.
16009         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16010         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16011         mktime_internal as a C macro if libc has __mktime_internal.
16012         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16013         conditions.
16014         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16015
16016 2011-05-22  Bruno Haible  <bruno@clisp.org>
16017
16018         timegm: Correct mktime replacement statements.
16019         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16020         defining mktime as a C macro. This completes a 2009-07-28 commit.
16021
16022 2011-05-22  Bruno Haible  <bruno@clisp.org>
16023
16024         timegm: Simplify autoconf macro.
16025         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16026
16027 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16028
16029         clock-time: change to LGPLv2+.
16030         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16031         BSD-like but we have no mark for that; this is good enough for now.
16032
16033 2011-05-21  Bruno Haible  <bruno@clisp.org>
16034
16035         strerror_r: Fix comments.
16036         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16037
16038 2011-05-21  Bruno Haible  <bruno@clisp.org>
16039
16040         relocatable-prog-wrapper: Fix possible link error.
16041         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16042         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16043         (gl_FUNC_SETENV): ... to here.
16044         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16045         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16046
16047 2011-05-21  Bruno Haible  <bruno@clisp.org>
16048
16049         relocatable-prog-wrapper: Assume strerror() exists.
16050         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16051         m4/strerror.m4.
16052         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16053         * lib/relocwrapper.c: Remove mention of strerror module.
16054         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16055         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16056         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16057         C macro.
16058
16059 2011-05-21  Bruno Haible  <bruno@clisp.org>
16060
16061         select: Simplify replacement idiom.
16062         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16063         Win32 platforms.
16064         * lib/sys_select.in.h (select): Simplify accordingly.
16065         * modules/select (Depends-on): Likewise.
16066
16067 2011-05-21  Bruno Haible  <bruno@clisp.org>
16068
16069         mkdir-p: Simplify autoconf macro.
16070         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16071         gl_FUNC_LCHOWN.
16072
16073 2011-05-21  Eric Blake  <eblake@redhat.com>
16074
16075         strerror_r: avoid clobbering strerror on cygwin
16076         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16077         fall back instead to sys_errlist.
16078         * modules/strerror (configure.ac): Add witness.
16079         * tests/test-strerror_r.c (main): Enhance test.
16080         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16081         * tests/test-perror2.c (main): Free memory before exit.
16082
16083 2011-05-21  Bruno Haible  <bruno@clisp.org>
16084
16085         mkdtemp: Use gnulib naming conventions.
16086         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16087         * modules/mkdtemp (configure.ac): Update.
16088
16089 2011-05-20  Eric Blake  <eblake@redhat.com>
16090
16091         strerror_r: avoid corrupting errno on Solaris
16092         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16093         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16094
16095         strerror_r: avoid compiler warning
16096         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16097
16098         strerror_r: simplify AIX code
16099         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16100
16101         test-perror: avoid spurious failure on FreeBSD
16102         * modules/perror-tests (Depends-on): Add strerror, now that
16103         strerror_r no longer pulls it in.
16104
16105 2011-05-20  Bruno Haible  <bruno@clisp.org>
16106
16107         strerror_r-posix: Remove unused dependencies.
16108         * modules/strerror_r-posix (Depends-on): Remove strerror.
16109         Reported by Eric Blake.
16110
16111 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16112
16113         intprops: remove assumption about A|B representation
16114         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16115         is a valid integer if both A and B are.  Although this is true for
16116         all known practical hosts, the C standard doesn't guarantee it,
16117         and the code need not assume it.  Also, this change may work around
16118         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16120
16121 2011-05-20  Eric Blake  <eblake@redhat.com>
16122
16123         perror: work around FreeBSD bug
16124         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16125         is broken.  Move AC_LIBOBJ...
16126         * modules/perror (configure.ac): Here.
16127         * doc/posix-functions/perror.texi (perror): Document this.
16128         * tests/test-perror2.c (main): Enhance test.
16129
16130         test-perror: check for strerror interactions
16131         * tests/macros.h (STREQ): Add macro.
16132         * modules/perror-tests (Files): Add second test.
16133         * tests/test-perror2.c (main): New file.
16134         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16135
16136         test-perror: rewrite to use init script
16137         * modules/perror-tests (Files): Add init.sh.
16138         * tests/test-perror.sh: Use temporary directory.
16139
16140 2011-05-20  Jim Meyering  <meyering@redhat.com>
16141
16142         maint: replace misused "a" with "an"
16143         * doc/intprops.texi: "a integer"
16144         * doc/regex.texi: "a explanation"
16145         * lib/alignof.h: "a object"
16146         * lib/argmatch.h: "a explanation"
16147         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16148         * lib/stdint.in.h: "a integer"
16149         * lib/userspec.c: "a owner"
16150         * doc/gnulib.texi: Fix "a idea", and reword.
16151
16152 2011-05-19  Jim Meyering  <meyering@redhat.com>
16153
16154         maint: correct misuse of "a" and "an"
16155         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16156         * lib/argp-help.c: "an docum...": s/an/a/
16157         * lib/argp-parse.c: "An vector": s/An/A/
16158         * lib/execute.c: "an native": s/an/a/
16159         * lib/spawn-pipe.c: Likewise.
16160         * lib/gc.h: "an Gc_rc": s/an/a/
16161         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16162         * lib/fts.c: "an stat.st_dev": s/an/a/
16163
16164 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16165
16166         intprops-tests: work around HP-UX 11.23 cc bug with constants
16167         * tests/test-intprops.c (VERIFY): New macro.
16168         (main): Use it, instead of verify, to work around the compiler bug; see
16169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16170
16171         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16172         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16173         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16174         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16175         (_GL_REMAINDER_OVERFLOW): Use it.
16176
16177         intprops-tests: revert unsigned part of previous change
16178         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16179         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16180         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16182
16183 2011-05-19  Bruno Haible  <bruno@clisp.org>
16184
16185         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16186         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16187         strerror_r() returned without filling the buffer.
16188         Reported by Eric Blake.
16189
16190 2011-05-19  Eric Blake  <eblake@redhat.com>
16191
16192         strerror_r: guarantee unchanged errno
16193         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16194         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16195         failure.
16196         * tests/test-strerror_r.c (main): Enhance test.
16197
16198 2011-05-19  Bruno Haible  <bruno@clisp.org>
16199
16200         strerror_r: Reorder #if blocks.
16201         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16202         for consistency with the previous commit.
16203
16204 2011-05-19  Bruno Haible  <bruno@clisp.org>
16205
16206         perror: Avoid clobbering the strerror buffer when possible.
16207         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16208         * lib/strerror.c: Include it.
16209         * modules/strerror (Files): Add lib/strerror-impl.h.
16210         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16211         (my_strerror): New function, defined through lib/strerror-impl.h.
16212         (perror): Use it instead of strerror.
16213         * modules/perror (Files): Add lib/strerror-impl.h.
16214         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16215
16216 2011-05-19  Eric Blake  <eblake@redhat.com>
16217
16218         strerror_r: fix on newer cygwin
16219         * lib/strerror_r.c (strerror_r): Cygwin now has
16220         __xpg_strerror_r, use it.
16221
16222 2011-05-19  Bruno Haible  <bruno@clisp.org>
16223
16224         strerror_r: Avoid clobbering the strerror buffer when possible.
16225         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16226         (sys_nerr, sys_errlist): New declarations.
16227         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16228         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16229         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16230
16231 2011-05-19  Bruno Haible  <bruno@clisp.org>
16232
16233         strerror_r: Fix test failure on mingw.
16234         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16235         EXTEND_STRERROR_R.
16236         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16237         macros from errno.in.h instead.
16238
16239 2011-05-19  Eric Blake  <eblake@redhat.com>
16240
16241         strerror: relax test for Solaris
16242         * tests/test-strerror.c (main): Permit Solaris behavior.
16243         * tests/test-strerror_r.c (main): Likewise.
16244
16245         strerror: enforce POSIX ruling on strerror(0)
16246         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16247         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16248         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16249         * doc/posix-functions/strerror.texi (strerror): Document it.
16250         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16251         * tests/test-strerror.c (main): Strengthen test.
16252         * tests/test-strerror_r.c (main): Likewise.
16253
16254 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16255
16256         intprop-tests: port to older and more-pedantic compilers
16257         * modules/intprops-tests (Files): Add tests/macros.h.
16258         * tests/test-intprops.c: Include macros.h.
16259         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16260         it's no longer documented to expand to an integer constant expression.
16261         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16262         argument is floating point, as it's no longer documented to expand
16263         to an integer constant expression in that case.
16264         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16265         compiler bugs reported by Bruno Haible.  See
16266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16267         (U0, U1): New constants, to work around the same bugs.  Also,
16268         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16269
16270         intprops: work around C compiler bugs
16271         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16272         bug in Sun C 5.11 2010/08/13 and other compilers; see
16273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16274
16275         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16276         * doc/intprops.texi (Integer Type Determination): Fix
16277         documentation for TYPE_IS_INTEGER: it returns an constant
16278         expression, not an integer constant expression.  Fix doc for
16279         TYPE_SIGNED: it returns an integer constant expression only if its
16280         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16281         hardly worth documented that way....)
16282
16283 2011-05-18  Bruno Haible  <bruno@clisp.org>
16284
16285         strerror_r: Avoid clobbering the strerror buffer when possible.
16286         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16287         Handle gnulib defined errno values here. When strerror() returns NULL
16288         or an empty string, return EINVAL.
16289         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16290         gnulib defined errno values here.
16291         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16292
16293 2011-05-18  Eric Blake  <eblake@redhat.com>
16294
16295         fnmatch: avoid compiler warning
16296         * lib/fnmatch_loop.c (FCT): Use correct type.
16297         Reported by Matthias Bolte.
16298
16299 2011-05-13  Jim Meyering  <meyering@redhat.com>
16300
16301         maint.mk: three new prohibit_<HDR>_without_use rules
16302         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16303         (sc_prohibit_stdio-safer_without_use): Likewise.
16304         (sc_prohibit_xfreopen_without_use): Likewise.
16305
16306 2011-05-17  Jim Meyering  <meyering@redhat.com>
16307
16308         announce-gen: fail if the NEWS delta is empty
16309         If there's nothing noteworthy in NEWS, then either you forgot
16310         or you shouldn't be releasing.
16311         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16312
16313 2011-05-17  Pádraig Brady <P@draigBrady.com>
16314
16315         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16316         reserved symbols starting with double underscore from the check.
16317
16318 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16319
16320         intprops: add doc
16321         * doc/intprops.texi: New file, documenting intprops.
16322         * doc/gnulib.texi (Particular Modules): Include it.
16323
16324         verify: add doc to gnulib manual and fix example
16325         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16326         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16327         (Compile-time Assertions): Fix example so it can't overflow.
16328
16329 2011-05-17  Jim Meyering  <meyering@redhat.com>
16330
16331         warnings.m4: don't usurp save_CPPFLAGS variable name
16332         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16333
16334         doc: fix typo
16335         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16336
16337 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16338             Bruno Haible  <bruno@clisp.org>
16339
16340         doc: Tweak recent change.
16341         * README (Portability guidelines): Tweak new text.
16342         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16343         Interix 6.1.
16344
16345 2011-05-16  Eric Blake  <eblake@redhat.com>
16346
16347         inttypes: avoid autoconf warning
16348         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16349         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16350
16351 2011-05-16  Sam Steingold <sds@gnu.org>
16352         and Eric Blake  <eblake@redhat.com>
16353
16354         vc-list-files: accept multiple directory operands
16355         * build-aux/vc-list-files: Iterate over all remaining operands.
16356
16357 2011-05-16  Bruno Haible  <bruno@clisp.org>
16358
16359         Fix confusion regarding deprecated modules.
16360         * modules/calloc (Status, Notice): Mark module as deprecated, not
16361         obsolete.
16362         * modules/fnmatch-posix (Status, Notice): Likewise.
16363         * modules/getdate (Status, Notice): Likewise.
16364         * modules/getopt (Status, Notice): Likewise.
16365         * modules/malloc (Status, Notice): Likewise.
16366         * modules/pipe (Status, Notice): Likewise.
16367         * modules/realloc (Status, Notice): Likewise.
16368         * modules/rename-dest-slash (Status, Notice): Likewise.
16369         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16370         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16371         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16372         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16373         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16374
16375 2011-05-16  Bruno Haible  <bruno@clisp.org>
16376
16377         doc: List the target platforms.
16378         * doc/gnulib-intro.texi (Target Platforms): New section.
16379         * doc/gnulib.texi (Introduction): Update menu.
16380         * README (Portability guidelines): Refer to the new section. Update
16381         statement about oldest supported environment. Remove rationale why
16382         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16383         unportable C89 function.
16384         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16385         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16386
16387 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16388
16389         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16390
16391 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16392
16393         intprops-tests: new module
16394         * modules/intprops-tests, tests/test-intprops.c: New files.
16395
16396         intprops: add safe, portable integer overflow checking
16397         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16398         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16399         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16400         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16401         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16402         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16403         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16404         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16405         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16406         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16407         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16408
16409 2011-05-12  James Youngman  <jay@gnu.org>
16410
16411         Add a test for glibc's Bugzilla bug #12378.
16412         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16413         doesn't allow the literal matching of a lone "[" (which is
16414         required by POSIX).
16415         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16416
16417 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16418
16419         Sync glibc change fixing Bugzilla bug #12378.
16420         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16421         beginning and fall back to matching as normal character if the
16422         string ends before the matching ']' is found.  This is what POSIX
16423         requires.
16424
16425 2011-05-13  Eric Blake  <eblake@redhat.com>
16426
16427         getcwd-lgpl: relax test for FreeBSD
16428         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16429         issue.
16430         * tests/test-getcwd-lgpl.c (main): Relax test.
16431         Reported by Matthias Bolte.
16432
16433 2011-05-11  Eric Blake  <eblake@redhat.com>
16434
16435         test-fflush: silence compiler warning
16436         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16437
16438 2011-05-11  Bruno Haible  <bruno@clisp.org>
16439
16440         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16441         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16442         * modules/canonicalize (Depends-on): Add 'nocrash'.
16443         * modules/canonicalize-lgpl (Depends-on): Likewise.
16444         * doc/posix-functions/realpath.texi: Update platforms list.
16445         Reported by Ryan Schmidt <ryandesign@macports.org>.
16446
16447 2011-05-11  Bruno Haible  <bruno@clisp.org>
16448
16449         group-member: Declare function in <unistd.h>.
16450         * lib/unistd.in.h (group_member): New declaration.
16451         * lib/group-member.h: Remove file.
16452         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16453         * tests/test-unistd-c++.cc: Check signature of group_member.
16454         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16455         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16456         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16457         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16458         HAVE_GROUP_MEMBER.
16459         * modules/group-member (Files): Remove lib/group-member.h.
16460         (Depends-on): Add unistd. Specify conditions.
16461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16462         (Include): Change to <unistd.h>.
16463         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16464         HAVE_GROUP_MEMBER.
16465         * NEWS: Mention the change.
16466         * lib/euidaccess.c: Don't include group-member.h.
16467
16468 2011-05-11  Bruno Haible  <bruno@clisp.org>
16469
16470         group-member: Document module.
16471         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16472         module.
16473
16474 2011-05-11  Bruno Haible  <bruno@clisp.org>
16475
16476         fclose: Fix mistake earlier today.
16477         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16478
16479 2011-05-11  Eric Blake  <eblake@redhat.com>
16480
16481         fclose: preserve fflush errors
16482         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16483         Reported by Jim Meyering.
16484
16485         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16486         * build-aux/bootstrap (check_versions): When no specific version
16487         is required, merely check that the app produces an exit status
16488         that indicates its existence.
16489
16490         maint.mk: drop redundant check
16491         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16492         the same but better.
16493
16494 2011-05-11  Bruno Haible  <bruno@clisp.org>
16495
16496         fclose: Fix possible link error.
16497         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16498         unregister_shadow_fd. Improve comments.
16499         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16500         Eric Blake.
16501
16502 2011-05-11  Jim Meyering  <meyering@redhat.com>
16503
16504         maint.mk: improve "can not" detection and generalize rule name
16505         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16506         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16507         Use the same technique as in sc_prohibit_doubled_word, so that
16508         we recognize "can not" also when the words are separated by a newline.
16509         Suggested by Eric Blake.
16510         (perl_filename_lineno_text_): Define.  Factored out of...
16511         (prohibit_doubled_word_): ...here.  Use the new definition.
16512         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16513         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16514         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16515
16516 2011-05-10  Eric Blake  <eblake@redhat.com>
16517
16518         fclose: avoid double close race when possible
16519         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16520         all but WINDOWS_SOCKETS.
16521
16522 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16523
16524         openat: correct new comment
16525         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16526
16527 2011-05-10  Jim Meyering  <meyering@redhat.com>
16528
16529         openat: add comments
16530         * lib/openat-proc.c (openat_proc_name): Add comments,
16531         mostly from Eric Blake.
16532
16533 2011-05-09  Eric Blake  <eblake@redhat.com>
16534
16535         openat: reduce syscalls in first probe of /proc
16536         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16537         be a directory.  Simplify the probe for .. bugs.
16538         * modules/openat (Depends-on): Drop same-inode.
16539         Reported by Bastien ROUCARIES.
16540
16541 2011-05-09  Jim Meyering  <meyering@redhat.com>
16542
16543         maint.mk: change semantics/name of tight_scope variables
16544         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16545         Rename variables to align with semantics that make them more useful.
16546
16547         maint.mk: tweak new rule's name not to impinge
16548         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16549         (sc_tight_scope): Use new rule name rather than $@-0.
16550
16551         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16552         * top/maint.mk (sc_tight_scope): New rule.
16553         (sc_tight_scope-0): New rule, ifdef'd out.
16554         (_gl_TS_dir): Default.
16555         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16556         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16557
16558 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16559
16560         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16561         Haible <bruno@clisp.org>.
16562
16563 2011-05-08  Bruno Haible  <bruno@clisp.org>
16564
16565         Comments.
16566         * m4/isnanf.m4: Add comment.
16567         * m4/isnanl.m4: Likewise.
16568
16569 2011-05-08  Bruno Haible  <bruno@clisp.org>
16570
16571         glob: Remove obsolete macro.
16572         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16573
16574 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16575
16576         intprops: Sun C 5.11 supports __typeof__
16577         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16578         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16579         which is new.
16580         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16581
16582         intprops: switch to usual gnulib indenting and naming
16583         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16584         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16585
16586         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16587
16588 2011-05-08  Jim Meyering  <meyering@redhat.com>
16589
16590         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16591         * top/maint.mk (release-prep): Use make's --no-print-directory
16592         option when generating the announcement.  This eliminates the
16593         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16594         generated announcement template.
16595
16596 2011-05-08  Bruno Haible  <bruno@clisp.org>
16597
16598         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16599         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16600         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16601
16602 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16603
16604         ignore-value, verify: Omit include files from lib_SOURCES.
16605         * modules/ignore-value, modules/verify (Makefile.am):
16606         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16607         that leads Automake to duplicate use of am__objects_... variables
16608         in Makefile.in.  See
16609         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16610
16611 2011-05-07  Bruno Haible  <bruno@clisp.org>
16612
16613         fclose: Simplify autoconf macro.
16614         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16615         defined.
16616
16617 2011-05-07  Bruno Haible  <bruno@clisp.org>
16618
16619         canonicalize-lgpl: Fix autoconf macro ordering bug.
16620         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16621         gl_STDLIB_H_DEFAULTS.
16622
16623 2011-05-06  Eric Blake  <eblake@redhat.com>
16624
16625         maintainer-makefile: make sc_po_check easier to tune
16626         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16627         to probe for strings, such as an alternate location for gnulib.
16628
16629         fclose: guarantee behavior on seekable stdin
16630         * modules/fclose (Depends-on): Add fflush.
16631         * doc/posix-functions/fclose.texi (fclose): Document this.
16632         * tests/test-fclose.c (main): Make test for this unconditional.
16633
16634 2011-05-06  Bruno Haible  <bruno@clisp.org>
16635
16636         fflush, fpurge: Relicense under LGPLv2+.
16637         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16638         * modules/fpurge (License): Likewise.
16639         With permission from Eric Blake and Jim Meyering.
16640         Suggested by Eric Blake.
16641
16642 2011-05-06  Karl Berry  <karl@gnu.org>
16643
16644         * MODULES.html.sh (func_all_modules): remove exit.
16645
16646 2011-05-06  Jim Meyering  <meyering@redhat.com>
16647
16648         maint.mk: use info-gnu@ as the default only for a stable release
16649         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16650         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16651         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16652         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16653
16654 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16655
16656         assert-h: new module, which supports C1X-style static_assert
16657         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16658         * lib/verify.h: Revamp so that this can be copied into assert.h,
16659         while retaining the ability to use it standalone as before.
16660         Rename private identifiers so as not to encroach on the
16661         standard C namespace, since this is now used by assert.h.
16662         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16663         the old verify_true.
16664         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16665         the old verify_true.  Use _GL_VERIFY_TYPE.
16666         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16667         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16668         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16669         defined when this file is copied into the replacement assert.h.
16670         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16671         and _Static_assert is not built in.
16672         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16673         defined, and use the new macros mentioned above.
16674         * doc/posix-headers/assert.texi: Document this.
16675
16676 2011-05-05  Bruno Haible  <bruno@clisp.org>
16677
16678         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16679         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16680         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16681         gl_REPLACE_FCLOSE here.
16682         * modules/fflush (Depends-on): Remove fclose.
16683         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16684         combination with module 'fclose'.
16685
16686 2011-05-05  Bruno Haible  <bruno@clisp.org>
16687
16688         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16689         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16690         gl_FUNC_FFLUSH.
16691         (gl_FUNC_FFLUSH): Use it.
16692         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16693         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16694         gl_REPLACE_FSEEKO here.
16695
16696 2011-05-05  Bruno Haible  <bruno@clisp.org>
16697
16698         tzset: Relicense under LGPL.
16699         * modules/tzset (License): Change to LGPL.
16700         No agreement needed; it's a no-op.
16701
16702         strtoimax, strtoumax: Relicense under LGPL.
16703         * modules/strtoimax (License): Change to LGPL.
16704         * modules/strtoumax (License): Likewise.
16705         With permission from Jim Meyering, Paul Eggert:
16706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16708
16709         getgroups: Relicense under LGPL.
16710         * modules/getgroups (License): Change to LGPL.
16711         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16715
16716         nanosleep: Relicense under LGPL.
16717         * modules/nanosleep (License): Change to LGPL.
16718         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16719         Haible:
16720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16724
16725         futimens: Relicense under LGPL.
16726         * modules/futimens (License): Change to LGPL.
16727         With permission from Eric Blake:
16728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16729
16730         fflush: Relicense under LGPL.
16731         * modules/fflush (License): Change to LGPL.
16732         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16736
16737         tmpfile: Relicense under LGPL.
16738         * modules/tmpfile (License): Change to LGPL.
16739         With permission from Ben Pfaff:
16740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16741
16742         isfinite: Relicense under LGPL.
16743         * modules/isfinite (License): Change to LGPL.
16744         With permission from Ben Pfaff, Bruno Haible:
16745         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16747
16748         acosl..tanl: Relicense under LGPL.
16749         * modules/acosl (License): Change to LGPL.
16750         * modules/asinl (License): Likewise.
16751         * modules/atanl (License): Likewise.
16752         * modules/cosl (License): Likewise.
16753         * modules/expl (License): Likewise.
16754         * modules/logl (License): Likewise.
16755         * modules/sinl (License): Likewise.
16756         * modules/sqrtl (License): Likewise.
16757         * modules/tanl (License): Likewise.
16758         Source code originally from glibc and Paolo Bonzini. Agreements:
16759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16761
16762 2011-05-05  Bruno Haible  <bruno@clisp.org>
16763
16764         signal: Define sighandler_t.
16765         * lib/signal.in.h (sighandler_t): New type.
16766         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16767         whether sighandler_t is defined.
16768         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16769         * modules/signal (Depends-on): Add extensions.
16770         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16771         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16772         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16773
16774 2011-05-05  Eric Blake  <eblake@redhat.com>
16775
16776         maint: remove useless REPLACE_*_H macros
16777         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16778         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16779         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16780         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16781         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16782         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16783         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16784         * m4/btowc.m4: Update callers.
16785         * m4/dirfd.m4: Likewise.
16786         * m4/duplocale.m4: Likewise.
16787         * m4/fchdir.m4: Likewise.
16788         * m4/fdopendir.m4: Likewise.
16789         * m4/inet_ntop.m4: Likewise.
16790         * m4/inet_pton.m4: Likewise.
16791         * m4/ioctl.m4: Likewise.
16792         * m4/mbrlen.m4: Likewise.
16793         * m4/mbrtowc.m4: Likewise.
16794         * m4/mbsinit.m4: Likewise.
16795         * m4/mbsnrtowcs.m4: Likewise.
16796         * m4/mbsrtowcs.m4: Likewise.
16797         * m4/poll.m4: Likewise.
16798         * m4/setlocale.m4: Likewise.
16799         * m4/wcrtomb.m4: Likewise.
16800         * m4/wcsnrtombs.m4: Likewise.
16801         * m4/wcsrtombs.m4: Likewise.
16802         * m4/wctob.m4: Likewise.
16803         * m4/wcwidth.m4: Likewise.
16804         * modules/posix_spawn: Likewise.
16805         * modules/posix_spawn_file_actions_addclose: Likewise.
16806         * modules/posix_spawn_file_actions_adddup2: Likewise.
16807         * modules/posix_spawn_file_actions_addopen: Likewise.
16808         * modules/posix_spawn_file_actions_destroy: Likewise.
16809         * modules/posix_spawn_file_actions_init: Likewise.
16810         * modules/posix_spawnattr_destroy: Likewise.
16811         * modules/posix_spawnattr_getflags: Likewise.
16812         * modules/posix_spawnattr_getpgroup: Likewise.
16813         * modules/posix_spawnattr_getschedparam: Likewise.
16814         * modules/posix_spawnattr_getschedpolicy: Likewise.
16815         * modules/posix_spawnattr_getsigdefault: Likewise.
16816         * modules/posix_spawnattr_getsigmask: Likewise.
16817         * modules/posix_spawnattr_init: Likewise.
16818         * modules/posix_spawnattr_setflags: Likewise.
16819         * modules/posix_spawnattr_setpgroup: Likewise.
16820         * modules/posix_spawnattr_setschedparam: Likewise.
16821         * modules/posix_spawnattr_setschedpolicy: Likewise.
16822         * modules/posix_spawnattr_setsigdefault: Likewise.
16823         * modules/posix_spawnattr_setsigmask: Likewise.
16824         * modules/posix_spawnp: Likewise.
16825
16826 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16827
16828         Add option to do-release-commit-and-tag to specify branch.
16829         * build-aux/do-release-commit-and-tag: Add --branch.
16830
16831 2011-05-03  Bruno Haible  <bruno@clisp.org>
16832
16833         Avoid unnecessary compilation units, through conditional dependencies.
16834         * modules/accept (Depends-on): Add conditions to the dependencies.
16835         * modules/acosl (Depends-on): Likewise.
16836         * modules/argz (Depends-on): Likewise.
16837         * modules/asinl (Depends-on): Likewise.
16838         * modules/atanl (Depends-on): Likewise.
16839         * modules/atoll (Depends-on): Likewise.
16840         * modules/bind (Depends-on): Likewise.
16841         * modules/btowc (Depends-on): Likewise.
16842         * modules/canonicalize-lgpl (Depends-on): Likewise.
16843         * modules/ceil (Depends-on): Likewise.
16844         * modules/ceilf (Depends-on): Likewise.
16845         * modules/ceill (Depends-on): Likewise.
16846         * modules/chdir-long (Depends-on): Likewise.
16847         * modules/chown (Depends-on): Likewise.
16848         * modules/close (Depends-on): Likewise.
16849         * modules/connect (Depends-on): Likewise.
16850         * modules/cosl (Depends-on): Likewise.
16851         * modules/dirfd (Depends-on): Likewise.
16852         * modules/dprintf (Depends-on): Likewise.
16853         * modules/dprintf-posix (Depends-on): Likewise.
16854         * modules/error (Depends-on): Likewise.
16855         * modules/euidaccess (Depends-on): Likewise.
16856         * modules/expl (Depends-on): Likewise.
16857         * modules/faccessat (Depends-on): Likewise.
16858         * modules/fchdir (Depends-on): Likewise.
16859         * modules/fclose (Depends-on): Likewise.
16860         * modules/fcntl (Depends-on): Likewise.
16861         * modules/fdopendir (Depends-on): Likewise.
16862         * modules/fflush (Depends-on): Likewise.
16863         * modules/floor (Depends-on): Likewise.
16864         * modules/floorf (Depends-on): Likewise.
16865         * modules/floorl (Depends-on): Likewise.
16866         * modules/fnmatch (Depends-on): Likewise.
16867         * modules/fopen (Depends-on): Likewise.
16868         * modules/fprintf-posix (Depends-on): Likewise.
16869         * modules/frexp (Depends-on): Likewise.
16870         * modules/frexp-nolibm (Depends-on): Likewise.
16871         * modules/frexpl (Depends-on): Likewise.
16872         * modules/frexpl-nolibm (Depends-on): Likewise.
16873         * modules/fseek (Depends-on): Likewise.
16874         * modules/fsusage (Depends-on): Likewise.
16875         * modules/ftell (Depends-on): Likewise.
16876         * modules/ftello (Depends-on): Likewise.
16877         * modules/futimens (Depends-on): Likewise.
16878         * modules/getcwd (Depends-on): Likewise.
16879         * modules/getcwd-lgpl (Depends-on): Likewise.
16880         * modules/getdelim (Depends-on): Likewise.
16881         * modules/getdomainname (Depends-on): Likewise.
16882         * modules/getgroups (Depends-on): Likewise.
16883         * modules/gethostname (Depends-on): Likewise.
16884         * modules/getline (Depends-on): Likewise.
16885         * modules/getlogin_r (Depends-on): Likewise.
16886         * modules/getopt-posix (Depends-on): Likewise.
16887         * modules/getpeername (Depends-on): Likewise.
16888         * modules/getsockname (Depends-on): Likewise.
16889         * modules/getsockopt (Depends-on): Likewise.
16890         * modules/getsubopt (Depends-on): Likewise.
16891         * modules/getusershell (Depends-on): Likewise.
16892         * modules/glob (Depends-on): Likewise.
16893         * modules/grantpt (Depends-on): Likewise.
16894         * modules/iconv_open (Depends-on): Likewise.
16895         * modules/iconv_open-utf (Depends-on): Likewise.
16896         * modules/inet_ntop (Depends-on): Likewise.
16897         * modules/inet_pton (Depends-on): Likewise.
16898         * modules/ioctl (Depends-on): Likewise.
16899         * modules/isapipe (Depends-on): Likewise.
16900         * modules/isfinite (Depends-on): Likewise.
16901         * modules/isinf (Depends-on): Likewise.
16902         * modules/lchown (Depends-on): Likewise.
16903         * modules/ldexpl (Depends-on): Likewise.
16904         * modules/link (Depends-on): Likewise.
16905         * modules/linkat (Depends-on): Likewise.
16906         * modules/listen (Depends-on): Likewise.
16907         * modules/logl (Depends-on): Likewise.
16908         * modules/lstat (Depends-on): Likewise.
16909         * modules/mbrlen (Depends-on): Likewise.
16910         * modules/mbrtowc (Depends-on): Likewise.
16911         * modules/mbsinit (Depends-on): Likewise.
16912         * modules/mbsnrtowcs (Depends-on): Likewise.
16913         * modules/mbsrtowcs (Depends-on): Likewise.
16914         * modules/mbtowc (Depends-on): Likewise.
16915         * modules/memcmp (Depends-on): Likewise.
16916         * modules/mkdir (Depends-on): Likewise.
16917         * modules/mkdtemp (Depends-on): Likewise.
16918         * modules/mkfifo (Depends-on): Likewise.
16919         * modules/mkfifoat (Depends-on): Likewise.
16920         * modules/mknod (Depends-on): Likewise.
16921         * modules/mkostemp (Depends-on): Likewise.
16922         * modules/mkostemps (Depends-on): Likewise.
16923         * modules/mkstemp (Depends-on): Likewise.
16924         * modules/mkstemps (Depends-on): Likewise.
16925         * modules/mktime (Depends-on): Likewise.
16926         * modules/nanosleep (Depends-on): Likewise.
16927         * modules/open (Depends-on): Likewise.
16928         * modules/openat (Depends-on): Likewise.
16929         * modules/perror (Depends-on): Likewise.
16930         * modules/poll (Depends-on): Likewise.
16931         * modules/popen (Depends-on): Likewise.
16932         * modules/posix_spawn (Depends-on): Likewise.
16933         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16934         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16935         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16936         * modules/posix_spawnp (Depends-on): Likewise.
16937         * modules/pread (Depends-on): Likewise.
16938         * modules/printf-posix (Depends-on): Likewise.
16939         * modules/ptsname (Depends-on): Likewise.
16940         * modules/putenv (Depends-on): Likewise.
16941         * modules/pwrite (Depends-on): Likewise.
16942         * modules/readline (Depends-on): Likewise.
16943         * modules/readlink (Depends-on): Likewise.
16944         * modules/readlinkat (Depends-on): Likewise.
16945         * modules/recv (Depends-on): Likewise.
16946         * modules/recvfrom (Depends-on): Likewise.
16947         * modules/regex (Depends-on): Likewise.
16948         * modules/remove (Depends-on): Likewise.
16949         * modules/rename (Depends-on): Likewise.
16950         * modules/renameat (Depends-on): Likewise.
16951         * modules/rmdir (Depends-on): Likewise.
16952         * modules/round (Depends-on): Likewise.
16953         * modules/roundf (Depends-on): Likewise.
16954         * modules/roundl (Depends-on): Likewise.
16955         * modules/rpmatch (Depends-on): Likewise.
16956         * modules/select (Depends-on): Likewise.
16957         * modules/send (Depends-on): Likewise.
16958         * modules/sendto (Depends-on): Likewise.
16959         * modules/setenv (Depends-on): Likewise.
16960         * modules/setlocale (Depends-on): Likewise.
16961         * modules/setsockopt (Depends-on): Likewise.
16962         * modules/shutdown (Depends-on): Likewise.
16963         * modules/sigaction (Depends-on): Likewise.
16964         * modules/signbit (Depends-on): Likewise.
16965         * modules/sigprocmask (Depends-on): Likewise.
16966         * modules/sinl (Depends-on): Likewise.
16967         * modules/sleep (Depends-on): Likewise.
16968         * modules/snprintf (Depends-on): Likewise.
16969         * modules/snprintf-posix (Depends-on): Likewise.
16970         * modules/socket (Depends-on): Likewise.
16971         * modules/sprintf-posix (Depends-on): Likewise.
16972         * modules/sqrtl (Depends-on): Likewise.
16973         * modules/stat (Depends-on): Likewise.
16974         * modules/strchrnul (Depends-on): Likewise.
16975         * modules/strdup-posix (Depends-on): Likewise.
16976         * modules/strerror (Depends-on): Likewise.
16977         * modules/strerror_r-posix (Depends-on): Likewise.
16978         * modules/strndup (Depends-on): Likewise.
16979         * modules/strnlen (Depends-on): Likewise.
16980         * modules/strptime (Depends-on): Likewise.
16981         * modules/strsep (Depends-on): Likewise.
16982         * modules/strsignal (Depends-on): Likewise.
16983         * modules/strstr-simple (Depends-on): Likewise.
16984         * modules/strtod (Depends-on): Likewise.
16985         * modules/strtoimax (Depends-on): Likewise.
16986         * modules/strtok_r (Depends-on): Likewise.
16987         * modules/strtoumax (Depends-on): Likewise.
16988         * modules/symlink (Depends-on): Likewise.
16989         * modules/symlinkat (Depends-on): Likewise.
16990         * modules/tanl (Depends-on): Likewise.
16991         * modules/tcgetsid (Depends-on): Likewise.
16992         * modules/tmpfile (Depends-on): Likewise.
16993         * modules/trunc (Depends-on): Likewise.
16994         * modules/truncf (Depends-on): Likewise.
16995         * modules/truncl (Depends-on): Likewise.
16996         * modules/uname (Depends-on): Likewise.
16997         * modules/unlink (Depends-on): Likewise.
16998         * modules/unlockpt (Depends-on): Likewise.
16999         * modules/unsetenv (Depends-on): Likewise.
17000         * modules/usleep (Depends-on): Likewise.
17001         * modules/utimensat (Depends-on): Likewise.
17002         * modules/vasprintf (Depends-on): Likewise.
17003         * modules/vdprintf (Depends-on): Likewise.
17004         * modules/vdprintf-posix (Depends-on): Likewise.
17005         * modules/vfprintf-posix (Depends-on): Likewise.
17006         * modules/vprintf-posix (Depends-on): Likewise.
17007         * modules/vsnprintf (Depends-on): Likewise.
17008         * modules/vsnprintf-posix (Depends-on): Likewise.
17009         * modules/vsprintf-posix (Depends-on): Likewise.
17010         * modules/wcrtomb (Depends-on): Likewise.
17011         * modules/wcscasecmp (Depends-on): Likewise.
17012         * modules/wcscspn (Depends-on): Likewise.
17013         * modules/wcsdup (Depends-on): Likewise.
17014         * modules/wcsncasecmp (Depends-on): Likewise.
17015         * modules/wcsnrtombs (Depends-on): Likewise.
17016         * modules/wcspbrk (Depends-on): Likewise.
17017         * modules/wcsrtombs (Depends-on): Likewise.
17018         * modules/wcsspn (Depends-on): Likewise.
17019         * modules/wcsstr (Depends-on): Likewise.
17020         * modules/wcstok (Depends-on): Likewise.
17021         * modules/wcswidth (Depends-on): Likewise.
17022         * modules/wctob (Depends-on): Likewise.
17023         * modules/wctomb (Depends-on): Likewise.
17024         * modules/wctype (Depends-on): Likewise.
17025         * modules/wcwidth (Depends-on): Likewise.
17026         * modules/write (Depends-on): Likewise.
17027
17028 2011-05-03  Bruno Haible  <bruno@clisp.org>
17029
17030         Support for conditional dependencies.
17031         * doc/gnulib.texi (Module description): Document the syntax of
17032         conditional dependencies.
17033         * gnulib-tool: New option --conditional-dependencies.
17034         (func_usage): Document it.
17035         (cond_dependencies): New variable.
17036         (func_get_automake_snippet_conditional,
17037         func_get_automake_snippet_unconditional): New functions, extracted from
17038         func_get_automake_snippet.
17039         (func_get_automake_snippet): Use them.
17040         (sed_first_32_chars): New variable.
17041         (func_module_shellfunc_name): New function.
17042         (func_module_shellvar_name): New function.
17043         (func_module_conditional_name): New function.
17044         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17045         func_cond_module_condition): New functions.
17046         (func_modules_transitive_closure): Add support for conditional
17047         dependencies.
17048         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17049         conditional automake snippet in an automake conditional.
17050         (func_emit_autoconf_snippets): Emit shell functions that contain the
17051         code for conditional modules.
17052         (func_import, func_create_testdir): Update specification.
17053
17054 2011-05-03  Eric Blake  <eblake@redhat.com>
17055
17056         test-getaddrinfo: report error information
17057         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17058
17059 2011-05-03  Jim Meyering  <meyering@redhat.com>
17060
17061         bootstrap: avoid build failure when $GZIP is set
17062         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17063         program name.  If defined at all, it is supposed to list gzip options.
17064         Reported by Alan Curry in http://debbugs.gnu.org/8609
17065
17066 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17067
17068         readme-release: new module with release instructions
17069         * modules/readme-release: New module.
17070         * top/README-release: New file, from coreutils, grep, diffutils.
17071         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17072
17073 2011-05-02  Eric Blake  <eblake@redhat.com>
17074
17075         fflush: also replace fclose when fixing fflush
17076         * modules/fflush (Depends-on): Add fclose.
17077         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17078         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17079         memstreams with no backing fd.
17080         * doc/posix-functions/fclose.texi (fclose): Document the use of
17081         fflush module to fix the bug.
17082         * tests/test-fclose.c (main): Relax test when fclose is used in
17083         isolation.
17084
17085         fclose: add some tests
17086         * modules/fclose-tests: New test module.
17087         * tests/test-fclose.c: New file.
17088         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17089
17090         fclose: reduced dependencies
17091         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17092         simpler lseek.
17093         * lib/fclose.c (rpl_fclose): Likewise.
17094         Reported by Simon Josefsson.
17095
17096         exit: drop remaining clients
17097         * modules/argmatch (Depends-on): Replace exit with stdlib.
17098         * modules/copy-file (Depends-on): Likewise.
17099         * modules/execute (Depends-on): Likewise.
17100         * modules/exitfail (Depends-on): Likewise.
17101         * modules/obstack (Depends-on): Likewise.
17102         * modules/pagealign_alloc (Depends-on): Likewise.
17103         * modules/pipe-filter-gi (Depends-on): Likewise.
17104         * modules/pipe-filter-ii (Depends-on): Likewise.
17105         * modules/savewd (Depends-on): Likewise.
17106         * modules/spawn-pipe (Depends-on): Likewise.
17107         * modules/wait-process (Depends-on): Likewise.
17108         * modules/xsetenv (Depends-on): Likewise.
17109         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17110         * modules/git-merge-changelog (Depends-on): Likewise.
17111         * modules/long-options (Depends-on): Likewise.
17112         * modules/pt_chown (Depends-on): Likewise.
17113         * modules/sysexits (Depends-on): Likewise.
17114
17115         freading: relax license from LGPLv3+ to LGPLv2+
17116         * modules/freading (License): Relax LGPL version.
17117
17118 2011-05-02  Bruno Haible  <bruno@clisp.org>
17119
17120         fchdir: Remove unused dependencies.
17121         * modules/fchdir (Depends-on): Remove include_next.
17122
17123 2011-05-02  Bruno Haible  <bruno@clisp.org>
17124
17125         gnulib-tool: Refactor.
17126         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17127         from func_emit_autoconf_snippets.
17128         (func_emit_autoconf_snippets): Use it.
17129
17130 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17131
17132         * NEWS: Document removal of 'exit'.
17133         * modules/exit: Remove file.
17134
17135 2011-05-01  Bruno Haible  <bruno@clisp.org>
17136
17137         Update DEPENDENCIES.
17138         * DEPENDENCIES (gettext): Recommend the newest release.
17139         Reported by Simon Josefsson.
17140
17141 2011-05-01  Bruno Haible  <bruno@clisp.org>
17142
17143         gnulib-tool: Reduce code duplication.
17144         * gnulib-tool (func_emit_autoconf_snippets): New function.
17145         (func_import, func_create_testdir): Use it.
17146
17147 2011-04-30  Eric Blake  <eblake@redhat.com>
17148
17149         fclose: don't fail on non-seekable input stream
17150         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17151         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17152         since fflush is allowed to fail in that case.
17153
17154 2011-04-30  Bruno Haible  <bruno@clisp.org>
17155
17156         dup3: cleanup
17157         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17158
17159 2011-04-30  Bruno Haible  <bruno@clisp.org>
17160
17161         netdb: Make it work in C++ mode.
17162         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17163         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17164         module.
17165         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17166         gl_MODULE_INDICATOR_FOR_TESTS.
17167         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17168         * modules/netdb-c++-tests: New file.
17169         * tests/test-netdb-c++.cc: New file.
17170
17171 2011-04-30  Bruno Haible  <bruno@clisp.org>
17172
17173         New modules 'vfscanf', 'vscanf'.
17174         * modules/vfscanf: New file.
17175         * modules/vscanf: New file.
17176         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17177         here.
17178         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17179         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17180
17181 2011-04-30  Bruno Haible  <bruno@clisp.org>
17182
17183         passfd: Add comments.
17184         * lib/passfd.c: Add comments about platforms.
17185
17186 2011-04-30  Bruno Haible  <bruno@clisp.org>
17187
17188         sys_uio: Make <sys/uio.h> self-contained.
17189         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17190         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17191
17192 2011-04-30  Bruno Haible  <bruno@clisp.org>
17193
17194         sys_socket: Ensure 'struct iovec' definition.
17195         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17196         <sys/socket.h>.
17197         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17198
17199 2011-04-30  Bruno Haible  <bruno@clisp.org>
17200
17201         sys_uio: Protect definition of 'struct iovec'.
17202         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17203         it as a C struct.
17204
17205 2011-04-30  Bruno Haible  <bruno@clisp.org>
17206
17207         manywarnings: fix indentation
17208         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17209
17210 2011-04-30  Pádraig Brady <P@draigBrady.com>
17211
17212         manywarnings: add -Wno-missing-field-initializers if needed.
17213         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17214         option if it's needed to allow initialization with { 0, }
17215
17216 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17217
17218         announce-gen: cosmetic improvement
17219         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17220
17221 2011-04-29  Jim Meyering  <meyering@redhat.com>
17222
17223         vc-list-files: indent with spaces, not TABs
17224         * build-aux/vc-list-files: Convert leading TABs to spaces,
17225         to match the style of most other files in gnulib.
17226
17227         announce-gen: indent with spaces, not TABs
17228         * build-aux/announce-gen: Convert all TABs to spaces, to match
17229         the style of most other files in gnulib.
17230
17231 2011-04-29  Eric Blake  <eblake@redhat.com>
17232
17233         quotearg: avoid uninitialized variable use
17234         * lib/quotearg.c (quoting_options_from_style): Initialize
17235         remaining fields, and ensure that custom styles are only used via
17236         quoting_options rather than quoting_style.
17237
17238 2011-04-29  Jim Meyering  <meyering@redhat.com>
17239
17240         maint.mk: remove unused VC-tag variable
17241         * top/maint.mk (VC-tag): Remove unused variable.
17242
17243 2011-04-29  Bruno Haible  <bruno@clisp.org>
17244
17245         netdb: fix gai_strerror replacements
17246         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17247         * modules/netdb: Substitute it.
17248
17249 2011-04-29  Jim Meyering  <meyering@redhat.com>
17250
17251         test-getcwd.c: avoid new set-but-not-used warning
17252         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17253         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17254         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17255         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17256
17257         test-hash.c: avoid a new shadowing warning
17258         * tests/test-hash.c (main): Don't shadow "dup".
17259
17260 2011-04-28  Eric Blake  <eblake@redhat.com>
17261
17262         getaddrinfo: fix gai_strerror signature
17263         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17264         and work around mingw with UNICODE defined.
17265         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17266         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17267         * modules/netdb (Makefile.am): Substitute it.
17268         * lib/netdb.in.h (gai_strerror): Declare replacement.
17269         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17270         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17271         the fix.
17272
17273         getsockopt: avoid compiler warning
17274         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17275         Reported by Matthias Bolte.
17276
17277         tests: drop unused link dependency
17278         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17279         * modules/dirent-safer-tests (Makefile.am): Likewise.
17280         * modules/fdopendir-tests (Makefile.am): Likewise.
17281         * modules/mkfifoat-tests (Makefile.am): Likewise.
17282         * modules/openat-safer-tests (Makefile.am): Likewise.
17283         * modules/openat-tests (Makefile.am): Likewise.
17284         * modules/readlinkat-tests (Makefile.am): Likewise.
17285         * modules/symlinkat-tests (Makefile.am): Likewise.
17286         * modules/linkat-tests (Makefile.am): Likewise.
17287         (Depends-on): Switch to filenamecat-lgpl.
17288         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17289         LIBINTL.
17290         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17291         * tests/test-linkat.c (main): Don't require xalloc.
17292
17293         hash, mgetgroups: drop xalloc dependency
17294         * lib/hash.c (includes): Adjust includes.
17295         * lib/mgetgroups.c (includes): Likewise.
17296         (xgetgroups): Move...
17297         * lib/xgetgroups.c: ...to new file.
17298         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17299         * modules/xgetgroups: New file, split from...
17300         * modules/mgetgroups: ...here.
17301         (Depends-on): Add xalloc-oversized.
17302         * modules/hash (Depends-on): Likewise.
17303         * modules/hash-tests (Depends-on): Drop xalloc.
17304         (test_hash_LDADD): Drop unused library.
17305         * tests/test-hash.c (main): Break xalloc dependency.
17306         (includes): Drop unused include.
17307
17308         xalloc-oversized: new module
17309         * modules/xalloc-oversized: New module.
17310         * modules/xalloc (Depends-on): Add it.
17311         * lib/xalloc.h (xalloc_oversized): Move...
17312         * lib/xalloc-oversized.h: ...into new file.
17313
17314         utimecmp: drop dependency on xmalloc
17315         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17316         due to memory pressure.
17317         * modules/utimecmp (Depends-on): Drop xalloc.
17318
17319 2011-04-27  Eric Blake  <eblake@redhat.com>
17320
17321         getcwd: fix mingw bugs
17322         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17323         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17324         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17325
17326 2011-04-27  Bruno Haible  <bruno@clisp.org>
17327
17328         mkstemps: Ensure declaration on MacOS X 10.5.
17329         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17330         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17331         MacOS X.
17332
17333 2011-04-27  Bruno Haible  <bruno@clisp.org>
17334
17335         mkstemp: More documentation.
17336         * doc/posix-functions/mkstemp.texi: Document header file problem on
17337         MacOS X.
17338
17339 2011-04-27  Bruno Haible  <bruno@clisp.org>
17340
17341         mkstemp: Tweak configure message when cross-compiling.
17342         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17343         result as a guess.
17344
17345 2011-04-27  Bruno Haible  <bruno@clisp.org>
17346
17347         clean-temp: Clarify what it does.
17348         * lib/clean-temp.h: Add more comments.
17349         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17350         module.
17351         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17352         * doc/glibc-functions/mkstemps.texi: Likewise.
17353         * doc/glibc-functions/mkostemps.texi: Likewise.
17354
17355 2011-04-27  Eric Blake  <eblake@redhat.com>
17356
17357         fchdir: avoid extra chdir and fix test
17358         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17359         getcwd-lgpl.
17360         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17361         have to be canonical.
17362         (canonicalize_file_name): Drop unused macro.
17363         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17364
17365         filenamecat-lgpl: fix licence
17366         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17367         when it was first created.
17368
17369         linkat, renameat: add missing dependency
17370         * modules/linkat (Depends-on): Require getcwd-lgpl.
17371         * modules/renameat (Depends-on): Likewise.
17372
17373         tests: reduce dependencies
17374         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17375         * tests/test-renameat.c (main): Likewise.
17376         * modules/linkat-tests (Depends-on): Relax dependency.
17377         * modules/renameat-tests (Depends-on): Likewise.
17378         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17379         dependency explicit.
17380
17381         save-cwd: reduce default dependency
17382         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17383         * lib/save-cwd.c: Update comments.
17384         * NEWS: Document the semantic change.
17385
17386         getcwd: enhance tests
17387         * tests/test-getcwd-lgpl.c: New file, taken from...
17388         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17389         repeat long path stress tests from m4 probe.
17390         * modules/getcwd-lgpl-tests: New module.
17391         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17392         * m4/getcwd-abort-bug.m4: Update comment.
17393         * m4/getcwd-path-max.m4: Likewise.
17394
17395         getcwd-lgpl: new module
17396         * modules/getcwd-lgpl: New module.
17397         * lib/getcwd-lgpl.c: New file.
17398         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17399         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17400         * modules/getcwd (configure.ac): Set C witness.
17401         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17402
17403         getcwd: tweak comments
17404         * m4/getcwd-abort-bug.m4: Fix comments.
17405         * m4/getcwd-path-max.m4: Likewise.
17406         * m4/getcwd.m4: Likewise.
17407
17408 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17409         and Eric Blake  <eblake@redhat.com>
17410
17411         mkstemp: replace if system version uses wrong permissions
17412         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17413         read/write mode bits set in file created by mkstemp.
17414         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17415
17416 2011-04-27  Eric Blake  <eblake@redhat.com>
17417
17418         passfd: avoid compiler warning
17419         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17420         Reported by Laine Stump.
17421
17422 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17423
17424         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17425         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17426
17427 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17428         and Eric Blake  <eblake@redhat.com>
17429
17430         mkstemp: mention clean-temp module
17431         * lib/mkstemp.c: Add comment.
17432         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17433
17434 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17435
17436         inttypes: also provide default values for 32-bit tests
17437         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17438         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17439
17440 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17441
17442         strtoumax: remove dependency on strtoimax
17443         This is like the strtoull change of yesterday.
17444         * modules/strtoumax (Files): Add lib/strtoimax.c.
17445         (Depends-on): Remove strtoimax and add verify.
17446
17447         inttypes-incomplete: new module
17448         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17449         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17450         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17451         of gl_INTTYPES_H.
17452         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17453         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17454         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17455         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17456         * modules/strtoumax, modules/xstrtol (Depends-on):
17457         Depend on inttypes-incomplete, not inttypes.
17458         * modules/inttypes-incomplete: New module, containing the contents
17459         of the old modules/inttypes module, except that the Files: section
17460         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17461         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17462         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17463         (Depends-on): Depend only on inttypes-incomplete.
17464         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17465
17466         inttypes: omit now-redundant strtoimax and strtoumax work
17467         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17468         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17469
17470         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17471         This supports apps that need pointers to strtoimax and strtoumax,
17472         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17473         nonexistent functions.  See
17474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17475         et seq.
17476         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17477         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17478         a macro.
17479         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17480
17481 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17482
17483         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17484
17485 2011-04-25  Bruno Haible  <bruno@clisp.org>
17486
17487         strtol, strtoul: Mark modules as obsolete.
17488         * modules/strtol (Status, Notice): New sections.
17489         * modules/strtoul (Status, Notice): New sections.
17490
17491 2011-04-25  Bruno Haible  <bruno@clisp.org>
17492
17493         strtod: Remove check for strtod, unless supporting old platforms.
17494         * modules/strtod-obsolete: New file.
17495         * m4/strtod-obsolete.m4: New file.
17496         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17497         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17498         * modules/strtod (Depends-on): Add strtod-obsolete.
17499         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17500
17501 2011-04-25  Bruno Haible  <bruno@clisp.org>
17502
17503         strcase: Make module obsolete.
17504         * modules/strcase (Status, Notice): New sections.
17505
17506 2011-04-25  Bruno Haible  <bruno@clisp.org>
17507
17508         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17509         * modules/dup2-obsolete: New file.
17510         * m4/dup2-obsolete.m4: New file.
17511         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17512         gl_FUNC_DUP2_OBSOLETE is not also defined.
17513         * modules/dup2 (Depends-on): Add dup2-obsolete.
17514         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17515
17516 2011-04-25  Bruno Haible  <bruno@clisp.org>
17517
17518         strnlen: Avoid memchr related link error on old obsolete platforms.
17519         * modules/memchr-obsolete: New file.
17520         * m4/memchr-obsolete.m4: New file.
17521         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17522         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17523         * modules/memchr (Depends-on): Add memchr-obsolete.
17524         * modules/strnlen (Depends-on): Likewise.
17525         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17526
17527 2011-04-25  Jim Meyering  <meyering@redhat.com>
17528
17529         maint.mk: makefile_at_at_check extend and clean up
17530         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17531         in addition to */Makefile.am.
17532         Exempt legitimate uses of @VAR@ notation, e.g.,
17533         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17534         Remove obsolete coreutils-specific comment.
17535         Prompted by discussion here:
17536         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17537
17538 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17539
17540         strtoul: remove dependency on strtol
17541         This is so that 'configure' need not check for strtol merely because
17542         the application needs strtoul.
17543         * modules/strtoul (Files): Add lib/strtol.c.
17544         (Depends-on): Remove strtol.
17545
17546         strtoull: remove dependency on strtoul
17547         This is like the strtoll change.
17548         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17549         (Depends-on): Remove strtoul.
17550
17551         strtoll: remove dependency on strtol
17552         This is so that 'configure' need not check for strtol merely because
17553         the application needs strtoll.
17554         * modules/strtoll (Files): Add lib/strtol.c.
17555         (Depends-on): Remove strtol.
17556
17557 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17558
17559         inttypes: Move some configure check to module 'imaxdiv'.
17560         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17561         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17562         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17563
17564 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17565
17566         inttypes: Move some configure check to module 'imaxabs'.
17567         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17568         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17569         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17570
17571 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17572
17573         inttypes: Remove configure tests that are not needed since 2009-12-31.
17574         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17575         gl_cv_header_working_inttypes_h.
17576
17577 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17578
17579         * modules/strnlen (Depends-on): Remove memchr.
17580         The strnlen implementation doesn't need the memchr module's fixes; see
17581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17582
17583         strtol: remove dependency on wchar
17584         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17585         * modules/strtol (Depends-on): Remove wchar.
17586
17587 2011-04-21  Eric Blake  <eblake@redhat.com>
17588
17589         passfd: fix test regression on Linux
17590         * modules/passfd-tests (configure.ac): Correct socketpair check.
17591
17592         passfd: speed up configure and drop unused code
17593         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17594         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17595         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17596         Instead of probing at configure for unix_scm_rights_bsd44_way,
17597         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17598         check to a struct member probe.
17599         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17600         (sendfd, recvfd): Update preprocessor checks.
17601         * modules/passfd (Files): Reflect rename, and drop unused file.
17602         (Depends-on): Drop unused dependency.
17603
17604         passfd: allow compilation on mingw
17605         * modules/sys_socket (Depends-on): Add sys_uio.
17606         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17607         iovec and a minimal struct msghdr.
17608         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17609         * tests/test-sys_socket.c (main): Enhance test.
17610         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17611         guaranteed to provide what we need.
17612         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17613         * modules/passfd-tests (Depends-on): Add sys_wait.
17614         * tests/test-passfd.c (main): Skip test on mingw, for now.
17615         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17616         partial 'struct msghdr' implementation.
17617
17618         sys_uio: new module
17619         * modules/sys_uio: New module.
17620         * modules/sys_uio-tests: Likewise.
17621         * lib/sys_uio.in.h: New file.
17622         * m4/sys_uio_h.m4: Likewise.
17623         * tests/test-sys_uio.c: Likewise.
17624         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17625         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17626
17627 2011-04-20  Jim Meyering  <meyering@redhat.com>
17628
17629         useless-if-before-free: avoid false-positive
17630         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17631         disjunct so that it too requires a terminating ";".  Without that,
17632         this script would identify as useless one statement from gcc that
17633         was not:
17634           if (aligned_ptr)
17635             free (((void **) aligned_ptr) [-1]);
17636
17637 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17638
17639         doc: update users.txt.
17640         * users.txt: Add barcode.
17641
17642 2011-04-19  Bruno Haible  <bruno@clisp.org>
17643
17644         ioctl: Remove link dependency on native Windows.
17645         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17646         (gl_close_fn, gl_ioctl_fn): New types.
17647         (struct fd_hook): Renamed from struct close_hook. Change type of
17648         private_close_fn field. Add private_ioctl_fn field.
17649         (close_hook_fn): Add parameter for primary close method.
17650         (execute_close_hooks, execute_all_close_hooks): Likewise.
17651         (ioctl_hook_fn): New type.
17652         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17653         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17654         argument.
17655         (unregister_fd_hook): Renamed from unregister_close_hook.
17656         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17657         Don't include <unistd.h>.
17658         (close): Remove undef.
17659         (anchor): Update.
17660         (execute_close_hooks): Add argument for primary close method.
17661         (execute_all_close_hooks): Likewise.
17662         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17663         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17664         argument. Allow each argument to be NULL.
17665         (unregister_fd_hook): Renamed from unregister_close_hook.
17666         * lib/close.c (rpl_close): Pass 'close' function pointer to
17667         execute_all_close_hooks.
17668         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17669         (primary_ioctl): New function.
17670         (ioctl): Don't call ioctlsocket here. Instead, call
17671         execute_all_ioctl_hooks.
17672         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17673         close method.
17674         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17675         (fd_sockets_hook): Renamed from close_sockets_hook.
17676         (gl_sockets_startup, gl_sockets_cleanup): Update.
17677         * modules/fd-hook: Renamed from modules/close-hook. Update.
17678         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17679         * modules/sockets (Depends-on): Likewise.
17680         * modules/ioctl (Depends-on): Add fd-hook.
17681         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17682         GNULIB_SOCKET.
17683
17684 2011-04-19  Bruno Haible  <bruno@clisp.org>
17685
17686         Move the support of O_NONBLOCK in open() to the 'open' module.
17687         * modules/nonblocking (Depends-on): Remove 'open'.
17688         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17689         gl_cv_have_open_O_NONBLOCK.
17690         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17691         O_NONBLOCK support.
17692         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17693
17694 2011-04-17  Bruno Haible  <bruno@clisp.org>
17695
17696         pipe2: Simplify code.
17697         * lib/pipe2.c (pipe2): Reduce code duplication.
17698
17699 2011-04-17  Bruno Haible  <bruno@clisp.org>
17700
17701         nonblocking: Add comment.
17702         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17703
17704 2011-04-17  Bruno Haible  <bruno@clisp.org>
17705
17706         nonblocking: Add tests for sockets.
17707         * tests/test-nonblocking-socket.sh: New file.
17708         * tests/test-nonblocking-socket-main.c: New file.
17709         * tests/test-nonblocking-socket-child.c: New file.
17710         * tests/test-nonblocking-socket.h: New file.
17711         * tests/socket-server.h: New file.
17712         * tests/socket-client.h: New file.
17713         * modules/nonblocking-socket-tests: New file.
17714         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17715
17716 2011-04-17  Bruno Haible  <bruno@clisp.org>
17717
17718         nonblocking: Add tests for pipes.
17719         * tests/test-nonblocking-pipe.sh: New file.
17720         * tests/test-nonblocking-pipe-main.c: New file.
17721         * tests/test-nonblocking-pipe-child.c: New file.
17722         * tests/test-nonblocking-pipe.h: New file.
17723         * tests/test-nonblocking-writer.h: New file.
17724         * tests/test-nonblocking-reader.h: New file.
17725         * tests/test-nonblocking-misc.h: New file.
17726         * modules/nonblocking-pipe-tests: New file.
17727         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17728
17729 2011-04-16  Bruno Haible  <bruno@clisp.org>
17730
17731         gettext: Clarify the needed programmer actions.
17732         * modules/gettext (Notice): New field.
17733         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17734
17735 2011-04-16  Bruno Haible  <bruno@clisp.org>
17736
17737         strchrnul: Tweak last commit.
17738         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17739         bug.
17740         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17741         as in _GL_FUNCDECL_SYS.
17742         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17743         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17744
17745 2011-04-15  Eric Blake  <eblake@redhat.com>
17746
17747         strchrnul: work around cygwin bug
17748         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17749         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17751         * modules/string (Makefile.am): Substitute it.
17752         * lib/string.in.h (strchrnul): Use it.
17753
17754 2011-04-15  Bruno Haible  <bruno@clisp.org>
17755
17756         Don't require lib/stdio-write.c when only module 'stdio' is used.
17757         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17758         invocation.
17759         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17760
17761 2011-04-14  Bruno Haible  <bruno@clisp.org>
17762
17763         Support non-blocking pipe I/O in read() on native Windows.
17764         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17765         (read): New declaration.
17766         * lib/read.c: New file.
17767         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17768         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17769         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17770         vscanf): New declarations.
17771         * lib/stdio-read.c: New file.
17772         * m4/read.m4: New file.
17773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17774         REPLACE_READ.
17775         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17776         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17777         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17778         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17779         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17780         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17781         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17782         * modules/read: New file.
17783         * modules/nonblocking (Files): Add lib/stdio-read.c.
17784         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17785         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17786         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17787         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17788         * modules/pread (Depends-on): Add read.
17789         * modules/safe-read (Depends-on): Likewise.
17790         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17791         gets, scanf, vfscanf, vscanf): Verify signatures.
17792         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17793         problem with non-blocking pipes.
17794         * doc/posix-functions/fgetc.texi: Likewise.
17795         * doc/posix-functions/fgets.texi: Likewise.
17796         * doc/posix-functions/fread.texi: Likewise.
17797         * doc/posix-functions/fscanf.texi: Likewise.
17798         * doc/posix-functions/getc.texi: Likewise.
17799         * doc/posix-functions/getchar.texi: Likewise.
17800         * doc/posix-functions/gets.texi: Likewise.
17801         * doc/posix-functions/scanf.texi: Likewise.
17802         * doc/posix-functions/vfscanf.texi: Likewise.
17803         * doc/posix-functions/vscanf.texi: Likewise.
17804
17805 2011-04-14  Bruno Haible  <bruno@clisp.org>
17806
17807         Support non-blocking pipe I/O in write() on native Windows.
17808         * lib/write.c (rpl_write): Split a write request that failed merely
17809         because the byte count was larger than the pipe buffer's size.
17810         * doc/posix-functions/write.texi: Mention the problem with large byte
17811         counts.
17812
17813 2011-04-14  Bruno Haible  <bruno@clisp.org>
17814
17815         wchar: Ensure that wchar_t gets defined on uClibc.
17816         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17817         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17818
17819 2011-04-13  Bruno Haible  <bruno@clisp.org>
17820
17821         safe-write, full-read: Avoid unnecessary compilation units.
17822         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17823         (Depends-on): Remove safe-read. Add ssize_t.
17824         * modules/full-read (Files): Add lib/full-write.c.
17825         (Depends-on): Add full-write.
17826
17827 2011-04-13  Bruno Haible  <bruno@clisp.org>
17828
17829         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17830         * modules/pwrite (Depends-on): Add 'write'.
17831
17832 2011-04-13  Bruno Haible  <bruno@clisp.org>
17833
17834         Support non-blocking pipe I/O in write() on native Windows.
17835         * lib/unistd.in.h (write): Enable replacement also if
17836         GNULIB_UNISTD_H_NONBLOCKING is 1.
17837         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17838         (rpl_write): When failing to write on a non-blocking pipe, change
17839         errno from ENOSPC to EAGAIN.
17840         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17841         putchar, puts, vfprintf, vprintf): Enable replacement also if
17842         GNULIB_STDIO_H_NONBLOCKING is 1.
17843         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17844         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17845         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17846         CALL_WITH_SIGPIPE_EMULATION.
17847         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17848         * m4/nonblocking.m4: New file.
17849         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17850         for non-blocking I/O support.
17851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17852         GNULIB_UNISTD_H_NONBLOCKING.
17853         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17854         required for non-blocking I/O support.
17855         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17856         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17857         lib/stdio-write.c, m4/asm-underscore.m4.
17858         (Depends-on): Add stdio, unistd.
17859         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17860         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17861         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17862         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17863         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17864         problem with non-blocking pipes.
17865         * doc/posix-functions/fputc.texi: Likewise.
17866         * doc/posix-functions/fputs.texi: Likewise.
17867         * doc/posix-functions/fwrite.texi: Likewise.
17868         * doc/posix-functions/printf.texi: Likewise.
17869         * doc/posix-functions/putc.texi: Likewise.
17870         * doc/posix-functions/putchar.texi: Likewise.
17871         * doc/posix-functions/puts.texi: Likewise.
17872         * doc/posix-functions/vfprintf.texi: Likewise.
17873         * doc/posix-functions/vprintf.texi: Likewise.
17874         * doc/posix-functions/write.texi: Likewise.
17875
17876 2011-04-10  Jim Meyering  <meyering@redhat.com>
17877
17878         maint.mk: prohibit doubled words
17879         Detect them also when they're separated by a newline.
17880         There are 3 ways to customize it:
17881           - disable the test on a per file basis, as usual with rules using
17882             $(VC_LIST_EXCEPT)
17883           - replace the default doubled-word-selecting regexp (affects all files)
17884           - ignore a particular file-vs-doubled-word match
17885         I nearly used that last one to ignore the "is is" match in
17886         coreutils' NEWS file, since the text was "ls -is is ..."
17887         To do that, I would have added this line to cfg.mk:
17888           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17889         but it would have ignored any "is is" match in NEWS.
17890         Low probability, but still...
17891         Instead, I changed the text, slightly:
17892           -  ls -is is now consistent with ls -lis in ignoring values returned
17893           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17894         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17895         (prohibit_doubled_word_): Define.
17896         (sc_prohibit_doubled_word): New rule.
17897         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17898
17899 2011-04-10  Jim Meyering  <meyering@redhat.com>
17900
17901         maint: fix doubled-word typo in comment
17902         * m4/gethostname.m4: s/is is/it is/
17903         * m4/getdomainname.m4: Likewise.
17904
17905 2011-04-10  Jim Meyering  <meyering@redhat.com>
17906
17907         maint: remove doubled word: s/it it/it/
17908         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17909
17910 2011-04-10  Jim Meyering  <meyering@redhat.com>
17911
17912         maint.mk: remove useless semicolon and backslash
17913         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17914         semicolon and backslash.
17915
17916 2011-04-10  Bruno Haible  <bruno@clisp.org>
17917
17918         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17919         * modules/stdint-tests (Depends-on): Add wchar.
17920
17921 2011-04-10  Jim Meyering  <meyering@redhat.com>
17922
17923         maint: remove doubled words in comments, e.g., s/a a/a/
17924         * lib/strptime.c (day_of_the_week): s/the the/the/
17925         * tests/test-chown.h (test_chown): s/a a/a/
17926
17927         test-chown.h: correct a cast
17928         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17929         when the destination is a stat.st_gid.
17930
17931 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17932
17933         getaddrinfo: Fix test for sa_len member.
17934         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17935         include <sys/types.h> before <sys/socket.h>.
17936
17937 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17938
17939         maint: change "can not" to "cannot"
17940         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17941         boundaries.
17942
17943 2011-04-09  Jim Meyering  <meyering@redhat.com>
17944
17945         maint: change "a a" to "a"
17946         * tests/test-lchown.h (test_lchown): s/a a/a/
17947
17948         maint.mk: prohibit \<the the\>
17949         * top/maint.mk (sc_prohibit_the_the): New rule.
17950
17951         maint: fix "the the" in comment
17952         * lib/count-one-bits.h: s/the the/the/
17953
17954         maint: change "can not" to "cannot"
17955         But do not change the occurrences in maintain.texi or in
17956         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17957         * doc/gnulib-tool.texi: s/can not/cannot/
17958         * doc/posix-functions/accept.texi (accept): Likewise.
17959         * doc/posix-functions/socket.texi (socket): Likewise.
17960         * lib/mbrtowc.c: Likewise.
17961
17962         maint.mk: prohibit use of "can not"
17963         * top/maint.mk (sc_prohibit_can_not): New rule.
17964         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17965
17966 2011-04-09  Bruno Haible  <bruno@clisp.org>
17967
17968         careadlinkat: Guard against misuse of careadlinkatcwd.
17969         * lib/careadlinkat.c: Include <stdlib.h>.
17970         (careadlinkatcwd): Check that the fd argument is as expected.
17971
17972 2011-04-09  Bruno Haible  <bruno@clisp.org>
17973
17974         careadlinkat: Use common coding style.
17975         * lib/careadlinkat.c: Move gnulib includes after system includes.
17976
17977 2011-04-09  Bruno Haible  <bruno@clisp.org>
17978
17979         careadlinkat: Clarify specification.
17980         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17981         (careadlinkatcwd): Add comment.
17982         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17983
17984 2011-04-09  Bruno Haible  <bruno@clisp.org>
17985
17986         areadlinkat: Avoid link error on many platforms.
17987         * modules/areadlinkat (Depends-on): Add areadlink.
17988
17989 2011-04-09  Bruno Haible  <bruno@clisp.org>
17990
17991         allocator, careadlinkat: Fix double-inclusion guard.
17992         * lib/allocator.h: Fix double-inclusion guard.
17993         * lib/careadlinkat.h: Likewise.
17994
17995 2011-04-09  Bruno Haible  <bruno@clisp.org>
17996
17997         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17998         * lib/relocwrapper.c: Update dependencies hierarchy.
17999         * build-aux/install-reloc: Update list of files to be compiled.
18000         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18001         lib/allocator.[hc].
18002
18003 2011-04-08  Eric Blake  <eblake@redhat.com>
18004
18005         strftime: silence gnulib-tool warning
18006         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18007
18008 2011-04-08  Bruno Haible  <bruno@clisp.org>
18009
18010         verify: Fix syntax error with GCC 4.6 in C++ mode.
18011         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18012         (HAVE_STATIC_ASSERT): New macro.
18013         (verify_true, verify): Use 'static_assert' if it is supported and
18014         '_Static_assert' is not supported.
18015
18016 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18017
18018         allocator: New module.
18019         * modules/allocator, lib/allocator.c: New files.
18020         * lib/allocator.h (stdlib_allocator): New decl.
18021         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18022         Remove.  Do not include <stdlib.h>.
18023         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18024         * modules/careadlinkat (Files): Remove lib/allocator.h.
18025         (Depends-on): Add allocator.
18026
18027         stdlib: let modules use system malloc, realloc
18028         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18029         if !_GL_USE_STDLIB_ALLOC.
18030         (malloc, realloc): Limit this change to a smaller scope.
18031
18032         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18033         (malloc, realloc): Don't #undef; no longer needed.
18034         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18035         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18036         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18037         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18038         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18039         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18040         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18041         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18042
18043         careadlinkat: rename members to avoid problem
18044         * lib/allocator.h (struct allocator): Rename members from
18045         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18046         and realloc are #define'd.  Reported by Eric Blake in
18047         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18048         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18049
18050 2011-04-08  Eric Blake  <eblake@redhat.com>
18051
18052         nonblocking: reduce dependency
18053         * tests/test-nonblocking.c: Only test sockets when in use.
18054         * modules/nonblocking-tests (Depends-on): Drop socket.
18055         (Makefile.am): Link even if sockets are not present.
18056         * modules/pipe2-tests (Makefile.am): Likewise.
18057         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18058
18059         pipe2: fix O_NONBLOCK support on mingw
18060         * modules/pipe2 (Depends-on): Add nonblocking.
18061         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18062         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18063         * tests/test-nonblocking.c (main): Likewise.
18064         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18065
18066         fcntl-h: fix O_ACCMODE on cygwin
18067         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18068         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18069
18070         pipe-filter: drop O_NONBLOCK workarounds
18071         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18072         * modules/pipe-filter-ii (Depends-on): Likewise.
18073         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18074
18075         nonblocking: provide O_NONBLOCK for mingw
18076         * modules/nonblocking (Depends-on): Add open.
18077         (configure.ac): Set new witness macro.
18078         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18079         * modules/fcntl-h (Makefile.am): Substitute it.
18080         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18081         nonblocking module is in use.
18082         * lib/nonblocking.c: Adjust portability test.
18083         * lib/open.c (open): Don't let native open see gnulib flag.
18084         * tests/test-fcntl-h.c (main): Enhance test.
18085         * tests/test-open.h (test_open): Likewise.
18086         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18087
18088         careadlinkat: fix compilation error on mingw
18089         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18090         within struct allocator.
18091
18092 2011-04-06  Eric Blake  <eblake@redhat.com>
18093
18094         binary-io: relicense under LGPLv2+
18095         * modules/binary-io (License): Relax to LGPLv2+.
18096         Requested for libvirt, and required by pipe2.
18097
18098 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18099
18100         verify: use _Static_assert if available
18101         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18102         (verify_true, verify): Use it if available.  This generates better
18103         diagnostics with GCC 4.6.0 and later.
18104
18105 2011-04-05  Bruno Haible  <bruno@clisp.org>
18106
18107         Remove leftover generated .h files after config.status changed.
18108
18109         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18110         GL_GENERATE_ALLOCA_H.
18111         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18112         GL_GENERATE_ALLOCA_H evaluates to false.
18113
18114         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18115         GL_GENERATE_ARGZ_H.
18116         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18117         evaluates to false.
18118
18119         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18120         GL_GENERATE_BYTESWAP_H.
18121         * modules/byteswap (Makefile.am): Remove byteswap.h if
18122         GL_GENERATE_BYTESWAP_H evaluates to false.
18123
18124         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18125         GL_GENERATE_ERRNO_H.
18126         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18127         evaluates to false.
18128
18129         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18130         GL_GENERATE_FLOAT_H.
18131         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18132         evaluates to false.
18133
18134         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18135         GL_GENERATE_FNMATCH_H.
18136         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18137         GL_GENERATE_FNMATCH_H evaluates to false.
18138
18139         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18140         GL_GENERATE_GLOB_H.
18141         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18142         evaluates to false.
18143
18144         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18145         automake conditional GL_GENERATE_ICONV_H.
18146         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18147         evaluates to false.
18148
18149         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18150         GL_GENERATE_NETINET_IN_H.
18151         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18152         GL_GENERATE_NETINET_IN_H evaluates to false.
18153
18154         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18155         conditional GL_GENERATE_PTHREAD_H.
18156         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18157         * modules/pthread (Makefile.am): Remove pthread.h if
18158         GL_GENERATE_PTHREAD_H evaluates to false.
18159
18160         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18161         GL_GENERATE_SCHED_H.
18162         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18163         evaluates to false.
18164
18165         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18166         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18167         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18168         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18169
18170         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18171         GL_GENERATE_STDARG_H.
18172         * modules/stdarg (Makefile.am): Remove stdarg.h if
18173         GL_GENERATE_STDARG_H evaluates to false.
18174
18175         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18176         GL_GENERATE_STDBOOL_H.
18177         * modules/stdbool (Makefile.am): Remove stdbool.h if
18178         GL_GENERATE_STDBOOL_H evaluates to false.
18179
18180         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18181         conditional GL_GENERATE_STDDEF_H.
18182         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18183         * modules/stddef (Makefile.am): Remove stddef.h if
18184         GL_GENERATE_STDDEF_H evaluates to false.
18185
18186         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18187         GL_GENERATE_STDINT_H.
18188         * modules/stdint (Makefile.am): Remove stdint.h if
18189         GL_GENERATE_STDINT_H evaluates to false.
18190
18191         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18192         GL_GENERATE_SYSEXITS_H.
18193         * modules/sysexits (Makefile.am): Remove sysexits.h if
18194         GL_GENERATE_SYSEXITS_H evaluates to false.
18195
18196         Reported by Karl Berry and Ralf Wildenhues.
18197
18198 2011-04-05  Bruno Haible  <bruno@clisp.org>
18199
18200         Ensure to rebuild generated .h files when config.status has changed.
18201         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18202         config.status.
18203         * modules/ctype (Makefile.am): Likewise.
18204         * modules/dirent (Makefile.am): Likewise.
18205         * modules/errno (Makefile.am): Likewise.
18206         * modules/fcntl-h (Makefile.am): Likewise.
18207         * modules/float (Makefile.am): Likewise.
18208         * modules/getopt-posix (Makefile.am): Likewise.
18209         * modules/glob (Makefile.am): Likewise.
18210         * modules/iconv-h (Makefile.am): Likewise.
18211         * modules/inttypes (Makefile.am): Likewise.
18212         * modules/langinfo (Makefile.am): Likewise.
18213         * modules/locale (Makefile.am): Likewise.
18214         * modules/math (Makefile.am): Likewise.
18215         * modules/netdb (Makefile.am): Likewise.
18216         * modules/netinet_in (Makefile.am): Likewise.
18217         * modules/poll-h (Makefile.am): Likewise.
18218         * modules/pthread (Makefile.am): Likewise.
18219         * modules/pty (Makefile.am): Likewise.
18220         * modules/sched (Makefile.am): Likewise.
18221         * modules/search (Makefile.am): Likewise.
18222         * modules/selinux-h (Makefile.am): Likewise.
18223         * modules/signal (Makefile.am): Likewise.
18224         * modules/spawn (Makefile.am): Likewise.
18225         * modules/stdarg (Makefile.am): Likewise.
18226         * modules/stdbool (Makefile.am): Likewise.
18227         * modules/stddef (Makefile.am): Likewise.
18228         * modules/stdint (Makefile.am): Likewise.
18229         * modules/stdio (Makefile.am): Likewise.
18230         * modules/stdlib (Makefile.am): Likewise.
18231         * modules/string (Makefile.am): Likewise.
18232         * modules/strings (Makefile.am): Likewise.
18233         * modules/sys_file (Makefile.am): Likewise.
18234         * modules/sys_ioctl (Makefile.am): Likewise.
18235         * modules/sys_select (Makefile.am): Likewise.
18236         * modules/sys_socket (Makefile.am): Likewise.
18237         * modules/sys_stat (Makefile.am): Likewise.
18238         * modules/sys_time (Makefile.am): Likewise.
18239         * modules/sys_times (Makefile.am): Likewise.
18240         * modules/sys_utsname (Makefile.am): Likewise.
18241         * modules/sys_wait (Makefile.am): Likewise.
18242         * modules/sysexits (Makefile.am): Likewise.
18243         * modules/termios (Makefile.am): Likewise.
18244         * modules/time (Makefile.am): Likewise.
18245         * modules/unistd (Makefile.am): Likewise.
18246         * modules/wchar (Makefile.am): Likewise.
18247         * modules/wctype-h (Makefile.am): Likewise.
18248         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18249
18250 2011-04-05  Bruno Haible  <bruno@clisp.org>
18251
18252         pipe2: Relicense under LGPLv2+.
18253         * modules/pipe2 (License): Change to LGPLv2+.
18254         Requested by Eric Blake, for libvirt.
18255
18256 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18257
18258         bootstrap: compute gnulib_extra_files after updating build_aux
18259         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18260         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18261
18262 2011-04-05  Eric Blake  <eblake@redhat.com>
18263
18264         bootstrap: preserve git whitelist item sorting
18265         * build-aux/bootstrap (sort_patterns): New function.
18266         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18267
18268 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18269
18270         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18271         sc_space_tab check.
18272
18273 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18274
18275         areadlink, areadlinkat: rewrite in terms of careadlinkat
18276         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18277         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18278         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18279         (malloc, realloc): Remove #undefs.
18280         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18281         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18282         readlink, ssize_t, stdint, unistd.
18283         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18284         areadlink, stdint.
18285
18286         careadlinkat: new module
18287         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18288         * modules/careadlinkat: New files, written by me with
18289         a review and feedback from Ben Pfaff in
18290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18291
18292 2011-04-01  Bruno Haible  <bruno@clisp.org>
18293
18294         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18295         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18296         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18297         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18298         Reported by Bruce Korb <bruce.korb@gmail.com>.
18299
18300 2011-04-01  Bruno Haible  <bruno@clisp.org>
18301
18302         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18303         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18304         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18305         * modules/wcpcpy (Depends-on): Add extensions.
18306         * modules/wcpncpy (Depends-on): Likewise.
18307         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18308         systems.
18309         * doc/posix-functions/wcpncpy.texi: Likewise.
18310         * doc/posix-functions/wcwidth.texi: Likewise.
18311
18312 2011-03-31  Eric Blake  <eblake@redhat.com>
18313
18314         nonblocking: fix mingw test failures
18315         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18316         non-blocking flag on regular file.
18317         (get_nonblocking_flag): Set errno on invalid fd.
18318         * tests/test-nonblocking.c (main): Avoid test failure on
18319         directories if fchdir is not active.
18320         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18321
18322 2011-03-31  Bruno Haible  <bruno@clisp.org>
18323
18324         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18325         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18326         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18327         Reported by Simon Josefsson <simon@josefsson.org>.
18328
18329 2011-03-31  Bruno Haible  <bruno@clisp.org>
18330         and Eric Blake  <eblake@redhat.com>
18331
18332         nonblocking: new module
18333         * modules/nonblocking: New module.
18334         * modules/nonblocking-tests: Likewise.
18335         * lib/nonblocking.h: New file.
18336         * lib/nonblocking.c: Likewise.
18337         * tests/test-nonblocking.c: New test.
18338         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18339
18340 2011-03-30  Bruno Haible  <bruno@clisp.org>
18341
18342         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18343         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18344         instead of 'printf' format for GCC >= 4.4.
18345         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18346         (fprintf, printf, vfprintf, vprintf): Declare with
18347         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18348         the system's vfprintf() function.
18349         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18350
18351 2011-03-30  Eric Blake  <eblake@redhat.com>
18352
18353         passfd: fix scoping bug
18354         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18355         before sendmsg/recvmsg.
18356
18357         passfd: standardize coding conventions
18358         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18359         can be learned at compile time.
18360         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18361         ifdefs.
18362         (sendfd, recvfd): Follow gnulib code conventions.
18363
18364         passfd: fix incorrect sendmsg arguments
18365         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18366         incorrect msg_controllen value.
18367         * modules/passfd-tests (Depends-on): Check for alarm.
18368         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18369         Reported by Bastien ROUCARIES.
18370
18371 2011-03-30  Bruno Haible  <bruno@clisp.org>
18372
18373         c-strcasestr: Relicense under LGPLv2+.
18374         * modules/c-strcasestr (License): Change to LGPLv2+.
18375         Requested by Eric Blake, for libvirt.
18376
18377 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18378
18379         * users.txt: Add libidn2.  Fix libtasn1 link.
18380
18381 2011-03-30  Jim Meyering  <meyering@redhat.com>
18382
18383         tests: readlink* ("",... fails with EINVAL on newer kernels
18384         readlink and readlinkat have typically failed with ENOENT for
18385         the invalid, empty file name,  "".  However, with the advent
18386         of linux-2.6.39, they fail with EINVAL.
18387         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18388         when operating on the empty file name.
18389         * tests/test-readlink.h (test_readlink): Likewise.
18390
18391 2011-03-29  Bruno Haible  <bruno@clisp.org>
18392
18393         Relicense some modules under LGPLv2+, for libidn2.
18394         * modules/array-mergesort (License): Change to LGPLv2+.
18395         * modules/c-strcaseeq (License): Likewise.
18396         * modules/striconveh (License): Likewise.
18397         * modules/striconveha (License): Likewise.
18398         * modules/uniconv/base (License): Likewise.
18399         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18400         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18401         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18402         * modules/unictype/base (License): Likewise.
18403         * modules/unictype/bidiclass-of (License): Likewise.
18404         * modules/unictype/category-M (License): Likewise.
18405         * modules/unictype/category-none (License): Likewise.
18406         * modules/unictype/category-of (License): Likewise.
18407         * modules/unictype/category-test (License): Likewise.
18408         * modules/unictype/category-test-withtable (License): Likewise.
18409         * modules/unictype/combining-class (License): Likewise.
18410         * modules/unictype/joiningtype-of (License): Likewise.
18411         * modules/unictype/scripts (License): Likewise.
18412         * modules/uninorm/base (License): Likewise.
18413         * modules/uninorm/canonical-decomposition (License): Likewise.
18414         * modules/uninorm/composition (License): Likewise.
18415         * modules/uninorm/decompose-internal (License): Likewise.
18416         * modules/uninorm/decomposition-table (License): Likewise.
18417         * modules/uninorm/nfc (License): Likewise.
18418         * modules/uninorm/nfd (License): Likewise.
18419         * modules/uninorm/u32-normalize (License): Likewise.
18420         * modules/unistr/base (License): Likewise.
18421         * modules/unistr/u32-cpy (License): Likewise.
18422         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18423         * modules/unistr/u32-to-u8 (License): Likewise.
18424         * modules/unistr/u32-uctomb (License): Likewise.
18425         * modules/unistr/u8-check (License): Likewise.
18426         * modules/unistr/u8-mblen (License): Likewise.
18427         * modules/unistr/u8-mbtouc (License): Likewise.
18428         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18429         * modules/unistr/u8-mbtoucr (License): Likewise.
18430         * modules/unistr/u8-prev (License): Likewise.
18431         * modules/unistr/u8-strlen (License): Likewise.
18432         * modules/unistr/u8-to-u32 (License): Likewise.
18433         * modules/unistr/u8-uctomb (License): Likewise.
18434         * modules/unitypes (License): Likewise.
18435         Requested by Simon Josefsson.
18436
18437 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18438
18439         lib-symbol-visibility: Add a notice.
18440         * modules/lib-symbol-visibility (Notice): New field.
18441
18442 2011-03-29  Bruno Haible  <bruno@clisp.org>
18443
18444         getaddrinfo: Doc fix.
18445         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18446         section "fixed in Gnulib".
18447
18448 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18449
18450         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18451         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18452
18453 2011-03-26  Bruno Haible  <bruno@clisp.org>
18454
18455         unictype/property-byname: Reduce the number of load-time relocations.
18456         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18457         (UC_PROPERTY_INDEX_*): New enumeration values.
18458         (uc_property_byname): Convert an index from the lookup table to an
18459         uc_property_t.
18460         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18461         values.
18462
18463 2011-03-26  Bruno Haible  <bruno@clisp.org>
18464
18465         unictype/property-byname: Allow omitted word separators and aliases.
18466         * lib/unictype/pr_byname.gperf: Add property names without word
18467         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18468         for 'space'.
18469
18470 2011-03-26  Bruno Haible  <bruno@clisp.org>
18471
18472         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18473         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18474         also hyphens to space.
18475         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18476         without spaces.
18477         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18478
18479 2011-03-26  Bruno Haible  <bruno@clisp.org>
18480
18481         unictype/joiningtype-byname: Recognize long names as well.
18482         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18483         a long name.
18484         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18485         unictype/joiningtype_byname.h.
18486         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18487         * lib/unictype/joiningtype_byname.gperf: New file.
18488         * modules/unictype/joiningtype-byname (Files): Add
18489         lib/unictype/joiningtype_byname.gperf.
18490         (Depends-on): Add gperf.
18491         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18492         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18493         long names.
18494
18495         Tests for module 'unictype/joiningtype-longname'.
18496         * modules/unictype/joiningtype-longname-tests: New file.
18497         * tests/unictype/test-joiningtype_longname.c: New file.
18498
18499         New module 'unictype/joiningtype-longname'.
18500         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18501         * lib/unictype/joiningtype_longname.c: New file.
18502         * modules/unictype/joiningtype-longname: New file.
18503         * modules/unictype/joiningtype-all (Depends-on): Add
18504         unictype/joiningtype-longname.
18505
18506 2011-03-26  Bruno Haible  <bruno@clisp.org>
18507
18508         unictype/bidiclass-byname: Recognize long names as well.
18509         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18510         name.
18511         * lib/unictype/bidi_byname.c: Include <string.h>,
18512         unictype/bidi_byname.h.
18513         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18514         * lib/unictype/bidi_byname.gperf: New file.
18515         * modules/unictype/bidiclass-byname (Files): Add
18516         lib/unictype/bidi_byname.gperf.
18517         (Depends-on): Add gperf.
18518         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18519         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18520         long names.
18521
18522         Tests for module 'unictype/bidiclass-longname'.
18523         * modules/unictype/bidiclass-longname-tests: New file.
18524         * tests/unictype/test-bidi_longname.c: New file.
18525
18526         New module 'unictype/bidiclass-longname'.
18527         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18528         * lib/unictype/bidi_longname.c: New file.
18529         * modules/unictype/bidiclass-longname: New file.
18530         * modules/unictype/bidiclass-all (Depends-on): Add
18531         unictype/bidiclass-longname.
18532
18533 2011-03-26  Bruno Haible  <bruno@clisp.org>
18534
18535         unictype/bidi*: Rename modules.
18536         * modules/unictype/bidiclass-all: Renamed from
18537         modules/unictype/bidicategory-all.
18538         * modules/unictype/bidiclass-name: Renamed from
18539         modules/unictype/bidiclass-name.
18540         (Description): Update.
18541         * modules/unictype/bidiclass-name-tests: Renamed from
18542         modules/unictype/bidicategory-name-tests.
18543         * modules/unictype/bidiclass-byname: Renamed from
18544         modules/unictype/bidicategory-byname.
18545         (Description): Update.
18546         * modules/unictype/bidiclass-byname-tests: Renamed from
18547         modules/unictype/bidicategory-byname-tests.
18548         * modules/unictype/bidiclass-of: Renamed from
18549         modules/unictype/bidicategory-of.
18550         (Description): Update.
18551         * modules/unictype/bidiclass-of-tests: Renamed from
18552         modules/unictype/bidicategory-of-tests.
18553         * modules/unictype/bidiclass-test: Renamed from
18554         modules/unictype/bidicategory-test.
18555         (Description): Update.
18556         * modules/unictype/bidiclass-test-tests: Renamed from
18557         modules/unictype/bidicategory-test-tests.
18558         * modules/unictype/bidicategory-all: New file, a simple redirection.
18559         * modules/unictype/bidicategory-name: Likewise.
18560         * modules/unictype/bidicategory-byname: Likewise.
18561         * modules/unictype/bidicategory-of: Likewise.
18562         * modules/unictype/bidicategory-test: Likewise.
18563         * modules/unictype/property-bidi-* (Dependencies): Update.
18564         * lib/unictype/bidi_*.c: Update comment.
18565
18566 2011-03-26  Bruno Haible  <bruno@clisp.org>
18567
18568         unictype/bidi*: Rename functions, part 2.
18569         * modules/unictype/bidicategory-name (configure.ac): Update required
18570         libunistring version.
18571         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18572
18573 2011-03-25  Bruno Haible  <bruno@clisp.org>
18574
18575         New module 'unictype/combining-class-all'.
18576         * modules/unictype/combining-class-all: New file.
18577
18578         Tests for module 'unictype/combining-class-byname'.
18579         * modules/unictype/combining-class-byname-tests: New file.
18580         * tests/unictype/test-combiningclass_byname.c: New file.
18581
18582         New module 'unictype/combining-class-byname'.
18583         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18584         * lib/unictype/combiningclass_byname.c: New file.
18585         * lib/unictype/combiningclass_byname.gperf: New file.
18586         * modules/unictype/combining-class-byname: New file.
18587
18588         Tests for module 'unictype/combining-class-longname'.
18589         * modules/unictype/combining-class-longname-tests: New file.
18590         * tests/unictype/test-combiningclass_longname.c: New file.
18591
18592         New module 'unictype/combining-class-longname'.
18593         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18594         * lib/unictype/combiningclass_longname.c: New file.
18595         * modules/unictype/combining-class-longname: New file.
18596
18597         Tests for module 'unictype/combining-class-name'.
18598         * modules/unictype/combining-class-name-tests: New file.
18599         * tests/unictype/test-combiningclass_name.c: New file.
18600
18601         New module 'unictype/combining-class-name'.
18602         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18603         * lib/unictype/combiningclass_name.c: New file.
18604         * modules/unictype/combining-class-name: New file.
18605
18606 2011-03-25  Bruno Haible  <bruno@clisp.org>
18607
18608         unictype/combining-class: Rename source files.
18609         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18610         of unictype/combining.h.
18611         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18612         Update.
18613         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18614         * modules/unictype/combining-class (Description): Fix.
18615         (Files, Makefile.am): Update.
18616         * tests/unictype/test-combiningclass.c: Renamed from
18617         tests/unictype/test-combining.c.
18618         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18619
18620 2011-03-25  Bruno Haible  <bruno@clisp.org>
18621
18622         unictype: Update list of canonical combining classes.
18623         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18624
18625 2011-03-25  Bruno Haible  <bruno@clisp.org>
18626
18627         unictype/category-byname: Recognize long names as well.
18628         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18629         a long name.
18630         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18631         unictype/categ_byname.h.
18632         (UC_CATEGORY_INDEX_*): New enumeration values.
18633         (uc_general_category_byname): Use uc_general_category_lookup and
18634         convert from index to value.
18635         * lib/unictype/categ_byname.gperf: New file.
18636         * modules/unictype/category-byname (Files): Add
18637         lib/unictype/categ_byname.gperf.
18638         (Depends-on): Add gperf.
18639         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18640         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18641         long names.
18642
18643         Tests for module 'unictype/category-longname'.
18644         * modules/unictype/category-longname-tests: New file.
18645         * tests/unictype/test-categ_longname.c: New file.
18646
18647         New module 'unictype/category-longname'.
18648         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18649         * lib/unictype/categ_longname.c: New file.
18650         * modules/unictype/category-longname: New file.
18651         * modules/unictype/category-all (Depends-on): Add it.
18652
18653 2011-03-25  Bruno Haible  <bruno@clisp.org>
18654
18655         Tests for module 'unictype/category-LC'.
18656         * modules/unictype/category-LC-tests: New file.
18657         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18658
18659         New module 'unictype/category-LC'.
18660         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18661         (UC_CATEGORY_LC): New declaration.
18662         (UC_CASED_LETTER): New macro.
18663         * lib/gen-uni-tables.c (is_category_LC): New function.
18664         (output_categories): Also handle category LC.
18665         (UC_CATEGORY_MASK_LC): New enumeration value.
18666         (general_category_byname): Also handle category LC.
18667         * lib/unictype/categ_LC.c: New file.
18668         * lib/unictype/categ_LC.h: New file, automatically generated.
18669         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18670         category LC.
18671         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18672         * modules/unictype/category-LC: New file.
18673         * modules/unictype/category-byname (Depends-on): Add
18674         unictype/category-LC.
18675         * modules/unictype/category-all (Depends-on): Likewise.
18676
18677 2011-03-25  Eric Blake  <eblake@redhat.com>
18678
18679         xmalloc: revert yesterday's regression
18680         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18681         realloc's underlying behavior (allowing allocation of zero-size
18682         objects, especially if malloc-gnu is also in use).
18683
18684 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18685
18686         maint.mk: add missing version to VC-tag
18687         * top/maint.mk: git tag was missing actual tag name; add it.
18688
18689         valgrind: do leak checking, and exit with code 1 on error (not 0)
18690         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18691         to VALGRIND.
18692
18693 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18694
18695         posix-modules: say what it does.
18696         * posix-modules: Add a line to the --help output saying what it does.
18697
18698 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18699
18700         xmalloc: Do not leak if underlying realloc is C99 compatible.
18701         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18702         This avoids a leak on C99-based systems.  See
18703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18704
18705 2011-03-24  Eric Blake  <eblake@redhat.com>
18706
18707         realloc: document portability problem
18708         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18709         passing 0 size to realloc.
18710
18711 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18712
18713         doc: update users.txt
18714         * users.txt: Add cvsps, tmpwatch
18715
18716 2011-03-23  Matt Rice  <ratmice@gmail.com>
18717
18718         doc: update users.txt
18719         * users.txt: Add gdb.
18720
18721 2011-03-23  Jim Meyering  <meyering@redhat.com>
18722
18723         doc: update users.txt
18724         Looking through matches up to the following URL (there are still
18725         several more pages), I found several projects that use gnulib:
18726         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18727         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18728         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18729
18730 2011-03-22  Bruno Haible  <bruno@clisp.org>
18731
18732         unictype/bidi*: Rename functions.
18733         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18734         uc_bidi_class, uc_is_bidi_class): New declarations.
18735         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18736         uc_bidi_category_byname.
18737         (uc_bidi_category_byname): New function.
18738         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18739         u_bidi_category_name.
18740         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18741         (uc_bidi_category_name): New function.
18742         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18743         uc_bidi_category.
18744         (uc_bidi_category): New function.
18745         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18746         uc_is_bidi_category. Invoke uc_bidi_class.
18747         (uc_is_bidi_category): New function.
18748         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18749         instead of uc_bidi_category_byname.
18750         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18751         instead of uc_bidi_category_name.
18752         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18753         uc_bidi_category.
18754         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18755         instead of uc_is_bidi_category.
18756
18757 2011-03-21  Bruno Haible  <bruno@clisp.org>
18758
18759         New module 'unictype/joininggroup-all'.
18760         * modules/unictype/joininggroup-all: New file.
18761
18762         Tests for module 'unictype/joininggroup-of'.
18763         * modules/unictype/joininggroup-of-tests: New file.
18764         * tests/unictype/test-joininggroup_of.c: New file.
18765         * tests/unictype/test-joininggroup_of.h: New file, automatically
18766         generated by gen-uni-tables.
18767
18768         New module 'unictype/joininggroup-of'.
18769         * modules/unictype/joininggroup-of: New file.
18770         * lib/unictype/joininggroup_of.c: New file.
18771         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18772         gen-uni-tables.
18773
18774         Tests for module 'unictype/joininggroup-byname'.
18775         * modules/unictype/joininggroup-byname-tests: New file.
18776         * tests/unictype/test-joininggroup_byname.c: New file.
18777
18778         New module 'unictype/joininggroup-byname'.
18779         * modules/unictype/joininggroup-byname: New file.
18780         * lib/unictype/joininggroup_byname.c: New file.
18781         * lib/unictype/joininggroup_byname.gperf: New file.
18782
18783         Tests for module 'unictype/joininggroup-name'.
18784         * modules/unictype/joininggroup-name-tests: New file.
18785         * tests/unictype/test-joininggroup_name.c: New file.
18786
18787         New module 'unictype/joininggroup-name'.
18788         * modules/unictype/joininggroup-name: New file.
18789         * lib/unictype/joininggroup_name.c: New file.
18790         * lib/unictype/joininggroup_name.h: New file.
18791
18792         New module 'unictype/joiningtype-all'.
18793         * modules/unictype/joiningtype-all: New file.
18794
18795         Tests for module 'unictype/joiningtype-of'.
18796         * modules/unictype/joiningtype-of-tests: New file.
18797         * tests/unictype/test-joiningtype_of.c: New file.
18798         * tests/unictype/test-joiningtype_of.h: New file, automatically
18799         generated by gen-uni-tables.
18800
18801         New module 'unictype/joiningtype-of'.
18802         * modules/unictype/joiningtype-of: New file.
18803         * lib/unictype/joiningtype_of.c: New file.
18804         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18805         gen-uni-tables.
18806
18807         Tests for module 'unictype/joiningtype-byname'.
18808         * modules/unictype/joiningtype-byname-tests: New file.
18809         * tests/unictype/test-joiningtype_byname.c: New file.
18810
18811         New module 'unictype/joiningtype-byname'.
18812         * modules/unictype/joiningtype-byname: New file.
18813         * lib/unictype/joiningtype_byname.c: New file.
18814
18815         Tests for module 'unictype/joiningtype-name'.
18816         * modules/unictype/joiningtype-name-tests: New file.
18817         * tests/unictype/test-joiningtype_name.c: New file.
18818
18819         New module 'unictype/joiningtype-name'.
18820         * modules/unictype/joiningtype-name: New file.
18821         * lib/unictype/joiningtype_name.c: New file.
18822
18823         unictype: Add support for Arabic shaping properties.
18824         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18825         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18826         declarations.
18827         (UC_JOINING_GROUP_*): New enumeration values.
18828         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18829         declarations.
18830         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18831         (unicode_joining_type): New variable.
18832         (UC_JOINING_GROUP_*): New enumeration values.
18833         (unicode_joining_group): New variable.
18834         (fill_arabicshaping, joining_type_as_c_identifier,
18835         output_joining_type_test, output_joining_type,
18836         joining_group_as_c_identifier, output_joining_group_test,
18837         output_joining_group): New functions.
18838         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18839         fill_arabicshaping and output_joining_type_test, output_joining_type,
18840         output_joining_group_test, output_joining_group.
18841         Reported by Simon Josefsson.
18842
18843 2011-03-21  Jim Meyering  <meyering@redhat.com>
18844
18845         strftime: fix a bug in yesterday's change
18846         * lib/strftime.c (add): Accommodate width's initial value of -1.
18847         Otherwise, nstrftime would copy uninitialized data into
18848         the result buffer.
18849
18850 2011-03-21  Jim Meyering  <meyering@redhat.com>
18851
18852         tests: add strftime-tests module
18853         * tests/test-strftime.c: New file.
18854         * modules/strftime-tests: New module.
18855
18856 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18857
18858         strftime: don't assume a byte count fits in 'int'
18859         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18860         found this problem by static analysis, using gcc -Wstrict-overflow
18861         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18862         on an integer overflow having undefined behavior, but it turns out
18863         that the argument is a size, which might not fit in 'int' anyway,
18864
18865 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18866
18867         stdio: don't require ignore_value around fwrite
18868
18869         This patch works around libc bug 11959
18870         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18871         Without this patch, applications must often write
18872         ignore_value (fwrite (...)) even though the ignore_value is
18873         not helpful here.  It's common to write many objects, using
18874         fwrite/printf/etc., and then use ferror to detect output error.
18875
18876         I considered making this patch optional, but decided against it,
18877         because libc is obviously being inconsistent here: there is no
18878         reason libc should insist that user code must inspect fwrite
18879         return's value without also insisting that it inspect printf's,
18880         putchar's, etc.  If user code wants to have a strict style where
18881         all these functions' values are checked (so that ferror need not
18882         be checked), we could add support for that style in a new gnulib
18883         module, but in the meantime it's better to be consistent and to
18884         support common usage.
18885
18886         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18887         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18888         that we are compiling in checking mode, and if not C++, and
18889         if not already wrapping fwrite for some other reason.
18890         (fwrite): #define to rpl_fwrite if the latter is defined.
18891
18892 2011-03-20  Bruno Haible  <bruno@clisp.org>
18893
18894         verror: Fix compilation error introduced on 2011-02-13.
18895         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18896         instead of __attribute__.
18897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18898
18899 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18900             Bruno Haible  <bruno@clisp.org>
18901
18902         socklen: do not depend on sys_socket
18903         While trying to modify Emacs to use gnulib's socklen module,
18904         I discovered a circular dependency: socklen depends on sys_socket
18905         and vice versa.  Emacs can use socklen, but it does not need
18906         sys_socket because it has its own substitute for sys/socket.h.
18907         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18908         gl_TYPE_SOCKLEN_T.
18909         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18910         gl_PREREQ_SYS_H_SOCKET.
18911         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18912         gl_PREREQ_SYS_H_SOCKET.
18913         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18914         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18915         * modules/socklen (Depends-on): Do not depend on sys_socket.
18916         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18917
18918 2011-03-20  Jim Meyering  <meyering@redhat.com>
18919
18920         maint.mk: sort file names *after* new transformation
18921         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18922         prefix would have led to an unwarranted failure in GNU parted.
18923         Sort after that transformation.
18924
18925 2011-03-19  Jim Meyering  <meyering@redhat.com>
18926
18927         maint.mk: fix po-file syntax-check rule
18928         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18929         Patch by Bruno Haible.
18930
18931 2011-03-19  Bruno Haible  <bruno@clisp.org>
18932
18933         socklen: Update comment.
18934         * m4/socklen.m4: Update comment about platforms.
18935
18936 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18937             Bruno Haible  <bruno@clisp.org>
18938
18939         inet_ntop, inet_pton: Simplify.
18940         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18941         documented to provide socklen_t and we already depend on sys_socket.
18942         * modules/inet_pton (Depends-on): Likewise.
18943         * lib/arpa_inet.in.h: Adjust comment.
18944
18945 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18946             Bruno Haible  <bruno@clisp.org>
18947
18948         netdb: Simplify.
18949         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18950         documented to provide socklen_t and we already depend on sys_socket.
18951         * lib/netdb.in.h: Adjust comment.
18952
18953 2011-03-19  Bruno Haible  <bruno@clisp.org>
18954
18955         sys_socket, netdb: Document problem with socklen_t.
18956         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18957         platforms.
18958         * doc/posix-headers/netdb.texi: Likewise.
18959
18960 2011-03-18  Eric Blake  <eblake@redhat.com>
18961
18962         maint.mk: let po check work in VPATH build
18963         * top/maint.mk (po_file): Allow cfg.mk override.
18964         (sc_po_check): Allow VPATH use.
18965         Reported by Jiri Denemark.
18966
18967 2011-03-16  Jim Meyering  <meyering@redhat.com>
18968
18969         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18970         Before, you would have had to create one .x-sc_ file per rule in order
18971         to exempt offending files.  Now, you may instead use a Make variable --
18972         usually defined in cfg.mk -- whose name identifies the affected rule.
18973         * top/maint.mk (_sc_excl): Define.
18974         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18975         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18976
18977 2011-03-13  Bruno Haible  <bruno@clisp.org>
18978
18979         ignore-value tests: Avoid warnings.
18980         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18981         empty for gcc < 3.4.
18982
18983 2011-03-13  Bruno Haible  <bruno@clisp.org>
18984
18985         passfd: Fix link error on Solaris.
18986         * modules/passfd (Description): Correct.
18987         (Depends-on): Add socketlib.
18988         (Link): New section.
18989         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18990
18991 2011-03-13  Bruno Haible  <bruno@clisp.org>
18992
18993         passfd: Fix link error on AIX 5.2.
18994         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18995
18996 2011-03-13  Bruno Haible  <bruno@clisp.org>
18997
18998         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18999         * lib/sys_socket.in.h: Include <stddef.h>.
19000         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19001         CMSG_FIRSTHDR. Remove unused variable.
19002
19003 2011-03-13  Bruno Haible  <bruno@clisp.org>
19004
19005         passfd: Fix compilation error on OpenBSD.
19006         * lib/passfd.c: Include <sys/uio.h>.
19007
19008 2011-03-13  Bruno Haible  <bruno@clisp.org>
19009
19010         passfd test: Fix warnings.
19011         * tests/test-passfd.c: Include <sys/wait.h>.
19012         (main): Fix typo.
19013
19014 2011-03-13  Bruno Haible  <bruno@clisp.org>
19015
19016         passfd module, part 4, tweaks.
19017         * tests/test-passfd.c: Reorder includes.
19018         (main): Fix perror and printf calls.
19019
19020 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19021
19022         passfd module, part 4.
19023         * modules/passfd-tests: New file.
19024         * tests/test-passfd.c: New file.
19025
19026 2011-03-13  Jim Meyering  <meyering@redhat.com>
19027
19028         Makefile: rely on GNU make; derive syntax-check rule names
19029         Rather than requiring that each sc_ rule be listed as a dependent
19030         of "check", use features of GNU make to derive the list.
19031         * Makefile (syntax-check-rules): Define.
19032         (check): Depend on the new variable, not the hard-coded list.
19033
19034 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19035             Bruno Haible  <bruno@clisp.org>
19036
19037         passfd module, part 3.
19038         * lib/passfd.h (recvfd): Add a flags argument.
19039         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19040         (recvfd): Add a flags argument.
19041         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19042         exists.
19043         * modules/passfd (Depends-on): Add cloexec.
19044         Suggested by Eric Blake.
19045
19046 2011-03-13  Bruno Haible  <bruno@clisp.org>
19047
19048         passfd module, part 2, tweaks.
19049         * modules/passfd (Files): Reorder.
19050         (Depends-on): Remove errno.
19051         (Include): Remove <sys/socket.h>, <sys/un.h>.
19052         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19053         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19054         specification header. Include <sys/socket.h> always. Don't include
19055         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19056         (sendfd): Clarify that it sets errno when it fails.
19057         (recvfd): Fix specification.
19058
19059 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19060
19061         passfd module, part 2.
19062         * modules/passfd: New file.
19063         * lib/passfd.h: New file.
19064         * lib/passfd.c: New file.
19065
19066 2011-03-12  Bruno Haible  <bruno@clisp.org>
19067
19068         wcswidth, mbswidth: Avoid integer overflow.
19069         * lib/wcswidth.c: Include <limits.h>.
19070         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19071         * lib/mbswidth.c: Include <limits.h>.
19072         (mbsnwidth): Avoid 'int' overflow.
19073         Reported by Jim Meyering.
19074
19075 2011-03-12  Bruno Haible  <bruno@clisp.org>
19076
19077         futimens, utimensat: Avoid endless recursion on Solaris 10.
19078         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19079         Solaris.
19080         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19081         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19082
19083 2011-03-11  Jim Meyering  <meyering@redhat.com>
19084
19085         maint.mk: relax a regexp to accommodate other formatting styles
19086         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19087         between "ngettext" and the following "(".
19088
19089 2011-03-11  Pádraig Brady <P@draigBrady.com>
19090
19091         maint.mk: suppress a false positive warning
19092         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19093         diagnostics are marked with ngettext.
19094
19095 2011-03-10  Eric Blake  <eblake@redhat.com>
19096
19097         wchar: add explicit dependencies, for Tru64
19098         * modules/mbmemcasecoll (Depends-on): Add wchar.
19099         * modules/mbtowc (Depends-on): Likewise.
19100         * modules/vasnprintf (Depends-on): Likewise.
19101         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19102         * modules/wctomb (Depends-on): Likewise.
19103         Reported by Peter O'Gorman.
19104
19105 2011-03-08  Bruno Haible  <bruno@clisp.org>
19106
19107         passfd module, part 1, tweaks.
19108         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19109         Improve indentation. Improve AC_MSG_CHECKING messages.
19110         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19111         gl_SOCKET_FAMILIES.
19112
19113 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19114
19115         passfd module, part 1.
19116         * m4/afunix.m4: New file.
19117         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19118         sockets.
19119
19120 2011-03-08  Bruno Haible  <bruno@clisp.org>
19121
19122         regex-quote: New API.
19123         * lib/regex-quote.h: Include <stdbool.h>.
19124         (struct regex_quote_spec): New type.
19125         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19126         New declarations.
19127         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19128         'const struct regex_quote_spec *' argument.
19129         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19130         (pcre_special): New constant.
19131         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19132         New functions.
19133         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19134         'const struct regex_quote_spec *' argument.
19135         * modules/regex-quote (Depends-on): Add stdbool.
19136         * tests/test-regex-quote.c (check): Update for new API. Add test for
19137         anchored results.
19138         * NEWS: Mention the API change.
19139         Reported by Reuben Thomas and Eric Blake.
19140
19141 2011-03-06  Bruno Haible  <bruno@clisp.org>
19142
19143         regex-quote: Fix creation of POSIX extended regular expressions.
19144         * lib/regex-quote.c (ere_special): Add grouping and alternation
19145         operators.
19146
19147 2011-03-05  Bruno Haible  <bruno@clisp.org>
19148
19149         doc: Improve doc regarding autopoint vs. gnulib.
19150         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19151         disable autopoint while running autoreconf.
19152         Suggested by Ralf Wildenhues.
19153
19154 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19155
19156         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19157         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19158
19159 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19160
19161         parse-duration: remove xalloc.h dependency
19162         * lib/parse-duration.c (parse_period): handle NULL return from
19163         strdup instead of calling xstrdup().
19164         * modules/parse-duration: remove "xalloc" dependency
19165
19166 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19167
19168         bootstrap: honor m4_base when running aclocal
19169         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19170
19171 2011-03-02  Jim Meyering  <meyering@redhat.com>
19172
19173         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19174         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19175         on request from Matt Booth.
19176
19177 2011-03-01  Eric Blake  <eblake@redhat.com>
19178
19179         test-link: work on Hurd
19180         * tests/test-link.h (test_link): Hurd rejects linking directories
19181         with EISDIR instead of the POSIX-mandated EPERM.
19182
19183 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19184
19185         stdio: simplify by moving files to printf-posix, sigpipe
19186         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19187         since this symbol is needed only if printf is replaced.
19188         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19189         Require gl_ASM_SYMBOL_PREFIX.
19190         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19191         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19192         (Depends-on): Add 'raise'.
19193         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19194         * modules/stdio (Files): Remove lib/stdio-write.c,
19195         m4/asm-underscore.m4.
19196         (Depends-on): Remove 'raise'.
19197
19198         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19199         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19200         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19201         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19202
19203 2011-02-28  Bruno Haible  <bruno@clisp.org>
19204
19205         localcharset: Assume ANSI C behaviour of free().
19206         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19207         calling free().
19208         Suggested by Simon Josefsson <simon@josefsson.org>.
19209
19210 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19211             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19212             Bruno Haible  <bruno@clisp.org>  (tiny change)
19213
19214         On Cygwin, use /proc file system instead of win32 API.
19215         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19216         Win32 file names.
19217         (DllMain): Simplify by removing Cygwin specific code.
19218         (find_shared_library_fullname): Use Linux specific implementation also
19219         for Cygwin.
19220         (get_shared_library_fullname): Update accordingly.
19221         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19222         Win32 file names.
19223         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19224         Cygwin specific code.
19225
19226 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19227             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19228
19229         Fix OpenMP flag detection for various Fortran compilers.
19230         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19231         OpenMP-conditional compilation construct, to force compile
19232         failure with missing OpenMP flag.
19233         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19234
19235 2011-02-25  Eric Blake  <eblake@redhat.com>
19236
19237         strstr: expand test coverage
19238         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19239         compilation.
19240         * tests/test-memmem.c (main): Duplicate tests.
19241         * tests/test-strcasestr.c (main): Likewise.
19242         * tests/test-c-strcasestr.c (main): Likewise.
19243
19244 2011-02-25  Jim Meyering  <meyering@redhat.com>
19245
19246         maint.mk: detect missing-NL-at-EOF, too
19247         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19248         it also detects when a file lacks a newline at EOF.
19249         (require_exactly_one_NL_at_EOF_): Renamed from
19250         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19251         since people may well have .x-sc_... file names tied to the
19252         existing name.  Suggested by Eric Blake.
19253
19254 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19255
19256         dirname: move m4/dos.m4 functionality into lib/dosname.h
19257
19258         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19259         extracts symbols from it, puts them into config.h; but it's much
19260         easier to use the symbols directly.  filename.h already does this,
19261         but it disagrees with dos.m4 in some respects.  This patch
19262         introduces a different include file dosname.h that packages up
19263         dos.m4, and then later we can work on merging filename.h and
19264         dosname.h.  Applications that need only the easy-to-configure
19265         symbols should consider including dosname.h rather than dirname.h.
19266         * NEWS: Mention incompatible changes.
19267         * m4/dos.m4: Remove.
19268         * lib/dosname.h, modules/dosname: New files.
19269         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19270         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19271         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19272         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19273         Include dosname.h, not dirname.h.
19274         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19275         Include dosname.h, for definitions of symbols like ISSLASH
19276         that used to be in config.h.
19277         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19278         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19279         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19280         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19281         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19282         * modules/rmdir (Files): Likewise.
19283         * modules/stat (Files): Likewise.
19284         * modules/unlink (Files): Likewise.
19285         * modules/dirname-lgpl (Depends-on): Add dosname.
19286         * modules/lstat (Depends-on): Likewise.
19287         * modules/openat (Depends-on): Likewise.
19288         * modules/rmdir (Depends-on): Likewise.
19289         * modules/savewd (Depends-on): Likewise.
19290         * modules/stat (Depends-on): Likewise.
19291         * modules/unlink (Depends-on): Likewise.
19292         * modules/openat (Depends-on): Remove dirname-lgpl.
19293         * modules/savewd (Depends-on): Likewise.
19294         * tests/test-dirname.c: Do not use removed symbols like
19295         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19296         the remaining symbols, e.g., ISSLASH ('\\').
19297
19298 2011-02-25  Eric Blake  <eblake@redhat.com>
19299
19300         strstr: revert patches that introduced bug and pessimization
19301         * lib/str-two-way.h: Add another reference.
19302         (two_way_short_needle, two_way_long_needle): Revert changes from
19303         2011-02-24; they pessimize search speed.
19304         (critical_factorization): Partially revert changes from
19305         2010-06-22; they violate the requirement that the left half of the
19306         needle be smaller than the period of the needle.
19307
19308 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19309
19310         filenamecat: remove unnecessary dependency on dirname-lgpl
19311         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19312         is no direct dependency, just an indirect one via filenamecat-lgpl.
19313
19314         remove: remove unnecessary use of m4/dos.m4
19315         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19316         * modules/remove (FILES): Remove m4/dos.m4.
19317
19318         * lib/openat-proc.c: Don't include dirname.h; not needed.
19319
19320         backupfile: remove unnecessary use of m4/dos.m4
19321         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19322         of its symbols are used by the backupfile code.  backupfile.c does
19323         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19324         for the rare case of programs that want all their backup file
19325         names to live within 8+3 limits, and dos.m4 doesn't address that.
19326         * modules/backupfile (Files): Remove m4/dos.m4.
19327
19328 2011-02-24  Jim Meyering  <meyering@redhat.com>
19329
19330         strstr: fix a bug whereby strstr would mistakenly return NULL
19331         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19332         in period calculation.
19333         (two_way_long_needle): Likewise.
19334         The original problem was reported by Mike Stump in
19335         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19336         Ralf Wildenhues provided the short needle and haystack.
19337         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19338         Add a more involved test to trigger the bug in two_way_long_needle.
19339
19340 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19341
19342         gnulib-tool: remove use of bold display in help screen
19343         * gnulib-tool (func_usage): Do not use bold display anymore in the
19344         help screen.  That was just meant to be a temporary emphasis for a
19345         backward-incompatible change.
19346
19347 2011-02-23  Bruno Haible  <bruno@clisp.org>
19348
19349         Fix misindentation of preprocessor directives.
19350         * lib/argp-namefrob.h: Reindent preprocessor directives.
19351         * lib/getopt_int.h (struct _getopt_data): Likewise.
19352         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19353         * lib/vasnprintf.c (decode_long_double): Likewise.
19354         * tests/test-argmatch.c: Insert blank lines, for clarity.
19355         * tests/test-exclude.c: Likewise.
19356
19357 2011-02-22  Bruno Haible  <bruno@clisp.org>
19358
19359         ioctl: Fix for MacOS X in 64-bit mode.
19360         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19361         value.
19362         Suggested by Eric Blake.
19363         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19364
19365 2011-02-22  Jim Meyering  <meyering@redhat.com>
19366
19367         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19368         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19369         in lib/.
19370
19371 2011-02-22  Eric Blake  <eblake@redhat.com>
19372
19373         maint: avoid any CDPATH issue
19374         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19375
19376         maint: adjust cpp indentation for my modules, as well
19377         * Makefile (sc_cpp_indent_check): Add my name.
19378         * lib/fbufmode.c: Filter through cppi.
19379         * lib/fpurge.c: Likewise.
19380         * lib/freadable.c: Likewise.
19381         * lib/freading.c: Likewise.
19382         * lib/fwritable.c: Likewise.
19383         * lib/fwriting.c: Likewise.
19384         * lib/sigaction.c: Likewise.
19385
19386 2011-02-22  Jim Meyering  <meyering@redhat.com>
19387
19388         maint: adjust cpp indentation to reflect nesting depth
19389         I.e., in a block of code that begins with an unnested "#if",
19390         put one space between the "#" in column 1 and following token.
19391         For example,
19392         -#include <sys/vfs.h>
19393         +# include <sys/vfs.h>
19394         Do this only in .c files that are part of a module I maintain.
19395         * lib/linkat.c: Filter through cppi.
19396         * lib/nanosleep.c: Likewise.
19397         * lib/openat.c: Likewise.
19398         * lib/openat-die.c: Likewise.
19399         * lib/dup3.c: Likewise.
19400         * lib/fchownat.c: Likewise.
19401         * lib/flock.c: Likewise.
19402         * lib/fsync.c: Likewise.
19403         * lib/fts.c: Likewise.
19404         * lib/getpass.c: Likewise.
19405         * lib/gettimeofday.c: Likewise.
19406         * lib/userspec.c: Likewise.
19407         * Makefile (sc_cpp_indent_check): New rule, to check this.
19408
19409 2011-02-22  Bruno Haible  <bruno@clisp.org>
19410
19411         New module 'wctomb'.
19412         * lib/stdlib.in.h (wctomb): New declaration.
19413         * lib/wctomb.c: New file.
19414         * lib/wctomb-impl.h: New file.
19415         * m4/wctomb.m4: New file.
19416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19417         REPLACE_WCTOMB.
19418         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19419         REPLACE_WCTOMB.
19420         * modules/wctomb: New file.
19421         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19422         * doc/posix-functions/wctomb.texi: Mention the new module.
19423         * modules/wctob (Depends-on): Add wctomb.
19424
19425 2011-02-22  Bruno Haible  <bruno@clisp.org>
19426
19427         New module 'mbtowc'.
19428         * lib/stdlib.in.h (mbtowc): New declaration.
19429         * lib/mbtowc.c: New file.
19430         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19431         * m4/mbtowc.m4: New file.
19432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19433         REPLACE_MBTOWC.
19434         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19435         REPLACE_MBTOWC.
19436         * modules/mbtowc: New file.
19437         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19438         * doc/posix-functions/mbtowc.texi: Mention the new module.
19439         * modules/btowc (Depends-on): Add mbtowc.
19440
19441 2011-02-22  Bruno Haible  <bruno@clisp.org>
19442
19443         wcrtomb: Add more tests for native Windows platforms.
19444         * tests/test-wcrtomb-w32-1.sh: New file.
19445         * tests/test-wcrtomb-w32-2.sh: New file.
19446         * tests/test-wcrtomb-w32-3.sh: New file.
19447         * tests/test-wcrtomb-w32-4.sh: New file.
19448         * tests/test-wcrtomb-w32-5.sh: New file.
19449         * tests/test-wcrtomb-w32.c: New file.
19450         * modules/wcrtomb-tests (Files): Add them.
19451         (Makefile.am): Arrange to run these tests.
19452         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19453         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19454
19455 2011-02-20  Bruno Haible  <bruno@clisp.org>
19456
19457         wcrtomb: Enhance test.
19458         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19459
19460 2011-02-20  Bruno Haible  <bruno@clisp.org>
19461
19462         mbrtowc: Tiny optimization.
19463         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19464
19465 2011-02-20  Jim Meyering  <meyering@redhat.com>
19466
19467         test-exclude.c: remove unmatched #endif
19468         * tests/test-exclude.c: Remove stray #endif, left over from
19469         the change of a week ago.
19470
19471 2011-02-19  Jim Meyering  <meyering@redhat.com>
19472
19473         git-version-gen: skip "-dirty" check when appropriate
19474         * build-aux/git-version-gen: Don't run any git commands when the
19475         version string comes from .tarball-version.  Prior to this, we
19476         would run git update-index --refresh even from a just-unpacked
19477         tarball directory, and that could affect a .git/ directory in a
19478         parent of the build directory.  Reported by Mike Frysinger.
19479
19480 2011-02-19  Bruno Haible  <bruno@clisp.org>
19481
19482         unictype/property-byname: Reduce the size of the 'data' segment.
19483         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19484
19485 2011-02-19  Bruno Haible  <bruno@clisp.org>
19486
19487         unictype/scripts: Reduce the size of the 'data' segment.
19488         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19489         '%pic'.
19490         * lib/unictype/scripts_byname.gperf: Regenerated.
19491
19492 2011-02-19  Bruno Haible  <bruno@clisp.org>
19493
19494         stdint: Update documentation.
19495         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19496
19497 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19498
19499         stdint: omit redundant check for wchar.h
19500         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19501         always tests whether wchar.h exists, so remove the now-redundant test.
19502
19503 2011-02-18  Bruno Haible  <bruno@clisp.org>
19504
19505         stdint: Cut dependency to module 'wchar'.
19506         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19507         include the necessary prerequisites.
19508         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19509         * modules/stdint (Depends-on): Remove wchar.
19510         (Makefile.am): Substitute HAVE_WCHAR_H.
19511         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19512
19513 2011-02-18  Eric Blake  <eblake@redhat.com>
19514
19515         longlong: skip, rather than fail, on cross-compilation
19516         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19517         when cross-compiling; regression from 2011-02-16.
19518
19519 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19520
19521         * NEWS: Mention 2011-02-08 change to stdlib.
19522
19523 2011-02-17  Bruno Haible  <bruno@clisp.org>
19524
19525         getloadavg: Add comments about platforms.
19526         * m4/getloadavg.m4: Add comment.
19527         * lib/getloadavg.c: Likewise.
19528
19529 2011-02-17  Bruno Haible  <bruno@clisp.org>
19530
19531         getloadavg: Fix link error on Solaris 2.6.
19532         * modules/getloadavg (Link): New section.
19533         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19534         linking test-getloadavg.
19535         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19536         getloadavg.
19537
19538 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19539
19540         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19541         It was 'int', but this doesn't match the IRIX 6.5 manual.
19542         Suggested by Bruno Haible in
19543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19544
19545 2011-02-17  Bruno Haible  <bruno@clisp.org>
19546
19547         havelib: Fix comments.
19548         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19549         change.
19550
19551 2011-02-17  Bruno Haible  <bruno@clisp.org>
19552
19553         havelib: Update config.rpath.
19554         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19555
19556 2011-02-17  Bruno Haible  <bruno@clisp.org>
19557
19558         getloadavg test: Add some plausibility checks.
19559         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19560         is improbable.
19561
19562 2011-02-16  Eric Blake  <eblake@redhat.com>
19563
19564         maintainer-makefile: make syntax-check a no-op from tarballs
19565         * top/maint.mk (no-vc-detected): New rule.
19566         (local-checks-available): Use it to avoid hanging if someone tries
19567         'make syntax-check' from a tarball.  Also append to any non-syntax
19568         checks already defined in cfg.mk.
19569
19570 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19571
19572         longlong: tune, particularly for common case of c99
19573
19574         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19575         or running anything if c99, or if unsigned long long int does not
19576         work.  In either case, we know the answer without further tests.
19577         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19578         it at most once, and use its results for both long long int and
19579         unsigned long long int.  This is more likely to be efficient in
19580         the common case where the program wants to check for both long
19581         long int and unsigned long long int.
19582         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19583         since the answer is already known.
19584
19585 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19586
19587         getloadavg: set errno
19588         * lib/getloadavg.c: Set errno when returning -1.  If no other
19589         error number looks appropriate, set it to ENOSYS if the getloadavg
19590         looks like it can't possibly ever work, ENOTSUP otherwise.
19591         Suggested by Bruno Haible in
19592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19593
19594         getloadavg: trim unused parts and speed up 'configure'
19595         * NEWS: Document this.
19596         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19597         always compiled if getloadavg is absent.
19598         Move test code to ...
19599         * tests/test-getloadavg.c: New file, containing previous
19600         contents of test from lib/getloadavg.c.  It also contains
19601         suggestions by Bruno Haible in
19602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19603         * modules/getloadavg-tests: New file.
19604         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19605         Do tests in the same order as they're needed for getloadavg.c.
19606         Omit setgid-related tests that generate symbols KMEM_GROUP,
19607         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19608         Do only the tests that are needed to see whether the system has
19609         getloadavg, moving the other tests into ...
19610         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19611         NLIST_NAME_UNION; nobody should be using it.  Do not define
19612         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19613         relevant, as the user of this module shouldn't care how getloadavg
19614         is implemented.
19615
19616         getloadavg: omit unused var
19617         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19618
19619 2011-02-15  Jim Meyering  <meyering@redhat.com>
19620
19621         doc: update users.txt
19622         * users.txt: Update iwhd's URL.
19623
19624 2011-02-13  Bruno Haible  <bruno@clisp.org>
19625
19626         Consistent macro naming for macros that use GCC __attribute__.
19627         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19628         _ATTRIBUTE_NONNULL_.
19629         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19630         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19631         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19632         ATTRIBUTE_DEPRECATED.
19633         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19634         ATTRIBUTE_NORETURN.
19635         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19636         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19637         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19638         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19639         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19640         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19641         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19642         ATTRIBUTE_SENTINEL.
19643         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19644         ATTRIBUTE_RETURN_CHECK.
19645         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19646         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19647         ATTRIBUTE_NORETURN.
19648         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19649         Reported by Paul Eggert.
19650
19651 2011-02-13  Bruno Haible  <bruno@clisp.org>
19652
19653         Don't interfere with a program's definition of __attribute__.
19654         * lib/argp.h (__attribute__): Remove definition.
19655         (_GL_ATTRIBUTE_FORMAT): New macro.
19656         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19657         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19658         (_GL_ATTRIBUTE_FORMAT): New macro.
19659         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19660         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19661         GCC 3 or newer.
19662         * lib/error.h (__attribute__): Remove definition.
19663         (_GL_ATTRIBUTE_FORMAT): New macro.
19664         (error, error_at_line): Use it.
19665         * lib/hash.h (__attribute__): Remove definition.
19666         (ATTRIBUTE_WUR): Update definition. Define always.
19667         * lib/openat.h (__attribute__): Remove definition.
19668         (ATTRIBUTE_NORETURN): Update definition. Define always.
19669         * lib/sigpipe-die.h (__attribute__): Remove definition.
19670         (ATTRIBUTE_NORETURN): Update definition. Define always.
19671         * lib/vasnprintf.h (__attribute__): Remove definition.
19672         (_GL_ATTRIBUTE_FORMAT): New macro.
19673         (asnprintf, vasnprintf): Use it.
19674         * lib/xalloc.h (__attribute__): Remove definition.
19675         (ATTRIBUTE_NORETURN): Update definition. Define always.
19676         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19677         * lib/xmemdup0.h (__attribute__): Remove definition.
19678         (ATTRIBUTE_NORETURN): Update definition. Define always.
19679         * lib/xprintf.h (__attribute__): Remove definition.
19680         (_GL_ATTRIBUTE_FORMAT): New macro.
19681         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19682         * lib/xstrtol.h (__attribute__): Remove definition.
19683         (ATTRIBUTE_NORETURN): Update definition. Define always.
19684         * lib/xvasprintf.h (__attribute__): Remove definition.
19685         (_GL_ATTRIBUTE_FORMAT): New macro.
19686         (xasprintf, xvasprintf): Use it.
19687         * tests/test-argmatch.c (__attribute__): Remove definition.
19688         (ATTRIBUTE_NORETURN): Update definition. Define always.
19689         * tests/test-exclude.c (__attribute__): Remove definition.
19690         (ATTRIBUTE_NORETURN): Update definition. Define always.
19691         Reported by Paul Eggert.
19692
19693 2011-02-13  Bruno Haible  <bruno@clisp.org>
19694
19695         mbrtowc: Add more tests for native Windows platforms.
19696         * tests/test-mbrtowc-w32-1.sh: New file.
19697         * tests/test-mbrtowc-w32-2.sh: New file.
19698         * tests/test-mbrtowc-w32-3.sh: New file.
19699         * tests/test-mbrtowc-w32-4.sh: New file.
19700         * tests/test-mbrtowc-w32-5.sh: New file.
19701         * tests/test-mbrtowc-w32.c: New file.
19702         * modules/mbrtowc-tests (Files): Add them.
19703         (Makefile.am): Arrange to run these tests.
19704         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19705         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19706
19707 2011-02-13  Bruno Haible  <bruno@clisp.org>
19708
19709         mbrtowc: Work around native Windows bug.
19710         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19711         guess when no suitable locale for testing was found.
19712         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19713
19714 2011-02-13  Bruno Haible  <bruno@clisp.org>
19715
19716         mbsinit: Work around mingw bug.
19717         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19718         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19719         Windows.
19720         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19721
19722 2011-02-13  Bruno Haible  <bruno@clisp.org>
19723
19724         mbsinit: Don't crash for a NULL argument.
19725         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19726         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19727
19728 2011-02-13  Bruno Haible  <bruno@clisp.org>
19729
19730         Don't interfere with a program's definition of __attribute__.
19731         * lib/stdio.in.h (__attribute__): Remove definition.
19732         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19733         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19734         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19735         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19736         * lib/string.in.h (__attribute__): Remove definition.
19737         Reported by Paul Eggert.
19738
19739 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19740
19741         stdlib: don't get in the way of non-GCC __attribute__
19742         See thread starting at
19743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19744         Revert previous stdlib change, installing the following instead:
19745         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19746         to get in the way of a non-GCC compiler that supports __attribute__.
19747         (_GL_ATTRIBUTE_RETURN): New macro.
19748         (_Exit): Use it instead of __attribute__.
19749
19750 2011-02-12  Bruno Haible  <bruno@clisp.org>
19751
19752         quotearg test: Avoid test failure on mingw.
19753         * tests/test-quotearg.sh: Convert the locale identifier from native
19754         Windows syntax to Unix syntax.
19755
19756 2011-02-12  Bruno Haible  <bruno@clisp.org>
19757
19758         setlocale: Prefer gnulib's override over libintl's override.
19759         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19760         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19761         GNULIB_defined_setlocale is set.
19762
19763 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19764
19765         stdlib: support non-GCC __attribute__
19766
19767         Fix a serious and tricky problem encountered when attempting to
19768         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19769         5.5, but it crashed due to memory corruption on Solaris 10 with
19770         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19771         bits that are otherwise zero.  This tagging is optional inside
19772         Emacs but is preferred and is used when __attribute__ ((__aligned
19773         (8))) works, as it does with both recent-enough GCC and with Sun C
19774         5.11.  However, Sun C 5.11 is not GCC and does not #define
19775         __GNUC__ and __GNUC_MINOR__.
19776
19777         When I added the getloadavg module to Emacs, it brought in
19778         stdlib.in.h, which contained this fragment:
19779
19780            #ifndef __attribute__
19781            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19782            #  define __attribute__(Spec)   /* empty */
19783            # endif
19784            #endif
19785
19786         When files that include <stdlib.h> were compiled with Sun C 5.11,
19787         the above code disabled __attribute__ ((__aligned (8))), which
19788         caused variables to not be properly aligned, which eventually led
19789         to the pointer corruption mentioned above.  (This was a bit hard
19790         to diagnose, unfortunately.)
19791
19792         Several "#define __attribute__(X) /* empty */" code snippets need
19793         to be eradicated from Gnulib to work with non-GCC compilers that
19794         support __attribute__.  The Autoconf way to do this is to test for
19795         each kind of attribute that we want support for, and selectively
19796         enable that in source code.
19797
19798         Fix this problem just for stdlib.h, by adding a test for the
19799         __noreturn__ attribute, and change stdlib.in.h to use that test
19800         when needed.  This technique can be easily generalized to the
19801         other *.in.h files and attributes, and a similar technique can be
19802         used for *.h and *.c files.  This patch is enough to solve the
19803         problem for Emacs + getloadavg, and I thought I'd publish it for
19804         feedback before undertaking further, similar fixes in other
19805         modules.
19806
19807         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19808         because it's not needed for stdlib.h.  It merely substitutes the
19809         value directly into stdlib.h.  We may well need to #define it, or
19810         similar symbols, for other modules, but it's nice to also have an
19811         option to not #define it for applications like Emacs that do not
19812         need it.
19813
19814         * lib/stdlib.in.h (__attribute__): Do not #define.
19815         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19816         be defined only if the _Exit module is also used.
19817         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19819         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19820         platforms.
19821         * modules/_Exit (Files): Add m4/attribute.m4.
19822         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19823         * m4/attribute.m4: New file.
19824
19825 2011-02-12  Bruno Haible  <bruno@clisp.org>
19826
19827         wcsrtombs: Work around bug on native Windows.
19828         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19829         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19830         instead of len.
19831         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19832
19833 2011-02-12  Bruno Haible  <bruno@clisp.org>
19834
19835         mbsrtowcs: Work around bug on native Windows.
19836         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19837         against mingw bug.
19838         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19839
19840 2011-02-12  Bruno Haible  <bruno@clisp.org>
19841
19842         Avoid setlocale bugs in tests.
19843         * modules/btowc (Dependencies): Add setlocale.
19844         * modules/c-strcase (Dependencies): Likewise.
19845         * modules/mbmemcasecmp (Dependencies): Likewise.
19846         * modules/mbmemcasecoll (Dependencies): Likewise.
19847         * modules/mbrtowc (Dependencies): Likewise.
19848         * modules/mbscasecmp (Dependencies): Likewise.
19849         * modules/mbscasestr (Dependencies): Likewise.
19850         * modules/mbschr (Dependencies): Likewise.
19851         * modules/mbscspn (Dependencies): Likewise.
19852         * modules/mbsinit (Dependencies): Likewise.
19853         * modules/mbsncasecmp (Dependencies): Likewise.
19854         * modules/mbsnrtowcs (Dependencies): Likewise.
19855         * modules/mbspbrk (Dependencies): Likewise.
19856         * modules/mbspcasecmp (Dependencies): Likewise.
19857         * modules/mbsrchr (Dependencies): Likewise.
19858         * modules/mbsrtowcs (Dependencies): Likewise.
19859         * modules/mbsspn (Dependencies): Likewise.
19860         * modules/mbsstr (Dependencies): Likewise.
19861         * modules/nl_langinfo (Dependencies): Likewise.
19862         * modules/quotearg (Dependencies): Likewise.
19863         * modules/unicase/locale-language (Dependencies): Likewise.
19864         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19865         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19866         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19867         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19868         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19869         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19870         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19871         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19872         * modules/vasnprintf-posix (Dependencies): Likewise.
19873         * modules/wcrtomb (Dependencies): Likewise.
19874         * modules/wcsnrtombs (Dependencies): Likewise.
19875         * modules/wcsrtombs (Dependencies): Likewise.
19876
19877 2011-02-12  Bruno Haible  <bruno@clisp.org>
19878
19879         setlocale: Workaround native Windows bug.
19880         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19881         succeeds but sets LC_CTYPE to "C", report a failure.
19882         * tests/test-setlocale2.sh: New file.
19883         * tests/test-setlocale2.c: New file.
19884         * modules/setlocale-tests (Files): Add the new files.
19885         (Makefile.am): Enable test-setlocale2.sh test.
19886         * doc/posix-functions/setlocale.texi: Mention workaround.
19887
19888 2011-02-11  Bruno Haible  <bruno@clisp.org>
19889
19890         Tests for module 'setlocale'.
19891         * modules/setlocale-tests: New file.
19892         * tests/test-setlocale1.sh: New file.
19893         * tests/test-setlocale1.c: New file.
19894
19895         New module 'setlocale'.
19896         * lib/locale.in.h (setlocale): New declaration.
19897         * lib/setlocale.c: New file, based on
19898         gettext/gettext-runtime/intl/setlocale.c.
19899         * m4/setlocale.m4: New file.
19900         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19901         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19902         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19903         REPLACE_SETLOCALE.
19904         * modules/setlocale: New file.
19905         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19906         * doc/posix-functions/setlocale.texi: Mention the new module.
19907
19908 2011-02-11  Bruno Haible  <bruno@clisp.org>
19909
19910         Prepare for locale dependent tests on mingw.
19911         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19912         because it has the wrong locale encoding.
19913         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19914         French_France.1252 instead of "fr".
19915         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19916         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19917         because it has the wrong locale encoding.
19918         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19919         native Windows, try Turkish_Turkey.65001.
19920         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19921         Chinese_China.54936.
19922
19923         Prepare for locale dependent tests on mingw.
19924         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19925         differently.
19926         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19927         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19928         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19929         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19930
19931 2011-02-11  Eric Blake  <eblake@redhat.com>
19932
19933         strptime: avoid compiler warnings
19934         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19935         compiler warnings about dead code.
19936         Reported by Daniel P. Berrange.
19937
19938 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19939
19940         doc: update users.txt
19941         * users.txt: Add rcs.
19942
19943 2011-02-10  John W. Eaton  <jwe@gnu.org>
19944
19945         doc: update users.txt
19946         * users.txt: Add octave.
19947
19948 2011-02-10  Jim Meyering  <meyering@redhat.com>
19949
19950         doc: update users.txt
19951         * users.txt: Add iwhd.
19952
19953 2011-02-09  Bruno Haible  <bruno@clisp.org>
19954
19955         gnulib-tool: Make copyright notice adjustment more robust.
19956         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19957         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19958         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19959         License".
19960         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19961
19962 2011-02-06  Bruno Haible  <bruno@clisp.org>
19963
19964         New module 'towctrans'.
19965         * modules/towctrans: New file.
19966         * lib/wctype.in.h (towctrans): New declaration.
19967         * lib/towctrans.c: New file.
19968         * lib/towctrans-impl.h: New file.
19969         * m4/towctrans.m4: New file.
19970         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19971         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19972         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19973         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19974         * doc/posix-functions/towctrans.texi: Mention the new module.
19975
19976 2011-02-06  Bruno Haible  <bruno@clisp.org>
19977
19978         New module 'wctrans'.
19979         * modules/wctrans: New file.
19980         * lib/wctype.in.h (wctrans): New declaration.
19981         * lib/wctrans.c: New file.
19982         * lib/wctrans-impl.h: New file.
19983         * m4/wctrans.m4: New file.
19984         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19985         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19986         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19987         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19988         * doc/posix-functions/wctrans.texi: Mention the new module.
19989
19990 2011-02-06  Bruno Haible  <bruno@clisp.org>
19991
19992         New module 'iswctype'.
19993         * modules/iswctype: New file.
19994         * lib/wctype.in.h (iswctype): New declaration.
19995         * lib/iswctype.c: New file.
19996         * lib/iswctype-impl.h: New file.
19997         * m4/iswctype.m4: New file.
19998         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19999         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20000         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20001         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20002         * doc/posix-functions/iswctype.texi: Mention the new module and the
20003         HP-UX 11.00 problem.
20004
20005 2011-02-06  Bruno Haible  <bruno@clisp.org>
20006
20007         New module 'wctype'.
20008         * modules/wctype: Change to represent the wctype() substitute.
20009         * lib/wctype.in.h (wctype): New declaration.
20010         * lib/wctype.c: New file.
20011         * lib/wctype-impl.h: New file.
20012         * m4/wctype.m4: New file.
20013         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20014         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20015         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20016         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20017         * doc/posix-functions/wctype.texi: Mention the new module and the
20018         HP-UX 11.00 problem.
20019
20020 2011-02-06  Bruno Haible  <bruno@clisp.org>
20021
20022         wctype-h: Ensure wctype_t and wctrans_t are defined.
20023         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20024         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20025         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20026         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20027         HAVE_WCTRANS_T.
20028         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20029
20030 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20031
20032         flock: fix license typo
20033
20034         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20035         omitted.
20036
20037 2011-02-08  Bruno Haible  <bruno@clisp.org>
20038
20039         Split large sed scripts, for HP-UX sed.
20040         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20041         to avoid HP-UX limit of 99 commands, in the near future.
20042         * modules/stdlib (Makefile.am): Likewise.
20043         * modules/unistd (Makefile.am): Likewise.
20044         * modules/wchar (Makefile.am): Likewise.
20045         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20046         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20047         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20048
20049 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20050             Bruno Haible  <bruno@clisp.org>
20051
20052         stdlib: improve random_r modularization
20053         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20054         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20055         you also need the random_r module to get this material right.
20056         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20057         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20058         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20059
20060 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20061
20062         stdlib: don't depend on stdint
20063         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20064         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20065         be independent of whether stdint.h is needed.
20066         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20067         here, instead of ...
20068         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20069         struct random_data should be using the random_r module, not just
20070         the stdlib module (which wouldn't make sense: what package needs
20071         just struct random_data without also needing random_r?).
20072         * modules/stdlib (Depends-on): Remove stdint.
20073
20074         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20075         See the thread rooted at
20076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20077         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20078         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20079         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20080         __VMS)); previously it was always included (via fcntl--.h).
20081         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20082         hand; this is good enough for load averages.  Also, do not use
20083         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20084         flags directly if available and don't bother otherwise.  (Packages
20085         that need the extra reliability should use the modules that define
20086         these flags on older platforms that lack them.)
20087         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20088         fcntl-safer.
20089
20090 2011-02-08  Jim Meyering  <meyering@redhat.com>
20091
20092         di-set.h, ino-map.h: add multiple-inclusion guard
20093         Technically, the guard is required only for ino-map.h, due to its
20094         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20095         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20096         * lib/ino-map.h: Likewise.
20097
20098 2011-02-06  Bruno Haible  <bruno@clisp.org>
20099
20100         iswblank: Ensure declaration on glibc systems.
20101         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20102         * modules/iswblank (Dependencies): Add 'extensions'.
20103         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20104
20105 2011-02-06  Bruno Haible  <bruno@clisp.org>
20106
20107         New module 'iswblank'.
20108         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20109         * modules/iswblank: New file.
20110         * modules/wctype-h (Files): Remove lib/iswblank.c.
20111         (Makefile.am): Substitute GNULIB_ISWBLANK.
20112         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20113         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20114         (gl_WCTYPE_H_DEFAULTS): New macro.
20115         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20116         * modules/iswblank-tests: New file.
20117         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20118         * tests/test-wctype-h.c (main): Remove iswblank tests.
20119         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20120         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20121         of 'wctype-h'.
20122         * NEWS: Mention the change.
20123         * modules/mbchar (Depends-on): Add iswblank.
20124
20125 2011-02-08  Bruno Haible  <bruno@clisp.org>
20126
20127         di-set tests: Refactor.
20128         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20129         unnecessary includes.
20130         (ASSERT): Remove macro.
20131         (main): Make C90 compliant by avoiding variable declaration after
20132         statement.
20133         * modules/di-set-tests (Files): Add tests/macros.h.
20134
20135 2011-02-08  Bruno Haible  <bruno@clisp.org>
20136
20137         ino-map tests: Refactor.
20138         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20139         unnecessary includes.
20140         (ASSERT): Remove macro.
20141         (main): Make C90 compliant by avoiding variable declaration after
20142         statement.
20143         * modules/ino-map-tests (Files): Add tests/macros.h.
20144
20145 2011-02-08  Jim Meyering  <meyering@redhat.com>
20146
20147         di-set: add "const" to a cast
20148         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20149         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20150
20151 2011-02-06  Bruno Haible  <bruno@clisp.org>
20152
20153         Rename module 'wctype' to 'wctype-h'.
20154         * modules/wctype-h: Renamed from modules/wctype.
20155         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20156         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20157         (Files, Depends-on, Makefile.am): Update.
20158         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20159         (Files, Makefile.am): Update.
20160         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20161         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20162         * doc/posix-headers/wctype.texi: Update.
20163         * doc/posix-functions/iswalnum.texi: Update.
20164         * doc/posix-functions/iswalpha.texi: Update.
20165         * doc/posix-functions/iswblank.texi: Update.
20166         * doc/posix-functions/iswcntrl.texi: Update.
20167         * doc/posix-functions/iswdigit.texi: Update.
20168         * doc/posix-functions/iswgraph.texi: Update.
20169         * doc/posix-functions/iswlower.texi: Update.
20170         * doc/posix-functions/iswprint.texi: Update.
20171         * doc/posix-functions/iswpunct.texi: Update.
20172         * doc/posix-functions/iswspace.texi: Update.
20173         * doc/posix-functions/iswupper.texi: Update.
20174         * doc/posix-functions/iswxdigit.texi: Update.
20175         * doc/posix-functions/towlower.texi: Update.
20176         * doc/posix-functions/towupper.texi: Update.
20177         * NEWS: Mention the change.
20178         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20179         * modules/mbchar (Dependencies): Likewise.
20180         * modules/mbswidth (Dependencies): Likewise.
20181         * modules/quotearg (Dependencies): Likewise.
20182         * modules/regex (Dependencies): Likewise.
20183         * modules/wcscasecmp (Dependencies): Likewise.
20184         * modules/wcsncasecmp (Dependencies): Likewise.
20185         * modules/wcwidth (Dependencies): Likewise.
20186
20187 2011-02-06  Bruno Haible  <bruno@clisp.org>
20188
20189         New module 'wcswidth'.
20190         * modules/wcswidth: New file.
20191         * lib/wchar.in.h (wcswidth): New declaration.
20192         * lib/wcswidth.c: New file.
20193         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20194         * m4/wcswidth.m4: New file.
20195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20197         REPLACE_WCSWIDTH.
20198         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20199         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20200         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20201         * doc/posix-functions/wcswidth.texi: Mention the new module.
20202
20203 2011-02-06  Bruno Haible  <bruno@clisp.org>
20204
20205         New module 'wcstok'.
20206         * modules/wcstok: New file.
20207         * lib/wchar.in.h (wcstok): New declaration.
20208         * lib/wcstok.c: New file.
20209         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20210         * m4/wcstok.m4: New file.
20211         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20212         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20213         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20214         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20215         * doc/posix-functions/wcstok.texi: Mention the new module.
20216
20217 2011-02-06  Bruno Haible  <bruno@clisp.org>
20218
20219         New module 'wcsstr'.
20220         * modules/wcsstr: New file.
20221         * lib/wchar.in.h (wcsstr): New declaration.
20222         * lib/wcsstr.c: New file.
20223         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20224         * m4/wcsstr.m4: New file.
20225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20227         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20228         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20229         * doc/posix-functions/wcsstr.texi: Mention the new module.
20230
20231 2011-02-06  Bruno Haible  <bruno@clisp.org>
20232
20233         New module 'wcspbrk'.
20234         * modules/wcspbrk: New file.
20235         * lib/wchar.in.h (wcspbrk): New declaration.
20236         * lib/wcspbrk.c: New file.
20237         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20238         * m4/wcspbrk.m4: New file.
20239         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20240         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20241         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20242         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20243         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20244
20245 2011-02-06  Bruno Haible  <bruno@clisp.org>
20246
20247         New module 'wcsspn'.
20248         * modules/wcsspn: New file.
20249         * lib/wchar.in.h (wcsspn): New declaration.
20250         * lib/wcsspn.c: New file.
20251         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20252         * m4/wcsspn.m4: New file.
20253         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20254         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20255         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20256         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20257         * doc/posix-functions/wcsspn.texi: Mention the new module.
20258
20259 2011-02-06  Bruno Haible  <bruno@clisp.org>
20260
20261         New module 'wcscspn'.
20262         * modules/wcscspn: New file.
20263         * lib/wchar.in.h (wcscspn): New declaration.
20264         * lib/wcscspn.c: New file.
20265         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20266         * m4/wcscspn.m4: New file.
20267         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20268         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20269         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20270         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20271         * doc/posix-functions/wcscspn.texi: Mention the new module.
20272
20273 2011-02-06  Bruno Haible  <bruno@clisp.org>
20274
20275         New module 'wcsrchr'.
20276         * modules/wcsrchr: New file.
20277         * lib/wchar.in.h (wcsrchr): New declaration.
20278         * lib/wcsrchr.c: New file.
20279         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20280         * m4/wcsrchr.m4: New file.
20281         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20282         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20283         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20284         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20285         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20286
20287 2011-02-06  Bruno Haible  <bruno@clisp.org>
20288
20289         New module 'wcschr'.
20290         * modules/wcschr: New file.
20291         * lib/wchar.in.h (wcschr): New declaration.
20292         * lib/wcschr.c: New file.
20293         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20294         * m4/wcschr.m4: New file.
20295         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20296         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20297         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20298         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20299         * doc/posix-functions/wcschr.texi: Mention the new module.
20300
20301 2011-02-06  Bruno Haible  <bruno@clisp.org>
20302
20303         New module 'wcsdup'.
20304         * modules/wcsdup: New file.
20305         * lib/wchar.in.h (wcsdup): New declaration.
20306         * lib/wcsdup.c: New file.
20307         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20308         * m4/wcsdup.m4: New file.
20309         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20310         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20311         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20312         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20313         * doc/posix-functions/wcsdup.texi: Mention the new module.
20314
20315 2011-02-06  Bruno Haible  <bruno@clisp.org>
20316
20317         New module 'wcsxfrm'.
20318         * modules/wcsxfrm: New file.
20319         * lib/wchar.in.h (wcsxfrm): New declaration.
20320         * lib/wcsxfrm.c: New file.
20321         * lib/wcsxfrm-impl.h: New file.
20322         * m4/wcsxfrm.m4: New file.
20323         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20324         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20325         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20326         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20327         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20328
20329 2011-02-06  Bruno Haible  <bruno@clisp.org>
20330
20331         New module 'wcscoll'.
20332         * modules/wcscoll: New file.
20333         * lib/wchar.in.h (wcscoll): New declaration.
20334         * lib/wcscoll.c: New file.
20335         * lib/wcscoll-impl.h: New file.
20336         * m4/wcscoll.m4: New file.
20337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20340         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20341         * doc/posix-functions/wcscoll.texi: Mention the new module.
20342
20343 2011-02-06  Bruno Haible  <bruno@clisp.org>
20344
20345         New module 'wcsncasecmp'.
20346         * modules/wcsncasecmp: New file.
20347         * lib/wchar.in.h (wcsncasecmp): New declaration.
20348         * lib/wcsncasecmp.c: New file.
20349         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20350         * m4/wcsncasecmp.m4: New file.
20351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20354         HAVE_WCSNCASECMP.
20355         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20356         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20357
20358 2011-02-06  Bruno Haible  <bruno@clisp.org>
20359
20360         New module 'wcscasecmp'.
20361         * modules/wcscasecmp: New file.
20362         * lib/wchar.in.h (wcscasecmp): New declaration.
20363         * lib/wcscasecmp.c: New file.
20364         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20365         * m4/wcscasecmp.m4: New file.
20366         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20367         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20368         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20369         HAVE_WCSCASECMP.
20370         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20371         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20372
20373 2011-02-05  Bruno Haible  <bruno@clisp.org>
20374
20375         New module 'wcsncmp'.
20376         * modules/wcsncmp: New file.
20377         * lib/wchar.in.h (wcsncmp): New declaration.
20378         * lib/wcsncmp.c: New file.
20379         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20380         * m4/wcsncmp.m4: New file.
20381         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20382         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20384         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20385         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20386
20387 2011-02-05  Bruno Haible  <bruno@clisp.org>
20388
20389         New module 'wcscmp'.
20390         * modules/wcscmp: New file.
20391         * lib/wchar.in.h (wcscmp): New declaration.
20392         * lib/wcscmp.c: New file.
20393         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20394         * m4/wcscmp.m4: New file.
20395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20398         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20399         * doc/posix-functions/wcscmp.texi: Mention the new module.
20400
20401 2011-02-05  Bruno Haible  <bruno@clisp.org>
20402
20403         New module 'wcsncat'.
20404         * modules/wcsncat: New file.
20405         * lib/wchar.in.h (wcsncat): New declaration.
20406         * lib/wcsncat.c: New file.
20407         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20408         * m4/wcsncat.m4: New file.
20409         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20410         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20411         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20412         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20413         * doc/posix-functions/wcsncat.texi: Mention the new module.
20414
20415 2011-02-05  Bruno Haible  <bruno@clisp.org>
20416
20417         New module 'wcscat'.
20418         * modules/wcscat: New file.
20419         * lib/wchar.in.h (wcscat): New declaration.
20420         * lib/wcscat.c: New file.
20421         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20422         * m4/wcscat.m4: New file.
20423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20426         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20427         * doc/posix-functions/wcscat.texi: Mention the new module.
20428
20429 2011-02-05  Bruno Haible  <bruno@clisp.org>
20430
20431         New module 'wcpncpy'.
20432         * modules/wcpncpy: New file.
20433         * lib/wchar.in.h (wcpncpy): New declaration.
20434         * lib/wcpncpy.c: New file.
20435         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20436         * m4/wcpncpy.m4: New file.
20437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20439         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20440         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20441         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20442
20443 2011-02-05  Bruno Haible  <bruno@clisp.org>
20444
20445         New module 'wcsncpy'.
20446         * modules/wcsncpy: New file.
20447         * lib/wchar.in.h (wcsncpy): New declaration.
20448         * lib/wcsncpy.c: New file.
20449         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20450         * m4/wcsncpy.m4: New file.
20451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20453         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20454         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20455         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20456
20457 2011-02-05  Bruno Haible  <bruno@clisp.org>
20458
20459         New module 'wcpcpy'.
20460         * modules/wcpcpy: New file.
20461         * lib/wchar.in.h (wcpcpy): New declaration.
20462         * lib/wcpcpy.c: New file.
20463         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20464         * m4/wcpcpy.m4: New file.
20465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20467         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20468         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20469         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20470
20471 2011-02-05  Bruno Haible  <bruno@clisp.org>
20472
20473         New module 'wcscpy'.
20474         * modules/wcscpy: New file.
20475         * lib/wchar.in.h (wcscpy): New declaration.
20476         * lib/wcscpy.c: New file.
20477         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20478         * m4/wcscpy.m4: New file.
20479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20482         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20483         * doc/posix-functions/wcscpy.texi: Mention the new module.
20484
20485 2011-02-05  Bruno Haible  <bruno@clisp.org>
20486
20487         New module 'wcsnlen'.
20488         * modules/wcsnlen: New file.
20489         * lib/wchar.in.h (wcsnlen): New declaration.
20490         * lib/wcsnlen.c: New file.
20491         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20492         * m4/wcsnlen.m4: New file.
20493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20496         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20497         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20498
20499 2011-02-05  Bruno Haible  <bruno@clisp.org>
20500
20501         New module 'wcslen'.
20502         * modules/wcslen: New file.
20503         * lib/wchar.in.h (wcslen): New declaration.
20504         * lib/wcslen.c: New file.
20505         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20506         * m4/wcslen.m4: New file.
20507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20510         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20511         * doc/posix-functions/wcslen.texi: Mention the new module.
20512
20513 2011-02-05  Bruno Haible  <bruno@clisp.org>
20514
20515         New module 'wmemset'.
20516         * modules/wmemset: New file.
20517         * lib/wchar.in.h (wmemset): New declaration.
20518         * lib/wmemset.c: New file.
20519         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20520         * m4/wmemset.m4: New file.
20521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20523         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20524         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20525         * doc/posix-functions/wmemset.texi: Mention the new module.
20526
20527 2011-02-05  Bruno Haible  <bruno@clisp.org>
20528
20529         New module 'wmemmove'.
20530         * modules/wmemmove: New file.
20531         * lib/wchar.in.h (wmemmove): New declaration.
20532         * lib/wmemmove.c: New file.
20533         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20534         * m4/wmemmove.m4: New file.
20535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20537         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20538         HAVE_WMEMMOVE.
20539         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20540         * doc/posix-functions/wmemmove.texi: Mention the new module.
20541
20542 2011-02-05  Bruno Haible  <bruno@clisp.org>
20543
20544         New module 'wmemcpy'.
20545         * modules/wmemcpy: New file.
20546         * lib/wchar.in.h (wmemcpy): New declaration.
20547         * lib/wmemcpy.c: New file.
20548         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20549         * m4/wmemcpy.m4: New file.
20550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20552         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20553         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20554         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20555
20556 2011-02-05  Bruno Haible  <bruno@clisp.org>
20557
20558         New module 'wmemcmp'.
20559         * modules/wmemcmp: New file.
20560         * lib/wchar.in.h (wmemcmp): New declaration.
20561         * lib/wmemcmp.c: New file.
20562         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20563         * m4/wmemcmp.m4: New file.
20564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20566         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20567         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20568         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20569
20570 2011-02-07  Jim Meyering  <meyering@redhat.com>
20571
20572         di-set, ino-map: new modules, from coreutils
20573         * lib/di-set.c: New file.
20574         * lib/di-set.h: Likewise.
20575         * lib/ino-map.c: Likewise.
20576         * lib/ino-map.h: Likewise.
20577         * modules/di-set: Likewise.
20578         * modules/di-set-tests: Likewise.
20579         * modules/ino-map: Likewise.
20580         * modules/ino-map-tests: Likewise.
20581         * tests/test-di-set.c: Likewise.
20582         * tests/test-ino-map.c: Likewise.
20583
20584 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20585
20586         getloadavg: merge minor changes from Emacs
20587
20588         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20589         (getloadavg): Use memset, not bzero.
20590
20591         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20592         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20593         clash (bug#86).
20594
20595 2010-11-14  Bruno Haible  <bruno@clisp.org>
20596
20597         Allow multiple gnulib generated replacements to coexist.
20598         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20599         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20600         * lib/langinfo.in.h (nl_item): Likewise.
20601         * lib/math.in.h (_NaN, NAN): Likewise.
20602         * lib/netdb.in.h (struct addrinfo): Likewise.
20603         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20604         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20605         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20606         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20607         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20608         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20609         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20610         pthread_mutexattr_init, pthread_mutexattr_settype,
20611         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20612         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20613         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20614         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20615         * lib/sched.in.h (struct sched_param): Likewise.
20616         * lib/se-selinux.in.h (security_class_t, security_context_t,
20617         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20618         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20619         lsetfilecon, fsetfilecon, security_check_context,
20620         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20621         Likewise.
20622         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20623         Likewise.
20624         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20625         _gl_function_taking_int_returning_void_t, union sigval,
20626         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20627         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20628         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20629         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20630         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20631         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20632         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20633         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20634         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20635         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20636         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20637         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20638         socklen_t, rpl_fd_isset): Likewise.
20639         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20640         * lib/sys_time.in.h (struct timeval): Likewise.
20641         * lib/sys_times.in.h (struct tms): Likewise.
20642         * lib/sys_utsname.in.h (struct utsname):
20643         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20644         * lib/unistd.in.h (getpagesize): Likewise.
20645         * lib/wchar.in.h (mbstate_t): Likewise.
20646         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20647         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20648         towlower, towupper): Likewise.
20649         Reported by Sam Steingold <sds@gnu.org>.
20650
20651 2011-02-05  Eric Blake  <eblake@redhat.com>
20652
20653         unsetenv: work around Haiku issues
20654         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20655         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20656
20657 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20658
20659         libposix: avoid calling error() within libposix
20660         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20661         is defined.
20662
20663 2011-02-05  Eric Blake  <eblake@redhat.com>
20664
20665         strerror_r-posix: port to cygwin
20666         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20667         implementation.
20668         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20669         * tests/test-strerror_r.c (main): Fix test.
20670         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20671         issue.
20672
20673 2011-02-05  Bruno Haible  <bruno@clisp.org>
20674
20675         New module 'wmemchr'.
20676         * modules/wmemchr: New file.
20677         * lib/wchar.in.h (wmemchr): New declaration.
20678         * lib/wmemchr.c: New file.
20679         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20680         * m4/wmemchr.m4: New file.
20681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20683         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20684         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20685         * doc/posix-functions/wmemchr.texi: Mention the new module.
20686
20687 2011-02-04  Eric Blake  <eblake@redhat.com>
20688
20689         fdopendir: detect FreeBSD bug
20690         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20691         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20692
20693 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20694
20695         stdbool: do not define HAVE_STDBOOL_H
20696         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20697         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20698         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20699         imported from the latest Autoconf git.  It was motivated by Emacs,
20700         which uses gnulib but does not need HAVE_STDBOOL_H.
20701
20702 2011-02-04  Bruno Haible  <bruno@clisp.org>
20703
20704         wcsnrtombs: Prepare for new module wwcsnrtombs.
20705         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20706         * lib/wcsnrtombs.c: Include it.
20707         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20708
20709         wcsrtombs: Prepare for new module wwcsrtombs.
20710         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20711         * lib/wcsrtombs.c: Include it.
20712         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20713
20714         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20715         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20716         * lib/mbsnrtowcs.c: Include it.
20717         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20718
20719         mbsrtowcs: Prepare for new module mbsrtowwcs.
20720         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20721         * lib/mbsrtowcs.c: Include it.
20722         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20723
20724 2011-02-04  Bruno Haible  <bruno@clisp.org>
20725
20726         vasnprintf: Reduce use of malloc for small format strings.
20727         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20728         (arguments): Add room for the first 7 arguments.
20729         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20730         (char_directives, u8_directives, u16_directives, u32_directives): Add
20731         room for the first 7 directives.
20732         * lib/printf-parse.c: Include <string.h>.
20733         (PRINTF_PARSE): Change memory handling code so that it uses the first
20734         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20735         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20736         Reported by Pádraig Brady <P@draigbrady.com>.
20737
20738 2011-01-31  Eric Blake  <eblake@redhat.com>
20739
20740         dup2: work around Haiku bug
20741         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20742         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20743         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20744         * tests/test-dup2.c (main): Enhance test.
20745
20746 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20747
20748         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20749         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20750         declared by eglibc 2.11.2.
20751         * lib/stdio.in.h: Likewise.
20752
20753 2011-01-31  Eric Blake  <eblake@redhat.com>
20754
20755         ignore-value: add missing test dependency
20756         * tests/test-ignore-value.c: Revert previous change; stdio.h
20757         provides off_t.
20758         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20759
20760 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20761
20762         mktime: clarify long_int width checking
20763         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20764         the top level, to make it clearer that the assumption about
20765         long_int width is being checked.  See
20766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20767
20768 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20769
20770         ignore-value: Fix self-test.
20771         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20772
20773 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20774
20775         TYPE_MAXIMUM: avoid theoretically undefined behavior
20776         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20777         negative number, which the C Standard says has undefined behavior.
20778         In practice this is not a problem, but might as well do it by the book.
20779         Reported by Rich Felker and Eric Blake; see
20780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20781         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20782         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20783         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20784         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20785         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20786         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20787
20788         mktime: #undef mktime before #defining it
20789         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20790
20791         mktime: systematically normalize tm_isdst comparisons
20792         * lib/mktime.c (isdst_differ): New function.
20793         (__mktime_internal): Use it systematically for all isdst comparisons.
20794         This completes the fix for libc BZ #6723, and removes the need for
20795         normalizing tm_isdst.  See
20796         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20797         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20798
20799         mktime: fix some integer overflow issues and sidestep the rest
20800
20801         This was prompted by a bug report by Benjamin Lindner for MinGW
20802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20803         His bug is due to signed integer overflow (0 - INT_MIN), and I
20804         I scanned through mktime.c looking for other integer overflow
20805         problems, fixing all the bugs I found.
20806
20807         Although the C Standard says the resulting code is still not safe
20808         in the presence of integer overflow, in practice it should be good
20809         enough for all real-world two's-complement implementations, except
20810         for debugging environments that deliberately trap on integer
20811         overflow (e.g., gcc -ftrapv).
20812
20813         * lib/mktime.c (WRAPV): New macro.
20814         (SHR): Also check that long_int and time_t shift right in the
20815         usual way, before using the fast-but-unportable method.
20816         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20817         used.  The code already assumed two's complement, so there's
20818         no need to test for alternatives.  All uses removed.
20819         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20820         the C standard.  Problem reported by Rich Felker in
20821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20822         (twos_complement_arithmetic): Also check long_int and time_t.
20823         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20824         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20825         (__mktime_internal): Avoid integer overflow with unary subtraction
20826         in two instances where -1 - X is an adequate replacement for -X,
20827         since the calculations are approximate.
20828
20829 2011-01-29  Eric Blake  <eblake@redhat.com>
20830
20831         mktime: avoid infinite loop
20832         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20833         type; behavior is still undefined but portable to all known targets.
20834         Reported by Rich Felker.
20835
20836 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20837
20838         rename, unlink, same-inode: Relicense.
20839         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20840         * modules/unlink (License): Likewise.
20841         * modules/same-inode (License): Likewise.
20842
20843 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20844
20845         mktime: avoid problems on NetBSD 5 / i386
20846         * lib/mktime.c (long_int): New type.  This works around a problem
20847         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20848         but time_t is 64 bits, and where I expect the existing code is
20849         wrong in some cases.
20850         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20851         (ydhms_diff): Bring back the compile-time check for wide-enough
20852         year and yday.
20853
20854         mktime: fix misspelling in comment
20855         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20856         This merges all recent glibc changes of importance.
20857
20858 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20859
20860         move-if-change: cope with concurrent mv of identical file.
20861         * build-aux/move-if-change (CMPPROG): Accept environment
20862         variable as an override for `cmp'.
20863         (usage): Document CMPPROG.
20864         Adjust comparison to drop stdout.  Cope with failure of mv if
20865         the target file exists and is identical to the source, for
20866         parallel builds.
20867         Report from H.J. Lu against binutils in PR binutils/12283.
20868
20869 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20870
20871         * users.txt: Mention sharutils.
20872
20873 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20874
20875         * users.txt: Mention OATH Toolkit.
20876
20877 2011-01-27  Bruno Haible  <bruno@clisp.org>
20878
20879         Prepare for supporting FreeBSD 10.
20880         * build-aux/config.libpath: Remove handling of freebsd1*.
20881
20882 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20883
20884         Prepare for supporting FreeBSD 10.
20885         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20886         match FreeBSD 10.0.
20887
20888 2011-01-27  Bruno Haible  <bruno@clisp.org>
20889
20890         vma-iter, get-rusage-as: Add OpenBSD support.
20891         * modules/vma-iter (configure.ac): Test for mquery.
20892         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20893         * lib/vma-iter.c: Include <sys/mman.h>.
20894         (vma_iterate): Add an implementation based on mquery().
20895         * lib/resource-ext.h (get_rusage_as): Update comments.
20896         * lib/get-rusage-as.c: Likewise.
20897         * lib/get-rusage-data.c: Likewise.
20898
20899 2011-01-26  Karl Berry  <karl@gnu.org>
20900
20901         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20902         variables to make it easier to override the makeinfo program used.
20903
20904 2011-01-26  Eric Blake  <eblake@redhat.com>
20905
20906         fcntl: work around Haiku F_DUPFD bugs
20907         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20908         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20909         cloexec bit on duplication.
20910         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20911
20912 2011-01-26  Bruno Haible  <bruno@clisp.org>
20913
20914         Enable memory leak tests on AIX.
20915         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20916         * tests/test-fprintf-posix3.c (main): Likewise.
20917
20918 2011-01-26  Bruno Haible  <bruno@clisp.org>
20919
20920         Tests for module 'get-rusage-data'.
20921         * modules/get-rusage-data-tests: New file.
20922         * tests/test-get-rusage-data.c: New file.
20923
20924         New module 'get-rusage-data'.
20925         * lib/resource-ext.h (get_rusage_data): New declaration.
20926         * lib/get-rusage-data.c: New file.
20927         * modules/get-rusage-data: New file.
20928
20929 2011-01-25  Bruno Haible  <bruno@clisp.org>
20930
20931         get-rusage-as: Allow for easier testing.
20932         * lib/resource-ext.h (get_rusage_as): Add comment.
20933         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20934         (main): New function for interactive testing.
20935
20936 2011-01-25  Bruno Haible  <bruno@clisp.org>
20937
20938         vma-iter: Treat Haiku like BeOS.
20939         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20940         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20941
20942 2011-01-25  Eric Blake  <eblake@redhat.com>
20943
20944         c-stack: fix regression on cygwin when libsigsegv is present
20945         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20946
20947 2011-01-24  Bruno Haible  <bruno@clisp.org>
20948
20949         vma-iter: Avoid empty intervals.
20950         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20951         on an empty interval.
20952
20953 2011-01-24  Jim Meyering  <meyering@redhat.com>
20954
20955         u64: remove unnecessary #include
20956         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20957
20958 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20959
20960         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20961         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20962
20963 2011-01-23  Bruno Haible  <bruno@clisp.org>
20964
20965         New module 'vma-iter'.
20966         * lib/vma-iter.h: New file.
20967         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20968         * modules/vma-iter: New file.
20969         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20970         for get_rusage_as_via_iterator.
20971         (vma_iterate_callback): New function.
20972         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20973         * modules/get-rusage-as (Depends-on): Add vma-iter.
20974
20975 2011-01-23  Bruno Haible  <bruno@clisp.org>
20976
20977         uninorm: Tweak includes.
20978         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20979         Reported by Jim Meyering.
20980
20981 2011-01-23  Bruno Haible  <bruno@clisp.org>
20982
20983         get-rusage-as: Improve on NetBSD.
20984         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20985         /proc, like on FreeBSD.
20986
20987 2011-01-23  Jim Meyering  <meyering@redhat.com>
20988
20989         xreadlink.h: remove unnecessary #include
20990         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20991
20992         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20993         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20994
20995 2011-01-23  Bruno Haible  <bruno@clisp.org>
20996
20997         get-rusage-as: Fix bug.
20998         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20999         original limit when aborting the first loop.
21000
21001 2011-01-23  Bruno Haible  <bruno@clisp.org>
21002
21003         wctype: Ensure valid C syntax.
21004         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21005         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21006
21007 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21008
21009         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21011         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21012         as they are needed only for configure's test case.
21013         This removes two unnecessary symbols from config.h.
21014
21015         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21016         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21017         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21018         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21019         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21020         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21021         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21022         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21023         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21024         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21025         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21026         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21027         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21028         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21029         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21030         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21031         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21032         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21033
21034 2011-01-21  Eric Blake  <eblake@redhat.com>
21035
21036         maintainer-makefile: work with older git for submodule check
21037         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21038         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21039         Reported by Matthias Bolte.
21040
21041         bootstrap: minor portability fixes
21042         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21043         (usage): Omit leading capital and trailing . on help phrases, per
21044         GNU Coding Standards.
21045         (check_versions, top level): Prefix messages with script name.
21046
21047 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21048
21049         bootstrap: support --no-git option
21050         * build-aux/bootstrap: Add --no-git option, to be used when
21051         --gnulib-srcdir points to the exact desired checkout.
21052
21053 2011-01-21  Eric Blake  <eblake@redhat.com>
21054
21055         strerror_r-posix: work with glibc 2.13
21056         * lib/strerror_r.c (strerror_r): Fix return type.
21057
21058 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21059             Bruno Haible  <bruno@clisp.org>
21060
21061         uN_strstr: New unit tests.
21062         * modules/unistr/u8-strstr-tests: New file.
21063         * modules/unistr/u16-strstr-tests: New file.
21064         * modules/unistr/u32-strstr-tests: New file.
21065         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21066         * tests/unistr/test-u8-strstr.c: New file.
21067         * tests/unistr/test-u16-strstr.c: New file.
21068         * tests/unistr/test-u32-strstr.c: New file.
21069
21070 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21071             Bruno Haible  <bruno@clisp.org>
21072
21073         Make uN_strstr functions O(n) worst-case.
21074         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21075         16-bit and 32-bit unit cases, use the unibyte algorithm from
21076         lib/mbsstr.c.
21077         * lib/unistr/u8-strstr.c: Include <string.h>.
21078         (UNIT_IS_UINT8_T): New macro.
21079         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21080         (U_STRLEN, U_STRNLEN): New macros.
21081         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21082         (U_STRLEN, U_STRNLEN): New macros.
21083         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21084         (configure.ac): Update required libunistring version.
21085         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21086         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21087         malloca.
21088         (configure.ac): Update required libunistring version.
21089         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21090         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21091         malloca.
21092         (configure.ac): Update required libunistring version.
21093
21094 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21095             Bruno Haible  <bruno@clisp.org>
21096
21097         Prepare for faster uN_strstr functions.
21098         * lib/str-kmp.h: Support definable UNITs.
21099         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21100         needle_len argument.
21101         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21102         * lib/mbscasestr.c (mbscasestr): Likewise.
21103
21104 2011-01-21  Pádraig Brady <P@draigBrady.com>
21105
21106         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21107         * tests/test-malloca.c (main): Unset the environment variable
21108         to greatly speed up the test.
21109         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21110         * modules/malloca-tests: Depend on unsetenv.
21111
21112 2011-01-21  Pádraig Brady <P@draigBrady.com>
21113
21114         ignore-value: remove stdint dependency
21115         * lib/ignore-value.h: Remove <stdint.h>
21116         * modules/ignore-value: Remove stdint dependency.
21117
21118 2011-01-21  Jim Meyering  <meyering@redhat.com>
21119
21120         maint.mk: adjust variable name to be consistent with other gl_ vars
21121         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21122         to be lower case.
21123
21124 2011-01-20  Jim Meyering  <meyering@redhat.com>
21125
21126         maint.mk: make "check" depend on public-submodule-commit by default
21127         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21128
21129 2011-01-20  Bruno Haible  <bruno@clisp.org>
21130
21131         mbfile, mbiter: Complete change from 2008-12-21.
21132         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21133         * m4/mbiter.m4 (gl_MBITER): Likewise.
21134
21135 2011-01-20  Jim Meyering  <meyering@redhat.com>
21136
21137         init.sh: insert space between each function name and "()"
21138         * tests/init.sh: Make it a little easier to see that a function's
21139         name is "warn_", and not "warn" when looking at the first part of
21140         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21141
21142 2011-01-20  Jim Meyering  <meyering@redhat.com>
21143
21144         mountlist: clean up code formatting
21145         * lib/mountlist.c (read_file_system_list): Split a long line,
21146         correct bracing style, use NULL in place of "(struct statfs *)0",
21147         don't parenthesize return value, add spaces around "=" and after
21148         ";-in-for-stmt".
21149
21150 2011-01-14  Markus Duft <mduft@gentoo.org>
21151
21152         mountlist: add support for Interix
21153         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21154         Apply statvfs to all entries of /dev/fs.
21155         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21156         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21157
21158 2011-01-20  Jim Meyering  <meyering@redhat.com>
21159
21160         maint.mk: improve the public-submodule-commit rule
21161         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21162         to suppress printing of its commands... unless V=1.
21163         Add git submodule's --quiet option to suppress printing of e.g.,
21164         "Entering gnulib" output.
21165         "cd" into $(srcdir) before running git submodule.
21166
21167 2011-01-20  Bruno Haible  <bruno@clisp.org>
21168
21169         include_next: Fix bug introduced on 2011-01-18.
21170         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21171         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21172         ac_cv_header_... variable if the second argument is not 'check'.
21173         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21174         gl_NEXT_HEADERS_INTERNAL.
21175
21176 2011-01-20  Bruno Haible  <bruno@clisp.org>
21177
21178         Allow the user to avoid the GNULIB_TEST_* macros.
21179         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21180         Suggested by Paul Eggert.
21181
21182 2011-01-14  Jim Meyering  <meyering@redhat.com>
21183
21184         bootstrap: avoid failure when there is no .gitmodules file
21185         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21186         has been assigned to, even when its value is the empty string.
21187         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21188         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21189         Reported by John W. Eaton <jwe@gnu.org>.
21190
21191 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21192
21193         assume <ctype.h>, ..., <time.h> exist
21194         For years gnulib has been assuming the existence of the headers
21195         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21196         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21197         them, since they don't appear to be needed.
21198         * README (Portability guidelines): Document this.
21199         * lib/flock.c: Assume <fcntl.h> exists.
21200         * lib/regex_internal.h: Assume <locale.h> exists.
21201         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21202         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21203         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21204         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21205         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21206         * m4/regex.m4 (gl_REGEX): Likewise.
21207         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21208         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21209         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21210         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21211         * tests/test-argp.c: Likewise.
21212         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21213
21214         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21215         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21216         AA_APPLE_UNIVERSAL_BUILD.  See
21217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21218         * NEWS: Document this.
21219
21220 2011-01-19  Eric Blake  <eblake@redhat.com>
21221
21222         c-stack: assume stack overflow if SA_SIGINFO unsupported
21223         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21224         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21225         sigaction will work.
21226         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21227         behavior match Linux.
21228         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21229
21230         stdbool-tests: accomodate Haiku
21231         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21232
21233         binary-io: fix O_TEXT on Haiku
21234         * modules/binary-io (Depends-on): Add fcntl-h.
21235         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21236         than blindly undefining O_TEXT.
21237         Reported by Scott McCreary.
21238
21239 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21240
21241         include_next: do not check for standard headers like stddef.h
21242
21243         I found this problem when modifying Emacs to use gnulib.
21244         I noticed that it added HAVE_STDDEF_H to config.h, even though
21245         gnulib always assumes <stddef.h> exists as per README and this
21246         symbol is unnecessary.
21247         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21248         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21249         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21250         faster for headers like stddef.h that are known to exist.
21251         (gl_CHECK_NEXT_HEADERS): Use it.
21252         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21253         rather than gl_CHECK_NEXT_HEADERS.
21254         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21255         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21256
21257 2011-01-18  Eric Blake  <eblake@redhat.com>
21258
21259         ansi-c++-opt: skip C++ dependency style if C++ is unused
21260         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21261         tests when we know C++ compilation is not desired.
21262         Reported by Scott McCreary.
21263
21264 2011-01-18  Bruno Haible  <bruno@clisp.org>
21265
21266         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21267         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21268         (main): Perform test also when getrlimit and setrlimit don't exist or
21269         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21270         limiting the address space size using setrlimit, compare the address
21271         space size before and after the the test.
21272         * tests/test-dprintf-posix2.c: Likewise.
21273         * tests/test-fprintf-posix3.sh: Update skip messages.
21274         * tests/test-dprintf-posix2.sh: Likewise.
21275         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21276         * modules/dprintf-posix-tests (Depends-on): Likewise.
21277         Reported by Bruce Korb <bkorb@gnu.org> and
21278         Gary V. Vaughan <gary@gnu.org>.
21279
21280 2011-01-18  Bruno Haible  <bruno@clisp.org>
21281
21282         get-rusage-as: Improvement for Cygwin.
21283         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21284         areas that are merely reserved.
21285
21286 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21287
21288         strftime: remove dependencies on multibyte modules
21289
21290         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21291         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21292         only if __osf__ is defined, and I suspect OSF doesn't need these
21293         other modules.  If my guess is wrong, we'll need to come up with a
21294         variant of strftime that doesn't need the multibyte modules.
21295
21296         I discovered this problem when attempting modify Emacs to use the
21297         strftime module.  With the previous gnulib, this caused Emacs to
21298         need 31 new files, ranging from lib/config.charset to
21299         m4/wint_t.m4.  This was overkill and I expect would be offputting
21300         to the Emacs maintainers.  After this change, only 6 new files are
21301         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21302         stdbool.m4, and tm_gmtoff.m4.
21303
21304         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21305         Suggested by Bruno Haible in
21306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21307         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21308         and do not check for wchar.h.
21309         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21310         (Depends-on): Remove mbrlen, mbsinit, wchar.
21311
21312 2011-01-18  Bruno Haible  <bruno@clisp.org>
21313
21314         Tests for module 'get-rusage-as'.
21315         * modules/get-rusage-as-tests: New file.
21316         * tests/test-get-rusage-as.c: New file.
21317
21318         New module 'get-rusage-as'.
21319         * modules/get-rusage-as: New file.
21320         * lib/resource-ext.h: New file.
21321         * lib/get-rusage-as.c: New file.
21322
21323 2011-01-17  Eric Blake  <eblake@redhat.com>
21324
21325         sigaction: relax license from LGPLv3+ to LGPLv2+
21326         * modules/sigaction (License): Relax to LGPLv2+.
21327
21328 2011-01-14  Bruno Haible  <bruno@clisp.org>
21329
21330         filemode: Make function declarations usable in C++ mode.
21331         * lib/filemode.h: Enclose function declarations in extern "C" block.
21332         Reported by John W. Eaton <jwe@gnu.org>.
21333
21334 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21335
21336         save-cwd: no longer include "xgetcwd.h"
21337         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21338         This avoids a compilation failure in projects that use save-cwd
21339         without also using the xgetcwd module.
21340
21341 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21342
21343         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21344         This is so that a program like Emacs, which needs only dtoastr,
21345         does not have to bother with distributing and compiling ftoastr
21346         and ldtoastr.
21347         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21348         * modules/dtoastr, modules/ldtoastr: New files.
21349         * modules/ftoastr: Now works just for 'float'.
21350         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21351         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21352         dtoastr.c, ldtoastr.c.
21353
21354 2011-01-11  Jim Meyering  <meyering@redhat.com>
21355
21356         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21357         There is no need to work around the lack of the fchdir function,
21358         since gnulib can now provide a replacement when required.
21359         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21360         * modules/save-cwd (Depends-on): Add fchdir.
21361
21362 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21363
21364         openat, save-cwd: avoid xmalloc
21365
21366         This removes a direct (but undocumented) dependency of openat on
21367         xalloc, along with an indirect dependency via save-cwd.  It also
21368         removes a dependency of save-cwd on xgetcwd, and thereby
21369         indirectly on xalloc.  This change causes the openat substitute
21370         to fall back on save_cwd when memory is tight, and for save_cwd to
21371         fail instead of dying when memory is tight, but that's good enough.
21372         Problem and initial idea for fix reported by Bastien Roucaries in
21373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21374
21375         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21376         xalloc.h (for xmalloc).
21377         (openat_proc_name): Use malloc, not xmalloc.
21378         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21379         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21380
21381         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21382         This avoids heap allocation for file names whose lengths are in
21383         the range 512..1023, with the upper bound increasing to at most
21384         4031 depending on the platform's PATH_MAX.  (We do not want
21385         pathmax.h here as it might supply a non-constant PATH_MAX.)
21386         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21387         Perhaps they should be moved to malloca.h?
21388         (OPENAT_BUFFER_SIZE): Use them.
21389
21390 2011-01-10  Bruno Haible  <bruno@clisp.org>
21391
21392         doc: Update users.txt.
21393         * users.txt: Add recutils.
21394
21395 2011-01-09  Karl Berry  <karl@gnu.org>
21396
21397         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21398
21399         * doc/configmake.texi: New file.
21400         * doc/gnulib.texi: Include it.
21401         * modules/configmake: Move documentation from here.
21402
21403 2011-01-09  Bruno Haible  <bruno@clisp.org>
21404
21405         Update to Unicode 6.0.0.
21406         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21407         (get_lbp): Update for Unicode 6.0.0.
21408         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21409         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21410         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21411         U+11001, U+11038..U+11046. Remove U+06DE.
21412         (uc_width): Fix bounds of planes.
21413         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21414         lib/uniwidth/width.c.
21415         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21416         trailing whitespace removed.
21417         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21418         without comments, but with the original copyright notice.
21419         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21420         * lib/unicase/ignorable.h: Likewise.
21421         * lib/unicase/tocasefold.h: Likewise.
21422         * lib/unicase/tolower.h: Likewise.
21423         * lib/unicase/totitle.h: Likewise.
21424         * lib/unicase/toupper.h: Likewise.
21425         * lib/unictype/bidi_of.h: Likewise.
21426         * lib/unictype/blocks.h: Likewise.
21427         * lib/unictype/categ_C.h: Likewise.
21428         * lib/unictype/categ_Cn.h: Likewise.
21429         * lib/unictype/categ_L.h: Likewise.
21430         * lib/unictype/categ_Ll.h: Likewise.
21431         * lib/unictype/categ_Lm.h: Likewise.
21432         * lib/unictype/categ_Lo.h: Likewise.
21433         * lib/unictype/categ_Lu.h: Likewise.
21434         * lib/unictype/categ_M.h: Likewise.
21435         * lib/unictype/categ_Mc.h: Likewise.
21436         * lib/unictype/categ_Me.h: Likewise.
21437         * lib/unictype/categ_Mn.h: Likewise.
21438         * lib/unictype/categ_N.h: Likewise.
21439         * lib/unictype/categ_Nd.h: Likewise.
21440         * lib/unictype/categ_No.h: Likewise.
21441         * lib/unictype/categ_P.h: Likewise.
21442         * lib/unictype/categ_Po.h: Likewise.
21443         * lib/unictype/categ_S.h: Likewise.
21444         * lib/unictype/categ_Sc.h: Likewise.
21445         * lib/unictype/categ_Sk.h: Likewise.
21446         * lib/unictype/categ_Sm.h: Likewise.
21447         * lib/unictype/categ_So.h: Likewise.
21448         * lib/unictype/categ_of.h: Likewise.
21449         * lib/unictype/combining.h: Likewise.
21450         * lib/unictype/ctype_alnum.h: Likewise.
21451         * lib/unictype/ctype_alpha.h: Likewise.
21452         * lib/unictype/ctype_graph.h: Likewise.
21453         * lib/unictype/ctype_lower.h: Likewise.
21454         * lib/unictype/ctype_print.h: Likewise.
21455         * lib/unictype/ctype_punct.h: Likewise.
21456         * lib/unictype/ctype_upper.h: Likewise.
21457         * lib/unictype/decdigit.h: Likewise.
21458         * lib/unictype/digit.h: Likewise.
21459         * lib/unictype/numeric.h: Likewise.
21460         * lib/unictype/pr_alphabetic.h: Likewise.
21461         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21462         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21463         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21464         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21465         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21466         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21467         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21468         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21469         * lib/unictype/pr_case_ignorable.h: Likewise.
21470         * lib/unictype/pr_cased.h: Likewise.
21471         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21472         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21473         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21474         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21475         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21476         * lib/unictype/pr_combining.h: Likewise.
21477         * lib/unictype/pr_composite.h: Likewise.
21478         * lib/unictype/pr_currency_symbol.h: Likewise.
21479         * lib/unictype/pr_decimal_digit.h: Likewise.
21480         * lib/unictype/pr_deprecated.h: Likewise.
21481         * lib/unictype/pr_format_control.h: Likewise.
21482         * lib/unictype/pr_grapheme_base.h: Likewise.
21483         * lib/unictype/pr_grapheme_extend.h: Likewise.
21484         * lib/unictype/pr_grapheme_link.h: Likewise.
21485         * lib/unictype/pr_id_continue.h: Likewise.
21486         * lib/unictype/pr_id_start.h: Likewise.
21487         * lib/unictype/pr_ideographic.h: Likewise.
21488         * lib/unictype/pr_lowercase.h: Likewise.
21489         * lib/unictype/pr_math.h: Likewise.
21490         * lib/unictype/pr_numeric.h: Likewise.
21491         * lib/unictype/pr_other_alphabetic.h: Likewise.
21492         * lib/unictype/pr_other_id_continue.h: Likewise.
21493         * lib/unictype/pr_other_math.h: Likewise.
21494         * lib/unictype/pr_punctuation.h: Likewise.
21495         * lib/unictype/pr_sentence_terminal.h: Likewise.
21496         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21497         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21498         * lib/unictype/pr_unified_ideograph.h: Likewise.
21499         * lib/unictype/pr_uppercase.h: Likewise.
21500         * lib/unictype/pr_xid_continue.h: Likewise.
21501         * lib/unictype/pr_xid_start.h: Likewise.
21502         * lib/unictype/scripts.h: Likewise.
21503         * lib/unictype/scripts_byname.gperf: Likewise.
21504         * lib/unictype/sy_java_ident.h: Likewise.
21505         * lib/unigbrk/gbrkprop.h: Likewise.
21506         * lib/unilbrk/lbrkprop1.h: Likewise.
21507         * lib/unilbrk/lbrkprop2.h: Likewise.
21508         * lib/uninorm/decomposition-table2.h: Likewise.
21509         * lib/uniwbrk/wbrkprop.h: Likewise.
21510         * tests/unicase/test-cased.c: Likewise.
21511         * tests/unicase/test-ignorable.c: Likewise.
21512         * tests/unicase/test-uc_tolower.c: Likewise.
21513         * tests/unicase/test-uc_totitle.c: Likewise.
21514         * tests/unicase/test-uc_toupper.c: Likewise.
21515         * tests/unictype/test-categ_C.c: Likewise.
21516         * tests/unictype/test-categ_Cn.c: Likewise.
21517         * tests/unictype/test-categ_L.c: Likewise.
21518         * tests/unictype/test-categ_Ll.c: Likewise.
21519         * tests/unictype/test-categ_Lm.c: Likewise.
21520         * tests/unictype/test-categ_Lo.c: Likewise.
21521         * tests/unictype/test-categ_Lu.c: Likewise.
21522         * tests/unictype/test-categ_M.c: Likewise.
21523         * tests/unictype/test-categ_Mc.c: Likewise.
21524         * tests/unictype/test-categ_Me.c: Likewise.
21525         * tests/unictype/test-categ_Mn.c: Likewise.
21526         * tests/unictype/test-categ_N.c: Likewise.
21527         * tests/unictype/test-categ_Nd.c: Likewise.
21528         * tests/unictype/test-categ_No.c: Likewise.
21529         * tests/unictype/test-categ_P.c: Likewise.
21530         * tests/unictype/test-categ_Po.c: Likewise.
21531         * tests/unictype/test-categ_S.c: Likewise.
21532         * tests/unictype/test-categ_Sc.c: Likewise.
21533         * tests/unictype/test-categ_Sk.c: Likewise.
21534         * tests/unictype/test-categ_Sm.c: Likewise.
21535         * tests/unictype/test-categ_So.c: Likewise.
21536         * tests/unictype/test-ctype_alnum.c: Likewise.
21537         * tests/unictype/test-ctype_alpha.c: Likewise.
21538         * tests/unictype/test-ctype_graph.c: Likewise.
21539         * tests/unictype/test-ctype_lower.c: Likewise.
21540         * tests/unictype/test-ctype_print.c: Likewise.
21541         * tests/unictype/test-ctype_punct.c: Likewise.
21542         * tests/unictype/test-ctype_upper.c: Likewise.
21543         * tests/unictype/test-decdigit.h: Likewise.
21544         * tests/unictype/test-digit.h: Likewise.
21545         * tests/unictype/test-numeric.h: Likewise.
21546         * tests/unictype/test-pr_alphabetic.c: Likewise.
21547         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21548         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21549         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21550         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21551         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21552         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21553         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21554         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21555         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21556         * tests/unictype/test-pr_cased.c: Likewise.
21557         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21558         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21559         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21560         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21561         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21562         * tests/unictype/test-pr_combining.c: Likewise.
21563         * tests/unictype/test-pr_composite.c: Likewise.
21564         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21565         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21566         * tests/unictype/test-pr_deprecated.c: Likewise.
21567         * tests/unictype/test-pr_format_control.c: Likewise.
21568         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21569         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21570         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21571         * tests/unictype/test-pr_id_continue.c: Likewise.
21572         * tests/unictype/test-pr_id_start.c: Likewise.
21573         * tests/unictype/test-pr_ideographic.c: Likewise.
21574         * tests/unictype/test-pr_lowercase.c: Likewise.
21575         * tests/unictype/test-pr_math.c: Likewise.
21576         * tests/unictype/test-pr_numeric.c: Likewise.
21577         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21578         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21579         * tests/unictype/test-pr_other_math.c: Likewise.
21580         * tests/unictype/test-pr_punctuation.c: Likewise.
21581         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21582         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21583         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21584         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21585         * tests/unictype/test-pr_uppercase.c: Likewise.
21586         * tests/unictype/test-pr_xid_continue.c: Likewise.
21587         * tests/unictype/test-pr_xid_start.c: Likewise.
21588         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21589         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21590         changes.
21591         * lib/unictype/categ_Cc.h: Likewise.
21592         * lib/unictype/categ_Cf.h: Likewise.
21593         * lib/unictype/categ_Co.h: Likewise.
21594         * lib/unictype/categ_Cs.h: Likewise.
21595         * lib/unictype/categ_Lt.h: Likewise.
21596         * lib/unictype/categ_Nl.h: Likewise.
21597         * lib/unictype/categ_Pc.h: Likewise.
21598         * lib/unictype/categ_Pd.h: Likewise.
21599         * lib/unictype/categ_Pe.h: Likewise.
21600         * lib/unictype/categ_Pf.h: Likewise.
21601         * lib/unictype/categ_Pi.h: Likewise.
21602         * lib/unictype/categ_Ps.h: Likewise.
21603         * lib/unictype/categ_Z.h: Likewise.
21604         * lib/unictype/categ_Zl.h: Likewise.
21605         * lib/unictype/categ_Zp.h: Likewise.
21606         * lib/unictype/categ_Zs.h: Likewise.
21607         * lib/unictype/ctype_blank.h: Likewise.
21608         * lib/unictype/ctype_cntrl.h: Likewise.
21609         * lib/unictype/ctype_digit.h: Likewise.
21610         * lib/unictype/ctype_space.h: Likewise.
21611         * lib/unictype/ctype_xdigit.h: Likewise.
21612         * lib/unictype/mirror.h: Likewise.
21613         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21614         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21615         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21616         * lib/unictype/pr_bidi_control.h: Likewise.
21617         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21618         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21619         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21620         * lib/unictype/pr_bidi_pdf.h: Likewise.
21621         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21622         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21623         * lib/unictype/pr_dash.h: Likewise.
21624         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21625         * lib/unictype/pr_diacritic.h: Likewise.
21626         * lib/unictype/pr_extender.h: Likewise.
21627         * lib/unictype/pr_hex_digit.h: Likewise.
21628         * lib/unictype/pr_hyphen.h: Likewise.
21629         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21630         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21631         * lib/unictype/pr_ignorable_control.h: Likewise.
21632         * lib/unictype/pr_iso_control.h: Likewise.
21633         * lib/unictype/pr_join_control.h: Likewise.
21634         * lib/unictype/pr_left_of_pair.h: Likewise.
21635         * lib/unictype/pr_line_separator.h: Likewise.
21636         * lib/unictype/pr_logical_order_exception.h: Likewise.
21637         * lib/unictype/pr_non_break.h: Likewise.
21638         * lib/unictype/pr_not_a_character.h: Likewise.
21639         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21640         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21641         * lib/unictype/pr_other_id_start.h: Likewise.
21642         * lib/unictype/pr_other_lowercase.h: Likewise.
21643         * lib/unictype/pr_other_uppercase.h: Likewise.
21644         * lib/unictype/pr_paired_punctuation.h: Likewise.
21645         * lib/unictype/pr_paragraph_separator.h: Likewise.
21646         * lib/unictype/pr_pattern_syntax.h: Likewise.
21647         * lib/unictype/pr_pattern_white_space.h: Likewise.
21648         * lib/unictype/pr_private_use.h: Likewise.
21649         * lib/unictype/pr_quotation_mark.h: Likewise.
21650         * lib/unictype/pr_radical.h: Likewise.
21651         * lib/unictype/pr_soft_dotted.h: Likewise.
21652         * lib/unictype/pr_space.h: Likewise.
21653         * lib/unictype/pr_titlecase.h: Likewise.
21654         * lib/unictype/pr_variation_selector.h: Likewise.
21655         * lib/unictype/pr_white_space.h: Likewise.
21656         * lib/unictype/pr_zero_width.h: Likewise.
21657         * lib/unictype/sy_c_ident.h: Likewise.
21658         * lib/unictype/sy_c_whitespace.h: Likewise.
21659         * lib/unictype/sy_java_whitespace.h: Likewise.
21660         * lib/uninorm/composition-table.gperf: Likewise.
21661         * lib/uninorm/decomposition-table1.h: Likewise.
21662         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21663         LB8.
21664         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21665         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21666         * modules/unictype/*: Bump version number of expected libunistring
21667         version.
21668
21669 2011-01-09  Bruno Haible  <bruno@clisp.org>
21670
21671         Update to Unicode 5.2.0.
21672         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21673         trailing whitespace removed.
21674
21675 2011-01-09  Bruno Haible  <bruno@clisp.org>
21676
21677         New Unicode character properties, from Unicode 5.2.0.
21678         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21679         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21680         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21681         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21682         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21683         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21684         uc_is_property_cased, uc_is_property_case_ignorable,
21685         uc_is_property_changes_when_lowercased,
21686         uc_is_property_changes_when_uppercased,
21687         uc_is_property_changes_when_titlecased,
21688         uc_is_property_changes_when_casefolded,
21689         uc_is_property_changes_when_casemapped): New declarations.
21690         * lib/unictype/pr_byname.gperf: Add the new properties.
21691         * modules/unictype/property-byname (Depends-on): Depend on the new
21692         properties modules.
21693         * modules/unictype/property-all (Depends-on): Likewise.
21694         * MODULES.html.sh (Unicode string functions): Add
21695         unictype/property-case-ignorable, unictype/property-cased,
21696         unictype/property-changes-when-casefolded,
21697         unictype/property-changes-when-casemapped,
21698         unictype/property-changes-when-lowercased,
21699         unictype/property-changes-when-titlecased,
21700         unictype/property-changes-when-uppercased.
21701
21702         New module 'unictype/property-changes-when-casemapped'.
21703         * modules/unictype/property-changes-when-casemapped: New file.
21704         * lib/unictype/pr_changes_when_casemapped.c: New file.
21705         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21706         generated by gen-uni-tables.
21707         * modules/unictype/property-changes-when-casemapped-tests: New file.
21708         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21709         automatically generated by gen-uni-tables.
21710
21711         New module 'unictype/property-changes-when-casefolded'.
21712         * modules/unictype/property-changes-when-casefolded: New file.
21713         * lib/unictype/pr_changes_when_casefolded.c: New file.
21714         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21715         generated by gen-uni-tables.
21716         * modules/unictype/property-changes-when-casefolded-tests: New file.
21717         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21718         automatically generated by gen-uni-tables.
21719
21720         New module 'unictype/property-changes-when-titlecased'.
21721         * modules/unictype/property-changes-when-titlecased: New file.
21722         * lib/unictype/pr_changes_when_titlecased.c: New file.
21723         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21724         generated by gen-uni-tables.
21725         * modules/unictype/property-changes-when-titlecased-tests: New file.
21726         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21727         automatically generated by gen-uni-tables.
21728
21729         New module 'unictype/property-changes-when-uppercased'.
21730         * modules/unictype/property-changes-when-uppercased: New file.
21731         * lib/unictype/pr_changes_when_uppercased.c: New file.
21732         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21733         generated by gen-uni-tables.
21734         * modules/unictype/property-changes-when-uppercased-tests: New file.
21735         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21736         automatically generated by gen-uni-tables.
21737
21738         New module 'unictype/property-changes-when-lowercased'.
21739         * modules/unictype/property-changes-when-lowercased: New file.
21740         * lib/unictype/pr_changes_when_lowercased.c: New file.
21741         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21742         generated by gen-uni-tables.
21743         * modules/unictype/property-changes-when-lowercased-tests: New file.
21744         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21745         automatically generated by gen-uni-tables.
21746
21747         New module 'unictype/property-case-ignorable'.
21748         * modules/unictype/property-case-ignorable: New file.
21749         * lib/unictype/pr_case_ignorable.c: New file.
21750         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21751         by gen-uni-tables.
21752         * modules/unictype/property-case-ignorable-tests: New file.
21753         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21754         generated by gen-uni-tables.
21755
21756         New module 'unictype/property-cased'.
21757         * modules/unictype/property-cased: New file.
21758         * lib/unictype/pr_cased.c: New file.
21759         * lib/unictype/pr_cased.h: New file, automatically generated by
21760         gen-uni-tables.
21761         * modules/unictype/property-cased-tests: New file.
21762         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21763         gen-uni-tables.
21764
21765 2011-01-09  Bruno Haible  <bruno@clisp.org>
21766
21767         Update to Unicode 5.2.0.
21768         * lib/gen-uni-tables.c (output_predicate, output_category,
21769         output_combclass, output_bidi_category, output_decimal_digit_test,
21770         output_decimal_digit, output_digit_test, output_digit,
21771         output_numeric_test, output_numeric, output_mirror, output_scripts,
21772         output_scripts_byname, output_blocks, output_ident_category): Fix
21773         comment header.
21774         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21775         get_wbp.
21776         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21777         items.
21778         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21779         Changes_When_Lowercased, Changes_When_Uppercased,
21780         Changes_When_Titlecased, Changes_When_Casefolded,
21781         Changes_When_Casemapped.
21782         (is_property_alphabetic, is_property_default_ignorable_code_point):
21783         Update for Unicode 5.2.0.
21784         (is_property_cased, is_property_case_ignorable,
21785         is_property_changes_when_lowercased,
21786         is_property_changes_when_uppercased,
21787         is_property_changes_when_titlecased,
21788         is_property_changes_when_casefolded,
21789         is_property_changes_when_casemapped): New functions.
21790         (output_properties): Output also the properties cased, case_ignorable,
21791         changes_when_lowercased, changes_when_uppercased,
21792         changes_when_titlecased, changes_when_casefolded,
21793         changes_when_casemapped.
21794         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21795         Unicode TR#11 revision 17 -> 19.
21796         (LBP_CP): New enumeration value.
21797         (LBP_*): Adjust values accordingly.
21798         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21799         TR#14 revision 22 -> 24.
21800         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21801         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21802         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21803         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21804         is_WBP_MIDLETTER.
21805         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21806         the code1 and code2 of each composition rule.
21807         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21808         * lib/unicase/ignorable.h: Likewise.
21809         * lib/unicase/tocasefold.h: Likewise.
21810         * lib/unicase/tolower.h: Likewise.
21811         * lib/unicase/totitle.h: Likewise.
21812         * lib/unicase/toupper.h: Likewise.
21813         * lib/unictype/bidi_of.h: Likewise.
21814         * lib/unictype/blocks.h: Likewise.
21815         * lib/unictype/categ_C.h: Likewise.
21816         * lib/unictype/categ_Cf.h: Likewise.
21817         * lib/unictype/categ_Cn.h: Likewise.
21818         * lib/unictype/categ_L.h: Likewise.
21819         * lib/unictype/categ_Ll.h: Likewise.
21820         * lib/unictype/categ_Lm.h: Likewise.
21821         * lib/unictype/categ_Lo.h: Likewise.
21822         * lib/unictype/categ_Lu.h: Likewise.
21823         * lib/unictype/categ_M.h: Likewise.
21824         * lib/unictype/categ_Mc.h: Likewise.
21825         * lib/unictype/categ_Mn.h: Likewise.
21826         * lib/unictype/categ_N.h: Likewise.
21827         * lib/unictype/categ_Nd.h: Likewise.
21828         * lib/unictype/categ_Nl.h: Likewise.
21829         * lib/unictype/categ_No.h: Likewise.
21830         * lib/unictype/categ_P.h: Likewise.
21831         * lib/unictype/categ_Pd.h: Likewise.
21832         * lib/unictype/categ_Po.h: Likewise.
21833         * lib/unictype/categ_S.h: Likewise.
21834         * lib/unictype/categ_Sc.h: Likewise.
21835         * lib/unictype/categ_So.h: Likewise.
21836         * lib/unictype/categ_of.h: Likewise.
21837         * lib/unictype/combining.h: Likewise.
21838         * lib/unictype/ctype_alnum.h: Likewise.
21839         * lib/unictype/ctype_alpha.h: Likewise.
21840         * lib/unictype/ctype_graph.h: Likewise.
21841         * lib/unictype/ctype_lower.h: Likewise.
21842         * lib/unictype/ctype_print.h: Likewise.
21843         * lib/unictype/ctype_punct.h: Likewise.
21844         * lib/unictype/ctype_upper.h: Likewise.
21845         * lib/unictype/decdigit.h: Likewise.
21846         * lib/unictype/digit.h: Likewise.
21847         * lib/unictype/numeric.h: Likewise.
21848         * lib/unictype/pr_alphabetic.h: Likewise.
21849         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21850         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21851         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21852         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21853         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21854         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21855         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21856         * lib/unictype/pr_combining.h: Likewise.
21857         * lib/unictype/pr_composite.h: Likewise.
21858         * lib/unictype/pr_currency_symbol.h: Likewise.
21859         * lib/unictype/pr_dash.h: Likewise.
21860         * lib/unictype/pr_decimal_digit.h: Likewise.
21861         * lib/unictype/pr_deprecated.h: Likewise.
21862         * lib/unictype/pr_diacritic.h: Likewise.
21863         * lib/unictype/pr_extender.h: Likewise.
21864         * lib/unictype/pr_grapheme_base.h: Likewise.
21865         * lib/unictype/pr_grapheme_extend.h: Likewise.
21866         * lib/unictype/pr_grapheme_link.h: Likewise.
21867         * lib/unictype/pr_id_continue.h: Likewise.
21868         * lib/unictype/pr_id_start.h: Likewise.
21869         * lib/unictype/pr_ideographic.h: Likewise.
21870         * lib/unictype/pr_ignorable_control.h: Likewise.
21871         * lib/unictype/pr_logical_order_exception.h: Likewise.
21872         * lib/unictype/pr_lowercase.h: Likewise.
21873         * lib/unictype/pr_numeric.h: Likewise.
21874         * lib/unictype/pr_other_alphabetic.h: Likewise.
21875         * lib/unictype/pr_punctuation.h: Likewise.
21876         * lib/unictype/pr_sentence_terminal.h: Likewise.
21877         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21878         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21879         * lib/unictype/pr_unified_ideograph.h: Likewise.
21880         * lib/unictype/pr_uppercase.h: Likewise.
21881         * lib/unictype/pr_xid_continue.h: Likewise.
21882         * lib/unictype/pr_xid_start.h: Likewise.
21883         * lib/unictype/pr_zero_width.h: Likewise.
21884         * lib/unictype/scripts.h: Likewise.
21885         * lib/unictype/scripts_byname.gperf: Likewise.
21886         * lib/unictype/sy_java_ident.h: Likewise.
21887         * lib/unigbrk/gbrkprop.h: Likewise.
21888         * lib/unilbrk/lbrkprop1.h: Likewise.
21889         * lib/unilbrk/lbrkprop2.h: Likewise.
21890         * lib/unilbrk/lbrktables.h: Likewise.
21891         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21892         LBP_CP. Implement rule LB30.
21893         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21894         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21895         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21896         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21897         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21898         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21899         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21900         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21901         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21902         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21903         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21904         bits instead of 16 bits in the code1 and code2 of each composition
21905         rule.
21906         (uc_composition): Update for Unicode 5.2.0.
21907         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21908         * lib/uninorm/decomposition-table2.h: Likewise.
21909         * lib/uniwbrk/wbrkprop.h: Likewise.
21910         * tests/unicase/test-cased.c: Likewise.
21911         * tests/unicase/test-ignorable.c: Likewise.
21912         * tests/unicase/test-uc_tolower.c: Likewise.
21913         * tests/unicase/test-uc_totitle.c: Likewise.
21914         * tests/unicase/test-uc_toupper.c: Likewise.
21915         * tests/unictype/test-categ_C.c: Likewise.
21916         * tests/unictype/test-categ_Cf.c: Likewise.
21917         * tests/unictype/test-categ_Cn.c: Likewise.
21918         * tests/unictype/test-categ_L.c: Likewise.
21919         * tests/unictype/test-categ_Ll.c: Likewise.
21920         * tests/unictype/test-categ_Lm.c: Likewise.
21921         * tests/unictype/test-categ_Lo.c: Likewise.
21922         * tests/unictype/test-categ_Lu.c: Likewise.
21923         * tests/unictype/test-categ_M.c: Likewise.
21924         * tests/unictype/test-categ_Mc.c: Likewise.
21925         * tests/unictype/test-categ_Mn.c: Likewise.
21926         * tests/unictype/test-categ_N.c: Likewise.
21927         * tests/unictype/test-categ_Nd.c: Likewise.
21928         * tests/unictype/test-categ_Nl.c: Likewise.
21929         * tests/unictype/test-categ_No.c: Likewise.
21930         * tests/unictype/test-categ_P.c: Likewise.
21931         * tests/unictype/test-categ_Pd.c: Likewise.
21932         * tests/unictype/test-categ_Po.c: Likewise.
21933         * tests/unictype/test-categ_S.c: Likewise.
21934         * tests/unictype/test-categ_Sc.c: Likewise.
21935         * tests/unictype/test-categ_So.c: Likewise.
21936         * tests/unictype/test-ctype_alnum.c: Likewise.
21937         * tests/unictype/test-ctype_alpha.c: Likewise.
21938         * tests/unictype/test-ctype_graph.c: Likewise.
21939         * tests/unictype/test-ctype_lower.c: Likewise.
21940         * tests/unictype/test-ctype_print.c: Likewise.
21941         * tests/unictype/test-ctype_punct.c: Likewise.
21942         * tests/unictype/test-ctype_upper.c: Likewise.
21943         * tests/unictype/test-decdigit.h: Likewise.
21944         * tests/unictype/test-digit.h: Likewise.
21945         * tests/unictype/test-numeric.h: Likewise.
21946         * tests/unictype/test-pr_alphabetic.c: Likewise.
21947         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21948         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21949         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21950         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21951         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21952         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21953         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21954         * tests/unictype/test-pr_combining.c: Likewise.
21955         * tests/unictype/test-pr_composite.c: Likewise.
21956         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21957         * tests/unictype/test-pr_dash.c: Likewise.
21958         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21959         * tests/unictype/test-pr_deprecated.c: Likewise.
21960         * tests/unictype/test-pr_diacritic.c: Likewise.
21961         * tests/unictype/test-pr_extender.c: Likewise.
21962         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21963         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21964         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21965         * tests/unictype/test-pr_id_continue.c: Likewise.
21966         * tests/unictype/test-pr_id_start.c: Likewise.
21967         * tests/unictype/test-pr_ideographic.c: Likewise.
21968         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21969         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21970         * tests/unictype/test-pr_lowercase.c: Likewise.
21971         * tests/unictype/test-pr_numeric.c: Likewise.
21972         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21973         * tests/unictype/test-pr_punctuation.c: Likewise.
21974         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21975         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21976         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21977         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21978         * tests/unictype/test-pr_uppercase.c: Likewise.
21979         * tests/unictype/test-pr_xid_continue.c: Likewise.
21980         * tests/unictype/test-pr_xid_start.c: Likewise.
21981         * tests/unictype/test-pr_zero_width.c: Likewise.
21982         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21983         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21984         changed behaviour: line breaking is now disallowed between a letter
21985         or '=' and '('.
21986         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21987         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21988         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21989         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21990         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21991         lib/uniwidth/width.c.
21992         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21993         without comments, but with the original copyright notice.
21994         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21995         changes.
21996         * lib/unictype/categ_Cc.h: Likewise.
21997         * lib/unictype/categ_Co.h: Likewise.
21998         * lib/unictype/categ_Cs.h: Likewise.
21999         * lib/unictype/categ_Lt.h: Likewise.
22000         * lib/unictype/categ_Me.h: Likewise.
22001         * lib/unictype/categ_Pc.h: Likewise.
22002         * lib/unictype/categ_Pe.h: Likewise.
22003         * lib/unictype/categ_Pf.h: Likewise.
22004         * lib/unictype/categ_Pi.h: Likewise.
22005         * lib/unictype/categ_Ps.h: Likewise.
22006         * lib/unictype/categ_Sk.h: Likewise.
22007         * lib/unictype/categ_Sm.h: Likewise.
22008         * lib/unictype/categ_Z.h: Likewise.
22009         * lib/unictype/categ_Zl.h: Likewise.
22010         * lib/unictype/categ_Zp.h: Likewise.
22011         * lib/unictype/categ_Zs.h: Likewise.
22012         * lib/unictype/ctype_blank.h: Likewise.
22013         * lib/unictype/ctype_cntrl.h: Likewise.
22014         * lib/unictype/ctype_digit.h: Likewise.
22015         * lib/unictype/ctype_space.h: Likewise.
22016         * lib/unictype/ctype_xdigit.h: Likewise.
22017         * lib/unictype/mirror.h: Likewise.
22018         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22019         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22020         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22021         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22022         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22023         * lib/unictype/pr_bidi_control.h: Likewise.
22024         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22025         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22026         * lib/unictype/pr_bidi_pdf.h: Likewise.
22027         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22028         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22029         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22030         * lib/unictype/pr_format_control.h: Likewise.
22031         * lib/unictype/pr_hex_digit.h: Likewise.
22032         * lib/unictype/pr_hyphen.h: Likewise.
22033         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22034         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22035         * lib/unictype/pr_iso_control.h: Likewise.
22036         * lib/unictype/pr_join_control.h: Likewise.
22037         * lib/unictype/pr_left_of_pair.h: Likewise.
22038         * lib/unictype/pr_line_separator.h: Likewise.
22039         * lib/unictype/pr_math.h: Likewise.
22040         * lib/unictype/pr_non_break.h: Likewise.
22041         * lib/unictype/pr_not_a_character.h: Likewise.
22042         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22043         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22044         * lib/unictype/pr_other_id_continue.h: Likewise.
22045         * lib/unictype/pr_other_id_start.h: Likewise.
22046         * lib/unictype/pr_other_lowercase.h: Likewise.
22047         * lib/unictype/pr_other_math.h: Likewise.
22048         * lib/unictype/pr_other_uppercase.h: Likewise.
22049         * lib/unictype/pr_paired_punctuation.h: Likewise.
22050         * lib/unictype/pr_paragraph_separator.h: Likewise.
22051         * lib/unictype/pr_pattern_syntax.h: Likewise.
22052         * lib/unictype/pr_pattern_white_space.h: Likewise.
22053         * lib/unictype/pr_private_use.h: Likewise.
22054         * lib/unictype/pr_quotation_mark.h: Likewise.
22055         * lib/unictype/pr_radical.h: Likewise.
22056         * lib/unictype/pr_soft_dotted.h: Likewise.
22057         * lib/unictype/pr_space.h: Likewise.
22058         * lib/unictype/pr_titlecase.h: Likewise.
22059         * lib/unictype/pr_variation_selector.h: Likewise.
22060         * lib/unictype/pr_white_space.h: Likewise.
22061         * lib/unictype/sy_c_ident.h: Likewise.
22062         * lib/unictype/sy_c_whitespace.h: Likewise.
22063         * lib/unictype/sy_java_whitespace.h: Likewise.
22064         * modules/uni*/*: Bump version number of expected libunistring version.
22065         Reported by Simon Josefsson.
22066
22067 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22068
22069         useless-if-before-free: fix typo in --help and make the internal,
22070         automatic version date update process work once again.
22071         --help output contained a NUL character instead of the
22072         backslash-zero that was intended.  Also, the "must lie within
22073         the first 8 lines" line is on line 9, and hence not getting
22074         automatically updated.
22075         * build-aux/useless-if-before-free: Fix the former by adding a
22076         backslash, and the latter by condensing the three lines of what-it-does
22077         to a single line, leaving one line of slack for the future.
22078
22079 2011-01-09  Bruno Haible  <bruno@clisp.org>
22080
22081         uniwidth/width: Fix width of U+1D173..U+1D17A.
22082         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22083         symbolic_width, output_width_property_test): New functions.
22084         (main): Invoke output_nonspacing_property, output_width_property_test.
22085         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22086         U+1D173..U+1D17A.
22087         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22088         1.
22089         * modules/uniwidth/*: Bump version number of expected libunistring
22090         version.
22091         * modules/unilbrk/*: Likewise.
22092
22093 2011-01-08  Bruno Haible  <bruno@clisp.org>
22094
22095         uninorm tests: Preserve copyright of Unicode data file.
22096         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22097         Mention modifications.
22098
22099 2011-01-08  Bruno Haible  <bruno@clisp.org>
22100
22101         gen-uni-tables: Prepare for Unicode 5.2.0.
22102         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22103         (debug_output_lbp, output_lbp): Update.
22104
22105 2011-01-08  Bruno Haible  <bruno@clisp.org>
22106
22107         unilbrk: Clarify gen-uni-tables.c code.
22108         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22109         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22110         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22111
22112 2011-01-07  Bruno Haible  <bruno@clisp.org>
22113
22114         strtod: Restore errno when successfully parsing Infinity or NaN.
22115         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22116         restore the original errno.
22117
22118 2011-01-07  Bruno Haible  <bruno@clisp.org>
22119
22120         remove test: Avoid failure on HP-UX 11.
22121         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22122
22123 2011-01-07  Bruno Haible  <bruno@clisp.org>
22124
22125         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22126         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22127         error code.
22128
22129 2011-01-07  Pádraig Brady <P@draigBrady.com>
22130
22131         ignore-value: fixup comments, and add Eric Blake
22132         as an author since he rewrote the macros.
22133         * lib/ignore-value.h (ignore_value):  State that
22134         we now support aggregates.  Also specify exactly
22135         when the GCC warn_unused_result feature was added.
22136
22137 2011-01-06  Eric Blake  <eblake@redhat.com>
22138
22139         ignore-value: support aggregate types
22140         * lib/ignore-value.h (ignore_value): Provide separate gcc
22141         definition.
22142         * modules/ignore-value-tests: New test module.
22143         * tests/test-ignore-value.c: New test.
22144
22145         maint.mk: improve sc_prohibit_strcmp regex
22146         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22147         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22148         definition of STRNEQ.
22149
22150         signal: work around Haiku issue with SIGBUS
22151         * lib/siglist.h: Add comment.
22152         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22153         strsignal's favoring of SIGSEGV.
22154         * tests/test-signal.c (main): Avoid test failure.
22155         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22156         Reported by Scott McCreary.
22157
22158         maint.mk: add pre-release check to ensure submodule commits are public
22159         * top/maint.mk (public-submodule-commit): New rule.
22160         (submodule-checks): New variable.
22161         (alpha beta stable): Depend on the variable.
22162
22163 2011-01-05  Pádraig Brady <P@draigBrady.com>
22164         and Jim Meyering  <meyering@redhat.com>
22165
22166         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22167         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22168         (ATTRIBUTE_DEPRECATED): Define.
22169         (_ignore_case): New function.
22170         (ignore_value): New macro, to replace the old function.
22171         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22172         * modules/ignore-value (Depends-on): Add stdint.
22173
22174 2011-01-04  Eric Blake  <eblake@redhat.com>
22175
22176         doc: regenerate INSTALL
22177         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22178         @firstparagraphindent support, now that autoconf dropped it.
22179         (INSTALL_PRELUDE): Reinstate old macro.
22180         * doc/install.texi: Resync from autoconf.
22181         * doc/INSTALL: Reflect recent autoconf update.
22182         * doc/INSTALL.ISO: Likewise.
22183         * doc/INSTALL.UTF-8: Likewise.
22184         Reported by Karl Berry.
22185
22186 2011-01-04  Bruce Korb  <address@hidden>
22187
22188         git-version-gen: avoid a sub-shell
22189         * build-aux/git-version-gen: Redirect stderr in `...` via
22190         "exec 2>...", rather than via an added sub-shell.
22191
22192 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22193
22194         git-version-gen: use (...) rather than sh -c '...'
22195         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22196         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22197
22198 2011-01-03  Jim Meyering  <meyering@redhat.com>
22199
22200         git-version-gen: convert leading TABs to spaces
22201         * build-aux/git-version-gen: Expand leading TABs.
22202
22203         git-version-gen: handle failed "git rev-list"
22204         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22205         from git and proceeding as if it had succeeded but printed no SHA1
22206         checksums, suppress the diagnostic and handle the failure.
22207         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22208
22209         git-version-gen: include command name in one more diagnostic
22210         * build-aux/git-version-gen: When the required .tarball-version file
22211         was missing or unreadable, you might see the diagnostic from "cat",
22212         but no trace of the name of the invoking script.  Now, you still see
22213         the diagnostic from cat, but also get one from "git-version-gen: ".
22214         Inspired by a patch from Bruce Korb.
22215
22216         update-copyright: adjust test to match changed code
22217         * tests/test-update-copyright.sh: Change test's expected output
22218         to match new actual output.
22219
22220 2011-01-02  Bruno Haible  <bruno@clisp.org>
22221
22222         getlogin_r: Avoid test failure on HP-UX 11.
22223         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22224         ERANGE when the second argument is zero.
22225         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22226         portability problem.
22227
22228 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22229
22230         * build-aux/update-copyright: doc Simon's changes
22231
22232 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22233
22234         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22235         environment variable.
22236
22237 2011-01-02  Bruno Haible  <bruno@clisp.org>
22238
22239         unigbrk: Avoid gcc warnings.
22240         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22241         unused variable.
22242         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22243         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22244         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22245         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22246         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22247         Change type of first argument to 'const char *'.
22248         (main): Remove unused variable.
22249         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22250         type of first argument to 'const char *'.
22251         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22252         Likewise.
22253         (main): Change type of variable 's'.
22254         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22255         to 'int'.
22256
22257 2011-01-02  Bruno Haible  <bruno@clisp.org>
22258
22259         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22260         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22261         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22262         bug.
22263         * lib/pwrite.c: Undo 2010-12-31 patch.
22264         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22265
22266 2011-01-02  Bruno Haible  <bruno@clisp.org>
22267
22268         pread: Fix test whether it works.
22269         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22270
22271 2011-01-02  Bruno Haible  <bruno@clisp.org>
22272
22273         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22274         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22275         ends in "6". Don't require a specific month name. Try also the locale
22276         names found on HP-UX 11 and Solaris 7.
22277
22278 2011-01-02  Bruno Haible  <bruno@clisp.org>
22279
22280         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22281         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22282         C linkage.
22283         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22284
22285 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22286
22287         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22288         for consistency, since the "cluster" term is not used elsewhere.
22289         * lib/unigbrk.in.h: Update name.
22290         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22291         * lib/unigbrk/u16-grapheme-next.c: Update name.
22292         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22293         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22294         * lib/unigbrk/u32-grapheme-next.c: Update name.
22295         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22296         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22297         * lib/unigbrk/u8-grapheme-next.c: Update name.
22298         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22299         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22300         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22301         Suggested by Bruno Haible.
22302
22303 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22304
22305         Remove module 'u8-grapheme-len' as too redundant with
22306         'u8-grapheme-next'.
22307         * modules/unigbrk/u8-grapheme-len: Delete file.
22308         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22309         * lib/unigbrk.in.h: Remove prototype for deleted function.
22310         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22311         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22312
22313         Remove module 'u16-grapheme-len' as too redundant with
22314         'u16-grapheme-next'.
22315         * modules/unigbrk/u16-grapheme-len: Delete file.
22316         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22317         * lib/unigbrk.in.h: Remove prototype for deleted function.
22318         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22319         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22320
22321         Remove module 'u32-grapheme-len' as too redundant with
22322         'u32-grapheme-next'.
22323         * modules/unigbrk/u32-grapheme-len: Delete file.
22324         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22325         * lib/unigbrk.in.h: Remove prototype for deleted function.
22326         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22327         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22328
22329         Suggested by Bruno Haible.
22330
22331 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22332
22333         * unigbrk.in.h: Fix typo: "ben" => "been".
22334         Reported by Bruno Haible.
22335
22336 2011-01-01  Jim Meyering  <meyering@redhat.com>
22337
22338         maint: update almost all copyright ranges to include 2011
22339         Run the new "make update-copyright" rule.
22340
22341 2011-01-01  Jim Meyering  <meyering@redhat.com>
22342
22343         maint: update-copyright: exempt doc/INSTALL*
22344         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22345         since they are generated.  Suggested by Bruno Haible.
22346
22347 2011-01-01  Jim Meyering  <meyering@redhat.com>
22348
22349         maint: refine the update-copyright rule
22350         * Makefile (update-copyright): Also exclude any file that includes
22351         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22352         code that merely generates the comment.
22353
22354 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22355
22356         New module 'u8-grapheme-len'.
22357         * modules/unigbrk/u8-grapheme-len: New file.
22358         * modules/unigbrk/u8-grapheme-len-tests: New file.
22359         * lib/unigbrk.in.h: Add prototype for new function.
22360         * lib/unigbrk/u8-grapheme-len.c: New file.
22361         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22362
22363         New module 'u16-grapheme-len'.
22364         * modules/unigbrk/u16-grapheme-len: New file.
22365         * modules/unigbrk/u16-grapheme-len-tests: New file.
22366         * lib/unigbrk.in.h: Add prototype for new function.
22367         * lib/unigbrk/u16-grapheme-len.c: New file.
22368         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22369
22370         New module 'u32-grapheme-len'.
22371         * modules/unigbrk/u32-grapheme-len: New file.
22372         * modules/unigbrk/u32-grapheme-len-tests: New file.
22373         * lib/unigbrk.in.h: Add prototype for new function.
22374         * lib/unigbrk/u32-grapheme-len.c: New file.
22375         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22376
22377         New module 'u8-grapheme-next'.
22378         * modules/unigbrk/u8-grapheme-next: New file.
22379         * modules/unigbrk/u8-grapheme-next-tests: New file.
22380         * lib/unigbrk.in.h: Add prototype for new function.
22381         * lib/unigbrk/u8-grapheme-next.c: New file.
22382         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22383
22384         New module 'u16-grapheme-next'.
22385         * modules/unigbrk/u16-grapheme-next: New file.
22386         * modules/unigbrk/u16-grapheme-next-tests: New file.
22387         * lib/unigbrk.in.h: Add prototype for new function.
22388         * lib/unigbrk/u16-grapheme-next.c: New file.
22389         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22390
22391         New module 'u32-grapheme-next'.
22392         * modules/unigbrk/u32-grapheme-next: New file.
22393         * modules/unigbrk/u32-grapheme-next-tests: New file.
22394         * lib/unigbrk.in.h: Add prototype for new function.
22395         * lib/unigbrk/u32-grapheme-next.c: New file.
22396         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22397
22398         New module 'u8-grapheme-prev'.
22399         * modules/unigbrk/u8-grapheme-prev: New file.
22400         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22401         * lib/unigbrk.in.h: Add prototype for new function.
22402         * lib/unigbrk/u8-grapheme-prev.c: New file.
22403         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22404
22405         New module 'u16-grapheme-prev'.
22406         * modules/unigbrk/u16-grapheme-prev: New file.
22407         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22408         * lib/unigbrk.in.h: Add prototype for new function.
22409         * lib/unigbrk/u16-grapheme-prev.c: New file.
22410         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22411
22412         New module 'u32-grapheme-prev'.
22413         * modules/unigbrk/u32-grapheme-prev: New file.
22414         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22415         * lib/unigbrk.in.h: Add prototype for new function.
22416         * lib/unigbrk/u32-grapheme-prev.c: New file.
22417         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22418
22419         New module 'u8-grapheme-breaks'.
22420         * modules/unigbrk/u8-grapheme-breaks: New file.
22421         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22422         * lib/unigbrk.in.h: Add prototype for new function.
22423         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22424         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22425
22426         New module 'u16-grapheme-breaks'.
22427         * modules/unigbrk/u16-grapheme-breaks: New file.
22428         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22429         * lib/unigbrk.in.h: Add prototype for new function.
22430         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22431         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22432
22433         New module 'u32-grapheme-breaks'.
22434         * modules/unigbrk/u32-grapheme-breaks: New file.
22435         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22436         * lib/unigbrk.in.h: Add prototype for new function.
22437         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22438         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22439
22440         New module 'ulc-grapheme-breaks'.
22441         * modules/unigbrk/ulc-grapheme-breaks: New file.
22442         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22443         * m4/locale-ar.m4: New file.
22444         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22445         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22446         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22447
22448 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22449
22450         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22451         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22452         modified how this file was generated before I initially submitted
22453         the module, but failed to regenerate it.  This meant that several
22454         of the level2 entries were wrong.
22455         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22456         Remove the division-by-2 that is folded into the table now that
22457         gbrkprop.h has been regenerated properly.  Now -1 entries are
22458         handled correctly.
22459
22460         New module 'unigbrk/uc-gbrk-prop-tests'.
22461         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22462         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22463         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22464         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22465
22466 2011-01-01  Bruno Haible  <bruno@clisp.org>
22467
22468         Avoid use of hexadecimal escapes.
22469         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22470         instead of hexadecimal escapes.
22471
22472 2011-01-01  Jim Meyering  <meyering@redhat.com>
22473
22474         maint: new rule to update copyright year ranges
22475         * Makefile (update-copyright): New rule.
22476
22477         maint: indent with TABs in Makefile
22478         * Makefile: Expand leading sequences of spaces to TABs
22479
22480         version-etc: update the copyright year it reports
22481         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22482
22483 2010-12-31  Bruno Haible  <bruno@clisp.org>
22484
22485         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22486         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22487         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22488         zero.
22489
22490 2010-12-31  Bruno Haible  <bruno@clisp.org>
22491
22492         pwrite: Work around HP-UX 11.11 bug.
22493         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22494         works and set REPLACE_PWRITE if not.
22495         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22496         function.
22497         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22498
22499 2010-12-31  Bruno Haible  <bruno@clisp.org>
22500
22501         pread: Work around HP-UX 11 bugs.
22502         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22503         and set REPLACE_PREAD if not.
22504         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22505
22506 2010-12-31  Eric Blake  <eblake@redhat.com>
22507
22508         nl_langinfo: fix YESEXPR on Irix 6.5
22509         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22510         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22511         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22512         it.
22513
22514 2010-12-31  Bruno Haible  <bruno@clisp.org>
22515
22516         iconv: Document HP-UX 11 bug.
22517         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22518
22519 2010-12-31  Bruno Haible  <bruno@clisp.org>
22520
22521         ldexpl: Fix link error on HP-UX 11.
22522         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22523         LDEXPL_LIBM, using $ISNANL_LIBM.
22524
22525 2010-12-31  Eric Blake  <eblake@redhat.com>
22526
22527         ftello: avoid compilation failure with SunStudio c89
22528         * lib/ftello.c (ftello): Use lseek, not llseek.
22529
22530         tests: avoid failing coreutils tests on cygwin
22531         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22532         (create_exe_shims_): Return 0 when skipping.
22533
22534 2010-12-31  Bruno Haible  <bruno@clisp.org>
22535
22536         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22537         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22538
22539 2010-12-31  Bruno Haible  <bruno@clisp.org>
22540
22541         waitpid: Fix link error in C++ mode.
22542         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22543
22544 2010-12-31  Bruno Haible  <bruno@clisp.org>
22545
22546         isnan: Use GCC built-ins when possible.
22547         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22548         __builtin_isnan.
22549         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22550         (isnan): Define using GCC built-ins for GCC >= 4.0.
22551
22552 2010-12-31  Bruno Haible  <bruno@clisp.org>
22553
22554         isnand: Fix mistake.
22555         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22556         __builtin_isnand.
22557
22558 2010-12-31  Bruno Haible  <bruno@clisp.org>
22559
22560         open: Avoid C++ error on HP-UX 11.
22561         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22562
22563 2010-12-31  Bruno Haible  <bruno@clisp.org>
22564
22565         time_r: Add missing declarations on HP-UX 11.
22566         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22567         instead of HAVE_LOCALTIME_R.
22568         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22569         HAVE_LOCALTIME_R always.
22570         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22571         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22572         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22573         HAVE_LOCALTIME_R.
22574         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22575         * doc/posix-functions/localtime_r.texi: Likewise.
22576
22577 2010-12-29  Eric Blake  <eblake@redhat.com>
22578
22579         mountlist: tweak previous commit
22580         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22581         Reported by Paul Eggert.
22582
22583         mountlist: fix local drive detection on cygwin
22584         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22585         that works for cygwin.
22586
22587 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22588
22589         ftoastr, snprintf: ftoastr + snprintf module
22590         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22591         since the snprintf module now should be good enough here.
22592         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22593         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22594         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22595         GNULIB_SNPRINTF only for the test directory, and the latter
22596         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22597         seems to suffice by itself.
22598
22599 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22600
22601         alloca: one step towards thread-safety
22602         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22603         need for a static variable.  All callers changed.  This does not
22604         make the alloca replacement thread-safe, but it's one step.
22605
22606         tests: minor indenting change
22607         * tests/init.sh: Sync from coreutils housekeeping patch
22608         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22609         to keep lines within 80 columns.
22610
22611 2010-12-28  Jim Meyering  <meyering@redhat.com>
22612
22613         regex: don't infloop on persistent failing calloc
22614         * lib/regexec.c (build_trtable): Return failure indication upon
22615         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22616         In glibc, this was fixed for version 2.13:
22617         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22618
22619 2010-12-28  Bruno Haible  <bruno@clisp.org>
22620             Paul Eggert <eggert@cs.ucla.edu>
22621
22622         linkat: Make implementation robust against system behaviour variations.
22623         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22624         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22625         way, and to -2 if it needs a generic runtime test.
22626         * lib/linkat.c (solaris_optimized_link_immediate,
22627         solaris_optimized_link_follow): New functions.
22628         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22629         (check_same_link): Use it.
22630
22631 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22632
22633         New module 'unigbrk/base'.
22634         * modules/unigbrk/base: New file.
22635         * lib/unigbrk.in.h: New file.
22636
22637         New module 'unigbrk/uc-gbrk-prop'.
22638         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22639         * modules/unigbrk/uc-gbrk-prop: New file.
22640         * lib/unigbrk/gbrkprop.h: New file.
22641         * lib/unigbrk/uc-gbrk-prop.c: New file.
22642
22643         New module 'unigbrk/uc-is-grapheme-break'.
22644         * modules/unigbrk/uc-is-grapheme-break: New file.
22645         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22646         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22647         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22648         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22649         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22650
22651         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22652
22653 2010-12-27  Bruno Haible  <bruno@clisp.org>
22654
22655         linkat test: Avoid failure on Solaris 11 2010-11.
22656         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22657
22658 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22659
22660         utimens: work around glibc rounding bug on more platforms
22661         * lib/utimens.c (fdutimens): Work around rounding bug even if
22662         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22663         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22664
22665 2010-12-27  Bruno Haible  <bruno@clisp.org>
22666
22667         select tests: Improve comments.
22668         * tests/test-select.c (do_select): Add comments.
22669
22670 2010-12-27  Bruno Haible  <bruno@clisp.org>
22671
22672         select tests: Safer way of handling timeout.
22673         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22674         at every invocation.
22675
22676 2010-12-27  Bruno Haible  <bruno@clisp.org>
22677
22678         select tests: Use 'bool' where appropriate.
22679         * tests/test-select.c (connect_to_socket): Change argument type to
22680         'bool'.
22681
22682 2010-12-27  Bruno Haible  <bruno@clisp.org>
22683
22684         select tests: Use existing modules.
22685         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22686         (configure.ac): Don't test for unistd.h.
22687         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22688         declared in <unistd.h>.
22689
22690 2010-12-27  Bruno Haible  <bruno@clisp.org>
22691
22692         mbrtowc: Work around a Solaris 7 bug.
22693         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22694         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22695         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22696         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22697         MBRTOWC_NULL_ARG1_BUG.
22698         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22699         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22700         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22701         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22702
22703 2010-12-27  Jim Meyering  <meyering@redhat.com>
22704
22705         read-file.c: tweak syntax
22706         * lib/read-file.c (fread_file): Remove space after "*" in function
22707         definitions.
22708
22709 2010-12-27  Bruno Haible  <bruno@clisp.org>
22710
22711         times test: Avoid gcc warnings on OSF/1.
22712         * tests/test-times.c (main): Cast printf arguments from clock_t to
22713         'long int'.
22714
22715 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22716
22717         utimens: work around glibc rounding bug on older Linux kernels
22718         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22719         on Linux with a glibc whose utimes might not work, then work
22720         around a longstanding glibc bug involving rounding rather than
22721         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22722         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22723
22724 2010-12-26  Bruno Haible  <bruno@clisp.org>
22725
22726         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22727         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22728         _GL_CXXALIAS_SYS.
22729         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22730
22731 2010-12-26  Bruno Haible  <bruno@clisp.org>
22732
22733         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22734         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22735         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22736         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22737         looking for the declaration.
22738         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22739         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22740         problem.
22741         * doc/posix-functions/inet_pton.texi: Likewise.
22742
22743 2010-12-26  Bruno Haible  <bruno@clisp.org>
22744
22745         arpa_inet: Use the common idioms with C++ support.
22746         * lib/arpa_inet.in.h: Include c++defs.h.
22747         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22748         support.
22749         * modules/arpa_inet (Depends-on): Add c++defs.
22750         (Makefile.am): Substitute the contents of c++defs.h.
22751         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22752         * modules/arpa_inet-c++-tests: New file.
22753         * tests/test-arpa_inet-c++.cc: New file.
22754
22755 2010-12-25  Bruno Haible  <bruno@clisp.org>
22756
22757         Fix more C++ link errors on Solaris 8.
22758         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22759         $(LIB_EACCESS).
22760         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22761         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22762         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22763         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22764         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22765
22766 2010-12-25  Bruno Haible  <bruno@clisp.org>
22767
22768         printf-posix: Fix link error when a non-GCC compiler is used.
22769         * lib/stdio.in.h (printf): When not using GCC, override printf
22770         correctly.
22771         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22772
22773 2010-12-25  Bruno Haible  <bruno@clisp.org>
22774
22775         strerror_r-posix: Update doc.
22776         * doc/posix-functions/strerror_r.texi: Update doc about the return
22777         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22778
22779 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22780
22781         utimens: simplify the logic of the previous change
22782         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22783         This should not affect whether the test succeeds or fails.
22784
22785         utimens: configure better on hosts with NFS clock skew
22786         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22787         uses the clock of the local host.  It might use the clock of the
22788         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22789         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22790
22791 2010-12-25  Bruno Haible  <bruno@clisp.org>
22792
22793         ptsname test: Avoid failure on Solaris.
22794         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22795         open a pseudo-terminal; don't use BSD-style ptys.
22796         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22797
22798 2010-12-25  Bruno Haible  <bruno@clisp.org>
22799
22800         ptsname: Avoid ERANGE failure on some systems.
22801         * lib/ptsname.c (buffer): Increase size.
22802
22803 2010-12-25  Bruno Haible  <bruno@clisp.org>
22804
22805         rename, renameat: Avoid test failures at NFS mounted locations.
22806         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22807         so that subsequent mkdir calls succeed.
22808
22809 2010-12-25  Bruno Haible  <bruno@clisp.org>
22810
22811         iswblank: Fix C++ link error on Solaris 8.
22812         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22813         _GL_FUNCDECL_SYS.
22814
22815 2010-12-25  Bruno Haible  <bruno@clisp.org>
22816
22817         unistd: Fix C++ link error on Solaris 8.
22818         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22819
22820 2010-12-25  Bruno Haible  <bruno@clisp.org>
22821
22822         readlink doc: Mention an old glibc bug.
22823         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22824
22825 2010-12-25  Bruno Haible  <bruno@clisp.org>
22826
22827         fcntl-h: Fix for use of C++ on glibc systems.
22828         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22829         also on glibc systems in C++ mode.
22830         Reported by Gary V. Vaughan <gary@gnu.org>.
22831
22832 2010-12-25  Bruno Haible  <bruno@clisp.org>
22833
22834         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22835         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22836
22837 2010-12-25  Bruno Haible  <bruno@clisp.org>
22838
22839         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22840         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22841         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22842         test whether truncl works according to ISO C 99 with IEC 60559.
22843         * m4/truncl-ieee.m4: New file.
22844         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22845         m4/signbit.m4.
22846         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22847
22848 2010-12-25  Bruno Haible  <bruno@clisp.org>
22849
22850         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22851         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22852         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22853         test whether ceill works according to ISO C 99 with IEC 60559.
22854         * m4/ceill-ieee.m4: New file.
22855         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22856         m4/signbit.m4.
22857         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22858
22859 2010-12-25  Bruno Haible  <bruno@clisp.org>
22860
22861         Ensure all prerequisites of <wchar.h> are included.
22862         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22863         before <wchar.h>.
22864         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22865         gl_MBRLEN_NUL_RETVAL): Likewise.
22866         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22867         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22868         AC_FUNC_MBRTOWC): Likewise.
22869         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22870         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22871         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22872         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22873         Likewise.
22874         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22875         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22876         (gl_WCHAR_H): Improve comments.
22877         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22878
22879 2010-12-25  Bruno Haible  <bruno@clisp.org>
22880
22881         strtok_r: Fix C syntax error in autoconf macro.
22882         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22883         characters in test program.
22884
22885 2010-12-24  Bruno Haible  <bruno@clisp.org>
22886
22887         ceil, trunc, round: Fix gcc warnings.
22888         * lib/ceil.c (MIN): Undefine before redefining.
22889         * lib/trunc.c (MIN): Likewise.
22890         * lib/round.c (MIN): Likewise.
22891         Include <math.h> first.
22892
22893 2010-12-24  Bruno Haible  <bruno@clisp.org>
22894
22895         select tests: Avoid failures on OSF/1 5.1.
22896         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22897         failure of closing the last socket; it may fail with ECONNRESET.
22898
22899 2010-12-24  Eric Blake  <eblake@redhat.com>
22900
22901         stdint: avoid HP-UX 10.20 preprocessor bug
22902         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22903         than #if.
22904         * tests/test-floor2.c (main): Likewise.
22905         Reported by Peter O'Gorman.
22906
22907         pipe: make obsoletion transition easier
22908         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22909         * modules/pipe (Files): Include revived file.
22910         (Include): Drop reference, to mirror getdate's behavior.
22911
22912 2010-12-24  Bruno Haible  <bruno@clisp.org>
22913
22914         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22915         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22916         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22917         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22918
22919 2010-12-24  Bruno Haible  <bruno@clisp.org>
22920
22921         gethostname: Ensure declaration on NonStop Kernel.
22922         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22923         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22924
22925 2010-12-24  Bruno Haible  <bruno@clisp.org>
22926
22927         sys_select: Ensure all necessary types on NonStop Kernel.
22928         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22929         include <sys/time.h>.
22930         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22931         NonStop Kernel.
22932         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22933
22934 2010-12-24  Bruno Haible  <bruno@clisp.org>
22935
22936         sys_select: Remove unneeded include.
22937         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22938         have <sys/select.h>.
22939
22940 2010-12-24  Bruno Haible  <bruno@clisp.org>
22941
22942         gethostname: Provide a fallback for HOST_NAME_MAX.
22943         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22944         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22945         instead.
22946         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22947
22948 2010-12-24  Bruno Haible  <bruno@clisp.org>
22949
22950         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22951         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22952         (SA_RESTART): Likewise.
22953         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22954
22955 2010-12-24  Bruno Haible  <bruno@clisp.org>
22956
22957         signal: Define NSIG.
22958         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22959         * tests/test-signal.c (nsig): New variable.
22960         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22961
22962 2010-12-24  Bruno Haible  <bruno@clisp.org>
22963
22964         rename, renameat: Avoid test failures on OSF/1 5.1.
22965         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22966         alternative error codes.
22967         * tests/test-renameat.c (main): Likewise.
22968
22969 2010-12-24  Bruno Haible  <bruno@clisp.org>
22970
22971         *printf: Detect large precisions bug on Solaris 10/SPARC.
22972         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22973         by Paul Eggert.
22974         * tests/test-snprintf-posix.h (test_function): Add this test code here
22975         too.
22976         * tests/test-sprintf-posix.h (test_function): Likewise.
22977         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22978         * tests/test-vasprintf-posix.c (test_function): Likewise.
22979         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22980         around by gnulib.
22981         * doc/posix-functions/printf.texi: Likewise.
22982         * doc/posix-functions/snprintf.texi: Likewise.
22983         * doc/posix-functions/sprintf.texi: Likewise.
22984         * doc/posix-functions/vfprintf.texi: Likewise.
22985         * doc/posix-functions/vprintf.texi: Likewise.
22986         * doc/posix-functions/vsnprintf.texi: Likewise.
22987         * doc/posix-functions/vsprintf.texi: Likewise.
22988         * doc/posix-functions/dprintf.texi: Undo last commit.
22989         * doc/posix-functions/vdprintf.texi: Likewise.
22990
22991 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22992
22993         tests: port test-fdutimensat.c to Solaris 8
22994         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22995         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22996         On Solaris 8, it fails with errno == ENOSYS, because there is no
22997         futimens (so it can't use the fd), and there is no lutimens (so it
22998         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22999
23000         vsnprintf: make more consistent with snprintf; doc fixes
23001
23002         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23003         the byte count return problem was promoted from the snprintf-posix
23004         to the snprintf module.
23005         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23006         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23007         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23008         * tests/test-snprintf.c (main): Check the byte count returned.
23009         * tests/test-vsnprintf.c (main): Likewise.
23010
23011 2010-12-23  Eric Blake  <eblake@redhat.com>
23012
23013         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23014         * modules/sigpipe (License): Relax license.
23015
23016 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23017
23018         doc: document Solaris printf bug with large float precisions
23019         * doc/posix-functions/dprintf.texi (dprintf):
23020         * doc/posix-functions/fprintf.texi (fprintf):
23021         * doc/posix-functions/printf.texi (printf):
23022         * doc/posix-functions/snprintf.texi (snprintf):
23023         * doc/posix-functions/sprintf.texi (sprintf):
23024         * doc/posix-functions/vdprintf.texi (vdprintf):
23025         * doc/posix-functions/vfprintf.texi (vfprintf):
23026         * doc/posix-functions/vprintf.texi (vprintf):
23027         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23028         * doc/posix-functions/vsprintf.texi (vsprintf):
23029         Mention that these functions mishandle large floating point
23030         precisions on Solaris 10.  The same bug is also present in Solaris
23031         8, and I assume earlier.  This causes "cd gnulib-tests; make
23032         check" to fail on Solaris 8 (and I assume, later) when building
23033         the latest coreutils, in test-vasprintf-posix's call to
23034         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23035         the wide flavors (e.g., wprintf) so this patch just updates the
23036         documentation for the narrow ones.
23037
23038         test-posixtm.c: add two tests
23039         * tests/test-posixtm.c: Add two tests, to highlight the
23040         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23041         around this bug; this is merely to document it.
23042
23043 2010-12-22  Bruno Haible  <bruno@clisp.org>
23044
23045         getlogin_r: Work around portability problem on OSF/1.
23046         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23047         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23048         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23049         test for a truncated result.
23050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23051         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23052         * modules/getlogin_r (Depends-on): Add memchr.
23053         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23054
23055 2010-12-22  Bruno Haible  <bruno@clisp.org>
23056
23057         ptsname: Avoid test failure on OSF/1 5.1.
23058         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23059         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23060         (same_slave): New function.
23061         (main): Use it to compare ptsname's result with the expected file name.
23062
23063 2010-12-22  Bruno Haible  <bruno@clisp.org>
23064
23065         Port extended stdio modules to HP NonStop Kernel.
23066         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23067         macros.
23068         * lib/fbufmode.c: Update comments.
23069         * lib/fflush.c: Likewise.
23070         * lib/fpurge.c: Likewise.
23071         * lib/freadable.c: Likewise.
23072         * lib/freadahead.c: Likewise.
23073         * lib/freading.c: Likewise.
23074         * lib/freadptr.c: Likewise.
23075         * lib/freadseek.c: Likewise.
23076         * lib/fseeko.c: Likewise.
23077         * lib/fseterr.c: Likewise.
23078         * lib/fwritable.c: Likewise.
23079         * lib/fwriting.c: Likewise.
23080         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23081
23082 2010-12-22  Bruno Haible  <bruno@clisp.org>
23083
23084         ttyname_r: Work around bug on OSF/1 5.1.
23085         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23086         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23087         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23088         present.
23089         * lib/ttyname_r.c (ttyname_r): Update comments.
23090
23091 2010-12-22  Bruno Haible  <bruno@clisp.org>
23092
23093         round: Implement result sign according to IEEE 754.
23094         * lib/round.c (MIN, MINUS_ZERO): New macros.
23095         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23096         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23097         * tests/test-round-ieee.c (main): Likewise.
23098         * tests/test-roundl-ieee.c (main): Likewise.
23099
23100         trunc: Implement result sign according to IEEE 754.
23101         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23102         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23103         * tests/test-trunc2.c: Include minus-zero.h.
23104         (MINUS_ZERO): New macro.
23105         (trunc_reference): Keep in sync with lib/trunc.c.
23106         * tests/test-truncf2.c: Include minus-zero.h.
23107         (MINUS_ZERO): New macro.
23108         (truncf_reference): Keep in sync with lib/trunc.c.
23109         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23110         * tests/test-trunc-ieee.c (main): Likewise.
23111         * tests/test-truncl-ieee.c (main): Likewise.
23112
23113         ceil: Implement result sign according to IEEE 754.
23114         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23115         (FUNC): Return -0.0 for -1 < x < 0.
23116         * tests/test-ceil2.c: Include minus-zero.h.
23117         (MINUS_ZERO): New macro.
23118         (ceil_reference): Keep in sync with lib/ceil.c.
23119         * tests/test-ceilf2.c: Include minus-zero.h.
23120         (MINUS_ZERO): New macro.
23121         (ceilf_reference): Keep in sync with lib/ceil.c.
23122         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23123         * tests/test-ceil-ieee.c (main): Likewise.
23124         * tests/test-ceill-ieee.c (main): Likewise.
23125
23126         floor: Implement result sign according to IEEE 754.
23127         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23128         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23129         * tests/test-floorf2.c (floorf_reference): Likewise.
23130         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23131         * tests/test-floor-ieee.c (main): Likewise.
23132         * tests/test-floorl-ieee.c (main): Likewise.
23133
23134 2010-12-22  Bruno Haible  <bruno@clisp.org>
23135
23136         getaddrinfo: Update doc.
23137         * doc/posix-functions/gai_strerror.texi: Return type is also different
23138         on AIX and HP-UX.
23139
23140 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23141
23142         getaddrinfo, inet_ntop: Update doc for Solaris.
23143         * doc/posix-functions/gai_strerror.texi: Return type is also an
23144         issue on Solaris 9 and earlier.
23145         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23146         on Solaris 10 and earlier.
23147
23148 2010-12-21  Bruno Haible  <bruno@clisp.org>
23149
23150         New module 'roundl-ieee'.
23151         * modules/roundl-ieee: New file.
23152         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23153         test whether roundl works according to ISO C 99 with IEC 60559.
23154         * m4/roundl-ieee.m4: New file.
23155         * modules/roundl-ieee-tests: New file.
23156         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23157         * tests/test-roundl.c (main): Remove signbit tests.
23158         * modules/roundl-tests (Depends-on): Remove signbit.
23159         * doc/posix-functions/roundl.texi: Mention the new module.
23160
23161 2010-12-21  Bruno Haible  <bruno@clisp.org>
23162
23163         New module 'truncl-ieee'.
23164         * modules/truncl-ieee: New file.
23165         * modules/truncl-ieee-tests: New file.
23166         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23167         * tests/test-truncl.c (main): Remove signbit tests.
23168         * modules/truncl-tests (Depends-on): Remove signbit.
23169         * doc/posix-functions/truncl.texi: Mention the new module.
23170
23171 2010-12-21  Bruno Haible  <bruno@clisp.org>
23172
23173         New module 'ceill-ieee'.
23174         * modules/ceill-ieee: New file.
23175         * modules/ceill-ieee-tests: New file.
23176         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23177         * tests/test-ceill.c (main): Remove signbit tests.
23178         * modules/ceill-tests (Depends-on): Remove signbit.
23179         * doc/posix-functions/ceill.texi: Mention the new module.
23180
23181 2010-12-21  Bruno Haible  <bruno@clisp.org>
23182
23183         New module 'floorl-ieee'.
23184         * modules/floorl-ieee: New file.
23185         * modules/floorl-ieee-tests: New file.
23186         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23187         * tests/test-floorl.c (main): Remove signbit tests.
23188         * modules/floorl-tests (Depends-on): Remove signbit.
23189         * doc/posix-functions/floorl.texi: Mention the new module.
23190
23191 2010-12-21  Bruno Haible  <bruno@clisp.org>
23192
23193         New module 'round-ieee'.
23194         * modules/round-ieee: New file.
23195         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23196         whether round works according to ISO C 99 with IEC 60559.
23197         * m4/round-ieee.m4: New file.
23198         * modules/round-ieee-tests: New file.
23199         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23200         * tests/test-round1.c (main): Remove signbit tests.
23201         * modules/round-tests (Depends-on): Remove 'signbit'.
23202         * doc/posix-functions/round.texi: Mention the new module.
23203
23204 2010-12-21  Bruno Haible  <bruno@clisp.org>
23205
23206         New module 'trunc-ieee'.
23207         * modules/trunc-ieee: New file.
23208         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23209         whether trunc works according to ISO C 99 with IEC 60559.
23210         * m4/trunc-ieee.m4: New file.
23211         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23213         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23214         * modules/trunc-ieee-tests: New file.
23215         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23216         * tests/test-trunc1.c (main): Remove signbit tests.
23217         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23218         * doc/posix-functions/trunc.texi: Mention the new module.
23219
23220 2010-12-21  Bruno Haible  <bruno@clisp.org>
23221
23222         New module 'ceil-ieee'.
23223         * modules/ceil-ieee: New file.
23224         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23225         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23226         ISO C 99 with IEC 60559.
23227         * m4/ceil-ieee.m4: New file.
23228         * modules/ceil (Files): Add lib/ceil.c.
23229         (Depends-on): Add 'float'.
23230         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23231         * lib/math.in.h (ceil): New declaration.
23232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23233         REPLACE_CEIL.
23234         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23235         * modules/ceil-ieee-tests: New file.
23236         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23237         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23238         * doc/posix-functions/ceil.texi: Mention the new module.
23239
23240 2010-12-21  Bruno Haible  <bruno@clisp.org>
23241
23242         New module 'floor-ieee'.
23243         * modules/floor-ieee: New file.
23244         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23245         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23246         ISO C 99 with IEC 60559.
23247         * m4/floor-ieee.m4: New file.
23248         * modules/floor (Files): Add lib/floor.c.
23249         (Depends-on): Add 'float'.
23250         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23251         * lib/math.in.h (floor): New declaration.
23252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23253         REPLACE_FLOOR.
23254         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23255         * modules/floor-ieee-tests: New file.
23256         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23257         * tests/test-math-c++.cc: Check the signature of 'floor'.
23258         * doc/posix-functions/floor.texi: Mention the new module.
23259
23260 2010-12-21  Bruno Haible  <bruno@clisp.org>
23261
23262         New module 'roundf-ieee'.
23263         * modules/roundf-ieee: New file.
23264         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23265         test whether roundf works according to ISO C 99 with IEC 60559.
23266         * m4/roundf-ieee.m4: New file.
23267         * modules/roundf-ieee-tests: New file.
23268         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23269         * tests/test-roundf1.c (main): Remove signbit tests.
23270         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23271         * doc/posix-functions/roundf.texi: Mention the new module.
23272
23273 2010-12-21  Bruno Haible  <bruno@clisp.org>
23274
23275         New module 'truncf-ieee'.
23276         * modules/truncf-ieee: New file.
23277         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23278         test whether truncf works according to ISO C 99 with IEC 60559.
23279         * m4/truncf-ieee.m4: New file.
23280         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23282         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23283         * modules/truncf-ieee-tests: New file.
23284         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23285         * tests/test-truncf1.c (main): Remove signbit tests.
23286         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23287         * doc/posix-functions/truncf.texi: Mention the new module.
23288
23289 2010-12-21  Bruno Haible  <bruno@clisp.org>
23290
23291         New module 'ceilf-ieee'.
23292         * modules/ceilf-ieee: New file.
23293         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23294         test whether ceilf works according to ISO C 99 with IEC 60559.
23295         * m4/ceilf-ieee.m4: New file.
23296         * modules/ceilf-ieee-tests: New file.
23297         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23298         * tests/test-ceilf1.c (main): Remove signbit tests.
23299         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23300         * doc/posix-functions/ceilf.texi: Mention the new module.
23301
23302 2010-12-21  Bruno Haible  <bruno@clisp.org>
23303
23304         New module 'floorf-ieee'.
23305         * modules/floorf-ieee: New file.
23306         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23307         test whether floorf works according to ISO C 99 with IEC 60559.
23308         * m4/floorf-ieee.m4: New file.
23309         * modules/floorf-ieee-tests: New file.
23310         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23311         * tests/test-floorf1.c (main): Remove signbit tests.
23312         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23313         * doc/posix-functions/floorf.texi: Mention the new module.
23314
23315 2010-12-21  Bruno Haible  <bruno@clisp.org>
23316
23317         Support for minus zero in autoconf macros.
23318         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23319         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23320         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23321         * tests/minus-zero.h: Update comments.
23322
23323 2010-12-21  Bruno Haible  <bruno@clisp.org>
23324
23325         Tests for module 'ceil'.
23326         * modules/ceil-tests: New file.
23327         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23328         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23329
23330 2010-12-21  Bruno Haible  <bruno@clisp.org>
23331
23332         Tests for module 'floor'.
23333         * modules/floor-tests: New file.
23334         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23335         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23336
23337 2010-12-21  Bruno Haible  <bruno@clisp.org>
23338
23339         math: Fix indentation.
23340         * lib/math.in.h (floorf): Fix indentation.
23341
23342 2010-12-21  Bruno Haible  <bruno@clisp.org>
23343
23344         Fix cross-compilation guesses on Solaris.
23345         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23346         not match "solaris2.10".
23347         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23348         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23349         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23350
23351 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23352
23353         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23354         This fixes a problem observed with the latest coreutils snapshot
23355         that caused a test to fail on Solaris 8.  src/csplit.c's call
23356         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23357         earlier, instead of returning the number of bytes that would have
23358         been generated; this causes csplit to incorrectly report memory
23359         exhaustion.
23360         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23361         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23362         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23363         comments to match.
23364         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23365         Fix typo in matching older versions of Solaris: "solaris2.10"
23366         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23367         only for guessing while cross-compiling.
23368         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23369
23370 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23371
23372         ftoastr: fix comment again
23373         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23374         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23375         Also, simplify example a bit by using flags = 0.
23376
23377 2010-12-20  Bruno Haible  <bruno@clisp.org>
23378
23379         round*, trunc*: Update documentation regarding glibc.
23380         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23381         * doc/posix-functions/round.texi: Likewise.
23382         * doc/posix-functions/roundl.texi: Likewise.
23383         * doc/posix-functions/truncf.texi: Likewise.
23384         * doc/posix-functions/trunc.texi: Likewise.
23385         * doc/posix-functions/truncl.texi: Likewise.
23386
23387 2010-12-20  Bruno Haible  <bruno@clisp.org>
23388
23389         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23390         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23391         * doc/posix-functions/round.texi: Likewise.
23392         * doc/posix-functions/roundl.texi: Likewise.
23393
23394 2010-12-20  Bruno Haible  <bruno@clisp.org>
23395
23396         ttyname_r: Add missing declaration on HP-UX 11.
23397         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23398         HAVE_TTYNAME_R.
23399         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23400         declared. Set HAVE_TTYNAME_R always.
23401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23402         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23403         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23404         HAVE_TTYNAME_R.
23405         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23406
23407 2010-12-20  Bruno Haible  <bruno@clisp.org>
23408
23409         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23410         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23411         * doc/posix-functions/getlogin_r.texi: Likewise.
23412         * tests/test-getlogin.c: Include <errno.h>.
23413         (main): Avoid test failure on HP-UX 11.11.
23414         * tests/test-getlogin_r.c (main): Likewise.
23415
23416 2010-12-20  Bruno Haible  <bruno@clisp.org>
23417
23418         getlogin_r: Add missing declaration on HP-UX 11.
23419         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23420         declared also when it exists as a function.
23421         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23422
23423 2010-12-20  Bruno Haible  <bruno@clisp.org>
23424
23425         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23426         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23427         through wcrtomb.
23428
23429 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23430
23431         ftoastr: fix comment
23432         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23433         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23434
23435 2010-12-19  Bruno Haible  <bruno@clisp.org>
23436
23437         isnan: Ensure it is a macro.
23438         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23439         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23440         Solaris.
23441
23442 2010-12-19  Bruno Haible  <bruno@clisp.org>
23443
23444         ldexpl test: Fix link error on OSF/1 5.1.
23445         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23446
23447 2010-12-19  Bruno Haible  <bruno@clisp.org>
23448
23449         wctype: Make it work in C++ mode on OSF/1 5.1.
23450         * lib/wctype.in.h (iswblank): Declare but not define here.
23451         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23452         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23453         * modules/wctype (Files): Add lib/iswblank.c.
23454
23455 2010-12-19  Bruno Haible  <bruno@clisp.org>
23456
23457         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23458         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23459         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23460
23461 2010-12-19  Bruno Haible  <bruno@clisp.org>
23462
23463         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23464         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23465         _POSIX_PII_SOCKET.
23466         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23467         * doc/posix-functions/recvfrom.texi: Likewise.
23468         * doc/posix-functions/send.texi: Likewise.
23469         * doc/posix-functions/sendto.texi: Likewise.
23470
23471 2010-12-19  Bruno Haible  <bruno@clisp.org>
23472
23473         tcgetsid: Add missing declaration on OSF/1 5.1.
23474         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23475         HAVE_TCGETSID.
23476         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23477         Don't set HAVE_TCGETSID.
23478         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23479         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23480         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23481         HAVE_TCGETSID.
23482         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23483
23484 2010-12-19  Bruno Haible  <bruno@clisp.org>
23485
23486         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23487         * lib/stdio.in.h: During the include_next statement, let recursive
23488         includes of this file include only the system header file.
23489
23490 2010-12-19  Bruno Haible  <bruno@clisp.org>
23491
23492         iconv_open: Fix regression from 2010-12-04.
23493         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23494         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23495
23496 2010-12-19  Bruno Haible  <bruno@clisp.org>
23497
23498         stdbool test: Avoid a gcc warning.
23499         * tests/test-stdbool.c (main): Fail if e1 is false.
23500         Reported by Jim Meyering.
23501
23502 2010-12-19  Jim Meyering  <meyering@redhat.com>
23503
23504         setenv: restore to working order
23505         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23506         mistakenly removed.
23507         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23508         HAVE_SETENV.
23509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23510         HAVE_SETENV.
23511
23512 2010-12-19  Bruno Haible  <bruno@clisp.org>
23513
23514         Document some different function declarations on OSF/1 5.1.
23515         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23516         * doc/posix-functions/inet_ntop.texi: Likewise.
23517         * doc/posix-functions/gethostname.texi: Likewise.
23518         * lib/unistd.in.h (gethostname): Update comment.
23519
23520 2010-12-19  Bruno Haible  <bruno@clisp.org>
23521
23522         doc: Mention vasprintf-posix module.
23523         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23524         the 'vasprintf-posix' module.
23525         * doc/glibc-functions/vasprintf.texi: Likewise.
23526
23527 2010-12-19  Bruno Haible  <bruno@clisp.org>
23528
23529         unsetenv: Add missing declaration on OSF/1 5.1.
23530         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23531         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23532         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23534         not HAVE_UNSETENV.
23535         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23536         HAVE_UNSETENV.
23537         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23538
23539 2010-12-19  Bruno Haible  <bruno@clisp.org>
23540
23541         setenv: Add missing declaration on OSF/1 5.1.
23542         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23543         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23544         declared. Don't set HAVE_SETENV.
23545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23546         not HAVE_SETENV.
23547         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23548         HAVE_SETENV.
23549         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23550
23551 2010-12-19  Bruno Haible  <bruno@clisp.org>
23552
23553         nl_langinfo tests: Avoid gcc warning.
23554         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23555
23556 2010-12-19  Bruno Haible  <bruno@clisp.org>
23557
23558         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23559         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23560         _GL_CXXALIAS_SYS.
23561
23562 2010-12-19  Bruno Haible  <bruno@clisp.org>
23563
23564         stdbool: Relax test.
23565         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23566         address to 'bool' work in static initializer, for compilers other than
23567         GCC.
23568
23569 2010-12-19  Bruno Haible  <bruno@clisp.org>
23570
23571         ftello: Add missing declaration on OSF/1 5.1.
23572         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23573         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23575         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23576         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23577
23578 2010-12-19  Bruno Haible  <bruno@clisp.org>
23579
23580         fseeko: Add missing declaration on OSF/1 5.1.
23581         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23582         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23584         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23585         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23586
23587 2010-12-19  Bruno Haible  <bruno@clisp.org>
23588
23589         fchdir: Add missing declaration on OSF/1 5.1.
23590         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23591         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23593         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23594         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23595
23596 2010-12-19  Bruno Haible  <bruno@clisp.org>
23597
23598         relocatable-prog-wrapper: Separate from relocatable-prog.
23599         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23600         uninstall-relocwrapper rule here.
23601         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23602         Reported by Ian Beckwith <ianb@erislabs.net>.
23603
23604 2010-12-19  Bruno Haible  <bruno@clisp.org>
23605
23606         unistr/u8-mbsnlen: Add missing dependency.
23607         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23608         Reported by Ian Beckwith <ianb@erislabs.net>.
23609
23610 2010-12-19  Bruno Haible  <bruno@clisp.org>
23611
23612         iconv: Make it possible again to use this module without 'iconv-h'.
23613         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23614         if it is not defined.
23615         Reported by Ian Beckwith <ianb@erislabs.net>.
23616
23617 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23618
23619         acl: port to Solaris 8 when copying from tmpfs to ufs
23620         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23621         error number.  Problem observed on Solaris 8 with latest
23622         coreutils, with "mv A B", where A is on a tmpfs file system and B
23623         is on a ufs file system.  This caused coreutils' mv/part-symlink
23624         test to fail.
23625
23626         tests: set fail=0 at start
23627         * tests/init.sh (setup_): Move fail=0 initialization here ...
23628         (mktempd_): ... from here, so that tests can rely on fail being
23629         set to 0 initially.  This fixes a problem in coreutils; see:
23630         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23631
23632 2010-12-18  Bruno Haible  <bruno@clisp.org>
23633
23634         memmem-simple: Stylistic changes.
23635         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23636         Fix preprocessor directive indentation.
23637
23638 2010-12-15  Pádraig Brady <P@draigBrady.com>
23639
23640         memmem, memmem-simple: reorganize and expand empty needle check
23641         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23642         functional checks to memmem-simple so that one has a fully functional
23643         memmem by using just this module.
23644         Restrict the performance only check to the memmem module.
23645         Also expand the empty needle check to ensure the correct
23646         pointer is returned, not just a non NULL pointer.
23647         * doc/glibc-functions/memmem.texi: Rearrange the portability
23648         documentation to correlate with the rearranged checks.
23649         Clarify exactly how the memmem and memmem-simple modules
23650         relate to each other.
23651
23652 2010-12-15  Pádraig Brady <P@draigBrady.com>
23653             Bruno Haible  <bruno@clisp.org>
23654
23655         Improve cross-compilation guesses for uClibc.
23656         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23657         that uClibc does not have the glibc bug.
23658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23659         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23660
23661 2010-12-14  Eric Blake  <eblake@redhat.com>
23662
23663         configmake: provide fallbacks for oldest supported autotools
23664         * m4/configmake.m4: New file.
23665         * modules/configmake (Files): Ship it.
23666         (configure.ac): Use it to guarantee fallbacks.
23667
23668 2010-12-13  Pádraig Brady <P@draigBrady.com>
23669
23670         read-file: Improve handling of large files
23671         * lib/read-file.c (fread_file): Minimize realloc()s
23672         for regular files, and better manage sizes around SIZE_MAX.
23673
23674 2010-12-13  Eric Blake  <eblake@redhat.com>
23675
23676         cloexec, fcntl: relax license
23677         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23678         consent from all contributors.
23679         * modules/fcntl (License): Likewise.
23680
23681 2010-12-10  Bruno Haible  <bruno@clisp.org>
23682
23683         Tests for module 'pipe-posix'.
23684         * modules/pipe-posix-tests: New file.
23685         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23686
23687 2010-12-10  Bruno Haible  <bruno@clisp.org>
23688
23689         pipe-posix: Make it work in C++ mode.
23690         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23691         (pipe): Use common idiom, not a macro definition.
23692         * lib/pipe.c: New file.
23693         * m4/pipe.m4: New file.
23694         * modules/pipe-posix (Description): Enhance.
23695         (Files): Add lib/pipe.c, m4/pipe.m4.
23696         (configure.ac): Invoke gl_FUNC_PIPE.
23697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23698         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23699         * tests/test-unistd-c++.cc: Check the signature of pipe.
23700
23701 2010-12-10  Bruno Haible  <bruno@clisp.org>
23702
23703         Rename module 'pipe' to 'spawn-pipe'.
23704         * modules/spawn-pipe: New file, renamed from modules/pipe.
23705         (Files, configure.ac, Makefile.am): Update.
23706         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23707         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23708         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23709         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23710         "spawn-pipe.h" instead of "pipe.h".
23711         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23712         to gl_SPAWN_PIPE.
23713         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23714         (Files, Makefile.am): Update.
23715         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23716         Update.
23717         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23718         Include "spawn-pipe.h" instead of "pipe.h".
23719         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23720         * lib/javacomp.c: Likewise.
23721         * lib/javaversion.c: Likewise.
23722         * lib/pipe-filter-gi.c: Likewise.
23723         * lib/pipe-filter-ii.c: Likewise.
23724         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23725         * modules/javacomp (Depends-on): Likewise.
23726         * modules/javaversion (Depends-on): Likewise.
23727         * modules/pipe-filter-gi (Depends-on): Likewise.
23728         * modules/pipe-filter-ii (Depends-on): Likewise.
23729         * MODULES.html.sh (Executing programs): Update.
23730         * NEWS: Mention the change.
23731
23732 2010-12-10  Eric Blake  <eblake@redhat.com>
23733
23734         pipe-posix: new module
23735         * modules/pipe-posix: New file.
23736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23737         (gl_UNISTD_H): Check for declaration.
23738         * modules/unistd (Makefile.am): Substitute it.
23739         * lib/unistd.in.h (pipe): Provide it for mingw.
23740         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23741         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23742
23743 2010-12-07  Bruno Haible  <bruno@clisp.org>
23744
23745         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23746         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23747         u8_strcmp_gnu.
23748         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23749
23750 2010-12-06  Bruno Haible  <bruno@clisp.org>
23751
23752         Update internal documentation.
23753         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23754
23755 2010-12-04  Bruno Haible  <bruno@clisp.org>
23756
23757         Put more information about failed tests into the test return codes.
23758         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23759         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23760         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23761         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23762         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23763         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23764         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23765         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23766         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23768         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23769         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23770         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23771         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23772         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23773         returns a bit mask.
23774         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23775         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23776         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23777         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23778         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23779         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23780         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23782         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23783         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23784         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23785         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23786         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23787         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23788         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23789         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23790         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23791         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23792         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23793         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23794         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23795         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23796         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23797         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23798         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23799         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23800         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23801         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23802         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23803         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23804         gl_PRINTF_PRECISION): Likewise.
23805         * m4/regex.m4 (gl_REGEX): Likewise.
23806         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23807         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23808         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23809         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23810         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23811         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23812         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23813         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23814         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23815         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23816         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23817         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23818         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23819         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23820         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23821         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23822         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23823         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23825         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23826         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23827         enumerated value.
23828         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23829
23830 2010-12-04  Bruno Haible  <bruno@clisp.org>
23831
23832         Update for Solaris 11 2010-11.
23833         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23834         Express, released in November 2010.
23835
23836 2010-12-04  Bruno Haible  <bruno@clisp.org>
23837
23838         nproc: Relax license.
23839         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23840         and Paul Eggert.
23841         Requested by Ludovic Courtès <ludo@gnu.org>.
23842
23843 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23844
23845         utimecmp: fine-grained src to nearby coarse-grained dest
23846
23847         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23848         and the source is on a file system with higher-resolution time
23849         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23850         not work, and the time stamps are close together, the algorithm to
23851         determine the exact resolution from the read-back mtime was buggy:
23852         it had a "!=" where it should have had an "==".  This bug has been
23853         in the code ever since it was introduced to gnulib.
23854         Problem reported by Dan Jacobson in
23855         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23856
23857 2010-11-30  Bruno Haible  <bruno@clisp.org>
23858
23859         strerror_r-posix: Fix autoconf test.
23860         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23861
23862 2010-11-28  Bruno Haible  <bruno@clisp.org>
23863             Paul Eggert  <eggert@cs.ucla.edu>
23864
23865         Tests for module 'getdomainname'.
23866         * modules/getdomainname-tests: New file.
23867         * tests/test-getdomainname.c: New file, based on
23868         tests/test-gethostname.c.
23869
23870 2010-11-28  Bruno Haible  <bruno@clisp.org>
23871             Paul Eggert  <eggert@cs.ucla.edu>
23872
23873         getdomainname: Use the system function when possible.
23874         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23875         (getdomainname): Replace if needed. Provide the declaration if it is
23876         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23877         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23878         (getdomainname): When the system has getdomainname, call the system
23879         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23880         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23881         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23882         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23883         the function if its second argument is of type 'int' or if it is found
23884         in libnsl.
23885         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23886         <sys/systeminfo.h> and sysinfo().
23887         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23889         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23890         HAVE_GETDOMAINNAME.
23891         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23892         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23893         * doc/glibc-functions/getdomainname.texi: Document the problems with
23894         the getdomainname declaration.
23895
23896 2010-11-28  Bruno Haible  <bruno@clisp.org>
23897
23898         sys_socket: Ensure ss_family field on AIX.
23899         * lib/sys_socket.in.h (ss_family): New macro definition.
23900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23901         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23902         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23903         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23904         * modules/sys_socket (Makefile.am): Substitute
23905         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23906         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23907
23908 2010-11-27  Bruno Haible  <bruno@clisp.org>
23909
23910         readline: Improve configure output.
23911         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23912         "checking for readline..." result understandable.
23913
23914 2010-11-27  Bruno Haible  <bruno@clisp.org>
23915
23916         *printf-posix: Detect a bug on Solaris 10/x86.
23917         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23918         for floating-point output.
23919         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23920         directive.
23921         * tests/test-snprintf-posix.h (test_function): Likewise.
23922         * tests/test-sprintf-posix.h (test_function): Likewise.
23923         * tests/test-vasprintf-posix.c (test_function): Likewise.
23924         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23925         * doc/posix-functions/printf.texi: Likewise.
23926         * doc/posix-functions/snprintf.texi: Likewise.
23927         * doc/posix-functions/sprintf.texi: Likewise.
23928         * doc/posix-functions/vfprintf.texi: Likewise.
23929         * doc/posix-functions/vprintf.texi: Likewise.
23930         * doc/posix-functions/vsnprintf.texi: Likewise.
23931         * doc/posix-functions/vsprintf.texi: Likewise.
23932         * doc/glibc-functions/obstack_printf.texi: Likewise.
23933         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23934
23935 2010-11-27  Bruno Haible  <bruno@clisp.org>
23936
23937         Fix link error when module libunistring-optional is in use.
23938         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23939         * modules/striconveha-tests (Makefile.am): Likewise.
23940
23941 2010-11-27  Bruno Haible  <bruno@clisp.org>
23942
23943         regex: Mention link dependencies.
23944         * modules/regex (Link): New section.
23945         * modules/rpmatch (Link): Likewise.
23946         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23947
23948 2010-11-27  Bruno Haible  <bruno@clisp.org>
23949
23950         ftoastr: Fix compilation error on Solaris.
23951         * lib/ftoastr.c: Include <config.h>.
23952
23953 2010-11-27  Bruno Haible  <bruno@clisp.org>
23954
23955         getloadavg: Update documentation.
23956         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23957
23958 2010-11-27  Bruno Haible  <bruno@clisp.org>
23959
23960         sys_socket: Fix test whether the functions are declared.
23961         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23962         not <sys/select.h>.
23963
23964 2010-11-27  Bruno Haible  <bruno@clisp.org>
23965
23966         getpass: Make sure to get system declaration on some platforms.
23967         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23968         gl_USE_SYSTEM_EXTENSIONS.
23969         * modules/getpass (Depends-on): Add extensions.
23970
23971 2010-11-26  Bruno Haible  <bruno@clisp.org>
23972
23973         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23974         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23975         'iconv' module is present.
23976         (ICONV_CONST): New macro.
23977         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23978         ICONV_CONST.
23979         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23980         set ICONV_CONST.
23981         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23982         here.
23983         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23984         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23985         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23986         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23987         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23988         present.
23989
23990 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23991
23992         ftoastr: comment fix
23993         * lib/ftoastr.c: "little" -> "little or no" in comment
23994
23995 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23996
23997         stdint: port to GCC 4.3 + OSX + Octave
23998         On this platform, stdint.h is buggy and defines int64_t to long
23999         long int.  The replacement defined it to long int, causing
24000         problems with C++ style name mangling.  Instead, trust the system
24001         definition if INT64_MAX is defined, and likewise for the unsigned
24002         variant.   Problem reported by Jarno Rajahalme in
24003         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24004         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24005         and don't mess with int64_t and INT64_MAX in this case.
24006         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24007
24008 2010-11-24  Bruno Haible  <bruno@clisp.org>
24009
24010         doc: Corrections regarding MacOS X 10.4 and 10.5.
24011         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24012         MacOS X.
24013         Reported by Simon Josefsson.
24014
24015 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24016
24017         Uninstall ".bin" files installed by relocwrapper.
24018         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24019         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24020         unless it is already there.
24021
24022 2010-11-21  Bruno Haible  <bruno@clisp.org>
24023
24024         Update for NetBSD 5.0.
24025         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24026         NetBSD; the test fails on NetBSD 5.0.
24027         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24028         about NetBSD.
24029
24030 2010-11-21  Bruno Haible  <bruno@clisp.org>
24031
24032         Update for HP-UX 11.23 and HP-UX 11.31.
24033         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24034         HP-UX.
24035
24036 2010-11-21  Bruno Haible  <bruno@clisp.org>
24037
24038         Update for MacOS X 10.5.
24039         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24040         MacOS X; the test fails on MacOS X 10.5.8.
24041         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24042         about MacOS X.
24043
24044 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24045
24046         bootstrap: add bootstrap_sync option.
24047         See discussion at
24048         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24049         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24050         * build-aux/bootstrap: Accept --bootstrap-sync to update
24051         bootstrap if it is not identical to the local gnulib's
24052         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24053         enable this by default.  Accept --no-bootstrap-sync to disable
24054         it.
24055
24056 2010-11-20  Bruno Haible  <bruno@clisp.org>
24057
24058         Ensure that <features.h> is included before __GLIBC__ is tested.
24059         * lib/printf-parse.h: Include <features.h>.
24060         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24061         Reported by Mike Frysinger <vapier@gentoo.org>.
24062
24063         Ensure that <features.h> is included before __GLIBC__ is tested.
24064         * lib/wchar.in.h: Include <features.h>.
24065         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24066         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24067         Reported by Mike Frysinger <vapier@gentoo.org>.
24068
24069         Ensure that <features.h> is included before __GLIBC__ is tested.
24070         * lib/arpa_inet.in.h: Include <features.h>.
24071         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24072         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24073         Reported by Mike Frysinger <vapier@gentoo.org>.
24074
24075         Ensure that <features.h> is included before __GLIBC__ is tested.
24076         * build-aux/link-warning.h: Include <features.h>.
24077         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24078         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24079         Reported by Mike Frysinger <vapier@gentoo.org>.
24080
24081         Ensure that <features.h> is included before __GLIBC__ is tested.
24082         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24083         Reported by Mike Frysinger <vapier@gentoo.org>.
24084
24085 2010-11-20  Bruno Haible  <bruno@clisp.org>
24086
24087         memmem: Fix autoconf test.
24088         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24089
24090 2010-11-20  Bruno Haible  <bruno@clisp.org>
24091
24092         Port to uClibc.
24093         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24094         * lib/fcntl.in.h: Likewise.
24095         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24096         * lib/mbrtowc.c (mbrtowc): Likewise.
24097         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24098         * lib/strerror_r.c: Likewise.
24099         * lib/unistr/u8-strnlen.c: Likewise.
24100         * lib/vasnprintf.c (decimal_point_char): Likewise.
24101         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24102         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24103         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24104         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24105         * tests/test-sigaction.c (handler, main): Likewise.
24106         * lib/freading.h: Treat uClibc like a non-glibc platform.
24107         * lib/freading.c: Likewise.
24108         * lib/gettext.h: Likewise.
24109         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24110         Likewise.
24111         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24112         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24113         * lib/propername.c (proper_name_utf8): Likewise.
24114         * lib/spawn.in.h: Likewise.
24115         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24116         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24117         mem_cd_iconveh_internal): Likewise.
24118         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24119         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24120         strstr, strcasestr): Likewise.
24121         * lib/unicodeio.c (unicode_to_mb): Likewise.
24122         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24123         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24124         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24125         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24126         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24127         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24128         * lib/unistr/u8-stpncpy.c: Likewise.
24129         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24130         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24131         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24132         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24133         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24135         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24136         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24138         Likewise.
24139         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24140         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24141         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24144         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24145         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24146         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24147         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24148         * tests/test-striconveha.c (main): Likewise.
24149         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24150         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24151         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24152         * doc/posix-functions/getline.texi: Likewise.
24153         Reported by Mike Frysinger <vapier@gentoo.org>.
24154
24155 2010-11-20  Bruno Haible  <bruno@clisp.org>
24156
24157         nproc: Fix condition.
24158         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24159         HAVE_PTHREAD_AFFINITY_NP.
24160
24161 2010-11-20  Bruno Haible  <bruno@clisp.org>
24162
24163         Fix a comment.
24164         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24165
24166 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24167
24168         ftoastr: don't assume snprintf
24169         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24170         Implement a subset of snprintf here, by using sprintf safely.
24171         * modules/ftoastr (Depends-on): Remove snprintf.
24172
24173 2010-11-19  Jim Meyering  <meyering@redhat.com>
24174
24175         test-rename.h: fix compilation failure
24176         * tests/test-rename.h (test_rename): Add omitted "}".
24177
24178 2010-11-17  Jim Meyering  <meyering@redhat.com>
24179
24180         maint.mk: add a URL discussing the no-@acronym policy
24181         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24182
24183 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24184
24185         ftoastr: depend on snprintf, improve comments
24186         * lib/ftoastr.c: Also mention Loitsch's draft.
24187         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24188         needed in the current implementation, but it might simplify
24189         speeding up the code later.
24190         * modules/ftoastr: Depend on snprintf; this improves portability.
24191         Suggested by Bruno Haible in the same email.
24192
24193         ftoastr: port to hosts lacking strtof and strtold
24194         Problem reported by Bruno Haible in
24195         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24196         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24197         environment and strtold (and presumably strtof) are not available.
24198         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24199         (configure.ac): Require gl_C99_STRTOLD.
24200
24201 2010-11-18  Bruno Haible  <bruno@clisp.org>
24202
24203         c-strtold: Avoid link error on AIX 7.
24204         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24205         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24206         (gl_C_STRTOLD): Test whether strtold_l exists.
24207         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24208
24209 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24210
24211         intprops: new macro INT_BITS_STRLEN_BOUND
24212         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24213         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24214         not exposed.  Also, it uses a slightly tighter bound than before;
24215         though this makes no practical difference, we might as well be as
24216         tight as we easily can.
24217
24218         ftoastr: new module, for lossless conversion of floats to short strings
24219         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24220         * modules/ftoastr: New files.
24221
24222 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24223
24224         bootstrap: port to Solaris sed
24225         * build-aux/bootstrap (get_version): Port to Solaris sed.
24226         See Ralf Wildenhues's note in
24227         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24228
24229 2010-11-14  Jim Meyering  <meyering@redhat.com>
24230
24231         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24232         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24233         and move definition closer to sole use.
24234
24235 2010-11-13  Jim Meyering  <meyering@redhat.com>
24236
24237         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24238         Now we require at least autoconf-2.59, which means the work-around
24239         is no longer needed.
24240         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24241         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24242         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24243         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24244         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24245
24246 2010-11-13  Bruno Haible  <bruno@clisp.org>
24247
24248         rename, renameat: Avoid test failures at NFS mounted locations.
24249         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24250         functions.
24251         (test_rename): Use assert_nonexistent.
24252         * tests/test-rename.c: Include <dirent.h>.
24253         * tests/test-renameat.c: Likewise.
24254         Reported by Gary V. Vaughan <gary@gnu.org>.
24255
24256         rename, renameat: Document Linux bug with NFS
24257         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24258         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24259         * doc/posix-functions/renameat.texi: Likewise.
24260         Suggested by Eric Blake.
24261
24262 2010-11-13  Bruno Haible  <bruno@clisp.org>
24263
24264         rename test: Add comments.
24265         * tests/test-rename.h (test_rename): Add structure and comments.
24266
24267 2010-11-13  Eric Blake  <eblake@redhat.com>
24268
24269         maintainer-makefile: cover a few more files
24270         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24271         scripts generated within C files, for libvirt.
24272
24273 2010-11-13  Bruno Haible  <bruno@clisp.org>
24274
24275         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24276         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24277         character, return the number of bytes that belong together, not always
24278         1.
24279         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24280         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24281         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24282         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24283         number of bytes of an invalid character.
24284         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24285         (main): Invoke it.
24286         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24287         results.
24288         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24289         malformed byte sequences.
24290         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24291         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24292         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24293         Reported by Ben Pfaff and Paolo Bonzini.
24294
24295 2010-11-13  Bruno Haible  <bruno@clisp.org>
24296
24297         openat: Work around glibc bug with fchownat() and empty file names.
24298         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24299         (gl_FUNC_FCHOWNAT): Invoke it.
24300         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24301         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24302         Reported by Gary V. Vaughan <gary@gnu.org>.
24303
24304 2010-11-13  Bruno Haible  <bruno@clisp.org>
24305
24306         openat: Ensure autoconf macro ordering.
24307         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24308         gl_USE_SYSTEM_EXTENSIONS.
24309         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24310
24311 2010-11-13  Bruno Haible  <bruno@clisp.org>
24312
24313         Update comments.
24314         * lib/unistr/u8-check.c: Update file name in comments.
24315         * lib/unistr/u8-mblen.c: Likewise.
24316         * lib/unistr/u8-prev.c: Likewise.
24317         * lib/unistr/u8-strmblen.c: Likewise.
24318         * lib/unistr/u8-strmbtouc.c: Likewise.
24319
24320 2010-11-13  Jim Meyering  <meyering@redhat.com>
24321
24322         tests: avoid test failure on Solaris 10 due to lack of PATH export
24323         * tests/test-update-copyright.sh: Don't forget to export PATH.
24324
24325         init.sh: ensure that IFS is defined, just in case...
24326         * tests/init.sh (setup_): Ensure that IFS is defined,
24327         so that saving and restoring it works as expected.  This
24328         appears to be useful at least for an old version of dash
24329         from a long time ago (RH 6).  See here for details:
24330         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24331
24332         maint.mk: tighten "test a == b" check
24333         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24334         test to files that contain something like #!/bin/sh.
24335         Without this, coreutils would get two false positives in
24336         the comments of C source files.
24337
24338 2010-11-12  Eric Blake  <eblake@redhat.com>
24339
24340         bootstrap: fix typo in previous attempt
24341         * build-aux/bootstrap (buildreq): Correct the grouping.
24342         Reported by Paul Eggert.
24343
24344         maintainer-makefile: prohibit test x == x
24345         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24346         Based on a report by Matthias Bolte.
24347
24348         bootstrap: allow FreeBSD gzip
24349         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24350         which has no '.' and goes to stderr.
24351         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24352         Reported by Matthias Bolte.
24353
24354         maintainer-makefile: check for i18n setup
24355         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24356         will likely work.
24357
24358 2010-11-12  Bruno Haible  <bruno@clisp.org>
24359
24360         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24361         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24362         * lib/nanosleep.c (nanosleep): Likewise.
24363
24364 2010-11-11  Bruno Haible  <bruno@clisp.org>
24365
24366         fcntl-h: Fix for use of C++ on glibc systems.
24367         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24368         also on glibc systems in C++ mode.
24369         Reported by Gary V. Vaughan <gary@gnu.org>.
24370
24371 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24372
24373         mknod: avoid false failure with dash
24374         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24375
24376 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24377
24378         unlink: Fix "is it should" typo in diagnostic.
24379         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24380         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24381
24382 2010-11-11  Bruno Haible  <bruno@clisp.org>
24383
24384         Tests for module 'strerror_r-posix'.
24385         * modules/strerror_r-posix-tests: New file.
24386         * tests/test-strerror_r.c: New file.
24387         * tests/test-string-c++.cc: Check the signature of strerror_r.
24388
24389         New module 'strerror_r-posix'.
24390         * lib/string.in.h (strerror_r): New declaration.
24391         * lib/strerror_r.c: New file.
24392         * m4/strerror_r.m4: New file.
24393         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24394         of strerror_r.
24395         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24396         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24397         * modules/strerror_r-posix: New file.
24398         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24399         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24400         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24401         portability problems.
24402
24403 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24404
24405         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24406         line is also considered for output. Quoted function name in shell
24407         command, so temporary files for functions like MyClass::operator()
24408         are removed correctly without errors.
24409
24410 2010-11-09  Bruno Haible  <bruno@clisp.org>
24411
24412         * doc/posix-functions/strerror.texi: List more failing platforms.
24413
24414         * doc/posix-functions/strerror.texi: Add a comment.
24415
24416 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24417
24418         fdopendir: fix bug on MacOS X when low on file descriptors
24419
24420         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24421         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24422         All callers changed.
24423         (fdopendir): Invoke save_cwd at the top level, not after using
24424         multiple dup() calls to use up file descriptors.  Then retry
24425         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24426         less than the maximum number of open file descriptors, because
24427         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24428         on Mac OS X 10.6.4 for tar 1.24
24429         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24430         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24431         and for tar 1.25
24432         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24433
24434 2010-11-07  Bruno Haible  <bruno@clisp.org>
24435
24436         vasnprintf: Support I flag on glibc systems.
24437         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24438         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24439         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24440         snprintf function.
24441         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24442         glibc systems.
24443         * tests/test-vasnprintf-posix3.c: New file.
24444         * modules/vasnprintf-posix-tests (Files): Add it.
24445         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24446
24447 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24448
24449         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24450         * MODULES.html.sh: For compiler warnings, use name
24451         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24452
24453 2010-11-05  Eric Blake  <eblake@redhat.com>
24454
24455         ceil, floor: avoid spurious failure with icc
24456         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24457         [denormals-as-zero] when optimizing without -mieee-fp option.
24458         * tests/test-floorf2.c (floorf_reference): Likewise.
24459         * tests/test-ceilf1.c (dummy): New function.
24460         (main): Use it to outsmart icc's optimization.
24461         * tests/test-floorf1.c (dummy, main): Likewise.
24462
24463         tests: require working signbit
24464         * modules/ceilf-tests (Depends-on): Add signbit.
24465         * modules/ceill-tests (Depends-on): Likewise.
24466         * modules/floorf-tests (Depends-on): Likewise.
24467         * modules/floorl-tests (Depends-on): Likewise.
24468         * modules/round-tests (Depends-on): Likewise.
24469         * modules/roundf-tests (Depends-on): Likewise.
24470         * modules/roundl-tests (Depends-on): Likewise.
24471         * modules/trunc-tests (Depends-on): Likewise.
24472         * modules/truncf-tests (Depends-on): Likewise.
24473         * modules/truncl-tests (Depends-on): Likewise.
24474
24475         strtod: work around icc bug
24476         * lib/strtod.c (minus_zero): Define to working value.
24477         (strtod): Use it to avoid icc bug.
24478
24479         copysign: enhance tests
24480         * modules/copysign-tests (Files): Add minus-zero.h.
24481         * tests/test-copysign.c (main): Also test zeros.
24482
24483 2010-11-04  Eric Blake  <eblake@redhat.com>
24484
24485         ceil, floor, round, trunc: enhance tests of -0
24486         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24487         * tests/test-ceill.c (main): Likewise.
24488         * tests/test-floorf1.c (main): Likewise.
24489         * tests/test-floorl.c (main): Likewise.
24490         * tests/test-round1.c (main): Likewise.
24491         * tests/test-roundf1.c (main): Likewise.
24492         * tests/test-roundl.c (main): Likewise.
24493         * tests/test-trunc1.c (main): Likewise.
24494         * tests/test-truncf1.c (main): Likewise.
24495         * tests/test-truncl.c (main): Likewise.
24496
24497 2010-11-04  Eric Blake  <eblake@redhat.com>
24498
24499         frexp, tests: work around ICC bug with -zero
24500         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24501         works with more compilers.
24502         * tests/minus-zero.h: New file.
24503         * modules/ceilf-tests (Files): Include it.
24504         * modules/ceill-tests (Files): Likewise.
24505         * modules/floorf-tests (Files): Likewise.
24506         * modules/floorl-tests (Files): Likewise.
24507         * modules/frexp-nolibm-tests (Files): Likewise.
24508         * modules/frexp-tests (Files): Likewise.
24509         * modules/frexpl-nolibm-tests (Files): Likewise.
24510         * modules/frexpl-tests (Files): Likewise.
24511         * modules/isnan-tests (Files): Likewise.
24512         * modules/isnand-nolibm-tests (Files): Likewise.
24513         * modules/isnand-tests (Files): Likewise.
24514         * modules/isnanf-nolibm-tests (Files): Likewise.
24515         * modules/isnanf-tests (Files): Likewise.
24516         * modules/isnanl-nolibm-tests (Files): Likewise.
24517         * modules/isnanl-tests (Files): Likewise.
24518         * modules/round-tests (Files): Likewise.
24519         * modules/roundf-tests (Files): Likewise.
24520         * modules/roundl-tests (Files): Likewise.
24521         * modules/ldexpl-tests (Files): Likewise.
24522         * modules/signbit-tests (Files): Likewise.
24523         * modules/snprintf-posix-tests (Files): Likewise.
24524         * modules/sprintf-posix-tests (Files): Likewise.
24525         * modules/strtod-tests (Files): Likewise.
24526         * modules/trunc-tests (Files): Likewise.
24527         * modules/truncf-tests (Files): Likewise.
24528         * modules/truncl-tests (Files): Likewise.
24529         * modules/vsnprintf-posix-tests (Files): Likewise.
24530         * modules/vsprintf-posix-tests (Files): Likewise.
24531         * modules/vasnprintf-posix-tests (Files): Likewise.
24532         * modules/vasprintf-posix-tests (Files): Likewise.
24533         * tests/test-ceilf1.c (main): Use it.
24534         * tests/test-ceill.c (main): Likewise.
24535         * tests/test-floorf1.c (main): Likewise.
24536         * tests/test-floorl.c (main): Likewise.
24537         * tests/test-frexp.c (main): Likewise.
24538         * tests/test-frexpl.c (main): Likewise.
24539         * tests/test-isnan.c (main): Likewise.
24540         * tests/test-isnand.h (main): Likewise.
24541         * tests/test-isnanf.h (main): Likewise.
24542         * tests/test-isnanl.h (main): Likewise.
24543         * tests/test-ldexpl.c (main): Likewise.
24544         * tests/test-round.c (main): Likewise.
24545         * tests/test-roundf.c (main): Likewise.
24546         * tests/test-roundl.c (main): Likewise.
24547         * tests/test-signbit.c (test_signbitf, test_signbitd)
24548         (test_signbitl): Likewise.
24549         * tests/test-snprintf-posix.h (test_function): Likewise.
24550         * tests/test-sprintf-posix.h (test_function): Likewise.
24551         * tests/test-strtod.c (main): Likewise.
24552         * tests/test-trunc1.c (main): Likewise.
24553         * tests/test-truncf1.c (main): Likewise.
24554         * tests/test-truncl.c (main): Likewise.
24555
24556         isnanl: work around icc bug
24557         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24558
24559 2010-11-03  Eric Blake  <eblake@redhat.com>
24560
24561         tests: fix compiler warnings
24562         * tests/test-getopt.h (test_getopt): Fix condition.
24563         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24564         * tests/test-pipe2.c (main): Likewise.
24565         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24566
24567         utimens: fix broken m4 test
24568         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24569
24570 2010-10-28  Bruno Haible  <bruno@clisp.org>
24571
24572         posix_spawn*, getdtablesize: Relax license.
24573         * modules/posix_spawn (License): Change to LGPLv2+.
24574         * modules/posix_spawnp (License): Likewise.
24575         * modules/posix_spawn-internal (License): Likewise.
24576         * modules/posix_spawnattr_init (License): Likewise.
24577         * modules/posix_spawnattr_getflags (License): Likewise.
24578         * modules/posix_spawnattr_setflags (License): Likewise.
24579         * modules/posix_spawnattr_getpgroup (License): Likewise.
24580         * modules/posix_spawnattr_setpgroup (License): Likewise.
24581         * modules/posix_spawnattr_getschedparam (License): Likewise.
24582         * modules/posix_spawnattr_setschedparam (License): Likewise.
24583         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24584         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24585         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24586         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24587         * modules/posix_spawnattr_getsigmask (License): Likewise.
24588         * modules/posix_spawnattr_setsigmask (License): Likewise.
24589         * modules/posix_spawnattr_destroy (License): Likewise.
24590         * modules/posix_spawn_file_actions_init (License): Likewise.
24591         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24592         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24593         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24594         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24595         * modules/getdtablesize (License): Likewise.
24596         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24597
24598 2010-10-26  Bruno Haible  <bruno@clisp.org>
24599
24600         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24601         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24602         Cygwin and mingw.
24603         Suggested by Eric Blake.
24604
24605 2010-10-26  Bruno Haible  <bruno@clisp.org>
24606
24607         stdio: Work around compilation error due to renameat() on Solaris 10.
24608         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24609         * lib/renameat.c: Don't include <unistd.h> here.
24610         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24611         Reported by Paul Eggert and Eric Blake.
24612
24613 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24614
24615         renameat: port to Solaris 10, which declares renameat in unistd.h
24616
24617         * lib/renameat.c: Include unistd.h before stdio.h, because
24618         Solaris 10 declares renameat in unistd.h.  Problem encountered
24619         when building GNU tar 1.24 on Solaris 10.
24620
24621 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24622
24623         fdopendir: fix C89 compilation
24624         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24625         compilers.
24626
24627 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24628
24629         inttostr: simplify by removing unnecessary redundancy
24630         * lib/anytostr.c: Don't include verify.h.
24631         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24632         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24633         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24634         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24635         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24636         Likewise.
24637         * modules/inttostr (Depends-on): Remove 'verify'.
24638
24639 2010-10-23  Bruno Haible  <bruno@clisp.org>
24640
24641         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24642         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24643         Reported by Eric Blake.
24644
24645 2010-10-23  Bruno Haible  <bruno@clisp.org>
24646
24647         Tests: Fix LOCALE_JA on MirBSD 10.
24648         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24649         to an UTF-8 locale.
24650         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24651         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24652         Reported by Eric Blake.
24653
24654 2010-10-21  Bruno Haible  <bruno@clisp.org>
24655
24656         nl_langinfo test: Avoid test failure on NetBSD 5.
24657         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24658         Reported by Eric Blake.
24659
24660 2010-10-21  Eric Blake  <eblake@redhat.com>
24661
24662         c-stack: work around libsigsegv 2.8 bug
24663         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24664         overflow on at least PowerPC64.
24665
24666 2010-10-17  Bruno Haible  <bruno@clisp.org>
24667
24668         userspec: Drop redundant file.
24669         * modules/userspec (Files): Remove lib/inttostr.h.
24670
24671 2010-10-17  Bruno Haible  <bruno@clisp.org>
24672
24673         nl_langinfo tests: Silence some warnings.
24674         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24675         Reported by Jim Meyering.
24676
24677 2010-10-17  Bruno Haible  <bruno@clisp.org>
24678
24679         Make use of GCC's attribute __alloc_size__.
24680         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24681         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24682         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24683         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24684         __alloc_size__.
24685         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24686         Suggested by Jim Meyering.
24687
24688 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24689
24690         bootstrap: anchor .gitignore entries.
24691         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24692         with...
24693         (insert_vc_ignore): ... this new function, which prepends `/' to
24694         all .gitignore entries before passing them to
24695         insert_sorted_if_absent.
24696
24697 2010-10-16  Bruno Haible  <bruno@clisp.org>
24698
24699         nextafter: Fix configure check.
24700         * modules/nextafter (configure.ac): Correct expected prototype.
24701
24702 2010-10-16  Bruno Haible  <bruno@clisp.org>
24703
24704         termios: Update documentation.
24705         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24706
24707 2010-10-16  Bruno Haible  <bruno@clisp.org>
24708
24709         tests: Make them compile with TinyCC.
24710         * tests/test-strstr.c (main): Remove parentheses around array
24711         initializer.
24712
24713 2010-10-15  Eric Blake  <eblake@redhat.com>
24714
24715         ignore-value: make header idempotent
24716         * lib/ignore-value.h: Add double-inclusion guards.
24717         Reported by Stefan Berger.
24718
24719 2010-10-15  Jim Meyering  <meyering@redhat.com>
24720
24721         GNUmakefile: handle "stable" target, not "major"
24722         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24723         lists in maint.mk and announce-gen.  Without this, "make stable"
24724         would fail to ensure that $(VERSION) is up to date.
24725
24726 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24727
24728         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24729         & co.
24730
24731 2010-10-14  Bruno Haible  <bruno@clisp.org>
24732
24733         vasnprintf: Don't set errno to 0.
24734         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24735         block that sets it to 0.
24736         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24737
24738 2010-10-14  Bruno Haible  <bruno@clisp.org>
24739
24740         socketlib: Fix.
24741         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24742         gl_PREREQ_SYS_H_WINSOCK2.
24743         Reported by Ian Beckwith <ianb@erislabs.net>.
24744
24745 2010-10-13  Jim Meyering  <meyering@redhat.com>
24746
24747         test-select-stdin.c: avoid warn_unused_result warnings
24748         * tests/test-select-stdin.c: Include "macros.h".
24749         ASSERT that read and fflush succeed.
24750
24751 2010-10-13  Jim Meyering  <meyering@redhat.com>
24752
24753         git-version-gen: do require git-VC'd files in cwd
24754         * build-aux/git-version-gen: Reject a git version string
24755         if there are no commits associated with the current directory.
24756         This avoids an unlikely false-positive (unrelated dir whose parent
24757         repository also contains a tag matching v*), as pointed out
24758         by Giuseppe Scrivano in
24759         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24760
24761 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24762
24763         argv-iter: omit nonconforming declaration
24764         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24765         enum arg_iter_err declaration, which doesn't conform to C99.
24766         Solaris 10 cc warns about this.
24767
24768 2010-10-13  Eric Blake  <eblake@redhat.com>
24769
24770         termios: fix compilation on mingw
24771         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24772         (gl_TERMIOS_H): Adjust it on mingw.
24773         * modules/termios (Makefile.am): Substitute new key.
24774         * lib/termios.in.h (includes): Make include_next conditional.
24775         * doc/posix-headers/termios.texi (termios.h): Update
24776         documentation.
24777         Reported by Daniel P. Berrange.
24778
24779 2010-10-13  Jim Meyering  <meyering@redhat.com>
24780
24781         git-version-gen: don't require that .git/ be in the current dir
24782         * build-aux/git-version-gen: Adjust this script so that it works
24783         when run from any working directory beneath the top-level .git/-
24784         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24785         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24786
24787         test-select: avoid warn_unused_result warnings
24788         * tests/test-select.c: Include "macros.h".
24789         ASSERT that each call to read, write, and pipe succeeds.
24790         While not technically required, also check each "close".
24791         * modules/select-tests (Files): Add tests/macros.h.
24792
24793         test-symlinkat: remove declaration of unused local
24794         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24795
24796         test-inttostr: avoid shadowing warnings
24797         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24798         and use malloc rather than the stack for the same reason as
24799         mentioned in the comment justifying the other allocation.
24800
24801 2010-10-11  Bruno Haible  <bruno@clisp.org>
24802
24803         stdlib: Allow multiple gnulib generated replacements to coexist.
24804         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24805         Reported by Sam Steingold <sds@gnu.org>.
24806
24807 2010-10-11  Jim Meyering  <meyering@redhat.com>
24808
24809         fix a documentation typo
24810         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24811
24812 2010-10-11  Eric Blake  <eblake@redhat.com>
24813
24814         futimens: work around Solaris 11 bug
24815         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24816         * tests/test-futimens.h (test_futimens): Enhance, rather than
24817         weaken test.
24818         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24819
24820 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24821
24822         Indentation.
24823         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24824         higher-level operators more to the left.
24825
24826 2010-10-11  Jim Meyering  <meyering@redhat.com>
24827
24828         test-futimens: avoid unwarranted test failure on Solaris 5.11
24829         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24830         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24831         because it tries to dereference the NULL name argument.
24832
24833 2010-10-11  Bruno Haible  <bruno@clisp.org>
24834
24835         Indentation.
24836         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24837         indentation.
24838
24839 2010-10-11  Jim Meyering  <meyering@redhat.com>
24840
24841         spawn.in.h: make indentation consistent with parentheses
24842         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24843         Make indentation consistent with parentheses.
24844
24845 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24846
24847         Fix mismatched parens in previous commit
24848         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24849         parens.
24850
24851 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24852
24853         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24854
24855         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24856         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24857         * lib/malloca.c: Include "verify.h".
24858         (verify1): Remove, replacing with a verify call.
24859         * lib/relocwrapper.c (verify1): Likewise.
24860         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24861         Likewise.
24862         * modules/malloca (Depends-on): Add 'verify'.
24863         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24864         * modules/vasnprintf (Depends-on): Add 'verify'.
24865         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24866         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24867         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24868         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24869         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24870         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24871         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24872
24873         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24874
24875         Formerly the style was sometimes 2*X - 1, because the C standard
24876         was wrongly thought to disallow ?: in integral constant expressions.
24877         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24878         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24879         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24880         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24881         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24882         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24883         verify that time_t cannot be floating.
24884
24885 2010-10-08  Eric Blake  <eblake@redhat.com>
24886
24887         time: enforce recent POSIX ruling that time_t is integral
24888         * lib/time.in.h (__time_t_must_be_integral): Detect any
24889         problematic systems, allowing the rest of gnulib to assume POSIX.
24890
24891 2010-10-08  Jim Meyering  <meyering@redhat.com>
24892
24893         fdopendir: fix a bug on systems lacking openat and /proc support
24894         OpenBSD 4.7 is one such system.  The most noticeable effect was
24895         failure of any application making nontrivial use of fts: rm, du,
24896         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24897           ./rm: traversal failed: `a': Bad file descriptor
24898         Debugging that, you see that even though FD 6 was closed just
24899         prior to the opendir call in fd_clone_opendir, its resulting
24900         dir->dd_fd was 8, rather than the expected value of 6:
24901
24902         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24903         93                close (fd);
24904         (gdb) n
24905         94                dir = fd_clone_opendir (dupfd);
24906         (gdb) n
24907         95                saved_errno = errno;
24908         (gdb) p dir->dd_fd
24909         $11 = 8
24910
24911         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24912         The problem is that on OpenBSD, fd_clone_opendir has to resort
24913         to using the old-style save/restore CWD mechanism, due to its
24914         lack of openat/proc support, and *that* would steal the FD (6)
24915         that opendir was supposed to use.
24916
24917         The fix is to squirrel away the desired FD so that save_cwd uses a
24918         different one, and then free the dest FD right before calling opendir.
24919         That guarantees opendir will use the required file descriptor.
24920
24921         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24922
24923 2010-10-08  Bruno Haible  <bruno@clisp.org>
24924
24925         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24926         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24927
24928 2010-10-08  Bruno Haible  <bruno@clisp.org>
24929
24930         nanosleep: Make replacement POSIX compliant.
24931         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24932         is out of range.
24933         Reported by Jim Meyering.
24934
24935 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24936
24937         bootstrap: add hook for altering gnulib.mk, for Bison
24938         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24939         the Bison bootstrapping process can rewrite file names and variables
24940         in this file before later parts of 'bootstrap' use the file.
24941         Bison wants to include lib/gnulib.mk from the top-level makefile,
24942         so it needs the file names in this file to be relative to the top
24943         level, not relative to lib; plus it needs variable names to be
24944         rewritten.
24945         (slurp): Use the new function.
24946
24947         bootstrap: reformat for readability
24948         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24949
24950 2010-10-08  Eric Blake  <eblake@redhat.com>
24951
24952         docs: update cygwin progress
24953         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24954         1.7.7.
24955         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24956         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24957         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24958         * doc/posix-functions/carg.texi (carg): Likewise.
24959         * doc/posix-functions/cargf.texi (cargf): Likewise.
24960         * doc/posix-functions/casin.texi (casin): Likewise.
24961         * doc/posix-functions/casinf.texi (casinf): Likewise.
24962         * doc/posix-functions/casinh.texi (casinh): Likewise.
24963         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24964         * doc/posix-functions/catan.texi (catan): Likewise.
24965         * doc/posix-functions/catanf.texi (catanf): Likewise.
24966         * doc/posix-functions/catanh.texi (catanh): Likewise.
24967         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24968         * doc/posix-functions/ccos.texi (ccos): Likewise.
24969         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24970         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24971         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24972         * doc/posix-functions/cexp.texi (cexp): Likewise.
24973         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24974         * doc/posix-functions/cimag.texi (cimag): Likewise.
24975         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24976         * doc/posix-functions/clog.texi (clog): Likewise.
24977         * doc/posix-functions/clogf.texi (clogf): Likewise.
24978         * doc/posix-functions/conj.texi (conj): Likewise.
24979         * doc/posix-functions/conjf.texi (conjf): Likewise.
24980         * doc/posix-functions/cpow.texi (cpow): Likewise.
24981         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24982         * doc/posix-functions/cproj.texi (cproj): Likewise.
24983         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24984         * doc/posix-functions/creal.texi (creal): Likewise.
24985         * doc/posix-functions/crealf.texi (crealf): Likewise.
24986         * doc/posix-functions/csin.texi (csin): Likewise.
24987         * doc/posix-functions/csinf.texi (csinf): Likewise.
24988         * doc/posix-functions/csinh.texi (csinh): Likewise.
24989         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24990         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24991         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24992         * doc/posix-functions/ctan.texi (ctan): Likewise.
24993         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24994         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24995         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24996         * doc/posix-headers/complex.texi (complex.h): Likewise.
24997
24998 2010-10-07  Jim Meyering  <meyering@redhat.com>
24999
25000         parse-datetime: avoid compilation failure on OpenBSD 4.7
25001         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25002         This works around a compilation failure on OpenBSD 4.7:
25003         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25004
25005 2010-10-07  Eric Blake  <eblake@redhat.com>
25006
25007         docs: update cygwin progress
25008         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25009         1.7.6.
25010         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25011         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25012         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25013         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25014         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25015         Likewise.
25016         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25017         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25018         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25019         Likewise.
25020         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25021         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25022         Likewise.
25023         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25024         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25025         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25026         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25027         Likewise.
25028         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25029         Likewise.
25030         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25031
25032         docs: update parse-datetime history
25033         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25034         documentation of this function's history and alternatives.
25035
25036         cygwin: use more robust version check
25037         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25038         exclude an eventual cygwin 1.9.1.
25039         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25041         (gl_FUNC_STRCASESTR): Likewise.
25042         Reported by Bruno Haible.
25043
25044 2010-10-06  Bruno Haible  <bruno@clisp.org>
25045
25046         string, sys_select: Avoid #including large headers unless necessary.
25047         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25048         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25049         OSF/1, BeOS, Haiku.
25050         Reported by Jim Meyering.
25051
25052 2010-10-05  Eric Blake  <eblake@redhat.com>
25053
25054         memmem, strstr, strcasestr: fix bug with long periodic needle
25055         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25056         periodic needle having false positive.
25057         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25058         and cygwin 1.7.7.
25059         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25060         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25061         (gl_FUNC_STRCASESTR): Likewise.
25062         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25063         * tests/test-memmem.c (main): Expose the bug.
25064         * tests/test-strcasestr.c (main): Likewise.
25065         * tests/test-strstr.c (main): Likewise.
25066         * tests/test-c-strcasestr.c (main): Likewise.
25067         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25068         * doc/posix-functions/strstr.texi (strstr): Likewise.
25069         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25070         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25071
25072 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25073
25074         parse-datetime: do some more renaming
25075         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25076         parse_datetime, not get_date.  Mention the renaming.
25077         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25078         in comments.
25079         * m4/bison.m4: Likewise.
25080
25081 2010-10-05  Eric Blake  <eblake@redhat.com>
25082
25083         parse-datetime: better name than get_date
25084         * NEWS: Reword the deprecation notice.
25085         * modules/get_date: Rename to modules/parse-datetime.
25086         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25087         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25088         * lib/get_date.y: Rename to lib/parse-datetime.y.
25089         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25090         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25091         * doc/getdate.texi: Provide fallback wrapper.
25092         * lib/getdate.h: Move guts, and wrap...
25093         * lib/parse-datetime.h: ...new file.
25094         * lib/parse-datetime.y (get_date): Rename...
25095         (parse_datetime): ...to this.
25096         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25097         (gl_PARSE_DATETIME): ...to this.
25098         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25099         documentation.
25100         * modules/getdate (Files): Provide fallback docs and header.
25101         (Notice, Depends-on): Update references.
25102         * tests/test-parse-datetime.c: Likewise.
25103         * DEPENDENCIES: Likewise.
25104         * MODULES.html.sh (Date and time <time.h>): Likewise.
25105         * doc/parse-datetime.texi (Date input formats)
25106         (Authors of parse_datetime): Likewise.
25107         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25108         (Include): Likewise.
25109         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25110         * gnulib-tool: Likewise.
25111         * m4/bison.m4 (gl_BISON): Likewise.
25112         Suggested by Bruno Haible.
25113
25114 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25115
25116         more ports to Solaris tr, which needs [] around ranges
25117         * gnulib-tool: Solaris tr needs [] around ranges.
25118         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25119         * tests/test-pipe-filter-gi1.c (main): Likewise.
25120         * tests/test-pipe-filter-ii1.c (main): Likewise.
25121
25122 2010-10-05  Eric Blake  <eblake@redhat.com>
25123
25124         bootstrap: fix Solaris regression
25125         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25126         around ranges.
25127         Reported by Pádraig Brady.
25128
25129         bootstrap: work with pkg-config
25130         * build-aux/bootstrap (check_versions): Also transliterate - in
25131         prerequisite name.
25132         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25133         prerequisites that were already found, to avoid confusion.
25134         Reported by Justin Clift.
25135
25136         faccessat: remove unused wrappers
25137         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25138         presence of these wrappers dragged in -lgen on Solaris.
25139         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25140
25141 2010-10-05  Jim Meyering  <meyering@redhat.com>
25142
25143         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25144         * Makefile (sc_pragma_columns): New syntax-check rule.
25145
25146 2010-10-04  Bruno Haible  <bruno@clisp.org>
25147
25148         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25149         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25150         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25151         Reported by Bruce Korb and Eric Blake.
25152
25153 2010-10-04  Bruno Haible  <bruno@clisp.org>
25154
25155         threadlib: Make option --with-libpth-prefix work.
25156         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25157         use $LIBPTH, not just -lpth.
25158
25159 2010-10-04  Bruno Haible  <bruno@clisp.org>
25160
25161         Avoid line length limitation from HP NonStop system header files.
25162         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25163         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25164         * lib/ctype.in.h: Likewise.
25165         * lib/dirent.in.h: Likewise.
25166         * lib/errno.in.h: Likewise.
25167         * lib/fcntl.in.h: Likewise.
25168         * lib/float.in.h: Likewise.
25169         * lib/getopt.in.h: Likewise.
25170         * lib/iconv.in.h: Likewise.
25171         * lib/inttypes.in.h: Likewise.
25172         * lib/langinfo.in.h: Likewise.
25173         * lib/locale.in.h: Likewise.
25174         * lib/math.in.h: Likewise.
25175         * lib/netdb.in.h: Likewise.
25176         * lib/netinet_in.in.h: Likewise.
25177         * lib/poll.in.h: Likewise.
25178         * lib/pthread.in.h: Likewise.
25179         * lib/pty.in.h: Likewise.
25180         * lib/sched.in.h: Likewise.
25181         * lib/se-selinux.in.h: Likewise.
25182         * lib/search.in.h: Likewise.
25183         * lib/signal.in.h: Likewise.
25184         * lib/spawn.in.h: Likewise.
25185         * lib/stdarg.in.h: Likewise.
25186         * lib/stddef.in.h: Likewise.
25187         * lib/stdint.in.h: Likewise.
25188         * lib/stdio.in.h: Likewise.
25189         * lib/stdlib.in.h: Likewise.
25190         * lib/string.in.h: Likewise.
25191         * lib/strings.in.h: Likewise.
25192         * lib/sys_file.in.h: Likewise.
25193         * lib/sys_ioctl.in.h: Likewise.
25194         * lib/sys_select.in.h: Likewise.
25195         * lib/sys_socket.in.h: Likewise.
25196         * lib/sys_stat.in.h: Likewise.
25197         * lib/sys_time.in.h: Likewise.
25198         * lib/sys_times.in.h: Likewise.
25199         * lib/sys_utsname.in.h: Likewise.
25200         * lib/sys_wait.in.h: Likewise.
25201         * lib/sysexits.in.h: Likewise.
25202         * lib/termios.in.h: Likewise.
25203         * lib/time.in.h: Likewise.
25204         * lib/unistd.in.h: Likewise.
25205         * lib/wchar.in.h: Likewise.
25206         * lib/wctype.in.h: Likewise.
25207         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25208         * modules/ctype (Makefile.am): Likewise.
25209         * modules/dirent (Makefile.am): Likewise.
25210         * modules/errno (Makefile.am): Likewise.
25211         * modules/fcntl-h (Makefile.am): Likewise.
25212         * modules/float (Makefile.am): Likewise.
25213         * modules/getopt-posix (Makefile.am): Likewise.
25214         * modules/iconv-h (Makefile.am): Likewise.
25215         * modules/inttypes (Makefile.am): Likewise.
25216         * modules/langinfo (Makefile.am): Likewise.
25217         * modules/locale (Makefile.am): Likewise.
25218         * modules/math (Makefile.am): Likewise.
25219         * modules/netdb (Makefile.am): Likewise.
25220         * modules/netinet_in (Makefile.am): Likewise.
25221         * modules/poll-h (Makefile.am): Likewise.
25222         * modules/pthread (Makefile.am): Likewise.
25223         * modules/pty (Makefile.am): Likewise.
25224         * modules/sched (Makefile.am): Likewise.
25225         * modules/search (Makefile.am): Likewise.
25226         * modules/selinux-h (Makefile.am): Likewise.
25227         * modules/signal (Makefile.am): Likewise.
25228         * modules/spawn (Makefile.am): Likewise.
25229         * modules/stdarg (Makefile.am): Likewise.
25230         * modules/stddef (Makefile.am): Likewise.
25231         * modules/stdint (Makefile.am): Likewise.
25232         * modules/stdio (Makefile.am): Likewise.
25233         * modules/stdlib (Makefile.am): Likewise.
25234         * modules/string (Makefile.am): Likewise.
25235         * modules/strings (Makefile.am): Likewise.
25236         * modules/sys_file (Makefile.am): Likewise.
25237         * modules/sys_ioctl (Makefile.am): Likewise.
25238         * modules/sys_select (Makefile.am): Likewise.
25239         * modules/sys_socket (Makefile.am): Likewise.
25240         * modules/sys_stat (Makefile.am): Likewise.
25241         * modules/sys_time (Makefile.am): Likewise.
25242         * modules/sys_times (Makefile.am): Likewise.
25243         * modules/sys_utsname (Makefile.am): Likewise.
25244         * modules/sys_wait (Makefile.am): Likewise.
25245         * modules/sysexits (Makefile.am): Likewise.
25246         * modules/termios (Makefile.am): Likewise.
25247         * modules/time (Makefile.am): Likewise.
25248         * modules/unistd (Makefile.am): Likewise.
25249         * modules/wchar (Makefile.am): Likewise.
25250         * modules/wctype (Makefile.am): Likewise.
25251
25252 2010-10-04  Bruno Haible  <bruno@clisp.org>
25253
25254         read-file tests: Avoid a test failure on NonStop Kernel.
25255         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25256         a regular file.
25257         Reported by Joachim Schmitz <schmitz@hp.com>.
25258
25259 2010-10-03  Bruno Haible  <bruno@clisp.org>
25260
25261         gnulib-tool: Fixes for --create-testdir with --libtool.
25262         * gnulib-tool (func_get_automake_snippet): Don't augment
25263         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25264         an executable.
25265         (func_create_testdir): Handle module 'alloca' like func_import.
25266         Reported by Bruce Korb <bruce.korb@gmail.com>.
25267
25268 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25269
25270         Avoid some lines longer than 80 characters.
25271         * lib/stdint.in.h: Break long comment lines.
25272         * lib/math.in.h: Likewise.
25273         (_GL_NUM_UINT_WORDS): New macro, for readability.
25274         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25275         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25276         * lib/stdlib.in.h: Likewise.
25277         * lib/spawn.in.h: Likewise.
25278         * lib/sys_socket.in.h: Update an URL.
25279         * lib/sys_stat.in.h: Break long line.
25280
25281 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25282
25283         Improve pmccabe2html.
25284         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25285         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25286         when the sources change. Remove the line in the HTML about "Used
25287         ranges" (which implied that there might be other unused ranges),
25288         rename "Resume" to "Summary" (easier to understand for more users).
25289         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25290         styles, and some unnecessary blank lines.
25291
25292 2010-10-03  Bruno Haible  <bruno@clisp.org>
25293             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25294
25295         acl: Add support for ACLs on NonStop Kernel.
25296         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25297         Check whether the function aclsort() exists.
25298         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25299         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25300         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25301         (acl_nontrivial [HAVE_ACLSORT]: New function.
25302         (file_has_acl): Implement for NonStop Kernel.
25303         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25304         (qset_acl): Implement for NonStop Kernel.
25305         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25306         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25307         (main): Implement for NonStop Kernel.
25308         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25309         Kernel. Handle this flavor.
25310         * tests/test-set-mode-acl.sh: Likewise.
25311         * tests/test-copy-acl.sh: Likewise.
25312         * tests/test-copy-file.sh: Likewise.
25313
25314 2010-10-03  Bruno Haible  <bruno@clisp.org>
25315
25316         Info about ACLs on NonStop Kernel.
25317         * doc/acl-resources.txt: Add info about NonStop Kernel.
25318         References by Joachim Schmitz <schmitz@hp.com>.
25319
25320 2010-10-02  Bruno Haible  <bruno@clisp.org>
25321
25322         Define missing EDQUOT on NonStop Kernel.
25323         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25324         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25325         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25326         missing.
25327         * doc/posix-headers/errno.texi: Mention the NSK bug.
25328         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25329         Reported by Joachim Schmitz <schmitz@hp.com>.
25330
25331 2010-10-02  Bruno Haible  <bruno@clisp.org>
25332
25333         Update doc for POSIX:2008.
25334         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25335         Update URL of POSIX specification.
25336
25337 2010-10-02  Bruno Haible  <bruno@clisp.org>
25338
25339         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25340         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25341         from gnulib, not from Automake.
25342
25343 2010-10-02  Bruno Haible  <bruno@clisp.org>
25344
25345         New module 'system-posix'.
25346         * modules/system-posix: New file.
25347         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25348         module is present.
25349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25350         GNULIB_SYSTEM_POSIX.
25351         * modules/stdlib (Depends-on): Remove sys_wait.
25352         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25353         * doc/posix-functions/system.texi: Mention the new module.
25354         * doc/posix-headers/stdlib.texi: Likewise.
25355         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25356         define test_sys_wait_macros to a no-op.
25357         Reported by Sam Steingold <sds@gnu.org>.
25358
25359 2010-09-30  Bruno Haible  <bruno@clisp.org>
25360
25361         More renaming from 'getdate' to 'get_date'.
25362         * doc/get_date.texi: Renamed from doc/getdate.texi.
25363         * modules/get_date (Files): Update.
25364         * MODULES.html.sh (Date and time <time.h>): Update.
25365         * DEPENDENCIES: Update.
25366         * gnulib-tool: Update comment.
25367         * m4/bison.m4 (gl_BISON): Likewise.
25368         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25369
25370 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25371
25372         bootstrap: support ACLOCAL_FLAGS during aclocal
25373         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25374         can add additional -I dir for third-party .m4 files.
25375
25376 2010-09-30  Eric Blake  <eblake@redhat.com>
25377
25378         bootstrap: use glibtoolize on MacOS
25379         * build-aux/bootstrap (check_versions): Convert libtool into
25380         libtoolize.
25381         (tool search): Move libtool check earlier, and look for
25382         glibtoolize for MacOS.
25383         (gnulib_tool_options): Auto-add --libtool when appropriate.
25384         Reported by Justin Clift.
25385
25386         poll: fix typo that broke test on MacOS
25387         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25388         Reported by Justin Clift.
25389
25390         getdate: rename to get_date
25391         Note: getdate.h is not renamed, to minimize client impact.
25392         * modules/getdate: Mark obsolete.  Move old contents...
25393         * modules/get_date: ...to new module name.
25394         * modules/getdate-tests: Move...
25395         * modules/get_date-tests: ...here.
25396         * m4/getdate.m4: Move...
25397         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25398         * lib/getdate.y: Move...
25399         * lib/get_date.y: ...here.
25400         * tests/test-getdate.c: Move...
25401         * tests/test-get_date.c: ...here.
25402         * doc/posix-functions/getdate.texi (getdate): Update name.
25403         * NEWS: Mention the change.
25404
25405 2010-09-29  Bruno Haible  <bruno@clisp.org>
25406
25407         Separate the module 'waitpid' from the module 'sys_wait'.
25408         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25409         present.
25410         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25411         gl_MODULE_INDICATOR_FOR_TESTS.
25412         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25413         * modules/sys_wait (Depends-on): Remove waitpid.
25414         (Makefile.am): Substitute GNULIB_WAITPID.
25415         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25416         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25417         signature only if the 'waitpid' module is present.
25418         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25419         * NEWS: Mention the change.
25420         * modules/grantpt (Depends-on): Add waitpid.
25421         * modules/wait-process (Depends-on): Likewise.
25422
25423 2010-09-29  Bruno Haible  <bruno@clisp.org>
25424
25425         More tests for module 'sys_wait'.
25426         * modules/sys_wait-c++-tests: New file.
25427         * tests/test-sys_wait-c++.cc: New file.
25428         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25429         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25430
25431 2010-09-29  Bruno Haible  <bruno@clisp.org>
25432
25433         New module 'waitpid'.
25434         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25435         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25436         Don't include <process.h>.
25437         (waitpid): Declare only, using modern idiom.
25438         * m4/waitpid.m4: New file.
25439         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25440         * modules/waitpid: New file.
25441         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25442         (Makefile.am): Update.
25443         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25444
25445 2010-09-28  Bruno Haible  <bruno@clisp.org>
25446
25447         poll: Assume ANSI C.
25448         * lib/poll.c (poll): Use an ANSI C declaration.
25449
25450 2010-09-28  Bruno Haible  <bruno@clisp.org>
25451
25452         poll-h: Create poll.h on all platforms.
25453         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25454         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25455         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25456         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25457         (gl_REPLACE_POLL_H): Don't set POLL_H.
25458         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25459         * modules/poll-h (Depends-on): Add include_next.
25460         (Makefile.am): Create poll.h unconditionally. Substitute also
25461         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25462
25463 2010-09-28  Bruno Haible  <bruno@clisp.org>
25464
25465         Tests for module 'poll-h'.
25466         * modules/poll-h-c++-tests: New file.
25467         * tests/test-poll-h-c++.cc: New file.
25468
25469         Tests for module 'poll-h'.
25470         * modules/poll-h-tests: New file.
25471         * tests/test-poll-h.c: New file.
25472
25473 2010-09-28  Bruno Haible  <bruno@clisp.org>
25474
25475         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25476         * modules/poll-h (Depends-on): Add 'extensions'.
25477
25478 2010-09-28  Bruno Haible  <bruno@clisp.org>
25479
25480         New module 'poll-h'.
25481         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25482         (poll): Use modern idiom.
25483         * modules/poll-h: New file.
25484         * modules/poll (Files): Remove lib/poll.in.h.
25485         (Depends-on): Add poll-h.
25486         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25487         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25488         * m4/poll_h.m4: New file.
25489         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25490         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25491         and invoke gl_REPLACE_POLL_H.
25492         * lib/poll.c: Use common idiom.
25493         * tests/test-poll.c: Likewise.
25494         * doc/posix-headers/poll.texi: Mention the poll-h module.
25495         Suggested by Eric Blake.
25496
25497 2010-09-26  Bruno Haible  <bruno@clisp.org>
25498
25499         sys_wait: Implement WSTOPSIG.
25500         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25501         Reported by Simon Josefsson.
25502
25503 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25504
25505         stdlib, sys_wait: Avoid compilation error on mingw.
25506         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25507
25508 2010-09-26  Bruno Haible  <bruno@clisp.org>
25509
25510         stdlib tests: Avoid code duplication.
25511         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25512         * modules/sys_wait-tests (Files): Likewise.
25513         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25514         * tests/test-stdlib.c: Include test-sys_wait.h.
25515         (main): Invoke test_sys_wait_macros.
25516         * tests/test-sys_wait.c: Include test-sys_wait.h.
25517         (main): Invoke test_sys_wait_macros.
25518
25519 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25520
25521         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25522         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25523         sure Windows sockets are working before calling getaddrinfo.
25524         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25525         * doc/gnulib.texi (Windows sockets): Fix typo.
25526
25527 2010-09-25  Bruno Haible  <bruno@clisp.org>
25528
25529         Tests for module 'regex-quote'.
25530         * modules/regex-quote-tests: New file.
25531         * tests/test-regex-quote.c: New file.
25532
25533         New module 'regex-quote'.
25534         * lib/regex-quote.h: New file.
25535         * lib/regex-quote.c: New file.
25536         * modules/regex-quote: New file.
25537         Suggested by Reuben Thomas <rrt@sc3d.org>.
25538
25539 2010-09-24  Bruno Haible  <bruno@clisp.org>
25540
25541         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25542         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25543
25544 2010-09-23  Bruno Haible  <bruno@clisp.org>
25545
25546         setenv: Relax license.
25547         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25548         Blake.
25549         Requested by Eric Blake.
25550
25551 2010-09-22  Bruno Haible  <bruno@clisp.org>
25552
25553         termios: Relax license.
25554         * modules/termios (License): Change to LGPLv2+.
25555         Requested by Eric Blake.
25556
25557 2010-09-22  Bruno Haible  <bruno@clisp.org>
25558
25559         threadlib: Allow the package to change the default to 'no'.
25560         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25561         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25562         Reported by Paul Eggert.
25563
25564 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25565             Bruno Haible  <bruno@clisp.org>
25566
25567         Fix endless loop in mbmemcasecoll.
25568         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25569         byte.
25570         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25571
25572 2010-09-22  Bruno Haible  <bruno@clisp.org>
25573
25574         Tests for module 'memcoll'.
25575         * modules/memcoll-tests: New file.
25576         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25577
25578         memcoll, xmemcoll: Clarify size vs. length.
25579         * modules/memcoll.c (memcoll0): Clarify specification.
25580         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25581         passed to collate_error.
25582
25583 2010-09-22  Bruno Haible  <bruno@clisp.org>
25584
25585         Tests for module 'memcasecmp'.
25586         * modules/memcasecmp-tests: New file.
25587         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25588
25589 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25590
25591         * lib/pthread.in.h: Add split double-inclusion guard, and include
25592         system <pthread.h> if there is one.  Use @@-style as in other
25593         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25594         pthread.h doesn't.
25595         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25596         (pthread_mutexattr_settype, pthread_mutex_trylock):
25597         New static inline functions, if there's no system <pthread.h>.
25598         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25599         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25600         Approximate with mutexes if the system lacks spinlocks, as in
25601         MacOS.
25602         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25603         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25604         @@-style.  Check for spinlocks separately.
25605         (gl_PTHREAD_DEFAULTS): New macro.
25606         * modules/pthread: Redo to use a more typical style for in.h files.
25607
25608 2010-09-21  Eric Blake  <eblake@redhat.com>
25609
25610         net_if: enhance tests
25611         * tests/test-net_if.c (main): Move signature checks earlier.
25612         Print failures to stderr.
25613         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25614         Document the bug that we do not yet fix.
25615
25616 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25617
25618         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25619         about gnulib, not GSS.
25620
25621 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25622
25623         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25624         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25625         for Emacs.
25626         * build-aux/pmccabe2html: Make Makefile.am example code more
25627         cut-and-paste friendly.
25628
25629 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25630
25631         * tests/test-net_if.c: New file.
25632         * modules/net_if-tests: New file.
25633
25634 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25635
25636         pthread: add pthread_spin_destroy
25637         * lib/pthread.in.h (pthread_spin_destroy): New function.
25638
25639 2010-09-19  Bruno Haible  <bruno@clisp.org>
25640
25641         gnulib-tool: Fix --help output.
25642         * gnulib-tool (func_usage): Fix help message.
25643         Reported by Reuben Thomas <rrt@sc3d.org>.
25644
25645 2010-09-18  Jim Meyering  <meyering@redhat.com>
25646
25647         maint.mk: avoid unexpanded \n in two diagnostics
25648         * top/maint.mk (sc_prohibit_always_true_header_tests):
25649         Don't use a literal \n in a halt=... assignment.  It would not be
25650         expanded, and the two \n bytes would appear in the diagnostic output
25651         rather than the desired newline.  Use halt=$$(printf ... instead.
25652         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25653
25654 2010-09-18  Bruno Haible  <bruno@clisp.org>
25655
25656         netinet_in: Doc tweak.
25657         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25658         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25659
25660 2010-09-18  Jim Meyering  <meyering@redhat.com>
25661
25662         init.sh: correct an outdated comment
25663         * tests/init.sh (create_exe_shims_):  s/function/alias/
25664
25665         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25666         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25667         a file named "*.exe" is removed between the glob expansion and the
25668         processing of that oddly named file.
25669
25670 2010-09-17  Eric Blake  <eblake@redhat.com>
25671
25672         mirbsd: add some more support
25673         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25674         in BSD family.
25675         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25676         devices as OpenBSD.
25677         * m4/host-os.m4 (mirbsd): Add MirBSD.
25678
25679         tests: fix unportable assumption on sys/wait.h
25680         * tests/test-sys_wait.c (main): Relax test.
25681         * tests/test-stdlib.c (main): Likewise.
25682
25683         init.sh: accomodate directory with no .exes
25684         * tests/init.sh: Accomodate directory containing only scripts.
25685
25686         tests: avoid compiler warning
25687         * tests/test-stdlib.c (main): Use the variable.
25688
25689         fdutimens, fdutimensat: update signature, again
25690         * lib/utimens.h (gl_futimens): Delete, and move signature...
25691         (fdutimens): ...here.
25692         (fdutimensat): Rearrange signature.
25693         (lutimensat): Rename variable for clarity.
25694         * lib/fdutimensat.c (fdutimensat): Update signature.
25695         * lib/utimens.c (fdutimens): Likewise.
25696         (gl_futimens): Delete.
25697         (utimens, lutimens): Update callers.
25698         * lib/futimens.c (futimens): Likewise.
25699         * tests/test-fdutimensat.c: Likewise.
25700         * tests/test-utimens.c: Likewise.
25701         * tests/test-futimens.h: Update comment.
25702         * NEWS: Mention this.
25703         Suggested by Paul Eggert.
25704
25705 2010-09-17  Bruno Haible  <bruno@clisp.org>
25706
25707         Take over the maintenance of some older macros from Autoconf.
25708         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25709         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25710         GNU Autoconf.
25711         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25712         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25713
25714 2010-09-17  Eric Blake  <eblake@redhat.com>
25715
25716         fdutimensat: drop atflag validation
25717         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25718         with valid fd, to close a race scenario where futimens is
25719         unsupported and FILE was replaced by a symlink.
25720         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25721         accordingly.
25722         Suggested by Paul Eggert.
25723
25724 2010-09-16  Bruno Haible  <bruno@clisp.org>
25725
25726         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25727         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25728
25729 2010-09-16  Bruno Haible  <bruno@clisp.org>
25730
25731         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25732         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25733         login_tty exists.
25734         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25735
25736 2010-09-16  Bruno Haible  <bruno@clisp.org>
25737
25738         login_tty: Make the replacement code work on BSD systems.
25739         * lib/login_tty.c: Include <sys/ioctl.h>.
25740         (login_tty): Use ioctl TIOCSCTTY when available.
25741         * modules/login_tty (Depends-on): Add sys_ioctl.
25742         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25743
25744 2010-09-16  Bruno Haible  <bruno@clisp.org>
25745
25746         login_tty: Stricter unit test.
25747         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25748         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25749         and tcgetsid() after login_tty.
25750         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25751
25752 2010-09-16  Bruno Haible  <bruno@clisp.org>
25753
25754         New module 'tcgetsid'.
25755         * lib/tcgetsid.c: New file.
25756         * m4/tcgetsid.m4: New file.
25757         * modules/tcgetsid: New file.
25758         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25759         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25760         GNULIB_TCGETSID, HAVE_TCGETSID.
25761         * lib/termios.in.h: Include <sys/types.h>.
25762         (tcgetsid): New declaration.
25763         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25764         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25765         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25766         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25767
25768 2010-09-16  Bruno Haible  <bruno@clisp.org>
25769
25770         Tests for module 'termios'.
25771         * modules/termios-c++-tests: New file.
25772         * modules/termios-tests: New file.
25773         * tests/test-termios-c++.cc: New file.
25774         * tests/test-termios.c: New file.
25775
25776         New module 'termios'.
25777         * modules/termios: New file.
25778         * lib/termios.in.h: New file.
25779         * m4/termios_h.m4: New file.
25780         * doc/posix-headers/termios.texi: Mention the new module.
25781
25782 2010-09-16  Eric Blake  <eblake@redhat.com>
25783
25784         fdutimensat: add an atflag parameter
25785         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25786         * lib/utimens.h (fdutimensat): Update prototype.
25787         * tests/test-fdutimensat.c: Adjust test to match.
25788         * NEWS: Document the change.
25789         Suggested by Paul Eggert.
25790
25791 2010-09-16  Bruno Haible  <bruno@clisp.org>
25792
25793         Fix typos in comments.
25794         * lib/striconveh.h: Fix typo in comment.
25795         * lib/login_tty.c (login_tty): Likewise.
25796
25797 2010-09-15  Bruno Haible  <bruno@clisp.org>
25798
25799         stdlib: clarify MirBSD WEXITSTATUS bug
25800         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25801         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25802
25803 2010-09-15  Eric Blake  <eblake@redhat.com>
25804
25805         stdlib: work around MirBSD WEXITSTATUS bug
25806         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25807         * modules/stdlib (Depends-on): Add sys_wait.
25808         * tests/test-sys_wait.c (main): Enhance test.
25809         * tests/test-stdlib.c (main): Likewise.
25810         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25811
25812         docs: mention MacOS issue with WEXITSTATUS(constant)
25813         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25814         issue.
25815         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25816
25817         strnlen: add tests
25818         * modules/strnlen-tests: New file.
25819         * tests/test-strnlen.c: Likewise.
25820
25821 2010-09-14  Bruno Haible  <bruno@clisp.org>
25822
25823         unistr/base: Avoid link errors when module 'libunistring' is also used.
25824         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25825         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25826         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25827         Declare also when HAVE_LIBUNISTRING is set.
25828         Reported by Pádraig Brady <P@draigbrady.com>.
25829
25830 2010-09-14  Eric Blake  <eblake@redhat.com>
25831
25832         test-rawmemchr: make more robust
25833         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25834         (Depends-on, configure.ac): Add needed prerequisites to use it.
25835         * modules/memchr-tests (Files, Depends-on, configure.ac):
25836         Likewise, to avoid implicit reliance on memchr module prereqs.
25837         * tests/test-memchr.c (main): Ensure proper masking.
25838         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25839         reads.
25840
25841         memchr: detect glibc Alpha bug
25842         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25843         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25844         Alpha.
25845         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25846         * tests/test-memchr.c (main): Enhance test.
25847         Reported by Nelson H. F. Beebe.
25848
25849 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25850
25851         fts, getcwd, glob: audit for dirfd returning -1
25852         * lib/fts.c (opendir): Remove #define; no longer used.
25853         (opendirat): New arg PDIR_FD.  All callers changed.
25854         (fts_build, _opendir2): Use new opendirat to avoid the need for
25855         dirfd, or for checking whether dirfd returns a negative value.
25856         Don't use opendir; always use openat followed by fdopendir.
25857         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25858         it.
25859         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25860         returns -1 here.
25861         * modules/fts (Depends-on): Remove dirfd.
25862         * modules/getcwd (Depends-on): Likewise.
25863
25864 2010-09-13  Eric Blake  <eblake@redhat.com>
25865
25866         float: fix broken MirBSD header
25867         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25868         * doc/posix-headers/float.texi (float.h): Document it.
25869
25870 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25871
25872         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25873         * lib/fts.c (opendirat): New arg extra_flags.
25874         (__opendir2): Use it to avoid following symlinks when opening
25875         a directory, if symlinks are not supposed to be followed.  See
25876         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25877
25878         fdopendir: preserve argument fd before returning
25879         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25880         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25881         (fdopendir): Use them, arranging for FD to be open to the same
25882         directory that it was when it started.  (It might be temporarily
25883         closed while fdopendir is running, so this not thread- or
25884         signal-safe.)  Be careful to do the right thing even when file
25885         descriptors are scarce and dup fails with errno == EMFILE.  See
25886         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25887
25888 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25889
25890         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25891         * NEWS: Document change.
25892         * m4/regex.m4: Disable test for regoff_t size.
25893
25894 2010-09-13  Jim Meyering  <meyering@redhat.com>
25895
25896         fts: don't operate on an invalid file descriptor after failed dup
25897         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25898         negative file descriptor.
25899
25900 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25901
25902         savedir: add streamsavedir, deprecate fdsavedir
25903         * NEWS: Mention deprecation of fdsavedir.
25904         * lib/savedir.c (streamsavedir): New extern function, whose name
25905         ends in "savedir" to be consistent with the others.  This differs
25906         from savedirstream in that it doesn't close its argument.  The
25907         next version of GNU tar will use this instead of fdsavedir, to
25908         avoid some race conditions and conserve file descriptors.
25909         (savedirstream): Reimplement as a wrapper around streamsavedir.
25910         (fdsavedir): Add a comment deprecating this function.  As far as
25911         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25912         * lib/savedir.h (streamsavedir): New decl.
25913         (fdsavedir): Add a comment deprecating this.
25914
25915 2010-09-10  Bruno Haible  <bruno@clisp.org>
25916
25917         langinfo: Fix last commit.
25918         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25919         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25921
25922 2010-09-10  Bruno Haible  <bruno@clisp.org>
25923
25924         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25925         * lib/progreloc.c (O_EXEC): Define fallback.
25926
25927 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25928
25929         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25930         * NEWS: Document recent changes to fcntl-h.
25931         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25932         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25933         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25934         Similarly for O_SEARCH; this last was already true, but not documented.
25935         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25936         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25937         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25938         Likewise.
25939         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25940         is zero, not whether it is defined.
25941         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25942         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25943         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25944
25945 2010-09-10  Bruno Haible  <bruno@clisp.org>
25946
25947         langinfo, nl_langinfo: Fix for IRIX 5.3.
25948         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25949         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25950         HAVE_LANGINFO_YESEXPR.
25951         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25952         HAVE_LANGINFO_YESEXPR.
25953         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25954         HAVE_LANGINFO_T_FMT_AMPM is 0.
25955         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25956         HAVE_LANGINFO_YESEXPR is 0.
25957         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25958         NOEXPR.
25959         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25960         * doc/posix-functions/nl_langinfo.texi: Likewise.
25961         Reported by Eric Blake.
25962
25963 2010-09-10  Bruno Haible  <bruno@clisp.org>
25964
25965         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25966         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25967         on FreeBSD 8.0 and OpenBSD 4.6.
25968         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25969         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25970         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25971         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25972         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25973         ac_includes_default.
25974         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25975
25976 2010-09-09  Eric Blake  <eblake@redhat.com>
25977
25978         strsignal: work around NetBSD bug
25979         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25980         * lib/string.in.h (includes): Likewise.
25981         * doc/posix-functions/strsignal.texi (strsignal): Document the
25982         bug.
25983         Reported by Nelson H. F. Beebe.
25984
25985         gnulib-tool: work with NetBSD /bin/sh
25986         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25987         (func_get_description, func_get_comment, func_get_status)
25988         (func_get_notice, func_get_applicability, func_get_filelist)
25989         (func_get_dependencies, func_get_autoconf_early_snippet)
25990         (func_get_autoconf_snippet, func_get_automake_snippet)
25991         (func_get_include_directive, func_get_link_directive)
25992         (func_get_license, func_get_maintainer, func_import): Avoid
25993         shell syntax errors from parsing syntax extensions.
25994
25995 2010-09-09  Bruno Haible  <bruno@clisp.org>
25996
25997         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25998         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25999         a reliable way to determine whether the 'alias' command works.
26000
26001 2010-09-08  Jim Meyering  <meyering@redhat.com>
26002
26003         init.sh: penalize a set-x-impaired shell; don't disqualify it
26004         * tests/init.sh: Too many shells corrupt application stderr when
26005         you set -x, so we can't afford to disqualify them, since at least
26006         on Irix-6.5, that would disqualify all bourne shells.
26007         Instead, use a two-pass approach.
26008         On the first pass, try to find a shell that meets the stricter
26009         condition that set -x does not corrupt stderr.
26010         If no shell meets the stricter condition, retest each candidate
26011         shell, but without that extra condition.  Finally, when
26012         VERBOSE=yes is requested and set -x might cause trouble, simply
26013         issue a warning and refrain from enabling debug output.
26014
26015 2010-09-08  Eric Blake  <eblake@redhat.com>
26016
26017         unsetenv: fix OpenBSD bug
26018         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26019         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26020         documentation.
26021         Reported by Jim Meyering.
26022
26023         strtod: work around IRIX 6.5 bug
26024         * lib/strtod.c (strtod): Reparse number on shorter string if
26025         exponent parse was invalid.
26026         * tests/test-strtod.c (main): Add check for "0x1p 2".
26027         Reported by Tom G. Christensen.
26028
26029         getopt: optimize previous patch
26030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26031         empty variable.  Speed up awk script.
26032         Reported by Paolo Bonzini.
26033
26034 2010-09-08  Jim Meyering  <meyering@redhat.com>
26035
26036         test.sh: disqualify shells for which set -x corrupts stderr
26037         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26038         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26039         appear in stderr output.  For example, this command:
26040             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26041         prints "P=1" on those two systems:
26042
26043 2010-09-08  Bruno Haible  <bruno@clisp.org>
26044
26045         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26046         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26047         commands, because some shells ignore redirections when there is an
26048         error in the command lookup.
26049         Reported by Eric Blake.
26050
26051 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26052
26053         * lib/regex.h: Fix a mention of `regex_compile' (should be
26054         `re_compile_pattern').
26055         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26056         (re_set_registers): Correct name of parameter in comment.
26057
26058         * doc/regex.texi: Add documentation for missing syntax flags.
26059         Remove commented-out documentation of defunct syntax option
26060         RE_NO_EMPTY_ALTS.
26061         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26062         Add documentation of re_set_registers.
26063         Document trick to re-use a pattern buffer by setting fastmap manually.
26064         Update documentation of struct re_pattern_buffer per public members.
26065         Uncomment documentation of equivalence class operators and
26066         collating symbol operators, since they are now implemented,
26067         Explain leftmost-longest matching in relation to alternatives.
26068         Tidy documentation of substring matching.
26069         Remove POSIX documentation, which is done better in
26070         glibc, and refer the reader there. Keep BSD API documentation, as
26071         that is not readily available elsewhere.
26072
26073 2010-09-07  Eric Blake  <eblake@redhat.com>
26074
26075         getopt: handle POSIXLY_CORRECT set but not exported
26076         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26077         export state of POSIXLY_CORRECT, due to bash set -o posix.
26078         Reported by Dustin J. Mitchell.
26079
26080 2010-09-05  Bruno Haible  <bruno@clisp.org>
26081
26082         gnulib-tool: Highlight the changed options.
26083         * gnulib-tool (func_usage): Display the --import, --add-import,
26084         --remove-import explanations in bold font.
26085
26086 2010-09-06  Karl Berry  <karl@gnu.org>
26087
26088         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26089
26090 2010-09-05  Bruno Haible  <bruno@clisp.org>
26091
26092         uniwidth/width: Update comment.
26093         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26094         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26095
26096 2010-09-05  Bruno Haible  <bruno@clisp.org>
26097
26098         isinf, isnan: Relax license.
26099         * modules/isinf (License): Change from GPL to LGPL, with consent from
26100         Ben Pfaff.
26101         * modules/isnan (License): Likewise.
26102         Requested by Ludovic Courtès.
26103
26104 2010-09-04  Bruno Haible  <bruno@clisp.org>
26105
26106         gnulib-tool: Help migration from --import to --add-import or --update.
26107         * gnulib-tool: Emit a verbose error message when --import is used
26108         without any module name.
26109
26110 2010-09-04  Bruno Haible  <bruno@clisp.org>
26111
26112         Update doc about gnulib-tool.
26113         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26114         'gnulib-tool --update' in more detail.
26115         Reported by Eric Blake.
26116
26117 2010-09-04  Bruno Haible  <bruno@clisp.org>
26118
26119         gnulib-tool: Change --import. New options --add/remove-import.
26120         * gnulib-tool: New options --add-import, --remove-import.
26121         (func_usage): Document them.
26122         (have_associative): Define always.
26123         (func_import): In import mode, don't merge the specified settings with
26124         the cached settings. Implement remove-import mode.
26125         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26126         Explain when to use them versus --import.
26127         (Simple update): Use --add-import instead of --import.
26128         * NEWS: Mention the change.
26129
26130 2010-09-04  Bruno Haible  <bruno@clisp.org>
26131
26132         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26133         separate gnulib.mk.
26134
26135 2010-09-04  Bruno Haible  <bruno@clisp.org>
26136
26137         gnulib-tool: Don't talk about CVS any more.
26138         * gnulib-tool (func_usage, func_import): Write "version control"
26139         instead of CVS.
26140
26141 2010-09-04  Jim Meyering  <meyering@redhat.com>
26142
26143         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26144         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26145         false positives (whose names may be ill-chosen) when searching
26146         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26147         would cause a false-positive.
26148
26149         avoid coreutils "make distcheck" failure
26150         Coreutils tests with an absolute build directory name that contains
26151         a space.  Not quoting this directory name caused a failure.
26152         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26153         * tests/test-vc-list-files-cvs.sh: Likewise.
26154
26155 2010-09-04  Bruno Haible  <bruno@clisp.org>
26156
26157         gnulib-tool: Avoid error when run in a package without Makefile.am.
26158         * gnulib-tool: When collecting the m4dirs in a package that does not
26159         have a Makefile.am, eliminate those directories that contain no
26160         gnulib-cache.m4. Fix expression that counts these directories.
26161
26162 2010-09-04  Bruno Haible  <bruno@clisp.org>
26163
26164         update-copyright test: Improve output when perl is missing or too old.
26165         * tests/test-update-copyright.sh: Move test of Perl version down after
26166         the test whether Perl exists. Provide an explanation relating Perl's
26167         error message to Automake's SKIP: message.
26168
26169 2010-09-04  Bruno Haible  <bruno@clisp.org>
26170
26171         Don't augment PATH in TESTS_ENVIRONMENT.
26172         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26173         set abs_aux_dir instead of augmenting PATH.
26174         * modules/vc-list-files-tests (Makefile.am): Likewise.
26175         * tests/test-update-copyright.sh: Augment PATH here.
26176         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26177         path_prepend_.
26178         * tests/test-vc-list-files-git.sh: Likewise.
26179
26180 2010-09-04  Jim Meyering  <meyering@redhat.com>
26181
26182         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26183         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26184
26185 2010-09-04  Bruno Haible  <bruno@clisp.org>
26186
26187         strdup: Fix compilation error in C++ mode.
26188         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26189         the macro.
26190
26191 2010-09-04  Bruno Haible  <bruno@clisp.org>
26192
26193         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26194         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26195         macro into a function.
26196         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26197
26198 2010-09-04  Bruno Haible  <bruno@clisp.org>
26199
26200         Set PATH_SEPARATOR the same way autoconf does.
26201         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26202         the value of PATH_SEPARATOR the same way autoconf-generated configure
26203         scripts do.
26204         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26205         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26206
26207 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26208
26209         Set PATH_SEPARATOR the same way autoconf does.
26210         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26211         the same way autoconf-generated configure scripts do.
26212         * posix-modules: Likewise.
26213
26214 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26215
26216         hash: fix safe_hasher const typo
26217         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26218         const; otherwise, there is a type error later.
26219
26220 2010-09-02  Jim Meyering  <meyering@redhat.com>
26221
26222         test-update-copyright.sh: require perl 5.8.0
26223         * tests/test-update-copyright.sh: Require 5.8.0,
26224         which Tom G. Christensen has confirmed is adequate,
26225         while 5.6.1 is not.
26226
26227 2010-09-02  Eric Blake  <eblake@redhat.com>
26228
26229         tests: init.sh improvements for re-exec'ing with zsh
26230         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26231         -vx through shell re-exec.
26232         Reported by Tom G. Christensen.
26233
26234         wctype: fix typo in previous commit
26235         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26236         Reported by Ludovic Courtès.
26237
26238 2010-09-02  Jim Meyering  <meyering@redhat.com>
26239
26240         test-update-copyright.sh: skip test if Perl is too old
26241         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26242         Reported by Tom G. Christensen.
26243
26244 2010-09-02  Bruno Haible  <bruno@clisp.org>
26245
26246         wctype: Avoid compilation error on IRIX 6.5.30.
26247         * lib/wctype.in.h (iswblank): Declare with a replacement if
26248         REPLACE_ISWBLANK is set.
26249         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26250         declared. Set REPLACE_ISWBLANK.
26251         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26252         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26253         * doc/posix-headers/wctype.texi: Likewise.
26254         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26255
26256 2010-09-01  Bruno Haible  <bruno@clisp.org>
26257
26258         New module 'socketlib'.
26259         * modules/socketlib: New file.
26260         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26261         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26262         * modules/sockets (Depends-on): Add socketlib.
26263         Suggested by Sam Steingold <sds@gnu.org>.
26264
26265 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26266
26267         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26268
26269         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26270         when one needs search access to a directory but not read access.
26271         On systems where it is available, it works in some cases where
26272         O_RDONLY does not, namely on directories that are searchable but
26273         not readable, and which need only to be searchable.  If O_SEARCH
26274         is not available, fall back to the traditional method of using
26275         O_RDONLY.
26276
26277         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26278         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26279         when opening a directory that needs only to be searchable.
26280         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26281         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26282         * lib/openat-proc.c (openat_proc_name): Likewise.
26283         * lib/openat.c (openat_needs_fchdir): Likewise.
26284         * lib/save-cwd.c (save_cwd): Likewise.
26285         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26286
26287 2010-08-28  Bruno Haible  <bruno@clisp.org>
26288
26289         New module 'host-cpu-c-abi'.
26290         * modules/host-cpu-c-abi: New file.
26291         * m4/host-cpu-c-abi.m4: New file, based on part of
26292         clisp/src/m4/general.m4.
26293         Requested by Sam Steingold <sds@gnu.org>.
26294
26295 2010-08-31  Eric Blake  <eblake@redhat.com>
26296         and Jim Meyering  <meyering@redhat.com>
26297
26298         hash: factor, and guard against misbehaving hasher function
26299         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26300         of table->hasher's return value.  Also protect against a hash value
26301         so large that adding it to table->bucket results in a NULL pointer.
26302         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26303         Use it in place of open-coded check-and-abort.
26304
26305 2010-08-30  Bruno Haible  <bruno@clisp.org>
26306
26307         hash: silence spurious clang warning
26308         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26309         Reported by Eric Blake.
26310
26311 2010-08-30  Eric Blake  <eblake@redhat.com>
26312
26313         strstr, memmem, strcasestr: avoid leaked shell message
26314         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26315         FreeBSD.
26316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26317         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26318
26319         tests: silence clang warning
26320         * tests/test-malloca.c (do_allocation): Avoid dead store.
26321
26322 2010-08-29  Bruno Haible  <bruno@clisp.org>
26323
26324         gettext: Fix recent mistake.
26325         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26326
26327 2010-08-29  Bruno Haible  <bruno@clisp.org>
26328
26329         selinux-h: Offer a --without-selinux option.
26330         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26331         --without-selinux was specified, skip all tests and define
26332         HAVE_SELINUX_SELINUX_H to 0.
26333         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26334         set LIB_SELINUX to empty.
26335         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26336         gl_LIBSELINUX. If --without-selinux was specified, replace
26337         selinux/context.h.
26338         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26339
26340 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26341             Bruno Haible  <bruno@clisp.org>
26342
26343         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26344         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26345         of HAVE_REALLOC.
26346         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26347         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26348         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26349         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26350
26351 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26352             Bruno Haible  <bruno@clisp.org>
26353
26354         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26355         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26356         HAVE_CALLOC.
26357         * lib/xmalloc.c: Update accordingly.
26358         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26359         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26360         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26361
26362 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26363             Bruno Haible  <bruno@clisp.org>
26364
26365         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26366         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26367         HAVE_MALLOC.
26368         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26369         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26370         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26371
26372 2010-08-29  Bruno Haible  <bruno@clisp.org>
26373
26374         Update modules list.
26375         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26376         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26377         (String handling <string.h>): Add astrxfrm.
26378         (File system functions): Add readlinkat.
26379
26380 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26381
26382         Tests for module 'realloc-gnu'.
26383         * modules/realloc-gnu-tests: New file.
26384         * tests/test-realloc-gnu.c: New file.
26385
26386         Tests for module 'calloc-gnu'.
26387         * modules/calloc-gnu-tests: New file.
26388         * tests/test-calloc-gnu.c: New file.
26389
26390         Tests for module 'malloc-gnu'.
26391         * modules/malloc-gnu-tests: New file.
26392         * tests/test-malloc-gnu.c: New file.
26393
26394 2010-08-28  Bruno Haible  <bruno@clisp.org>
26395
26396         Rename module 'realloc' -> 'realloc-gnu'.
26397         * modules/realloc-gnu: New file, copied from modules/realloc.
26398         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26399         obsolete.
26400         * modules/mgetgroups (Depends-on): Update.
26401         * doc/posix-functions/realloc.texi: Update.
26402         * NEWS: Mention the change.
26403
26404         Rename module 'calloc' -> 'calloc-gnu'.
26405         * modules/calloc-gnu: New file, copied from modules/calloc.
26406         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26407         obsolete.
26408         * doc/posix-functions/calloc.texi: Update.
26409         * NEWS: Mention the change.
26410
26411         Rename module 'malloc' -> 'malloc-gnu'.
26412         * modules/malloc-gnu: New file, copied from modules/malloc.
26413         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26414         obsolete.
26415         * modules/argp (Depends-on): Update.
26416         * modules/regex (Depends-on): Update.
26417         * doc/posix-functions/malloc.texi: Update.
26418         * NEWS: Mention the change.
26419
26420 2010-08-28  Eric Blake  <eblake@redhat.com>
26421
26422         pread, pwrite: add missing dependency
26423         * modules/pread (Depends-on): Add extensions.
26424         * modules/pwrite (Depends-on): Likewise.
26425
26426 2010-08-28  Bruno Haible  <bruno@clisp.org>
26427
26428         unistr/u*-strchr: Fix tests dependencies.
26429         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26430         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26431         Reported by Ian Beckwith <ianb@erislabs.net>.
26432
26433 2010-08-28  Bruno Haible  <bruno@clisp.org>
26434
26435         read-file: Don't occupy too much unused memory.
26436         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26437
26438 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26439             Eric Blake  <eblake@redhat.com>
26440             Bruno Haible  <bruno@clisp.org>
26441
26442         read-file: Avoid memory reallocations with regular files.
26443         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26444         (fread_file): With regular files, use the remaining length as the
26445         initial buffer size.  Check against overflow.
26446         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26447         sys_stat.
26448
26449 2010-08-28  Bruno Haible  <bruno@clisp.org>
26450
26451         ftello: Relax license.
26452         * modules/ftello (License): Relax to LGPLv2+.
26453         Reported by Eric Blake.
26454
26455 2010-08-28  Bruno Haible  <bruno@clisp.org>
26456
26457         Avoid relocwrapper link errors due to gnulib replacement functions.
26458         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26459         function.
26460         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26461
26462 2010-08-28  Bruno Haible  <bruno@clisp.org>
26463
26464         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26465         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26466         defined.
26467         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26468         Suggested by Eric Blake.
26469
26470 2010-08-28  Bruno Haible  <bruno@clisp.org>
26471
26472         sys_socket, netdb: Ensure socklen_t gets defined.
26473         * modules/sys_socket (Depends-on): Add socklen.
26474         * modules/netdb (Depends-on): Likewise.
26475         * modules/getaddrinfo (Depends-on): Remove socklen.
26476         * modules/getsockopt (Depends-on): Likewise.
26477         * modules/setsockopt (Depends-on): Likewise.
26478         * tests/test-sys_socket.c: Check that socklen_t is defined.
26479         * tests/test-netdb.c: Likewise.
26480         * m4/socklen.m4: Update comments.
26481         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26482
26483 2010-08-27  Eric Blake  <eblake@redhat.com>
26484
26485         login_tty: add missing dependency
26486         * modules/login_tty (Depends-on): Add pty.
26487
26488 2010-08-26  Eric Blake  <eblake@redhat.com>
26489
26490         lib-symbol-versions: fix m4 quoting
26491         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26492         format for AC_LINK_IFELSE.
26493
26494         glob: fix compile test
26495         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26496
26497         btowc: fix missing file
26498         * modules/btowc (Files): Also ship locale-fr.m4.
26499
26500         lseek: fix link test
26501         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26502         AC_LINK_IFELSE.
26503
26504         include_next: silence autoconf 2.68 warning
26505         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26506         AC_COMPILE_IFELSE as special.
26507         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26508         autoconf < 2.68.
26509
26510         acl: fix compilation test
26511         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26512         AC_COMPILE_IFELSE.
26513
26514 2010-08-26  Bruno Haible  <bruno@clisp.org>
26515
26516         Modernize AC_TRY_RUN invocations.
26517         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26518         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26519         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26520         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26521         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26522         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26523         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26524         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26525         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26526         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26527         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26528         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26529         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26530         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26532         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26533         gl_MBRLEN_NUL_RETVAL): Likewise.
26534         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26535         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26536         Likewise.
26537         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26538         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26539         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26540         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26541         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26542         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26543         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26544         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26545         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26546         Likewise.
26547         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26548         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26549         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26550         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26551         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26552         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26553         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26554         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26555         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26556         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26557
26558 2010-08-26  Bruno Haible  <bruno@clisp.org>
26559
26560         Modernize AC_TRY_LINK invocations.
26561         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26562         AC_TRY_LINK.
26563         * m4/argp.m4 (gl_ARGP): Likewise.
26564         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26565         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26566         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26567         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26568         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26569         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26570         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26571         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26572         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26573         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26574         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26575         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26576         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26577         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26578         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26579         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26580         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26581         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26582         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26583         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26584         Likewise.
26585         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26586         Likewise.
26587         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26588         Likewise.
26589         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26590         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26591         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26592         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26593         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26594         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26595         * m4/servent.m4 (gl_SERVENT): Likewise.
26596         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26597         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26598         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26599         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26600         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26601         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26602         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26603         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26604         * modules/tsearch-tests (configure.ac): Likewise.
26605
26606 2010-08-26  Bruno Haible  <bruno@clisp.org>
26607
26608         Modernize AC_TRY_COMPILE invocations.
26609         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26610         AC_TRY_COMPILE.
26611         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26612         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26613         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26614         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26615         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26616         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26617         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26618         * m4/lock.m4 (gl_LOCK): Likewise.
26619         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26620         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26621         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26622         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26623         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26624         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26625         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26626         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26627         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26628         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26629         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26630         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26631         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26632         extraneous semicolon.
26633
26634 2010-08-26  Jim Meyering  <meyering@redhat.com>
26635
26636         stat-time: relax license LGPL
26637         * modules/stat-time (License): Change from GPL to LGPL,
26638         with consent from all contributors, for use in libguile.
26639         Requested by Ludovic Courtès.
26640
26641 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26642
26643         poll: return immediately on POLLHUP.
26644         * lib/poll.c (poll): Always set timeout before wait_timeout is
26645         computed.
26646
26647 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26648
26649         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26650         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26651         rmdir ("dir/.//"), unlinkat.
26652
26653 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26654
26655         stdbool: avoid spurious failure with modern xlc
26656         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26657
26658 2010-08-24  Bruno Haible  <bruno@clisp.org>
26659
26660         getloadavg: simplify code
26661         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26662         gl_have_func. Update comments.
26663
26664 2010-08-24  Eric Blake  <eblake@redhat.com>
26665
26666         getloadavg: don't define SVR4 on cygwin
26667         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26668         only define SVR4 when -lkvm is required.
26669         Reported by Yaakov Selkowitz.
26670
26671 2010-08-24  Bruno Haible  <bruno@clisp.org>
26672
26673         priv-set: fix comment
26674         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26675
26676 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26677
26678         priv-set: fix comments
26679         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26680         to match code, as suggested by David Bartley in:
26681         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26682
26683 2010-08-23  Eric Blake  <eblake@redhat.com>
26684
26685         stdbool: avoid rejecting clang
26686         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26687         * tests/test-stdbool.c: Enable more tests if using the system
26688         <stdbool.h> instead of the gnulib replacement.
26689         (main): Move xlc bug test to a runtime test for all compilers.
26690         Reported by Anders Kaseorg.
26691
26692         argz: fix shell quoting issue
26693         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26694         Reported by Charles Wilson.
26695
26696 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26697             Erik Faye-Lund <kusmabite@gmail.com>
26698
26699         poll, select: handle ERROR_BROKEN_PIPE.
26700         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26701         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26702         * lib/select.c (win32_compute_revents): Do not mark a pipe
26703         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26704
26705 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26706
26707         fts: allow compilation with C++
26708         * lib/fts_.h: Specify extern "C" linkage with C++.
26709
26710 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26711
26712         Fix gnulib-tool sed script de-commentation for AIX sed.
26713         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26714         sed.
26715
26716 2010-08-17  Eric Blake  <eblake@redhat.com>
26717
26718         test-stddef: test for (some) offsetof bugs
26719         * tests/test-stddef.c: Enhance test to ensure correct type of
26720         offsetof.
26721         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26722         that we are not fixing at this time.
26723
26724 2010-08-15  Bruno Haible  <bruno@clisp.org>
26725
26726         stpncpy: Allow stpncpy to be defined as a macro.
26727         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26728         if it's already correctly declared.
26729         * lib/string.in.h (stpncpy): Undefine before redefining.
26730         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26731
26732 2010-08-14  Bruno Haible  <bruno@clisp.org>
26733
26734         Rename module 'memxfrm' to 'amemxfrm'.
26735         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26736         (amemxfrm): Renamed from memxfrm.
26737         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26738         (amemxfrm): Renamed from memxfrm.
26739         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26740         * NEWS: Mention the change.
26741         * MODULES.html.sh (String handling <string.h>): Update.
26742         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26743         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26744         * lib/unicase/u16-casexfrm.c: Likewise.
26745         * lib/unicase/u32-casexfrm.c: Likewise.
26746         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26747         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26748         * lib/uninorm/u16-normxfrm.c: Likewise.
26749         * lib/uninorm/u32-normxfrm.c: Likewise.
26750         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26751         memxfrm.
26752         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26753         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26754         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26755         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26756         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26757         Suggested by Paul Eggert.
26758
26759 2010-08-14  Bruno Haible  <bruno@clisp.org>
26760
26761         Tests for module 'astrxfrm'.
26762         * modules/astrxfrm-tests: New file.
26763         * tests/test-astrxfrm.c: New file.
26764
26765         New module 'astrxfrm'.
26766         * lib/astrxfrm.h: New file.
26767         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26768         * modules/astrxfrm: New file.
26769
26770 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26771
26772         regex: Tweak doc.
26773         * doc/regex.texi (Overview): Don't mention regex.c.
26774         (GNU Regular Expression Compiling): Likewise.
26775         (Match-end-of-line Operator): Mention 'not_eol'.
26776
26777 2010-08-14  Brian Gough  <bjg@gnu.org>
26778             Bruno Haible  <bruno@clisp.org>
26779
26780         git-merge-changelog: add doc relating to use with bzr and hg.
26781         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26782
26783 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26784
26785         pthread: fix pthread.h creation for srcdir != builddir
26786         * modules/pthread (Makefile.am): Fix the rule to work also in a
26787         non-srcdir build.
26788
26789 2010-08-13  Karl Berry  <karl@gnu.org>
26790
26791         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26792         * doc/posix-*/*: force line break before @url of POSIX
26793         specifications.
26794         Suggested by Werner Lemberg.
26795
26796 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26797
26798         strtod: fix const diagnostic
26799         * lib/strtod.c (strtod): Don't assign const char * to char *,
26800         as this elicits a warning from GCC when warnings are enabled.
26801
26802 2010-08-10  Pádraig Brady <P@draigbrady.com>
26803         and Eric Blake  <eblake@redhat.com>
26804
26805         copy-acl: ignore ENOTSUP on HP-UX
26806         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26807         so that it is available for HP-UX.
26808         * lib/copy-acl.c (qcopy_acl): Use it.
26809         Reported by Patrick M. Callahan.
26810
26811 2010-08-10  Eric Blake  <eblake@redhat.com>
26812
26813         open, chown: relax license
26814         * modules/open (License): Change to LGPLv2+, with consent by all
26815         authors, for use in augeas.
26816         * modules/chown (License): Likewise.
26817         * modules/lchown (Likewise): Likewise.
26818         Requested by Adam Stokes.
26819
26820 2010-08-09  Karl Berry  <karl@gnu.org>
26821
26822         * build-aux/ar-lib: new file, import from Automake.
26823         * config/srclist.txt: autocheck for updates.
26824
26825 2010-08-09  Eric Blake  <eblake@redhat.com>
26826
26827         readlinkat: adjust client modules
26828         * modules/areadlinkat (Depends-on): Use readlinkat, not
26829         symlinkat.
26830         * modules/areadlinkat-with-size (Depends-on): Likewise.
26831
26832         mknod: be more vocal about danger of running tests as root
26833         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26834         root, since that is just asking for problems.
26835         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26836
26837         readlinkat: split into its own module
26838         * modules/symlinkat: Split readlinkat...
26839         * modules/readlinkat: ...into separate module.
26840         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26841         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26842         * lib/symlinkat.c (readlinkat): Move...
26843         * lib/readlinkat.c: ...into new file.
26844         * modules/symlinkat-tests: Split readlinkat test...
26845         * modules/readlinkat-tests: ...into separate module.
26846         * tests/test-symlinkat.c: Split...
26847         * tests/test-readlinkat.c: ...into new file.
26848         * NEWS: Document the split.
26849         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26850         * lib/unistd.in.h (readlinkat): Likewise.
26851         Suggested by Bruno Haible.
26852
26853 2010-08-08  Bruno Haible  <bruno@clisp.org>
26854
26855         memxfrm: Speed up.
26856         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26857         that usually only one call to strxfrm is necessary for each string
26858         part.
26859         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26860
26861 2010-08-07  Karl Berry  <karl@gnu.org>
26862
26863         * doc/posix-headers/limits.texi,
26864         * doc/posix-functions/malloc.texi,
26865         * doc/posix-functions/strsignal.texi: missing @item.
26866         * doc/ld-version-script.texi: spurious leading i.
26867         * doc/regex.texi (Interval Operators): no commas inside @var.
26868
26869 2010-08-01  Bruno Haible  <bruno@clisp.org>
26870
26871         Integrate the regex documentation.
26872         * doc/gnulib.texi: Define 'cn' index.
26873         (Regular expressions): New a chapter that includes regex.texi and
26874         regexprops-generic.texi.
26875         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26876         syntax.
26877
26878         Whitespace cleanup.
26879         * doc/regex.texi: Remove trailing spaces.
26880
26881         Add regex documentation.
26882         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26883         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26884         Written by Kathy A. Hargreaves and Karl Berry.
26885
26886 2010-08-01  Bruno Haible  <bruno@clisp.org>
26887
26888         link: Update documentation.
26889         * doc/posix-functions/link.texi: Update regarding Solaris.
26890
26891 2010-07-31  Bruno Haible  <bruno@clisp.org>
26892
26893         Update modules list.
26894         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26895         (String handling <string.h>): Add memcmp2, memxfrm.
26896         (Container data structures): Add xlist, xsublist, xoset.
26897         (Core language properties): Add alignof, unused-parameter.
26898         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26899         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26900         (Unibyte characters <ctype.h>): New section.
26901         (String handling <string.h>): New section.
26902         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26903         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26904         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26905         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26906         tan, tanh, tanl, y0, y1, yn.
26907         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26908         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26909         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26910         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26911         unlockpt, vdprintf, vdprintf-posix.
26912         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26913         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26914         xconcat-filename.
26915         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26916         getdtablesize, pipe2, pipe2-safer.
26917         (Security): New section.
26918         (Networking functions): Add accept4.
26919         (Signal handling): Add sigpipe.
26920         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26921         mbmemcasecoll.
26922         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26923         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26924         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26925         pipe-filter-ii.
26926         (Misc): Add argp-version-etc, login_tty, parse-duration.
26927
26928 2010-07-31  Bruno Haible  <bruno@clisp.org>
26929
26930         Improve doc in MODULES.html.
26931         * modules/linkat (Description): Add the word "function".
26932         * modules/mkfifo (Description): Likewise.
26933         * modules/mknod (Description): Likewise.
26934         * modules/remove (Description): Likewise.
26935         * modules/renameat (Description): Likewise.
26936         * modules/stat (Description): Likewise.
26937         * modules/symlink (Description): Likewise.
26938         * modules/unlink (Description): Likewise.
26939
26940 2010-07-31  Bruno Haible  <bruno@clisp.org>
26941
26942         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26943         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26944         option --enable/disable-c++ instead of --enable/disable-cxx.
26945         * NEWS: Mention the change.
26946
26947 2010-07-31  Bruno Haible  <bruno@clisp.org>
26948
26949         readlink, areadlink: Relax test a bit.
26950         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26951         alternative to ENOTDIR.
26952         * tests/test-areadlink.h (test_areadlink): Likewise.
26953         Reported by Rainer Tammer.
26954
26955 2010-07-31  Bruno Haible  <bruno@clisp.org>
26956
26957         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26958         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26959         character, perform the search using U_STRCHR.
26960         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26961         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26962         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26963         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26964         Suggested by Paolo Bonzini.
26965
26966 2010-07-31  Bruno Haible  <bruno@clisp.org>
26967
26968         unistr/u*-strstr: Fix dependencies.
26969         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26970         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26971         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26972
26973 2010-07-31  Bruno Haible  <bruno@clisp.org>
26974
26975         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26976         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26977         the beginning of the loop.
26978         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26979         cases in 'switch' statement.
26980
26981         unistr/u8-strchr: Fix several bugs.
26982         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26983         the string. When not found, return NULL, not a pointer near the end.
26984
26985         More tests for unistr/u8-strchr.
26986         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26987         that the function does not read past the first occurrence of the byte
26988         being searched.
26989         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26990         * tests/unistr/test-u16-strchr.c (main): New function.
26991         * tests/unistr/test-u32-strchr.c (main): New function.
26992
26993 2010-07-31  Bruno Haible  <bruno@clisp.org>
26994
26995         posix-modules: Ignore backup files of documentation files.
26996         * posix-modules: grep only through files named *.texi.
26997
26998 2010-07-31  Bruno Haible  <bruno@clisp.org>
26999
27000         symlinkat: Fix documentation.
27001         * doc/posix-functions/readlinkat.texi: Fix module name.
27002
27003 2010-07-31  Bruno Haible  <bruno@clisp.org>
27004
27005         fchownat: Replace also when chown has the trailing slash bug.
27006         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27007         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27008         introduced on 2010-04-10.
27009         Reported by Rainer Tammer.
27010
27011 2010-07-31  Bruno Haible  <bruno@clisp.org>
27012
27013         linkat: Work around AIX 7.1 bug.
27014         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27015         whether linkat handles trailing slash correctly. If not, replace linkat
27016         and define LINKAT_TRAILING_SLASH_BUG.
27017         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27018         check whether (fd1,file1) points to a directory if file1 or file2 ends
27019         in a slash. Code taken from lib/link.c.
27020         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27021         Reported by Rainer Tammer.
27022
27023 2010-07-31  Bruno Haible  <bruno@clisp.org>
27024
27025         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27026         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27027         This disables an xlc optimization that was causing wrong test results.
27028         Reported by Rainer Tammer.
27029
27030 2010-07-31  Bruno Haible  <bruno@clisp.org>
27031
27032         iconv: Work around AIX 6.1..7.1 bug.
27033         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27034         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27035         cross-compiling, guess no on all versions of AIX.
27036         Reported by Rainer Tammer.
27037
27038 2010-07-31  Bruno Haible  <bruno@clisp.org>
27039
27040         readlink: Relax test a bit.
27041         * tests/test-readlink.h (test_readlink): Allow different errno value
27042         when readlink is called with a file name that ends in / and refers to
27043         a file.
27044         Suggested by Eric Blake.
27045         Reported by Rainer Tammer.
27046
27047 2010-07-31  Bruno Haible  <bruno@clisp.org>
27048
27049         copysign: Does not require -lm on glibc systems.
27050         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27051         gl_COMMON_DOUBLE_MATHFUNC.
27052         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27053
27054 2010-07-31  Bruno Haible  <bruno@clisp.org>
27055
27056         duplocale: Work around AIX 7.1 bug.
27057         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27058         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27059         * lib/duplocale.c (rpl_duplocale): Update comment.
27060         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27061         Reported by Rainer Tammer.
27062
27063 2010-07-30  Bruno Haible  <bruno@clisp.org>
27064
27065         dirfd: Avoid link error on AIX 7.1.
27066         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27067         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27068         exist, set REPLACE_DIRFD.
27069         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27070         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27071         * doc/posix-functions/dirfd.texi: Update.
27072         Reported by Rainer Tammer.
27073
27074 2010-07-30  Eric Blake  <eblake@redhat.com>
27075
27076         strtod: next round of AIX fixes
27077         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27078         exponent.
27079         * tests/test-strtod.c (main): Enhance tests.
27080         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27081         Reported by Rainer Tammer.
27082
27083         futimens: fix configure check
27084         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27085         Reported by Bruno Haible.
27086
27087 2010-07-30  Bruno Haible  <bruno@clisp.org>
27088
27089         getline: Update regarding AIX.
27090         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27091         Reported by Rainer Tammer.
27092
27093 2010-07-30  Bruno Haible  <bruno@clisp.org>
27094
27095         wcwidth: Drop replacement on AIX 7.
27096         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27097         AIX 7.
27098         Reported by Rainer Tammer.
27099
27100 2010-07-30  Bruno Haible  <bruno@clisp.org>
27101
27102         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27103         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27104         a 'char *'.
27105         Reported by Rainer Tammer.
27106
27107 2010-07-30  Bruno Haible  <bruno@clisp.org>
27108
27109         unlink: Update regarding AIX.
27110         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27111         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27112         Reported by Rainer Tammer.
27113
27114 2010-07-30  Bruno Haible  <bruno@clisp.org>
27115
27116         symlink: Update regarding AIX.
27117         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27118         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27119         Reported by Rainer Tammer.
27120
27121 2010-07-30  Bruno Haible  <bruno@clisp.org>
27122
27123         strndup: Update regarding AIX.
27124         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27125         AIX 7.
27126         Reported by Rainer Tammer.
27127
27128 2010-07-30  Bruno Haible  <bruno@clisp.org>
27129
27130         stat: Update regarding AIX.
27131         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27132         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27133         Reported by Rainer Tammer.
27134
27135 2010-07-30  Bruno Haible  <bruno@clisp.org>
27136
27137         truncl: Fix autoconf test.
27138         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27139         whether truncl works.
27140         Reported by Rainer Tammer.
27141
27142 2010-07-30  Bruno Haible  <bruno@clisp.org>
27143
27144         round: Update regarding AIX.
27145         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27146         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27147         Reported by Rainer Tammer.
27148
27149 2010-07-30  Bruno Haible  <bruno@clisp.org>
27150
27151         rename: Update regarding AIX.
27152         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27153         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27154         Reported by Rainer Tammer.
27155
27156 2010-07-30  Bruno Haible  <bruno@clisp.org>
27157
27158         printf.m4: Update regarding AIX.
27159         * m4/printf.m4: Update comments regarding AIX.
27160         Reported by Rainer Tammer.
27161
27162 2010-07-30  Bruno Haible  <bruno@clisp.org>
27163
27164         iconv: Update regarding AIX.
27165         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27166         AIX 7.
27167         Reported by Rainer Tammer.
27168
27169 2010-07-30  Bruno Haible  <bruno@clisp.org>
27170
27171         getopt: Update regarding AIX.
27172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27173         no on AIX.
27174         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27175         Reported by Rainer Tammer.
27176
27177 2010-07-30  Bruno Haible  <bruno@clisp.org>
27178
27179         ldexpl; Update regarding AIX.
27180         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27181         on AIX 7.
27182         Reported by Rainer Tammer.
27183
27184 2010-07-30  Bruno Haible  <bruno@clisp.org>
27185
27186         frexpl: Update regarding AIX.
27187         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27188         on AIX 7.
27189         Reported by Rainer Tammer.
27190
27191 2010-07-30  Bruno Haible  <bruno@clisp.org>
27192
27193         open, fopen: Update regarding AIX.
27194         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27195         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27196         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27197         * doc/posix-functions/fopen.texi: Likewise.
27198         Reported by Rainer Tammer.
27199
27200 2010-07-30  Bruno Haible  <bruno@clisp.org>
27201
27202         chown: Update doc regarding AIX.
27203         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27204         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27205         Reported by Rainer Tammer.
27206
27207 2010-07-30  Eric Blake  <eblake@redhat.com>
27208
27209         strtod: fix bug in replacement function on AIX
27210         * lib/strtod.c (strtod): Special case broken "0x" parse in
27211         underlying strtod.
27212         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27213         * doc/posix-functions/strtod.texi (strtod): Likewise.
27214         Reported by Rainer Tammer.
27215
27216 2010-07-30  Bruno Haible  <bruno@clisp.org>
27217
27218         mbrlen: Fix cross-compilation guess for AIX.
27219         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27220         guess. Leftover from 2008-12-22.
27221
27222 2010-07-30  Bruno Haible  <bruno@clisp.org>
27223
27224         mbrtowc: Fix cross-compilation guess for AIX.
27225         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27226         guess. Leftover from 2008-12-21.
27227
27228 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27229
27230         init.sh: work around trap limitation of some shells
27231         * tests/init.sh (setup_): Move exit trap outside of shell function.
27232
27233 2010-07-29  Eric Blake  <eblake@redhat.com>
27234
27235         strtod: aid debugging
27236         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27237         understanding why strtod is rejected.
27238
27239 2010-07-28  Bruno Haible  <bruno@clisp.org>
27240
27241         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27242         * lib/unistr/u8-chr.c: Include <string.h>.
27243         * tests/unistr/test-u8-chr.c: Likewise.
27244         * tests/unistr/test-u16-chr.c: Likewise.
27245         * tests/unistr/test-u32-chr.c: Likewise.
27246         * tests/unistr/test-u8-strchr.c: Likewise.
27247         * tests/unistr/test-u16-strchr.c: Likewise.
27248         * tests/unistr/test-u32-strchr.c: Likewise.
27249         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27250         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27251         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27252         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27253
27254 2010-07-28  Bruno Haible  <bruno@clisp.org>
27255
27256         Use spaces for indentation, not tabs.
27257         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27258
27259 2010-07-27  Bruno Haible  <bruno@clisp.org>
27260
27261         mbspcasecmp: Fix function specification.
27262         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27263         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27264         Reported by Eric Blake <eblake@redhat.com>.
27265
27266 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27267
27268         timespec: use cast and not conditional, as truncation isn't possible
27269         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27270         instead of a conditional.  Comment about the situation in more detail.
27271         This undoes most of the 2009-10-29 patch.
27272
27273 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27274
27275         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27276         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27277         * lib/unistr/u8-strchr.c: Likewise.
27278         * modules/unistr/u8-chr: Depend on memchr.
27279
27280         unistr/u*-strchr: add tests
27281         * modules/unistr/u8-strchr-tests: New file.
27282         * modules/unistr/u16-strchr-tests: New file.
27283         * modules/unistr/u32-strchr-tests: New file.
27284         * tests/unistr/test-strchr.h: New file.
27285         * tests/unistr/test-u8-strchr.c: New file.
27286         * tests/unistr/test-u16-strchr.c: New file.
27287         * tests/unistr/test-u32-strchr.c: New file.
27288
27289         unistr/u*-chr: test multibyte sequences more
27290         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27291         test vector.
27292         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27293         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27294         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27295
27296         unistr/u*-chr: test multibyte sequences
27297         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27298
27299         unistr/u*-chr: prepare for multibyte tests
27300         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27301         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27302         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27303         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27304         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27305         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27306
27307 2010-07-18  Bruno Haible  <bruno@clisp.org>
27308
27309         unistr/u8-strchr: Optimize non-ASCII argument case.
27310         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27311         because the first byte often matches anyway.
27312         Reported by Pádraig Brady <P@draigbrady.com>.
27313
27314 2010-07-15  Karl Berry  <karl@gnu.org>
27315
27316         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27317
27318 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27319
27320         getcwd: on Solaris, work better if ancestors are inaccessible
27321         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27322         buffer and size, try again with a large buffer.  This works better
27323         on Solaris, since its getcwd succeeds even if the path to the root
27324         is inaccessible, and this is helpful in common cases such as .zfs
27325         hidden directories.  Problem reported by J Chapman Flack in
27326         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27327         Use system getcwd if it's declared, not merely if it's partly
27328         working; use the partly-working test only to avoid needless effort
27329         if the system getcwd fails.
27330         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27331         comment that was already obsolete and is now even more obsolete.
27332         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27333         now might call strdup.
27334
27335 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27336
27337         pthread: Add enough so that coreutils/src/sort.c compiles.
27338         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27339         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27340         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27341         Include <sys/types.h>, in case it defines pthread_t.
27342         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27343         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27344         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27345         (pthread_rwlockattr_t, pthread_spinlock_t):
27346         New typedefs, if HAVE_PTHREAD_T is not defined.
27347         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27348         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27349         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27350         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27351         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27352         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27353         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27354         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27355         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27356         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27357         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27358         New macros.
27359         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27360         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27361         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27362         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27363         (pthread_spin_unlock): New dummy functions.
27364         (pthread_create): Return EAGAIN; don't set errno.
27365         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27366         require AC_C_INLINE.
27367         * modules/pthread (Depends-on): Add sched, time.
27368         (pthread.h): Use AM_V_GEN.
27369
27370 2010-07-13  Bruno Haible  <bruno@clisp.org>
27371
27372         striconveh: Don't malloc memory if the result buffer is sufficient.
27373         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27374         buffer if its size is sufficient.
27375         Reported by Ludovic Courtès <ludo@gnu.org>.
27376
27377 2010-07-13  Bruno Haible  <bruno@clisp.org>
27378
27379         strtod: Add safety check.
27380         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27381
27382 2010-07-12  Bruno Haible  <bruno@clisp.org>
27383
27384         Unify tests that set gl_cv_func_ldexpl_no_libm.
27385         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27386         gl_FUNC_LDEXPL.
27387         (gl_FUNC_LDEXPL): Invoke it.
27388         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27389
27390 2010-07-12  Bruno Haible  <bruno@clisp.org>
27391
27392         Unify tests that set gl_cv_func_ldexp_no_libm.
27393         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27394         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27395         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27396         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27397         * modules/strtod (Files): Add m4/ldexp.m4.
27398
27399 2010-07-12  Bruno Haible  <bruno@clisp.org>
27400
27401         Unify tests that set gl_cv_func_frexpl_no_libm.
27402         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27403         gl_FUNC_FREXPL_NO_LIBM.
27404         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27405         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27406
27407 2010-07-12  Bruno Haible  <bruno@clisp.org>
27408
27409         Unify tests that set gl_cv_func_frexp_no_libm.
27410         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27411         gl_FUNC_FREXP_NO_LIBM.
27412         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27413         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27414
27415 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27416
27417         memcoll: clarify sizes versus lengths, document better, and tweak perf
27418         * lib/memcoll.c (strcoll_loop, memcoll0):
27419         Improve quality of descriptive comments.  Name variables
27420         consistently as to whether they are lengths (which do not include
27421         terminating null) versus sizes (which do).
27422         * lib/xmemcoll.c (xmemcoll0): Likewise.
27423         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27424         returned when s1size == 0; this is easier to compile and saves
27425         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27426
27427 2010-07-12  Bruno Haible  <bruno@clisp.org>
27428
27429         Tests for module '_Exit'.
27430         * modules/_Exit-tests: New file.
27431         * tests/test-_Exit.sh: New file.
27432         * tests/test-_Exit.c: New file.
27433
27434         New module '_Exit'.
27435         * lib/stdlib.in.h (__attribute__): New macro.
27436         (_Exit): New declaration.
27437         * lib/_Exit.c: New file.
27438         * m4/_Exit.m4: New file.
27439         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27440         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27441         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27442         * modules/_Exit: New file.
27443         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27444         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27445
27446 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27447
27448         strtod: make it more-accurate typically, and don't require libm
27449         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27450         Include limits.h.  Don't include string.h.
27451         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27452         (locale_isspace): New function, so that no casts are needed to
27453         check whether *s is a space.
27454         (ldexp): Provide an unused dummy if not available.
27455         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27456         (strtod): Use them.  This implementation prefers to use the
27457         underlying strtod if available, falling back on our own code
27458         only to fix known bugs.  This is more likely to produce an
27459         accurate result.  Also, it avoids the use of libm functions.
27460         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27461         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27462         was absent, but it caused a test failure with coreutils.
27463         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27464         with libm.
27465         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27466         * modules/strtod-tests (Makefile.am): Likewise.
27467
27468 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27469             Bruno Haible  <bruno@clisp.org>
27470
27471         unistr/u8-strchr: Optimize ASCII argument case.
27472         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27473
27474 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27475
27476         (x)memcoll: minor tweaks
27477         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27478         is after the type that it qualifies.
27479         (memcoll0): Likewise.
27480         * lib/memcoll.h (memcoll0): Likewise.
27481         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27482         * lib/xmemcoll.h (xmemcoll0): Likewise.
27483         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27484         differs from memcoll in that the NUL byte is part of the argument.
27485         Omit the abort-checks, as performance is a real issue here.  Plus,
27486         the checks were wrong anyway (an off-by-one error).  Omit local
27487         variable 'diff', as it's a bit clearer that way.
27488         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27489         no longer needed.
27490
27491 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27492
27493         (x)memcoll: speedup when input is known to be NUL delimited
27494         * lib/memcoll.c: Include stdlib.
27495         (memcoll0): New function.
27496         (strcoll_loop): New function, refactored for use in both memcoll
27497         and memcoll0.
27498         * lib/memcoll.h (memcoll0): Add prototype.
27499         * lib/xmemcoll.c (xmemcoll0): New function.
27500         (collate_error): New function, refactored for use in both xmemcoll
27501         and xmemcoll0.
27502         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27503         * m4/memcoll.m4: add inline invocation.
27504
27505 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27506
27507         * build-aux/bootstrap: Remove any local translations
27508         from the translation project synchronization directory,
27509         so that local only translations are not distributed.
27510
27511 2010-07-04  Bruno Haible  <bruno@clisp.org>
27512
27513         fsusage: Clarify which code applies to which platforms.
27514         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27515         platform.
27516         * lib/fsusage.c (get_fs_usage): Likewise.
27517
27518 2010-07-04  Bruno Haible  <bruno@clisp.org>
27519
27520         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27521         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27522         Reported by Martin Lambers <marlam@marlam.de>.
27523
27524 2010-07-04  Jim Meyering  <meyering@redhat.com>
27525
27526         hash: once again explicitly disallow insertion of NULL
27527         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27528         inserting a NULL pointer cannot work with these functions.
27529         Add a comment with details.
27530         This reverts part of the 2010-07-01 commit, 5bef1a35
27531         "hash: extend module to deal with non-pointer keys".
27532
27533 2010-07-01  Bruno Haible  <bruno@clisp.org>
27534
27535         stdbool: Update doc.
27536         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27537         Info from Christian Weisgerber <naddy@mips.inka.de>.
27538
27539 2010-07-01  Jim Meyering  <meyering@redhat.com>
27540
27541         hash: extend module to deal with non-pointer keys
27542         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27543         but that allows insertion of non-pointer entries.
27544         Do not disallow an ENTRY value of NULL.
27545         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27546         * lib/hash.h (hash_insert0): Declare.
27547
27548 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27549
27550         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27551         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27552         not present (i.e. with autoconf 2.59 and when using gettextize, not
27553         gnulib), require AC_GNU_SOURCE instead.
27554
27555 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27556
27557         idpriv-drop: Fix tests.
27558         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27559         not to the test-idpriv-droptemp program.
27560
27561 2010-06-29  Bruno Haible  <bruno@clisp.org>
27562
27563         string: Fix syntax error with g++ 2.96.
27564         * lib/string.in.h (__pure__): Remove definition.
27565         (_GL_ATTRIBUTE_PURE): New macro.
27566         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27567         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27568         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27569
27570 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27571
27572         unitypes: Fix bug introduced on 2010-05-18.
27573         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27574
27575 2010-06-22  Eric Blake  <eblake@redhat.com>
27576
27577         memmem: slight optimization
27578         * lib/str-two-way.h (critical_factorization): Update comments.
27579         Reduce work during factorization phase.
27580         Reported by Carlos Bueno <carlos@bueno.org>.
27581
27582 2010-06-21  Bruno Haible  <bruno@clisp.org>
27583
27584         Fix HAVE_CALLOC_POSIX misnomer.
27585         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27586         !HAVE_CALLOC_POSIX.
27587         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27588         HAVE_CALLOC_POSIX.
27589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27590         instead of HAVE_CALLOC_POSIX.
27591         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27592         HAVE_CALLOC_POSIX.
27593
27594         Use modern idiom for calloc() replacement.
27595         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27596         AC_FUNC_CALLOC.
27597         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27598         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27599         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27600         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27601         (gl_REPLACE_CALLOC): New macro.
27602
27603 2010-06-21  Bruno Haible  <bruno@clisp.org>
27604
27605         Fix HAVE_REALLOC_POSIX misnomer.
27606         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27607         !HAVE_REALLOC_POSIX.
27608         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27609         HAVE_REALLOC_POSIX.
27610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27611         instead of HAVE_REALLOC_POSIX.
27612         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27613         HAVE_REALLOC_POSIX.
27614
27615         Use modern idiom for realloc() replacement.
27616         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27617         AC_FUNC_REALLOC.
27618         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27619         Autoconf's AC_FUNC_REALLOC.
27620         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27621         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27622         (gl_REPLACE_REALLOC): New macro.
27623         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27624
27625 2010-06-21  Bruno Haible  <bruno@clisp.org>
27626
27627         Fix HAVE_MALLOC_POSIX misnomer.
27628         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27629         !HAVE_MALLOC_POSIX.
27630         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27631         HAVE_MALLOC_POSIX.
27632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27633         instead of HAVE_MALLOC_POSIX.
27634         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27635         HAVE_MALLOC_POSIX.
27636
27637         Use modern idiom for malloc() replacement.
27638         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27639         AC_FUNC_MALLOC.
27640         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27641         Autoconf's AC_FUNC_MALLOC.
27642         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27643         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27644         (gl_REPLACE_MALLOC): New macro.
27645         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27646
27647 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27648
27649         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27650         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27651         This macro takes 3 arguments, not 4.
27652
27653 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27654
27655         ipv6: fix detection under mingw
27656         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27657         in6_addr.
27658
27659 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27660
27661         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27662         that strtod() works when cross-compiling to a glibc version known
27663         to work.
27664
27665 2010-06-15  Bruno Haible  <bruno@clisp.org>
27666
27667         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27668
27669 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27670
27671         select: Correct timeout.
27672         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27673
27674 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27675
27676         git-version-gen: init shell var to avoid env var influence
27677         * build-aux/git-version-gen (v): Init shell var to empty.
27678
27679 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27680
27681         priv-set: Don't assume that priv.h exists merely because getppriv does.
27682         See Jan Andersen's bug report about AIX 5L in
27683         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27684         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27685         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27686         * lib/priv-set.h: Likewise.
27687         * tests/test-priv-set.c: Likewise.
27688
27689 2010-06-13  Bruno Haible  <bruno@clisp.org>
27690
27691         relocatable: Make it easier to test whether to install wrappers.
27692         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27693         RELOCATABLE_VIA_WRAPPER.
27694
27695 2010-06-13  Bruno Haible  <bruno@clisp.org>
27696
27697         gnulib-tool: Display specified modules and dependencies differently.
27698         * gnulib-tool (func_show_module_list): New function.
27699         (func_import, func_create_testdir): Invoke it.
27700         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27701
27702 2010-06-13  Bruno Haible  <bruno@clisp.org>
27703
27704         gnulib-tool: Align code of func_import and func_create_testdir.
27705         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27706         specified_modules.
27707
27708 2010-06-12  Jim Meyering  <meyering@redhat.com>
27709
27710         test-inttostr: avoid spurious failure on Solaris 9
27711         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27712         to accept "%ju".  Reported by Bruno Haible.
27713
27714 2010-06-11  Jim Meyering  <meyering@redhat.com>
27715
27716         test-sys_socket: mark variables as used more readably
27717         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27718         as "used" explicitly via (void) statement casts.  This is more
27719         readable than using them in an artificial return expression.
27720         Suggestion from Bruno Haible.
27721
27722 2010-06-11  Bruno Haible  <bruno@clisp.org>
27723
27724         Avoid some more warnings from "gcc -Wwrite-strings".
27725         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27726         to 'const char *'.
27727         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27728         * tests/test-c-strcasestr.c (main): Likewise.
27729         * tests/test-mbscasestr1.c (main): Likewise.
27730         * tests/test-mbscasestr2.c (main): Likewise.
27731         * tests/test-memmem.c (main): Likewise.
27732         * tests/test-strstr.c (main): Likewise.
27733         * tests/test-strcasestr.c (main): Likewise.
27734
27735 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27736
27737         init.sh: change framework_failure_ to fail with status 99, not 1
27738         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27739         automake's parallel-tests rule that this is an unexpected failure,
27740         even if the test is listed in XFAIL_TESTS.
27741
27742 2010-06-11  Jim Meyering  <meyering@redhat.com>
27743
27744         test-inttostr: avoid warnings about 4-6KB literal strings
27745         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27746         Include "macros.h", for its definition of ASSERT.
27747         (CK): s/assert/ASSERT/
27748         * modules/inttostr-tests (Files): Add macros.h.
27749
27750         init.sh: don't use $ME_ or skip_ before they are defined
27751         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27752         their first uses.  Also hoist their companions: warn_, fail_,
27753         framework_failure_, $stderr_fileno.  Prompted by a patch from
27754         Stefano Lattarini.
27755
27756         test-sys_socket: avoid set-but-not-used warnings from gcc
27757         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27758         avoid warning about set-but-not-used variables.
27759
27760         test-xvasprintf: avoid 'const' discard warnings
27761         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27762         "const" when assigning from literal strings.
27763         (test_xasprintf): Add "void" in function argument list to placate
27764         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27765
27766         tests: avoid compilation warnings in argmatch and exclude tests...
27767         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27768         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27769         Since it always exits, declare with the "noreturn" attribute.
27770         * tests/test-argmatch.c: Likewise.
27771
27772         tests: avoid 'const' discard warnings in mbsstr tests
27773         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27774         * tests/test-mbsstr2.c (main): Likewise.
27775
27776         test-verify: avoid warning from gcc's -Wmissing-declarations
27777         * tests/test-verify.c (function): Declare to be static.
27778
27779         test-inttostr.c: include <string.h> for use of strcmp
27780         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27781
27782         test-linkat: avoid failed assertion on "other" architectures
27783         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27784         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27785         sparc: https://bugs.launchpad.net/bugs/591968
27786
27787 2010-06-11  Jim Meyering  <meyering@redhat.com>
27788
27789         printf.m4: avoid autoconf's "Expanded Before Required" warning
27790         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27791         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27792         autoconf warning.
27793
27794 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27795
27796         Replacement header templates are now named with ".in", not "_".
27797         * doc/gnulib-intro.texi: Correct.
27798
27799 2010-06-10  Jim Meyering  <meyering@redhat.com>
27800
27801         inttostr-tests: depend on snprintf, not snprintf-posix
27802         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27803         snprintf-posix, to avoid this aclocal failure:
27804           missing file gnulib-tests/vasnprintf.c
27805           configure.ac:45: error: expected source file, required through \
27806           AC_LIBSOURCES, not found
27807
27808 2010-06-10  Jim Meyering  <meyering@redhat.com>
27809
27810         inttostr: add a new function, inttostr, and tests
27811         The namesake function was not available.  The existence of the
27812         template file, inttostr.c makes its addition nontrivial.
27813         * lib/anytostr.c: Rename from inttostr.c.
27814         (anytostr): Rename from inttostr.
27815         * lib/inttostr.c: New file.
27816         * modules/inttostr (Files): Add anytostr.c.
27817         (Makefile.am): Set lib_SOURCES instead of ...
27818         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27819         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27820         * lib/offtostr.c: Likewise.
27821         * lib/uinttostr.c: Likewise.
27822         * lib/umaxtostr.c: Likewise.
27823         * modules/inttostr-tests: New file.
27824         * tests/test-inttostr.c: New file.  Test these functions.
27825
27826 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27827             Bruno Haible  <bruno@clisp.org>
27828
27829         Add "Extending Gnulib" chapter to manual.
27830         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27831         chapter.
27832         (Extending Gnulib): New chapter.
27833         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27834         chapter.
27835
27836 2010-06-09  Bruno Haible  <bruno@clisp.org>
27837
27838         Avoid relocwrapper link errors due to gnulib replacement functions.
27839         * lib/areadlink.c: Use the system's malloc, realloc functions.
27840         (areadlink): Set errno to ENOMEM explicitly.
27841         * modules/areadlink (Depends-on): Remove malloc-posix.
27842         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27843
27844 2010-06-09  Bruno Haible  <bruno@clisp.org>
27845
27846         Avoid relocwrapper link errors due to gnulib replacement functions.
27847         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27848         * lib/malloca.c: Likewise.
27849         * lib/relocatable.c: Likewise.
27850         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27851         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27852         * lib/setenv.c: Use the system's malloc, realloc functions.
27853         * lib/strerror.c: Use the system's sprintf function.
27854         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27855
27856 2010-06-04  Bruno Haible  <bruno@clisp.org>
27857
27858         Prefer documented low-level autoconf macro names.
27859         * m4/lib-link.m4: Use m4_translit instead of translit.
27860         * m4/environ.m4: Likewise.
27861         * m4/mathfunc.m4: Likewise.
27862         * m4/onceonly.m4: Likewise.
27863         * m4/stdint.m4: Likewise.
27864         Suggested by Eric Blake.
27865
27866 2010-06-04  Martin Lambers  <marlam@marlam.de>
27867             Bruno Haible  <bruno@clisp.org>
27868
27869         havelib: Allow library names with '+' characters.
27870         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27871         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27872
27873 2010-06-09  Bruno Haible  <bruno@clisp.org>
27874
27875         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27876         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27877         realloc failed.
27878
27879 2010-06-08  Peter Simons  <simons@cryp.to>
27880
27881         maint.mk: make the news-check rule more configurable
27882         * top/maint.mk (news-check-lines-spec): New variable.
27883         (news-check): Use "sed -n 1,10p" in place of "head".
27884
27885 2010-06-07  Jim Meyering  <meyering@redhat.com>
27886
27887         do-release-commit-and-tag: fix typo in --help
27888         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27889
27890         regex: avoid new dead-code warning with gcc-4.6.0
27891         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27892         if-block containing a while-loop.  It's been unused for at least
27893         5 years.
27894
27895 2010-06-05  Bruno Haible  <bruno@clisp.org>
27896
27897         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27898         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27899
27900 2010-06-04  Bruno Haible  <bruno@clisp.org>
27901
27902         Update to GNU gettext 0.18.1.
27903         * modules/gettext (configure.ac): Require gettext infrastructure from
27904         version 0.18.1.
27905
27906 2010-06-03  Bruno Haible  <bruno@clisp.org>
27907
27908         Don't use AC_LIBOBJ with file names in subdirectories.
27909         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27910         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27911         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27912         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27913         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27914         gl_LIBUNISTRING_LIBSOURCE.
27915         (Makefile.am): Augment lib_SOURCES here, conditionally.
27916         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27917
27918 2010-06-03  Bruno Haible  <bruno@clisp.org>
27919
27920         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27921         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27922         expansion does not end with a newline.
27923         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27924         unnecessary newline.
27925
27926 2010-06-03  Bruno Haible  <bruno@clisp.org>
27927
27928         Reduce dependencies.
27929         * tests/test-quotearg.h: New file, extracted from
27930         tests/test-quotearg.c.
27931         * tests/test-quotearg-simple.c: New file, extracted from
27932         tests/test-quotearg.c.
27933         * tests/test-quotearg.c: Don't include <ctype.h>.
27934         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27935         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27936         use_quote_double_quotes, use_quotearg_colon): Moved to
27937         tests/test-quotearg.h.
27938         (results_g, flag_results, custom_quotes, custom_results): Moved
27939         to tests/test-quotearg-simple.c.
27940         (main): Moved the part that does not depend on gettext to
27941         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27942         performed.
27943         * modules/quotearg-simple: New file.
27944         * modules/quotearg-simple-tests: New file.
27945         * modules/quotearg (Depends-on): Add quotearg-simple.
27946         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27947         (Files): Add tests/test-quotearg.h.
27948         Reported by Paolo Bonzini.
27949
27950 2010-06-03  Bruno Haible  <bruno@clisp.org>
27951
27952         Reduce dependencies.
27953         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27954
27955 2010-06-03  Bruno Haible  <bruno@clisp.org>
27956
27957         time: Undefine more broken macros.
27958         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27959         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27960         Reported by Eric Blake.
27961
27962 2010-06-03  Bruno Haible  <bruno@clisp.org>
27963
27964         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27965         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27966         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27967         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27968         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27969         Reported by Ludovic Courtès <ludo@gnu.org>.
27970
27971 2010-06-02  Eric Blake  <eblake@redhat.com>
27972
27973         time: work with mingw + pthreads-win32 library
27974         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27975         if timespec is defined only in pthread.h.
27976         * modules/time (Makefile.am): Substitute it.
27977         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27978         <pthread.h>, when needed.
27979         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27980         from the library.
27981
27982 2010-05-31  Bruno Haible  <bruno@clisp.org>
27983
27984         Avoid expanding two macros in the wrong order.
27985         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27986         gl_LIBUNISTRING if it is defined.
27987         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27988         autoconf >= 2.64.
27989         Reported by Ludovic Courtès <ludo@gnu.org>.
27990
27991 2010-05-27  Jim Meyering  <meyering@redhat.com>
27992
27993         maint.mk: also prohibit "#undef" of always-defined symbols
27994         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27995         Allow more than one space before the symbol name.
27996         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27997         the regexp uses alternation.
27998
27999 2010-05-26  Eric Blake  <eblake@redhat.com>
28000
28001         maint.mk: avoid echo -e
28002         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28003         Convert all uses of echo -* to printf.
28004         Reported by Matthias Bolte.
28005
28006 2010-05-25  Bruno Haible  <bruno@clisp.org>
28007
28008         Update to GNU gettext 0.18, part 2.
28009         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28010         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28011
28012 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28013
28014         Add missing include in test-pwrite.c.
28015         * tests/test-pwrite.c: Include string.h, for strcmp.
28016
28017 2010-05-24  Bruno Haible  <bruno@clisp.org>
28018
28019         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28020
28021 2010-05-24  Bruno Haible  <bruno@clisp.org>
28022
28023         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28024         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28025         iconveh_error argument.
28026         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28027         U_STRCONV_TO_LOCALE.
28028         * lib/unistr/u16-strcoll.c: Likewise.
28029         * lib/unistr/u32-strcoll.c: Likewise.
28030         * modules/unistr/u8-strcoll (Depends-on): Add
28031         uniconv/u8-strconv-to-enc, localcharset. Remove
28032         uniconv/u8-strconv-to-locale.
28033         (configure.ac): Bump version number.
28034         * modules/unistr/u16-strcoll (Depends-on): Add
28035         uniconv/u16-strconv-to-enc, localcharset. Remove
28036         uniconv/u16-strconv-to-locale.
28037         (configure.ac): Bump version number.
28038         * modules/unistr/u32-strcoll (Depends-on): Add
28039         uniconv/u32-strconv-to-enc, localcharset. Remove
28040         uniconv/u32-strconv-to-locale.
28041         (configure.ac): Bump version number.
28042
28043 2010-05-24  Bruno Haible  <bruno@clisp.org>
28044
28045         Avoid a test failure on NetBSD 5.0.
28046         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28047         an iconv() bug.
28048
28049 2010-05-24  Bruno Haible  <bruno@clisp.org>
28050
28051         Adjust #include directive style.
28052         * modules/regex (Includes): Recommend to write <regex.h>.
28053
28054 2010-05-24  Bruno Haible  <bruno@clisp.org>
28055
28056         regex: Don't require alloca.
28057         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28058         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28059         only inside if (0).
28060
28061 2010-05-23  Jim Meyering  <meyering@redhat.com>
28062
28063         test-renameat.c: include <sys/stat.h>
28064         * tests/test-renameat.c: Include <sys/stat.h>; required for
28065         definition of S_IS* macros.
28066
28067 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28068
28069         Update maintainer documentation for 'relocatable-prog' module.
28070         * doc/relocatable-maint.texi: Update.
28071         Comments by Bruno Haible.
28072
28073 2010-05-23  Bruno Haible  <bruno@clisp.org>
28074
28075         git-merge-changelog: Enable --split-merged-entry by default.
28076         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28077         (usage): Don't mention this option any more.
28078         Reported by Ralf Wildenhues.
28079
28080 2010-05-23  Jim Meyering  <meyering@redhat.com>
28081
28082         test-pwrite: do not leave behind a test file named "out"
28083         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28084         The trivial-looking use of init.sh is really necessary.
28085         It ensures that the temporary file, "out", is created in
28086         a temporary directory, and removed upon termination.
28087         * tests/test-pwrite.sh: Re-add file.
28088         * modules/pwrite-tests: Reference it.
28089
28090 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28091
28092         Fix output redirection buglet in init.sh.
28093         * tests/init.sh: Fix redirection of stderr.
28094
28095 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28096
28097         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28098
28099 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28100
28101         * modules/valgrind-tests: New file.
28102         * m4/valgrind-tests.m4: New file.
28103         * doc/valgrind-tests.texi: New file.
28104         * doc/gnulib.texi (Running self-tests under valgrind): New
28105         section.
28106
28107 2010-05-19  Bruno Haible  <bruno@clisp.org>
28108
28109         Clean up dead code in recent commit.
28110         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28111         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28112         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28113         Suggested by Paolo Bonzini.
28114
28115 2010-05-19  Bruno Haible  <bruno@clisp.org>
28116
28117         Avoid valgrind error reports from libunistring.
28118         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28119         * modules/libunistring (Files): Add it.
28120         * modules/libunistring-optional (Files): Likewise.
28121
28122 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28123             Bruno Haible  <bruno@clisp.org>
28124
28125         New module 'libunistring-optional'.
28126         * modules/libunistring-optional: New file.
28127         * m4/libunistring-base.m4: New file.
28128         * m4/libunistring-optional.m4: New file.
28129         * lib/unicase.in.h: Renamed from lib/unicase.h.
28130         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28131         * lib/unictype.in.h: Renamed from lib/unictype.h.
28132         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28133         * lib/uniname.in.h: Renamed from lib/uniname.h.
28134         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28135         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28136         * lib/unistr.in.h: Renamed from lib/unistr.h.
28137         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28138         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28139         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28140         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28141         gl_LIBUNISTRING. If the library was found, determine the installed
28142         version and set LIBUNISTRING_VERSION.
28143         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28144         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28145         handle a configuration option --with-included-libunistring.
28146         * modules/libunistring (Files): Add m4/absolute-header.m4.
28147         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28148         Add m4/libunistring-base.m4.
28149         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28150         (Makefile.am): Build unicase.h from unicase.in.h.
28151         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28152         Add m4/libunistring-base.m4.
28153         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28154         (Makefile.am): Build uniconv.h from uniconv.in.h.
28155         * modules/unictype/base (Files): Use unictype.in.h instead of
28156         unictype.h. Add m4/libunistring-base.m4.
28157         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28158         (Makefile.am): Build unictype.h from unictype.in.h.
28159         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28160         Add m4/libunistring-base.m4.
28161         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28162         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28163         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28164         Add m4/libunistring-base.m4.
28165         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28166         (Makefile.am): Build uniname.h from uniname.in.h.
28167         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28168         Add m4/libunistring-base.m4.
28169         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28170         (Makefile.am): Build uninorm.h from uninorm.in.h.
28171         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28172         unistdio.h. Add m4/libunistring-base.m4.
28173         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28174         (Makefile.am): Build unistdio.h from unistdio.in.h.
28175         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28176         Add m4/libunistring-base.m4.
28177         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28178         (Makefile.am): Build unistr.h from unistr.in.h.
28179         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28180         Add m4/libunistring-base.m4.
28181         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28182         (Makefile.am): Build unitypes.h from unitypes.in.h.
28183         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28184         Add m4/libunistring-base.m4.
28185         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28186         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28187         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28188         uniwidth.h. Add m4/libunistring-base.m4.
28189         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28190         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28191         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28192         instead of augmenting lib_SOURCES.
28193         * modules/unicase/empty-suffix-context: Likewise.
28194         * modules/unicase/locale-language: Likewise.
28195         * modules/unicase/tolower: Likewise.
28196         * modules/unicase/totitle: Likewise.
28197         * modules/unicase/toupper: Likewise.
28198         * modules/unicase/u8-casecmp: Likewise.
28199         * modules/unicase/u8-casecoll: Likewise.
28200         * modules/unicase/u8-casefold: Likewise.
28201         * modules/unicase/u8-casexfrm: Likewise.
28202         * modules/unicase/u8-ct-casefold: Likewise.
28203         * modules/unicase/u8-ct-tolower: Likewise.
28204         * modules/unicase/u8-ct-totitle: Likewise.
28205         * modules/unicase/u8-ct-toupper: Likewise.
28206         * modules/unicase/u8-is-cased: Likewise.
28207         * modules/unicase/u8-is-casefolded: Likewise.
28208         * modules/unicase/u8-is-lowercase: Likewise.
28209         * modules/unicase/u8-is-titlecase: Likewise.
28210         * modules/unicase/u8-is-uppercase: Likewise.
28211         * modules/unicase/u8-prefix-context: Likewise.
28212         * modules/unicase/u8-suffix-context: Likewise.
28213         * modules/unicase/u8-tolower: Likewise.
28214         * modules/unicase/u8-totitle: Likewise.
28215         * modules/unicase/u8-toupper: Likewise.
28216         * modules/unicase/u16-casecmp: Likewise.
28217         * modules/unicase/u16-casecoll: Likewise.
28218         * modules/unicase/u16-casefold: Likewise.
28219         * modules/unicase/u16-casexfrm: Likewise.
28220         * modules/unicase/u16-ct-casefold: Likewise.
28221         * modules/unicase/u16-ct-tolower: Likewise.
28222         * modules/unicase/u16-ct-totitle: Likewise.
28223         * modules/unicase/u16-ct-toupper: Likewise.
28224         * modules/unicase/u16-is-cased: Likewise.
28225         * modules/unicase/u16-is-casefolded: Likewise.
28226         * modules/unicase/u16-is-lowercase: Likewise.
28227         * modules/unicase/u16-is-titlecase: Likewise.
28228         * modules/unicase/u16-is-uppercase: Likewise.
28229         * modules/unicase/u16-prefix-context: Likewise.
28230         * modules/unicase/u16-suffix-context: Likewise.
28231         * modules/unicase/u16-tolower: Likewise.
28232         * modules/unicase/u16-totitle: Likewise.
28233         * modules/unicase/u16-toupper: Likewise.
28234         * modules/unicase/u32-casecmp: Likewise.
28235         * modules/unicase/u32-casecoll: Likewise.
28236         * modules/unicase/u32-casefold: Likewise.
28237         * modules/unicase/u32-casexfrm: Likewise.
28238         * modules/unicase/u32-ct-casefold: Likewise.
28239         * modules/unicase/u32-ct-tolower: Likewise.
28240         * modules/unicase/u32-ct-totitle: Likewise.
28241         * modules/unicase/u32-ct-toupper: Likewise.
28242         * modules/unicase/u32-is-cased: Likewise.
28243         * modules/unicase/u32-is-casefolded: Likewise.
28244         * modules/unicase/u32-is-lowercase: Likewise.
28245         * modules/unicase/u32-is-titlecase: Likewise.
28246         * modules/unicase/u32-is-uppercase: Likewise.
28247         * modules/unicase/u32-prefix-context: Likewise.
28248         * modules/unicase/u32-suffix-context: Likewise.
28249         * modules/unicase/u32-tolower: Likewise.
28250         * modules/unicase/u32-totitle: Likewise.
28251         * modules/unicase/u32-toupper: Likewise.
28252         * modules/unicase/ulc-casecmp: Likewise.
28253         * modules/unicase/ulc-casecoll: Likewise.
28254         * modules/unicase/ulc-casexfrm: Likewise.
28255         * modules/uniconv/u8-conv-from-enc: Likewise.
28256         * modules/uniconv/u8-conv-to-enc: Likewise.
28257         * modules/uniconv/u8-strconv-from-enc: Likewise.
28258         * modules/uniconv/u8-strconv-from-locale: Likewise.
28259         * modules/uniconv/u8-strconv-to-enc: Likewise.
28260         * modules/uniconv/u8-strconv-to-locale: Likewise.
28261         * modules/uniconv/u16-conv-from-enc: Likewise.
28262         * modules/uniconv/u16-conv-to-enc: Likewise.
28263         * modules/uniconv/u16-strconv-from-enc: Likewise.
28264         * modules/uniconv/u16-strconv-from-locale: Likewise.
28265         * modules/uniconv/u16-strconv-to-enc: Likewise.
28266         * modules/uniconv/u16-strconv-to-locale: Likewise.
28267         * modules/uniconv/u32-conv-from-enc: Likewise.
28268         * modules/uniconv/u32-conv-to-enc: Likewise.
28269         * modules/uniconv/u32-strconv-from-enc: Likewise.
28270         * modules/uniconv/u32-strconv-from-locale: Likewise.
28271         * modules/uniconv/u32-strconv-to-enc: Likewise.
28272         * modules/uniconv/u32-strconv-to-locale: Likewise.
28273         * modules/unictype/bidicategory-byname: Likewise.
28274         * modules/unictype/bidicategory-name: Likewise.
28275         * modules/unictype/bidicategory-of: Likewise.
28276         * modules/unictype/bidicategory-test: Likewise.
28277         * modules/unictype/block-list: Likewise.
28278         * modules/unictype/block-test: Likewise.
28279         * modules/unictype/category-C: Likewise.
28280         * modules/unictype/category-Cc: Likewise.
28281         * modules/unictype/category-Cf: Likewise.
28282         * modules/unictype/category-Cn: Likewise.
28283         * modules/unictype/category-Co: Likewise.
28284         * modules/unictype/category-Cs: Likewise.
28285         * modules/unictype/category-L: Likewise.
28286         * modules/unictype/category-Ll: Likewise.
28287         * modules/unictype/category-Lm: Likewise.
28288         * modules/unictype/category-Lo: Likewise.
28289         * modules/unictype/category-Lt: Likewise.
28290         * modules/unictype/category-Lu: Likewise.
28291         * modules/unictype/category-M: Likewise.
28292         * modules/unictype/category-Mc: Likewise.
28293         * modules/unictype/category-Me: Likewise.
28294         * modules/unictype/category-Mn: Likewise.
28295         * modules/unictype/category-N: Likewise.
28296         * modules/unictype/category-Nd: Likewise.
28297         * modules/unictype/category-Nl: Likewise.
28298         * modules/unictype/category-No: Likewise.
28299         * modules/unictype/category-P: Likewise.
28300         * modules/unictype/category-Pc: Likewise.
28301         * modules/unictype/category-Pd: Likewise.
28302         * modules/unictype/category-Pe: Likewise.
28303         * modules/unictype/category-Pf: Likewise.
28304         * modules/unictype/category-Pi: Likewise.
28305         * modules/unictype/category-Po: Likewise.
28306         * modules/unictype/category-Ps: Likewise.
28307         * modules/unictype/category-S: Likewise.
28308         * modules/unictype/category-Sc: Likewise.
28309         * modules/unictype/category-Sk: Likewise.
28310         * modules/unictype/category-Sm: Likewise.
28311         * modules/unictype/category-So: Likewise.
28312         * modules/unictype/category-Z: Likewise.
28313         * modules/unictype/category-Zl: Likewise.
28314         * modules/unictype/category-Zp: Likewise.
28315         * modules/unictype/category-Zs: Likewise.
28316         * modules/unictype/category-and: Likewise.
28317         * modules/unictype/category-and-not: Likewise.
28318         * modules/unictype/category-byname: Likewise.
28319         * modules/unictype/category-name: Likewise.
28320         * modules/unictype/category-none: Likewise.
28321         * modules/unictype/category-of: Likewise.
28322         * modules/unictype/category-or: Likewise.
28323         * modules/unictype/category-test: Likewise.
28324         * modules/unictype/combining-class: Likewise.
28325         * modules/unictype/ctype-alnum: Likewise.
28326         * modules/unictype/ctype-alpha: Likewise.
28327         * modules/unictype/ctype-blank: Likewise.
28328         * modules/unictype/ctype-cntrl: Likewise.
28329         * modules/unictype/ctype-digit: Likewise.
28330         * modules/unictype/ctype-graph: Likewise.
28331         * modules/unictype/ctype-lower: Likewise.
28332         * modules/unictype/ctype-print: Likewise.
28333         * modules/unictype/ctype-punct: Likewise.
28334         * modules/unictype/ctype-space: Likewise.
28335         * modules/unictype/ctype-upper: Likewise.
28336         * modules/unictype/ctype-xdigit: Likewise.
28337         * modules/unictype/decimal-digit: Likewise.
28338         * modules/unictype/digit: Likewise.
28339         * modules/unictype/mirror: Likewise.
28340         * modules/unictype/numeric: Likewise.
28341         * modules/unictype/property-alphabetic: Likewise.
28342         * modules/unictype/property-ascii-hex-digit: Likewise.
28343         * modules/unictype/property-bidi-arabic-digit: Likewise.
28344         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28345         * modules/unictype/property-bidi-block-separator: Likewise.
28346         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28347         * modules/unictype/property-bidi-common-separator: Likewise.
28348         * modules/unictype/property-bidi-control: Likewise.
28349         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28350         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28351         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28352         * modules/unictype/property-bidi-european-digit: Likewise.
28353         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28354         * modules/unictype/property-bidi-left-to-right: Likewise.
28355         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28356         * modules/unictype/property-bidi-other-neutral: Likewise.
28357         * modules/unictype/property-bidi-pdf: Likewise.
28358         * modules/unictype/property-bidi-segment-separator: Likewise.
28359         * modules/unictype/property-bidi-whitespace: Likewise.
28360         * modules/unictype/property-byname: Likewise.
28361         * modules/unictype/property-combining: Likewise.
28362         * modules/unictype/property-composite: Likewise.
28363         * modules/unictype/property-currency-symbol: Likewise.
28364         * modules/unictype/property-dash: Likewise.
28365         * modules/unictype/property-decimal-digit: Likewise.
28366         * modules/unictype/property-default-ignorable-code-point: Likewise.
28367         * modules/unictype/property-deprecated: Likewise.
28368         * modules/unictype/property-diacritic: Likewise.
28369         * modules/unictype/property-extender: Likewise.
28370         * modules/unictype/property-format-control: Likewise.
28371         * modules/unictype/property-grapheme-base: Likewise.
28372         * modules/unictype/property-grapheme-extend: Likewise.
28373         * modules/unictype/property-grapheme-link: Likewise.
28374         * modules/unictype/property-hex-digit: Likewise.
28375         * modules/unictype/property-hyphen: Likewise.
28376         * modules/unictype/property-id-continue: Likewise.
28377         * modules/unictype/property-id-start: Likewise.
28378         * modules/unictype/property-ideographic: Likewise.
28379         * modules/unictype/property-ids-binary-operator: Likewise.
28380         * modules/unictype/property-ids-trinary-operator: Likewise.
28381         * modules/unictype/property-ignorable-control: Likewise.
28382         * modules/unictype/property-iso-control: Likewise.
28383         * modules/unictype/property-join-control: Likewise.
28384         * modules/unictype/property-left-of-pair: Likewise.
28385         * modules/unictype/property-line-separator: Likewise.
28386         * modules/unictype/property-logical-order-exception: Likewise.
28387         * modules/unictype/property-lowercase: Likewise.
28388         * modules/unictype/property-math: Likewise.
28389         * modules/unictype/property-non-break: Likewise.
28390         * modules/unictype/property-not-a-character: Likewise.
28391         * modules/unictype/property-numeric: Likewise.
28392         * modules/unictype/property-other-alphabetic: Likewise.
28393         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28394         * modules/unictype/property-other-grapheme-extend: Likewise.
28395         * modules/unictype/property-other-id-continue: Likewise.
28396         * modules/unictype/property-other-id-start: Likewise.
28397         * modules/unictype/property-other-lowercase: Likewise.
28398         * modules/unictype/property-other-math: Likewise.
28399         * modules/unictype/property-other-uppercase: Likewise.
28400         * modules/unictype/property-paired-punctuation: Likewise.
28401         * modules/unictype/property-paragraph-separator: Likewise.
28402         * modules/unictype/property-pattern-syntax: Likewise.
28403         * modules/unictype/property-pattern-white-space: Likewise.
28404         * modules/unictype/property-private-use: Likewise.
28405         * modules/unictype/property-punctuation: Likewise.
28406         * modules/unictype/property-quotation-mark: Likewise.
28407         * modules/unictype/property-radical: Likewise.
28408         * modules/unictype/property-sentence-terminal: Likewise.
28409         * modules/unictype/property-soft-dotted: Likewise.
28410         * modules/unictype/property-space: Likewise.
28411         * modules/unictype/property-terminal-punctuation: Likewise.
28412         * modules/unictype/property-test: Likewise.
28413         * modules/unictype/property-titlecase: Likewise.
28414         * modules/unictype/property-unassigned-code-value: Likewise.
28415         * modules/unictype/property-unified-ideograph: Likewise.
28416         * modules/unictype/property-uppercase: Likewise.
28417         * modules/unictype/property-variation-selector: Likewise.
28418         * modules/unictype/property-white-space: Likewise.
28419         * modules/unictype/property-xid-continue: Likewise.
28420         * modules/unictype/property-xid-start: Likewise.
28421         * modules/unictype/property-zero-width: Likewise.
28422         * modules/unictype/scripts: Likewise.
28423         * modules/unictype/syntax-c-ident: Likewise.
28424         * modules/unictype/syntax-c-whitespace: Likewise.
28425         * modules/unictype/syntax-java-ident: Likewise.
28426         * modules/unictype/syntax-java-whitespace: Likewise.
28427         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28428         * modules/unilbrk/u8-width-linebreaks: Likewise.
28429         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28430         * modules/unilbrk/u16-width-linebreaks: Likewise.
28431         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28432         * modules/unilbrk/u32-width-linebreaks: Likewise.
28433         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28434         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28435         * modules/uniname/uniname: Likewise.
28436         * modules/uninorm/canonical-decomposition: Likewise.
28437         * modules/uninorm/composition: Likewise.
28438         * modules/uninorm/decomposing-form: Likewise.
28439         * modules/uninorm/decomposition: Likewise.
28440         * modules/uninorm/filter: Likewise.
28441         * modules/uninorm/nfc: Likewise.
28442         * modules/uninorm/nfd: Likewise.
28443         * modules/uninorm/nfkc: Likewise.
28444         * modules/uninorm/nfkd: Likewise.
28445         * modules/uninorm/u8-normalize: Likewise.
28446         * modules/uninorm/u8-normcmp: Likewise.
28447         * modules/uninorm/u8-normcoll: Likewise.
28448         * modules/uninorm/u8-normxfrm: Likewise.
28449         * modules/uninorm/u16-normalize: Likewise.
28450         * modules/uninorm/u16-normcmp: Likewise.
28451         * modules/uninorm/u16-normcoll: Likewise.
28452         * modules/uninorm/u16-normxfrm: Likewise.
28453         * modules/uninorm/u32-normalize: Likewise.
28454         * modules/uninorm/u32-normcmp: Likewise.
28455         * modules/uninorm/u32-normcoll: Likewise.
28456         * modules/uninorm/u32-normxfrm: Likewise.
28457         * modules/unistdio/u8-asnprintf: Likewise.
28458         * modules/unistdio/u8-asprintf: Likewise.
28459         * modules/unistdio/u8-snprintf: Likewise.
28460         * modules/unistdio/u8-sprintf: Likewise.
28461         * modules/unistdio/u8-u8-asnprintf: Likewise.
28462         * modules/unistdio/u8-u8-asprintf: Likewise.
28463         * modules/unistdio/u8-u8-snprintf: Likewise.
28464         * modules/unistdio/u8-u8-sprintf: Likewise.
28465         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28466         * modules/unistdio/u8-u8-vasprintf: Likewise.
28467         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28468         * modules/unistdio/u8-u8-vsprintf: Likewise.
28469         * modules/unistdio/u8-vasnprintf: Likewise.
28470         * modules/unistdio/u8-vasprintf: Likewise.
28471         * modules/unistdio/u8-vsnprintf: Likewise.
28472         * modules/unistdio/u8-vsprintf: Likewise.
28473         * modules/unistdio/u16-asnprintf: Likewise.
28474         * modules/unistdio/u16-asprintf: Likewise.
28475         * modules/unistdio/u16-snprintf: Likewise.
28476         * modules/unistdio/u16-sprintf: Likewise.
28477         * modules/unistdio/u16-u16-asnprintf: Likewise.
28478         * modules/unistdio/u16-u16-asprintf: Likewise.
28479         * modules/unistdio/u16-u16-snprintf: Likewise.
28480         * modules/unistdio/u16-u16-sprintf: Likewise.
28481         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28482         * modules/unistdio/u16-u16-vasprintf: Likewise.
28483         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28484         * modules/unistdio/u16-u16-vsprintf: Likewise.
28485         * modules/unistdio/u16-vasnprintf: Likewise.
28486         * modules/unistdio/u16-vasprintf: Likewise.
28487         * modules/unistdio/u16-vsnprintf: Likewise.
28488         * modules/unistdio/u16-vsprintf: Likewise.
28489         * modules/unistdio/u32-asnprintf: Likewise.
28490         * modules/unistdio/u32-asprintf: Likewise.
28491         * modules/unistdio/u32-snprintf: Likewise.
28492         * modules/unistdio/u32-sprintf: Likewise.
28493         * modules/unistdio/u32-u32-asnprintf: Likewise.
28494         * modules/unistdio/u32-u32-asprintf: Likewise.
28495         * modules/unistdio/u32-u32-snprintf: Likewise.
28496         * modules/unistdio/u32-u32-sprintf: Likewise.
28497         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28498         * modules/unistdio/u32-u32-vasprintf: Likewise.
28499         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28500         * modules/unistdio/u32-u32-vsprintf: Likewise.
28501         * modules/unistdio/u32-vasnprintf: Likewise.
28502         * modules/unistdio/u32-vasprintf: Likewise.
28503         * modules/unistdio/u32-vsnprintf: Likewise.
28504         * modules/unistdio/u32-vsprintf: Likewise.
28505         * modules/unistdio/ulc-asnprintf: Likewise.
28506         * modules/unistdio/ulc-asprintf: Likewise.
28507         * modules/unistdio/ulc-fprintf: Likewise.
28508         * modules/unistdio/ulc-snprintf: Likewise.
28509         * modules/unistdio/ulc-sprintf: Likewise.
28510         * modules/unistdio/ulc-vasnprintf: Likewise.
28511         * modules/unistdio/ulc-vasprintf: Likewise.
28512         * modules/unistdio/ulc-vfprintf: Likewise.
28513         * modules/unistdio/ulc-vsnprintf: Likewise.
28514         * modules/unistdio/ulc-vsprintf: Likewise.
28515         * modules/unistr/u8-check: Likewise.
28516         * modules/unistr/u8-chr: Likewise.
28517         * modules/unistr/u8-cmp: Likewise.
28518         * modules/unistr/u8-cmp2: Likewise.
28519         * modules/unistr/u8-cpy: Likewise.
28520         * modules/unistr/u8-cpy-alloc: Likewise.
28521         * modules/unistr/u8-endswith: Likewise.
28522         * modules/unistr/u8-mblen: Likewise.
28523         * modules/unistr/u8-mbsnlen: Likewise.
28524         * modules/unistr/u8-mbtouc: Likewise.
28525         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28526         * modules/unistr/u8-mbtoucr: Likewise.
28527         * modules/unistr/u8-move: Likewise.
28528         * modules/unistr/u8-next: Likewise.
28529         * modules/unistr/u8-prev: Likewise.
28530         * modules/unistr/u8-set: Likewise.
28531         * modules/unistr/u8-startswith: Likewise.
28532         * modules/unistr/u8-stpcpy: Likewise.
28533         * modules/unistr/u8-stpncpy: Likewise.
28534         * modules/unistr/u8-strcat: Likewise.
28535         * modules/unistr/u8-strchr: Likewise.
28536         * modules/unistr/u8-strcmp: Likewise.
28537         * modules/unistr/u8-strcoll: Likewise.
28538         * modules/unistr/u8-strcpy: Likewise.
28539         * modules/unistr/u8-strcspn: Likewise.
28540         * modules/unistr/u8-strdup: Likewise.
28541         * modules/unistr/u8-strlen: Likewise.
28542         * modules/unistr/u8-strmblen: Likewise.
28543         * modules/unistr/u8-strmbtouc: Likewise.
28544         * modules/unistr/u8-strncat: Likewise.
28545         * modules/unistr/u8-strncmp: Likewise.
28546         * modules/unistr/u8-strncpy: Likewise.
28547         * modules/unistr/u8-strnlen: Likewise.
28548         * modules/unistr/u8-strpbrk: Likewise.
28549         * modules/unistr/u8-strrchr: Likewise.
28550         * modules/unistr/u8-strspn: Likewise.
28551         * modules/unistr/u8-strstr: Likewise.
28552         * modules/unistr/u8-strtok: Likewise.
28553         * modules/unistr/u8-to-u16: Likewise.
28554         * modules/unistr/u8-to-u32: Likewise.
28555         * modules/unistr/u8-uctomb: Likewise.
28556         * modules/unistr/u16-check: Likewise.
28557         * modules/unistr/u16-chr: Likewise.
28558         * modules/unistr/u16-cmp: Likewise.
28559         * modules/unistr/u16-cmp2: Likewise.
28560         * modules/unistr/u16-cpy: Likewise.
28561         * modules/unistr/u16-cpy-alloc: Likewise.
28562         * modules/unistr/u16-endswith: Likewise.
28563         * modules/unistr/u16-mblen: Likewise.
28564         * modules/unistr/u16-mbsnlen: Likewise.
28565         * modules/unistr/u16-mbtouc: Likewise.
28566         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28567         * modules/unistr/u16-mbtoucr: Likewise.
28568         * modules/unistr/u16-move: Likewise.
28569         * modules/unistr/u16-next: Likewise.
28570         * modules/unistr/u16-prev: Likewise.
28571         * modules/unistr/u16-set: Likewise.
28572         * modules/unistr/u16-startswith: Likewise.
28573         * modules/unistr/u16-stpcpy: Likewise.
28574         * modules/unistr/u16-stpncpy: Likewise.
28575         * modules/unistr/u16-strcat: Likewise.
28576         * modules/unistr/u16-strchr: Likewise.
28577         * modules/unistr/u16-strcmp: Likewise.
28578         * modules/unistr/u16-strcoll: Likewise.
28579         * modules/unistr/u16-strcpy: Likewise.
28580         * modules/unistr/u16-strcspn: Likewise.
28581         * modules/unistr/u16-strdup: Likewise.
28582         * modules/unistr/u16-strlen: Likewise.
28583         * modules/unistr/u16-strmblen: Likewise.
28584         * modules/unistr/u16-strmbtouc: Likewise.
28585         * modules/unistr/u16-strncat: Likewise.
28586         * modules/unistr/u16-strncmp: Likewise.
28587         * modules/unistr/u16-strncpy: Likewise.
28588         * modules/unistr/u16-strnlen: Likewise.
28589         * modules/unistr/u16-strpbrk: Likewise.
28590         * modules/unistr/u16-strrchr: Likewise.
28591         * modules/unistr/u16-strspn: Likewise.
28592         * modules/unistr/u16-strstr: Likewise.
28593         * modules/unistr/u16-strtok: Likewise.
28594         * modules/unistr/u16-to-u32: Likewise.
28595         * modules/unistr/u16-to-u8: Likewise.
28596         * modules/unistr/u16-uctomb: Likewise.
28597         * modules/unistr/u32-check: Likewise.
28598         * modules/unistr/u32-chr: Likewise.
28599         * modules/unistr/u32-cmp: Likewise.
28600         * modules/unistr/u32-cmp2: Likewise.
28601         * modules/unistr/u32-cpy: Likewise.
28602         * modules/unistr/u32-cpy-alloc: Likewise.
28603         * modules/unistr/u32-endswith: Likewise.
28604         * modules/unistr/u32-mblen: Likewise.
28605         * modules/unistr/u32-mbsnlen: Likewise.
28606         * modules/unistr/u32-mbtouc: Likewise.
28607         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28608         * modules/unistr/u32-mbtoucr: Likewise.
28609         * modules/unistr/u32-move: Likewise.
28610         * modules/unistr/u32-next: Likewise.
28611         * modules/unistr/u32-prev: Likewise.
28612         * modules/unistr/u32-set: Likewise.
28613         * modules/unistr/u32-startswith: Likewise.
28614         * modules/unistr/u32-stpcpy: Likewise.
28615         * modules/unistr/u32-stpncpy: Likewise.
28616         * modules/unistr/u32-strcat: Likewise.
28617         * modules/unistr/u32-strchr: Likewise.
28618         * modules/unistr/u32-strcmp: Likewise.
28619         * modules/unistr/u32-strcoll: Likewise.
28620         * modules/unistr/u32-strcpy: Likewise.
28621         * modules/unistr/u32-strcspn: Likewise.
28622         * modules/unistr/u32-strdup: Likewise.
28623         * modules/unistr/u32-strlen: Likewise.
28624         * modules/unistr/u32-strmblen: Likewise.
28625         * modules/unistr/u32-strmbtouc: Likewise.
28626         * modules/unistr/u32-strncat: Likewise.
28627         * modules/unistr/u32-strncmp: Likewise.
28628         * modules/unistr/u32-strncpy: Likewise.
28629         * modules/unistr/u32-strnlen: Likewise.
28630         * modules/unistr/u32-strpbrk: Likewise.
28631         * modules/unistr/u32-strrchr: Likewise.
28632         * modules/unistr/u32-strspn: Likewise.
28633         * modules/unistr/u32-strstr: Likewise.
28634         * modules/unistr/u32-strtok: Likewise.
28635         * modules/unistr/u32-to-u16: Likewise.
28636         * modules/unistr/u32-to-u8: Likewise.
28637         * modules/unistr/u32-uctomb: Likewise.
28638         * modules/uniwbrk/u8-wordbreaks: Likewise.
28639         * modules/uniwbrk/u16-wordbreaks: Likewise.
28640         * modules/uniwbrk/u32-wordbreaks: Likewise.
28641         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28642         * modules/uniwbrk/wordbreak-property: Likewise.
28643         * modules/uniwidth/u8-strwidth: Likewise.
28644         * modules/uniwidth/u8-width: Likewise.
28645         * modules/uniwidth/u16-strwidth: Likewise.
28646         * modules/uniwidth/u16-width: Likewise.
28647         * modules/uniwidth/u32-strwidth: Likewise.
28648         * modules/uniwidth/u32-width: Likewise.
28649         * modules/uniwidth/width: Likewise.
28650         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28651         with $(LIBUNISTRING).
28652         * modules/unicase/ignorable-tests: Likewise.
28653         * modules/unicase/locale-language-tests: Likewise.
28654         * modules/unicase/tolower-tests: Likewise.
28655         * modules/unicase/totitle-tests: Likewise.
28656         * modules/unicase/toupper-tests: Likewise.
28657         * modules/unicase/u8-casecmp-tests: Likewise.
28658         * modules/unicase/u8-casecoll-tests: Likewise.
28659         * modules/unicase/u8-casefold-tests: Likewise.
28660         * modules/unicase/u8-is-cased-tests: Likewise.
28661         * modules/unicase/u8-is-casefolded-tests: Likewise.
28662         * modules/unicase/u8-is-lowercase-tests: Likewise.
28663         * modules/unicase/u8-is-titlecase-tests: Likewise.
28664         * modules/unicase/u8-is-uppercase-tests: Likewise.
28665         * modules/unicase/u8-tolower-tests: Likewise.
28666         * modules/unicase/u8-totitle-tests: Likewise.
28667         * modules/unicase/u8-toupper-tests: Likewise.
28668         * modules/unicase/u16-casecmp-tests: Likewise.
28669         * modules/unicase/u16-casecoll-tests: Likewise.
28670         * modules/unicase/u16-casefold-tests: Likewise.
28671         * modules/unicase/u16-is-cased-tests: Likewise.
28672         * modules/unicase/u16-is-casefolded-tests: Likewise.
28673         * modules/unicase/u16-is-lowercase-tests: Likewise.
28674         * modules/unicase/u16-is-titlecase-tests: Likewise.
28675         * modules/unicase/u16-is-uppercase-tests: Likewise.
28676         * modules/unicase/u16-tolower-tests: Likewise.
28677         * modules/unicase/u16-totitle-tests: Likewise.
28678         * modules/unicase/u16-toupper-tests: Likewise.
28679         * modules/unicase/u32-casecmp-tests: Likewise.
28680         * modules/unicase/u32-casecoll-tests: Likewise.
28681         * modules/unicase/u32-casefold-tests: Likewise.
28682         * modules/unicase/u32-is-cased-tests: Likewise.
28683         * modules/unicase/u32-is-casefolded-tests: Likewise.
28684         * modules/unicase/u32-is-lowercase-tests: Likewise.
28685         * modules/unicase/u32-is-titlecase-tests: Likewise.
28686         * modules/unicase/u32-is-uppercase-tests: Likewise.
28687         * modules/unicase/u32-tolower-tests: Likewise.
28688         * modules/unicase/u32-totitle-tests: Likewise.
28689         * modules/unicase/u32-toupper-tests: Likewise.
28690         * modules/unicase/ulc-casecmp-tests: Likewise.
28691         * modules/unicase/ulc-casecoll-tests: Likewise.
28692         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28693         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28694         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28695         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28696         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28697         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28698         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28699         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28700         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28701         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28702         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28703         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28704         * modules/unictype/bidicategory-byname-tests: Likewise.
28705         * modules/unictype/bidicategory-name-tests: Likewise.
28706         * modules/unictype/bidicategory-of-tests: Likewise.
28707         * modules/unictype/bidicategory-test-tests: Likewise.
28708         * modules/unictype/block-list-tests: Likewise.
28709         * modules/unictype/block-of-tests: Likewise.
28710         * modules/unictype/block-test-tests: Likewise.
28711         * modules/unictype/category-C-tests: Likewise.
28712         * modules/unictype/category-Cc-tests: Likewise.
28713         * modules/unictype/category-Cf-tests: Likewise.
28714         * modules/unictype/category-Cn-tests: Likewise.
28715         * modules/unictype/category-Co-tests: Likewise.
28716         * modules/unictype/category-Cs-tests: Likewise.
28717         * modules/unictype/category-L-tests: Likewise.
28718         * modules/unictype/category-Ll-tests: Likewise.
28719         * modules/unictype/category-Lm-tests: Likewise.
28720         * modules/unictype/category-Lo-tests: Likewise.
28721         * modules/unictype/category-Lt-tests: Likewise.
28722         * modules/unictype/category-Lu-tests: Likewise.
28723         * modules/unictype/category-M-tests: Likewise.
28724         * modules/unictype/category-Mc-tests: Likewise.
28725         * modules/unictype/category-Me-tests: Likewise.
28726         * modules/unictype/category-Mn-tests: Likewise.
28727         * modules/unictype/category-N-tests: Likewise.
28728         * modules/unictype/category-Nd-tests: Likewise.
28729         * modules/unictype/category-Nl-tests: Likewise.
28730         * modules/unictype/category-No-tests: Likewise.
28731         * modules/unictype/category-P-tests: Likewise.
28732         * modules/unictype/category-Pc-tests: Likewise.
28733         * modules/unictype/category-Pd-tests: Likewise.
28734         * modules/unictype/category-Pe-tests: Likewise.
28735         * modules/unictype/category-Pf-tests: Likewise.
28736         * modules/unictype/category-Pi-tests: Likewise.
28737         * modules/unictype/category-Po-tests: Likewise.
28738         * modules/unictype/category-Ps-tests: Likewise.
28739         * modules/unictype/category-S-tests: Likewise.
28740         * modules/unictype/category-Sc-tests: Likewise.
28741         * modules/unictype/category-Sk-tests: Likewise.
28742         * modules/unictype/category-Sm-tests: Likewise.
28743         * modules/unictype/category-So-tests: Likewise.
28744         * modules/unictype/category-Z-tests: Likewise.
28745         * modules/unictype/category-Zl-tests: Likewise.
28746         * modules/unictype/category-Zp-tests: Likewise.
28747         * modules/unictype/category-Zs-tests: Likewise.
28748         * modules/unictype/category-and-not-tests: Likewise.
28749         * modules/unictype/category-and-tests: Likewise.
28750         * modules/unictype/category-byname-tests: Likewise.
28751         * modules/unictype/category-name-tests: Likewise.
28752         * modules/unictype/category-none-tests: Likewise.
28753         * modules/unictype/category-of-tests: Likewise.
28754         * modules/unictype/category-or-tests: Likewise.
28755         * modules/unictype/category-test-withtable-tests: Likewise.
28756         * modules/unictype/combining-class-tests: Likewise.
28757         * modules/unictype/ctype-alnum-tests: Likewise.
28758         * modules/unictype/ctype-alpha-tests: Likewise.
28759         * modules/unictype/ctype-blank-tests: Likewise.
28760         * modules/unictype/ctype-cntrl-tests: Likewise.
28761         * modules/unictype/ctype-digit-tests: Likewise.
28762         * modules/unictype/ctype-graph-tests: Likewise.
28763         * modules/unictype/ctype-lower-tests: Likewise.
28764         * modules/unictype/ctype-print-tests: Likewise.
28765         * modules/unictype/ctype-punct-tests: Likewise.
28766         * modules/unictype/ctype-space-tests: Likewise.
28767         * modules/unictype/ctype-upper-tests: Likewise.
28768         * modules/unictype/ctype-xdigit-tests: Likewise.
28769         * modules/unictype/decimal-digit-tests: Likewise.
28770         * modules/unictype/digit-tests: Likewise.
28771         * modules/unictype/mirror-tests: Likewise.
28772         * modules/unictype/numeric-tests: Likewise.
28773         * modules/unictype/property-alphabetic-tests: Likewise.
28774         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28775         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28776         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28777         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28778         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28779         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28780         * modules/unictype/property-bidi-control-tests: Likewise.
28781         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28782         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28783         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28784         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28785         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28786         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28787         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28788         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28789         * modules/unictype/property-bidi-pdf-tests: Likewise.
28790         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28791         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28792         * modules/unictype/property-byname-tests: Likewise.
28793         * modules/unictype/property-combining-tests: Likewise.
28794         * modules/unictype/property-composite-tests: Likewise.
28795         * modules/unictype/property-currency-symbol-tests: Likewise.
28796         * modules/unictype/property-dash-tests: Likewise.
28797         * modules/unictype/property-decimal-digit-tests: Likewise.
28798         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28799         * modules/unictype/property-deprecated-tests: Likewise.
28800         * modules/unictype/property-diacritic-tests: Likewise.
28801         * modules/unictype/property-extender-tests: Likewise.
28802         * modules/unictype/property-format-control-tests: Likewise.
28803         * modules/unictype/property-grapheme-base-tests: Likewise.
28804         * modules/unictype/property-grapheme-extend-tests: Likewise.
28805         * modules/unictype/property-grapheme-link-tests: Likewise.
28806         * modules/unictype/property-hex-digit-tests: Likewise.
28807         * modules/unictype/property-hyphen-tests: Likewise.
28808         * modules/unictype/property-id-continue-tests: Likewise.
28809         * modules/unictype/property-id-start-tests: Likewise.
28810         * modules/unictype/property-ideographic-tests: Likewise.
28811         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28812         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28813         * modules/unictype/property-ignorable-control-tests: Likewise.
28814         * modules/unictype/property-iso-control-tests: Likewise.
28815         * modules/unictype/property-join-control-tests: Likewise.
28816         * modules/unictype/property-left-of-pair-tests: Likewise.
28817         * modules/unictype/property-line-separator-tests: Likewise.
28818         * modules/unictype/property-logical-order-exception-tests: Likewise.
28819         * modules/unictype/property-lowercase-tests: Likewise.
28820         * modules/unictype/property-math-tests: Likewise.
28821         * modules/unictype/property-non-break-tests: Likewise.
28822         * modules/unictype/property-not-a-character-tests: Likewise.
28823         * modules/unictype/property-numeric-tests: Likewise.
28824         * modules/unictype/property-other-alphabetic-tests: Likewise.
28825         * modules/unictype/property-other-default-ignorable-code-point-tests:
28826         Likewise.
28827         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28828         * modules/unictype/property-other-id-continue-tests: Likewise.
28829         * modules/unictype/property-other-id-start-tests: Likewise.
28830         * modules/unictype/property-other-lowercase-tests: Likewise.
28831         * modules/unictype/property-other-math-tests: Likewise.
28832         * modules/unictype/property-other-uppercase-tests: Likewise.
28833         * modules/unictype/property-paired-punctuation-tests: Likewise.
28834         * modules/unictype/property-paragraph-separator-tests: Likewise.
28835         * modules/unictype/property-pattern-syntax-tests: Likewise.
28836         * modules/unictype/property-pattern-white-space-tests: Likewise.
28837         * modules/unictype/property-private-use-tests: Likewise.
28838         * modules/unictype/property-punctuation-tests: Likewise.
28839         * modules/unictype/property-quotation-mark-tests: Likewise.
28840         * modules/unictype/property-radical-tests: Likewise.
28841         * modules/unictype/property-sentence-terminal-tests: Likewise.
28842         * modules/unictype/property-soft-dotted-tests: Likewise.
28843         * modules/unictype/property-space-tests: Likewise.
28844         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28845         * modules/unictype/property-test-tests: Likewise.
28846         * modules/unictype/property-titlecase-tests: Likewise.
28847         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28848         * modules/unictype/property-unified-ideograph-tests: Likewise.
28849         * modules/unictype/property-uppercase-tests: Likewise.
28850         * modules/unictype/property-variation-selector-tests: Likewise.
28851         * modules/unictype/property-white-space-tests: Likewise.
28852         * modules/unictype/property-xid-continue-tests: Likewise.
28853         * modules/unictype/property-xid-start-tests: Likewise.
28854         * modules/unictype/property-zero-width-tests: Likewise.
28855         * modules/unictype/scripts-tests: Likewise.
28856         * modules/unictype/syntax-c-ident-tests: Likewise.
28857         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28858         * modules/unictype/syntax-java-ident-tests: Likewise.
28859         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28860         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28861         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28862         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28863         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28864         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28865         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28866         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28867         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28868         * modules/uniname/uniname-tests: Likewise.
28869         * modules/uninorm/canonical-decomposition-tests: Likewise.
28870         * modules/uninorm/compat-decomposition-tests: Likewise.
28871         * modules/uninorm/composition-tests: Likewise.
28872         * modules/uninorm/decomposing-form-tests: Likewise.
28873         * modules/uninorm/decomposition-tests: Likewise.
28874         * modules/uninorm/filter-tests: Likewise.
28875         * modules/uninorm/nfc-tests: Likewise.
28876         * modules/uninorm/nfd-tests: Likewise.
28877         * modules/uninorm/nfkc-tests: Likewise.
28878         * modules/uninorm/nfkd-tests: Likewise.
28879         * modules/uninorm/u8-normcmp-tests: Likewise.
28880         * modules/uninorm/u8-normcoll-tests: Likewise.
28881         * modules/uninorm/u16-normcmp-tests: Likewise.
28882         * modules/uninorm/u16-normcoll-tests: Likewise.
28883         * modules/uninorm/u32-normcmp-tests: Likewise.
28884         * modules/uninorm/u32-normcoll-tests: Likewise.
28885         * modules/unistdio/u8-asnprintf-tests: Likewise.
28886         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28887         * modules/unistdio/u8-vasprintf-tests: Likewise.
28888         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28889         * modules/unistdio/u8-vsprintf-tests: Likewise.
28890         * modules/unistdio/u16-asnprintf-tests: Likewise.
28891         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28892         * modules/unistdio/u16-vasprintf-tests: Likewise.
28893         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28894         * modules/unistdio/u16-vsprintf-tests: Likewise.
28895         * modules/unistdio/u32-asnprintf-tests: Likewise.
28896         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28897         * modules/unistdio/u32-vasprintf-tests: Likewise.
28898         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28899         * modules/unistdio/u32-vsprintf-tests: Likewise.
28900         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28901         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28902         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28903         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28904         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28905         * modules/unistr/u8-check-tests: Likewise.
28906         * modules/unistr/u8-chr-tests: Likewise.
28907         * modules/unistr/u8-cmp-tests: Likewise.
28908         * modules/unistr/u8-cmp2-tests: Likewise.
28909         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28910         * modules/unistr/u8-cpy-tests: Likewise.
28911         * modules/unistr/u8-mblen-tests: Likewise.
28912         * modules/unistr/u8-mbsnlen-tests: Likewise.
28913         * modules/unistr/u8-mbtouc-tests: Likewise.
28914         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28915         * modules/unistr/u8-mbtoucr-tests: Likewise.
28916         * modules/unistr/u8-move-tests: Likewise.
28917         * modules/unistr/u8-next-tests: Likewise.
28918         * modules/unistr/u8-prev-tests: Likewise.
28919         * modules/unistr/u8-set-tests: Likewise.
28920         * modules/unistr/u8-stpcpy-tests: Likewise.
28921         * modules/unistr/u8-stpncpy-tests: Likewise.
28922         * modules/unistr/u8-strcat-tests: Likewise.
28923         * modules/unistr/u8-strcmp-tests: Likewise.
28924         * modules/unistr/u8-strcoll-tests: Likewise.
28925         * modules/unistr/u8-strcpy-tests: Likewise.
28926         * modules/unistr/u8-strdup-tests: Likewise.
28927         * modules/unistr/u8-strlen-tests: Likewise.
28928         * modules/unistr/u8-strmblen-tests: Likewise.
28929         * modules/unistr/u8-strmbtouc-tests: Likewise.
28930         * modules/unistr/u8-strncat-tests: Likewise.
28931         * modules/unistr/u8-strncmp-tests: Likewise.
28932         * modules/unistr/u8-strncpy-tests: Likewise.
28933         * modules/unistr/u8-strnlen-tests: Likewise.
28934         * modules/unistr/u8-to-u16-tests: Likewise.
28935         * modules/unistr/u8-to-u32-tests: Likewise.
28936         * modules/unistr/u8-uctomb-tests: Likewise.
28937         * modules/unistr/u16-check-tests: Likewise.
28938         * modules/unistr/u16-chr-tests: Likewise.
28939         * modules/unistr/u16-cmp-tests: Likewise.
28940         * modules/unistr/u16-cmp2-tests: Likewise.
28941         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28942         * modules/unistr/u16-cpy-tests: Likewise.
28943         * modules/unistr/u16-mblen-tests: Likewise.
28944         * modules/unistr/u16-mbsnlen-tests: Likewise.
28945         * modules/unistr/u16-mbtouc-tests: Likewise.
28946         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28947         * modules/unistr/u16-mbtoucr-tests: Likewise.
28948         * modules/unistr/u16-move-tests: Likewise.
28949         * modules/unistr/u16-next-tests: Likewise.
28950         * modules/unistr/u16-prev-tests: Likewise.
28951         * modules/unistr/u16-set-tests: Likewise.
28952         * modules/unistr/u16-stpcpy-tests: Likewise.
28953         * modules/unistr/u16-stpncpy-tests: Likewise.
28954         * modules/unistr/u16-strcat-tests: Likewise.
28955         * modules/unistr/u16-strcmp-tests: Likewise.
28956         * modules/unistr/u16-strcoll-tests: Likewise.
28957         * modules/unistr/u16-strcpy-tests: Likewise.
28958         * modules/unistr/u16-strdup-tests: Likewise.
28959         * modules/unistr/u16-strlen-tests: Likewise.
28960         * modules/unistr/u16-strmblen-tests: Likewise.
28961         * modules/unistr/u16-strmbtouc-tests: Likewise.
28962         * modules/unistr/u16-strncat-tests: Likewise.
28963         * modules/unistr/u16-strncmp-tests: Likewise.
28964         * modules/unistr/u16-strncpy-tests: Likewise.
28965         * modules/unistr/u16-strnlen-tests: Likewise.
28966         * modules/unistr/u16-to-u32-tests: Likewise.
28967         * modules/unistr/u16-to-u8-tests: Likewise.
28968         * modules/unistr/u16-uctomb-tests: Likewise.
28969         * modules/unistr/u32-check-tests: Likewise.
28970         * modules/unistr/u32-chr-tests: Likewise.
28971         * modules/unistr/u32-cmp-tests: Likewise.
28972         * modules/unistr/u32-cmp2-tests: Likewise.
28973         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28974         * modules/unistr/u32-cpy-tests: Likewise.
28975         * modules/unistr/u32-mblen-tests: Likewise.
28976         * modules/unistr/u32-mbsnlen-tests: Likewise.
28977         * modules/unistr/u32-mbtouc-tests: Likewise.
28978         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28979         * modules/unistr/u32-mbtoucr-tests: Likewise.
28980         * modules/unistr/u32-move-tests: Likewise.
28981         * modules/unistr/u32-next-tests: Likewise.
28982         * modules/unistr/u32-prev-tests: Likewise.
28983         * modules/unistr/u32-set-tests: Likewise.
28984         * modules/unistr/u32-stpcpy-tests: Likewise.
28985         * modules/unistr/u32-stpncpy-tests: Likewise.
28986         * modules/unistr/u32-strcat-tests: Likewise.
28987         * modules/unistr/u32-strcmp-tests: Likewise.
28988         * modules/unistr/u32-strcoll-tests: Likewise.
28989         * modules/unistr/u32-strcpy-tests: Likewise.
28990         * modules/unistr/u32-strdup-tests: Likewise.
28991         * modules/unistr/u32-strlen-tests: Likewise.
28992         * modules/unistr/u32-strmblen-tests: Likewise.
28993         * modules/unistr/u32-strmbtouc-tests: Likewise.
28994         * modules/unistr/u32-strncat-tests: Likewise.
28995         * modules/unistr/u32-strncmp-tests: Likewise.
28996         * modules/unistr/u32-strncpy-tests: Likewise.
28997         * modules/unistr/u32-strnlen-tests: Likewise.
28998         * modules/unistr/u32-to-u16-tests: Likewise.
28999         * modules/unistr/u32-to-u8-tests: Likewise.
29000         * modules/unistr/u32-uctomb-tests: Likewise.
29001         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29002         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29003         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29004         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29005         * modules/uniwidth/u8-strwidth-tests: Likewise.
29006         * modules/uniwidth/u8-width-tests: Likewise.
29007         * modules/uniwidth/u16-strwidth-tests: Likewise.
29008         * modules/uniwidth/u16-width-tests: Likewise.
29009         * modules/uniwidth/u32-strwidth-tests: Likewise.
29010         * modules/uniwidth/u32-width-tests: Likewise.
29011         * modules/uniwidth/width-tests: Likewise.
29012
29013 2010-05-18  Richard Jones  <rjones@redhat.com>
29014
29015         doc: users.txt: list hivex
29016         * users.txt: Add hivex.
29017
29018 2010-05-18  Richard Jones  <rjones@redhat.com>
29019
29020         doc: users.txt: list febootstrap
29021         * users.txt: Add febootstrap.
29022
29023 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29024
29025         bootstrap: fix an error when gnulib is not used as a git submodule
29026         * build-aux/bootstrap (gnulib_path): If its length is zero then
29027         assign "gnulib" to it.
29028         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29029
29030 2010-05-16  Bruno Haible  <bruno@clisp.org>
29031
29032         Avoid autoconf warnings about AM_ICONV.
29033         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29034         2.64.
29035
29036 2010-05-16  Bruno Haible  <bruno@clisp.org>
29037
29038         absolute-header: Make the macro usable in more situations.
29039         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29040         from gl_ABSOLUTE_HEADER.
29041         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29042
29043 2010-05-16  James Youngman  <jay@gnu.org>
29044
29045         doc: update users.txt
29046         * users.txt: Add CSSC.
29047
29048 2010-05-16  Jim Meyering  <meyering@redhat.com>
29049
29050         init.sh: fix an error in the previous change; add more comments
29051         * tests/init.sh: Compare exit code in loop against 9, not 2.
29052         Patch by Bruno Haible.
29053         Make the two tests more similar by adding an empty "then" clause.
29054         Add comments.
29055
29056         init.sh: avoid unnecessary shell re-exec
29057         * tests/init.sh: Improve the re-exec-required check to first test the
29058         current shell.  If it passes the test, do not search for a shell that
29059         does pass, and do not re-exec.  This test is particularly contorted to
29060         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29061         of $(...) evokes a syntax error and causes immediate shell exit with
29062         status 2.  Bruno Haible reported that the re-exec made it impossible
29063         to single-step through any init.sh-using script.
29064
29065 2010-05-16  Bruno Haible  <bruno@clisp.org>
29066
29067         Fix collision between gnulib's and libintl's printf replacements.
29068         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29069         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29070         (printf): When using GNU C, map the __printf__ function to rpl_printf
29071         via __asm__. When not using GNU C, define rpl_printf instead of
29072         __printf__.
29073         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29074         commit.
29075         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29076         commit.
29077         * m4/asm-underscore.m4: New file.
29078         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29079         * modules/stdio (Files): Add m4/asm-underscore.m4.
29080         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29081         Reported by Ben Pfaff.
29082
29083 2010-05-16  Bruno Haible  <bruno@clisp.org>
29084
29085         verify: Avoid skipping the test on openSUSE 11.0.
29086         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29087
29088 2010-05-13  Bruno Haible  <bruno@clisp.org>
29089
29090         Avoid useless warnings from G++.
29091         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29092         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29093         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29094
29095 2010-05-11  Jim Meyering  <meyering@redhat.com>
29096
29097         maint.mk: tweak preceding change
29098         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29099         regexps tighter by anchoring at EOL, and make the new group "shy"
29100         for slightly decreased overhead.
29101
29102 2010-05-11  Eric Blake  <eblake@redhat.com>
29103
29104         maint.mk: gnulib doesn't guarantee NSIG
29105         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29106
29107 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29108
29109         test-pwrite.c: Remove unused variable declaration.
29110         * tests/test-pwrite.c (main): Remove read_buf declaration.
29111
29112         Remove useless test-pwrite.sh file.
29113         * tests/test-pwrite.sh: Delete file.
29114         * modules/pwrite-tests: Remove references.
29115         Reported by Bruno Haible.
29116
29117 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29118
29119         init.sh: fix a typo
29120         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29121
29122 2010-05-10  Jim Meyering  <meyering@redhat.com>
29123
29124         maint.mk: avoid using a temporary file in the always-defined-macros check
29125         * top/maint.mk (.re-defmac): Remove rule.
29126         (gl_trap_): Remove definition.
29127         (sc_prohibit_always-defined_macros): Rewrite not to create and
29128         depend on a temporary file.  Instead, depend on GNU grep's ability
29129         to read a list of regular expressions from stdin when given "-f -".
29130
29131 2010-05-09  Bruno Haible  <bruno@clisp.org>
29132
29133         Update to GNU gettext 0.18, part 1.
29134         * m4/gettext.m4: Update to GNU gettext 0.18.
29135         * m4/intl.m4: Likewise.
29136         * m4/po.m4: Likewise.
29137         * modules/gettext (Files): Add m4/fcntl-o.m4.
29138         (configure.ac): Require gettext infrastructure from version 0.18.
29139
29140 2010-05-09  Jim Meyering  <meyering@redhat.com>
29141
29142         init.sh: enable MALLOC_PERTURB_
29143         * tests/init.sh: Enable glibc's malloc-perturbing option.
29144
29145         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29146         With my recent change in init.sh from the two-line form:
29147             -#   : ${srcdir=.}
29148             -#   . "$srcdir/init.sh"; path_prepend_ .
29149             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29150         I noticed that using the one-line form would cause this test
29151         to fail with a false-positive, or to stop working altogether,
29152         depending on whether help-version changed or all the tests did.
29153         * top/maint.mk (_hv_regex): Remove this definition.
29154         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29155         (_hv_regex_strong): Use a stronger regex to check for conformance.
29156         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29157         Give a separate diagnostic for lack of conforming use.
29158
29159         maint.mk: prohibit definition of symbols defined by gnulib
29160         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29161         definition of symbols defined by gnulib.
29162
29163 2010-05-09  Bruno Haible  <bruno@clisp.org>
29164
29165         acl: Avoid test failure on Cygwin-hosted mingw.
29166         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29167
29168 2010-05-09  Bruno Haible  <bruno@clisp.org>
29169
29170         error: Use system's fcntl function.
29171         * lib/error.c (fcntl): Undefine.
29172
29173 2010-05-09  Jim Meyering  <meyering@redhat.com>
29174
29175         verify: adjust formatting to be more consistent
29176         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29177         argument-list '('s, and after one comma.
29178
29179 2010-05-09  Bruno Haible  <bruno@clisp.org>
29180
29181         error: More reliable output on mingw.
29182         * lib/error.c: Include <windows.h>.
29183         (is_open): New function.
29184         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29185         defined.
29186
29187 2010-05-09  Bruno Haible  <bruno@clisp.org>
29188
29189         vasnprintf: Fix syntax errors in libintl build on mingw.
29190         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29191         pad_ourselves and prec_ourselves after use.
29192
29193 2010-05-08  Bruno Haible  <bruno@clisp.org>
29194
29195         * lib/config.charset: Update comments for Cygwin 1.7.
29196         * lib/localcharset.c: Likewise.
29197
29198 2010-05-07  Jim Meyering  <meyering@redhat.com>
29199
29200         init.sh: improve comments
29201         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29202         . "${srcdir=.}/init.sh"; path_prepend_ .
29203         Add a note about path_prepend_ and the alternative of using
29204         TESTS_ENVIRONMENT.
29205
29206 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29207
29208         exclude: Unescape hashed patterns in wildcard mode.
29209         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29210         to the hash list.
29211         * tests/test-exclude8.sh: New test case.
29212         * modules/exclude-tests: Add new test.
29213
29214 2010-05-05  Eric Blake  <eblake@redhat.com>
29215
29216         verify: automate tests
29217         * modules/verify-tests: New module.
29218         * tests/test-verify.sh: New file.
29219         * tests/test-verify.c: Guard each negative test with a unique id.
29220         Also avoid warning about unused left hand of comma expressions.
29221
29222 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29223
29224         Further improvements to verify.h, suggested by Eric Blake.
29225         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29226         the GL_* versions, to avoid collision with OpenGL.
29227         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29228         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29229         than testing merely whether it's defined.
29230
29231         Modify verify.h to pacify gcc -Wredundant_decls.
29232         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29233         These use the prefix "GL_" since they're likely to be useful elsewhere.
29234         We may need to break them out into a different .h file.
29235         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29236         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29237         of verify_function__.
29238
29239 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29240
29241         Tests for module pwrite.
29242         * modules/pwrite-tests: New file.
29243         * tests/test-pwrite.sh: New file.
29244         * tests/test-pwrite.c: New file.
29245
29246         New module pwrite.
29247         * lib/unistd.in.h (pwrite): New declaration.
29248         * lib/pwrite.c: New file, from glibc with modifications.
29249         * m4/pwrite.m4: New file.
29250         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29251         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29252         REPLACE_PWRITE.
29253         * modules/pwrite: New file.
29254         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29255         REPLACE_PWRITE.
29256         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29257         * doc/posix-functions/pwrite.texi: Mention the new module.
29258
29259 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29260
29261         pread: Update documentation.
29262         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29263
29264 2010-05-04  Eric Blake  <eblake@redhat.com>
29265
29266         docs: update cygwin progress
29267         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29268         this bug.
29269         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29270         Added in cygwin 1.7.2.
29271         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29272         Likewise.
29273         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29274         Likewise.
29275         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29276         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29277         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29278         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29279         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29280         Mention nproc module.
29281         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29282         bug in cygwin 1.7.5 addition.
29283         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29284         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29285         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29286         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29287         1.7.5.
29288         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29289         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29290         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29291         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29292         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29293         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29294         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29295         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29296         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29297         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29298         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29299         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29300         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29301         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29302         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29303         Likewise.
29304         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29305         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29306         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29307         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29308         Likewise.
29309         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29310         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29311         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29312         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29313         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29314         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29315         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29316         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29317         Likewise.
29318         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29319         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29320         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29321         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29322         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29323         Likewise.
29324         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29325         Likewise.
29326         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29327         Likewise.
29328         * doc/glibc-functions/xdrrec_endofrecord.texi
29329         (xdrrec_endofrecord): Likewise.
29330         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29331         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29332         Likewise.
29333         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29334         Likewise.
29335
29336 2010-05-04  Jim Meyering  <meyering@redhat.com>
29337
29338         gendocs.sh: make its "-s FILE" option more useful
29339         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29340         $PACKAGE to reflect the probably-different basename of "FILE".
29341
29342 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29343
29344         bootstrap: don't ignore download_po_files failure
29345         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29346         failure.
29347
29348 2010-05-03  Jim Meyering  <meyering@redhat.com>
29349
29350         maint.mk: allow to pass options to gendocs.sh
29351         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29352         (gendocs_options_): New overridable variable.
29353
29354         gnu-web-doc-update: don't ignore configure or build failure
29355         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29356
29357         announce-gen: backslash-escape '@'s in --help output
29358         * build-aux/announce-gen: Fix syntax errors.
29359
29360         maint.mk, announce-gen: allow project-specific announcement mail headers
29361         * top/maint.mk (translation_project_): Define default.
29362         (announcement_Cc_, announcement_mail_headers_): Likewise.
29363         (announcement): Invoke announce-gen with new --mail-headers option.
29364         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29365
29366         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29367         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29368         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29369         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29370         line in the "err2" output file when running "make check" in verbose
29371         mode (i.e., with set -x enabled).
29372
29373 2010-05-03  Bruno Haible  <bruno@clisp.org>
29374
29375         wctob: Fix for weird platforms.
29376         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29377         argument value.
29378
29379 2010-05-03  Jim Meyering  <meyering@redhat.com>
29380
29381         maint.mk: prohibit unwarranted use of <strings.h>
29382         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29383         strings.h in a file that does not also use strcasecmp, strncasecmp,
29384         ffs or ffsll.
29385
29386         maint.mk: remove obsolete comments
29387         * top/maint.mk: Remove stale, commented-out rules.
29388
29389 2010-05-02  Bruno Haible  <bruno@clisp.org>
29390
29391         wcwidth: Declare also when it's aliased.
29392         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29393         macro.
29394
29395 2010-05-02  Bruno Haible  <bruno@clisp.org>
29396
29397         Fix regression from 2010-04-25.
29398         * gnulib-tool (func_modules_transitive_closure): Check the status of
29399         all modules, not only of the tests that are of the form foo-tests where
29400         foo is a module.
29401
29402 2010-05-02  Bruno Haible  <bruno@clisp.org>
29403
29404         wctob: Work around nasty Cygwin 1.7.2 bug.
29405         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29406         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29407
29408 2010-05-01  Bruno Haible  <bruno@clisp.org>
29409
29410         fpurge: Sharper test.
29411         * tests/test-fpurge.c (main): Add one more ftell check.
29412         * modules/fpurge-tests (Depends-on): Add ftell.
29413         Suggested by Eric Blake.
29414
29415 2010-05-01  Bruno Haible  <bruno@clisp.org>
29416
29417         ftello: Another test.
29418         * tests/test-ftello3.c: New file.
29419         * modules/ftello-tests (Files): Add it.
29420         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29421         MOSTLYCLEANFILES.
29422
29423         ftell: Another test.
29424         * tests/test-ftell3.c: New file.
29425         * modules/ftell-tests (Files): Add it.
29426         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29427         MOSTLYCLEANFILES.
29428
29429 2010-05-01  Bruno Haible  <bruno@clisp.org>
29430
29431         ftell, ftello: Work around Solaris bug.
29432         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29433         * lib/ftello.c: Include stdio-impl.h.
29434         (ftello): On Solaris, when _IOWRT is set, compute the result without
29435         looking at _IOREAD.
29436         * modules/ftello (Files): Add lib/stdio-impl.h.
29437         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29438         * doc/posix-functions/ftello.texi: Likewise.
29439         Reported by Eric Blake.
29440
29441 2010-05-01  Bruno Haible  <bruno@clisp.org>
29442
29443         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29444         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29445         the _IOWRT flag is also set.
29446
29447 2010-05-01  Bruno Haible  <bruno@clisp.org>
29448
29449         Fix doc about a HP-UX stdio bug.
29450         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29451         * doc/posix-functions/ftello.texi: Likewise.
29452
29453 2010-05-01  Bruno Haible  <bruno@clisp.org>
29454
29455         lseek test: Fix failure on Solaris.
29456         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29457         output.
29458
29459 2010-04-30  Jim Meyering  <meyering@redhat.com>
29460
29461         bootstrap: don't ignore failure to generate po*/Makevars
29462         * build-aux/bootstrap (with_gettext): Don't ignore failure
29463         to create po/Makevars or runtime-po/Makevars.
29464
29465 2010-04-29  Eric Blake  <eblake@redhat.com>
29466
29467         headers: relax license to LGPLv2+
29468         * modules/fcntl-h (License): Relax license.
29469         * modules/getopt-posix (License): Likewise.
29470         * modules/locale (License): Likewise.
29471         * modules/math (License): Likewise.
29472         * modules/pty (License): Likewise.
29473         * modules/sched (License): Likewise.
29474         * modules/search (License): Likewise.
29475         * modules/spawn (License): Likewise.
29476         * modules/stdarg (License): Likewise.
29477         * modules/sysexits (License): Likewise.
29478
29479 2010-04-29  Jim Meyering  <meyering@redhat.com>
29480
29481         inttypes: relax license to LGPLv2+
29482         * modules/inttypes (License): Relax license.
29483
29484 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29485
29486         * top/maint.mk (indent): Run twice to produce idempotent results.
29487
29488 2010-04-28  Bruno Haible  <bruno@clisp.org>
29489
29490         getdate: Generate getdate.c in the source directory.
29491         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29492         MOSTLYCLEANFILES.
29493         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29494
29495 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29496
29497         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29498         is not declared as a const *; avoid warnings in that case.
29499
29500 2010-04-28  Eric Blake  <eblake@redhat.com>
29501
29502         canonicalize-lgpl: avoid compiler warning
29503         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29504         declaration' / 'extraneous semicolon' warning with some compilers.
29505         Reported by Andreas Gruenbacher.
29506
29507 2010-04-28  Jim Meyering  <meyering@redhat.com>
29508
29509         init.sh: ensure a more reliable exit status when exiting via trap
29510         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29511         Inspired by patches from Dmitry V. Levin.
29512         Also trap on signal 3 (SIGQUIT).
29513
29514 2010-04-27  Bruno Haible  <bruno@clisp.org>
29515
29516         Update doc about utimes().
29517         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29518         'utimens' module.
29519         Reported by Andreas Gruenbacher <agruen@suse.de>.
29520
29521 2010-04-27  Eric Blake  <eblake@redhat.com>
29522
29523         full-read, full-write: relax license
29524         * modules/full-read (License): Drop to LGPLv2+.
29525         * modules/full-write (License): Likewise.
29526         * modules/safe-read (License): Likewise.
29527         * modules/safe-write (License): Likewise.
29528
29529         pthread: mention library for linking
29530         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29531
29532 2010-04-27  Jim Meyering  <meyering@redhat.com>
29533
29534         maint.mk: fix a bug introduced in last change
29535         * top/maint.mk (gl_assured_headers_): Now that all names are on
29536         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29537         is not anchored to end of word, it should be adequate.
29538
29539         maint.mk: avoid side-effect in latest syntax-check
29540         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29541         to run commands via $(shell...), and hence to incur cost only when
29542         the new rule is actually run.
29543
29544         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29545         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29546         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29547         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29548         (gl_assured_headers_, az_, AZ_): Define.
29549         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29550
29551 2010-04-26  Jim Meyering  <jim@meyering.net>
29552             Bruno Haible  <bruno@clisp.org>
29553
29554         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29555         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29556         Prompted by an exchange with Gilles Espinasse.
29557
29558 2010-04-26  Jim Meyering  <meyering@redhat.com>
29559
29560         git-version-gen: aesthetic tweak
29561         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29562         so that the command remains on a single line.
29563
29564 2010-04-26  Eric Blake  <eblake@redhat.com>
29565
29566         git-version-gen: allow use on EBCDIC hosts
29567         * build-aux/git-version-gen (dirty): Use literal rather than tying
29568         ourselves to ascii.
29569         Reported by Steve Goetze.
29570
29571 2010-04-25  Bruno Haible  <bruno@clisp.org>
29572
29573         netdb: Add support for GNULIB_POSIXCHECK.
29574         * lib/netdb.in.h: Include warn-on-use.h.
29575         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29576         functions are used when GNULIB_POSIXCHECK is defined and the
29577         getaddrinfo module is not in use.
29578         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29579         freeaddrinfo, gai_strerror, getnameinfo are declared.
29580         * modules/netdb (Depends-on): Add warn-on-use.
29581         (Makefile.am): Include warn-on-use.h in netdb.h.
29582
29583 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29584
29585         build: avoid "make check" failure without .git/ directory
29586         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29587         there is no .git/ directory.
29588
29589 2010-04-25  Bruno Haible  <bruno@clisp.org>
29590
29591         ptsname: Fix misuse of ttyname_r.
29592         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29593         of errno.
29594
29595 2010-04-25  Bruno Haible  <bruno@clisp.org>
29596
29597         ttyname_r: Make it work on Solaris 10.
29598         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29599         if the system function has the POSIX declaration. Test whether the
29600         function fails if the buffer is less than 128 bytes large.
29601         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29602         system's ttyname_r function. Provide a reasonably large buffer.
29603         * modules/ttyname_r (Depends-on): Add extensions.
29604         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29605
29606 2010-04-25  Bruno Haible  <bruno@clisp.org>
29607
29608         Use the 'extensions' module for some more functions on Solaris.
29609         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29610         module.
29611         * doc/posix-functions/ctime_r.texi: Likewise.
29612         * doc/posix-functions/getgrgid_r.texi: Likewise.
29613         * doc/posix-functions/getgrnam_r.texi: Likewise.
29614         * doc/posix-functions/getpwnam_r.texi: Likewise.
29615         * doc/posix-functions/getpwuid_r.texi: Likewise.
29616         * doc/posix-functions/readdir_r.texi: Likewise.
29617         * doc/posix-functions/sigwait.texi: Likewise.
29618         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29619         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29620
29621 2010-04-25  Bruno Haible  <bruno@clisp.org>
29622
29623         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29624         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29625         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29626         * lib/ttyname_r.c: Include <limits.h>.
29627         (ttyname_r): Define using the system's ttyname_r function, if it exists
29628         and not on Solaris.
29629         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29630         set.
29631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29632         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29633         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29634         Reported by Simon Josefsson.
29635
29636 2010-04-25  Bruno Haible  <bruno@clisp.org>
29637
29638         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29639         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
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/getlogin_r.texi: Likewise.
29644         * doc/posix-functions/getpwnam_r.texi: Likewise.
29645         * doc/posix-functions/getpwuid_r.texi: Likewise.
29646         * doc/posix-functions/readdir_r.texi: Likewise.
29647         * doc/posix-functions/sigwait.texi: Likewise.
29648         * doc/posix-functions/ttyname_r.texi: Likewise.
29649         Reported by Simon Josefsson.
29650
29651 2010-04-25  Bruno Haible  <bruno@clisp.org>
29652
29653         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29654         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29655         also to --create-testdir.
29656         (func_acceptable): Don't consider the status of *-tests modules here.
29657         (func_modules_transitive_closure): Consider it here, before including a
29658         test module.
29659         (func_import, func_create_testdir): Set inc_all_direct_tests,
29660         inc_all_indirect_tests.
29661         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29662         --create-testdir and --create-megatestdir.
29663
29664 2010-04-25  Bruno Haible  <bruno@clisp.org>
29665
29666         gnulib-tool: Add --without-*-tests options.
29667         * gnulib-tool (func_usage): Document the --without-*-tests options.
29668         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29669         excl_unportable_tests): New variables.
29670         Fail if they are specified with --import or --update.
29671         (func_acceptable): Respect the excl_*_tests variables.
29672         (func_import): Set the excl_*_tests variables to empty.
29673
29674 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29675             Bruno Haible  <bruno@clisp.org>
29676
29677         Work around a MacOS X 10.4 bug with openpty.
29678         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29679         * tests/test-openpty.c (main): Close the master side explicitly.
29680
29681 2010-04-25  Bruno Haible  <bruno@clisp.org>
29682
29683         strnlen: Fix a C++ test error on MacOS X and Solaris.
29684         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29685         the function is not declared.
29686         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29687         Simon Josefsson.
29688
29689 2010-04-24  Bruno Haible  <bruno@clisp.org>
29690
29691         Avoid a gcc warning.
29692         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29693         of correct type for %08lx directive.
29694         Reported by Eric Blake.
29695
29696 2010-04-24  Bruno Haible  <bruno@clisp.org>
29697
29698         vasnprintf: Correct errno value in case of out-of-memory.
29699         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29700         or sprintf. Use the errno value from SNPRINTF or sprintf.
29701         Reported by Ian Beckwith <ianb@erislabs.net>.
29702
29703 2010-04-24  Bruno Haible  <bruno@clisp.org>
29704
29705         ansi-c++-opt: Find correct compiler when cross-compiling.
29706         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29707         AC_CHECK_PROGS.
29708         Reported by Simon Josefsson.
29709
29710 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29711
29712         vc-list-files: Add support for subversion
29713         * build-aux/vc-list-files: Use "svn list" to generate the list of
29714         files controlled by subversion.
29715
29716 2010-04-23  Jim Meyering  <meyering@redhat.com>
29717
29718         vc-list-files tests: convert to use init.sh
29719         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29720         path_prepend_.
29721         Use Exit, not exit.
29722         Use skip_ rather than open coding it.
29723         Remove trap set-up and compare definitions.
29724         * tests/test-vc-list-files-git.sh: Likewise.
29725         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29726
29727 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29728
29729         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29730         backup files.
29731
29732 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29733
29734         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29735
29736 2010-04-20  Eric Blake  <eblake@redhat.com>
29737
29738         tests: be robust to ignored SIGPIPE
29739         * tests/test-select-in.sh: Consume all output.
29740         * tests/test-lseek.sh: Check correct exit status, while avoiding
29741         EPIPE.
29742
29743 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29744             Bruno Haible  <bruno@clisp.org>
29745
29746         visibility: Don't use -fvisibility if it leads to a warning.
29747         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29748         yes, don't pretend that visibility works if it leads to a warning.
29749         Reported by Mike Gran <spk121@yahoo.com>.
29750
29751 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29752
29753         * build-aux/bootstrap: Use "git -h" for testing for supported options
29754         instead of "git --help".  The short-form option only shows a summary,
29755         and doesn't layout the full man page.  Grep for the full option name
29756         in the summary, too.
29757
29758 2010-04-19  Bruno Haible  <bruno@clisp.org>
29759
29760         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29761         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29762         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29763         mention of RELOCATABLE_STRIP.
29764         Reported by Sylvain Beucler <beuc@beuc.net>.
29765
29766 2010-04-19  Bruno Haible  <bruno@clisp.org>
29767
29768         * lib/diffseq.h: Fix typo in comment.
29769         Reported by Eric Blake.
29770
29771 2010-04-19  Bruno Haible  <bruno@clisp.org>
29772
29773         ioctl: Move autoconf macro to a .m4 file.
29774         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29775         * modules/ioctl (Files): Add it.
29776         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29777         Reported by Ian Beckwith <ianb@erislabs.net>.
29778
29779 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29780             Bruno Haible  <bruno@clisp.org>
29781
29782         diffseq: Accommodate use-case with abstract arrays.
29783         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29784         is not defined.
29785         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29786         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29787
29788 2010-04-18  Bruno Haible  <bruno@clisp.org>
29789
29790         * doc/posix-headers/stdbool.texi: More precise wording.
29791
29792 2010-04-17  Jim Meyering  <meyering@redhat.com>
29793
29794         maint.mk: use gnu-style indentation in an embedded perl script
29795         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29796         Rename variable: s/two/last_two_bytes/
29797
29798 2010-04-16  Eric Blake  <eblake@redhat.com>
29799
29800         test-stdbool: skip test that fails with Solaris CC
29801         * tests/test-stdbool.c (f): Skip test that causes compilation
29802         error under buggy C++ compiler.
29803         * lib/stdbool.in.h: Document the limitation.
29804         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29805
29806         setenv: allow compilation with C++
29807         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29808         register keyword.
29809
29810         stdint: allow test to pass with C++
29811         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29812
29813         getopt: allow compilation with C++
29814         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29815         struct.
29816         * lib/getopt.c (_getopt_internal_r): Use correct type.
29817         Reported by Dagobert Michelson, via Joel E. Denny.
29818
29819 2010-04-16  Bruno Haible  <bruno@clisp.org>
29820
29821         Override netdb.h always.
29822         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29823         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29824         Reported by Ludovic Courtès <ludo@gnu.org>.
29825
29826 2010-04-15  Bruno Haible  <bruno@clisp.org>
29827
29828         openpty: Fix mistake from 2010-03-21.
29829         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29830         Reported by Simon Josefsson.
29831
29832 2010-04-15  Eric Blake  <eblake@redhat.com>
29833
29834         test-forkpty: fix expected signature
29835         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29836         Reported by Simon Josefsson.
29837
29838 2010-04-15  Jim Meyering  <meyering@redhat.com>
29839
29840         maint.mk: texinfo_suffix_re_: correct the default regexp
29841         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29842
29843         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29844         make it configurable via texinfo_suffix_re_.
29845
29846 2010-04-14  Eric Blake  <eblake@redhat.com>
29847
29848         strtok_r: relax license to LGPLv2+
29849         * modules/strtok_r (License): Relax license.
29850         Reported by Matthias Bolte.
29851
29852 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29853
29854         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29855         version 1.4.4 by default instead of requiring the libgcrypt
29856         version used during build.  This makes it possible to use the
29857         application with older but still binary compatible libgcrypt
29858         versions.
29859
29860 2010-04-13  Eric Blake  <eblake@redhat.com>
29861
29862         getopt-gnu: match recent glibc fixes and posix ruling
29863         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29864         '+' handling, when requesting extensions.
29865         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29866         'W;' handling.
29867         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29868         * doc/posix-functions/getopt.texi (getopt): Document this.
29869         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29870         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29871         Likewise.
29872
29873         getopt: merge bug fixes from glibc
29874         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29875         diagnostics.  Honor '+:' correctly.  Reject ';'.
29876
29877         getopt-posix: detect MacOS bug
29878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29879         optind when missing a required argument.
29880         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29881         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29882         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29883         Likewise.
29884
29885         getopt-posix: avoid spurious failure on Solaris
29886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29887         an indicator that setting optind=1 is sufficient for reset.
29888
29889         getopt-posix: avoid spurious failure on FreeBSD
29890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29891         in POSIX mode, since the m4 test uses it.
29892
29893         gnulib-tool: silence warning on BSD sh
29894         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29895
29896 2010-04-13  Jim Meyering  <meyering@redhat.com>
29897
29898         doc: users.txt: GNU patch now uses gnulib
29899         * users.txt: Add patch.
29900
29901 2010-04-12  Jim Meyering  <meyering@redhat.com>
29902
29903         maint.mk: generate more concise timing data for syntax-check rules
29904         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29905         " done" from each line that reports a syntax-check test duration.
29906
29907 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29908
29909         git-version-gen: use "git update-index..." rather than "git status"
29910         * build-aux/git-version-gen: Use git update-index --refresh, not
29911         "git status".  With some versions of git, "git status" would fail
29912         to update the index and result in an unwarranted "-dirty" suffix.
29913
29914 2010-04-11  Jim Meyering  <meyering@redhat.com>
29915
29916         openat: correct formatting (no semantic change)
29917         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29918         Suggested by Bruno Haible.
29919
29920 2010-04-11  Bruno Haible  <bruno@clisp.org>
29921
29922         Stricter declaration checking in testdirs.
29923         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29924         If for_tests is true, augment AM_CPPFLAGS to define
29925         GNULIB_STRICT_CHECKING.
29926         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29927         GNULIB_STRICT_CHECKING is defined, verify that the function is
29928         declared.
29929
29930 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29931             Bruno Haible  <bruno@clisp.org>
29932
29933         libunistring: Improve configure output.
29934         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29935         Don't say "consider installing GNU libunistring" when checking again
29936         with libiconv.
29937
29938 2010-04-11  Bruno Haible  <bruno@clisp.org>
29939
29940         libunistring: Correct value of $LTLIBUNISTRING.
29941         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29942         correct the value of $LTLIBUNISTRING.
29943
29944 2010-04-11  Bruno Haible  <bruno@clisp.org>
29945
29946         havelib: Add static libraries to LIBS in the right order.
29947         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29948         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29949
29950 2010-04-11  Bruno Haible  <bruno@clisp.org>
29951
29952         libunistring: Detect libunistring also when it depends on libiconv.
29953         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29954         the second AC_LIB_HAVE_LINKFLAGS invocation.
29955
29956 2010-04-11  James Youngman  <jay@gnu.org>
29957
29958         close-stream: declare local scalars to be "const"
29959         * lib/close-stream.c (close_stream): Make boolean variables const
29960         to document the fact that we set but do not change them.
29961
29962 2010-04-11  Bruno Haible  <bruno@clisp.org>
29963
29964         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29965
29966 2010-04-11  Jim Meyering  <meyering@redhat.com>
29967
29968         maint.mk: don't include dist-check.mk
29969         * top/maint.mk: Remove bogus include directive.
29970
29971         maint.mk: improve empty-line-at-EOF check
29972         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29973         solution, rather than tail+Perl-based one.  The latter would read
29974         a few kilobytes from the end of each file, and did not handle empty
29975         files properly.
29976
29977         maint.mk: print the elapsed time for each syntax-check rule
29978         * top/maint.mk (sc_m_rules_): Save start time in a file.
29979         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29980         (local-check): Interpose the .z rules
29981
29982 2010-04-11  Jim Meyering  <meyering@redhat.com>
29983
29984         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29985         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29986         empty file with one that ends in an empty line.
29987
29988 2010-04-10  Bruno Haible  <bruno@clisp.org>
29989
29990         mkdir: Make it work on mingw64.
29991         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29992         * lib/mkdir.c: Update comment.
29993         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29994
29995 2010-04-10  Bruno Haible  <bruno@clisp.org>
29996
29997         Don't override improved macro from newer autoconf.
29998         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29999         autoconf >= 2.62.
30000         Reported by Joel E. Denny <jdenny@clemson.edu>.
30001
30002 2010-04-10  Jim Meyering  <meyering@redhat.com>
30003
30004         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30005         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30006
30007         maint.mk: correct a diagnostic
30008         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30009         in diagnostic; now use $prohibit.
30010
30011 2010-04-10  Bruno Haible  <address@hidden>
30012
30013         fchownat: Fix a C++ test error on Solaris 8.
30014         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30015         the function does not exist.
30016
30017 2010-04-10  Bruno Haible  <bruno@clisp.org>
30018
30019         vasnprintf: Add more tests.
30020         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30021         (test_function): Test converting an invalid wide string.
30022
30023         vasnprintf: Correct handling of unconvertible wide string arguments.
30024         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30025         VASNPRINTF.
30026         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30027         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30028         smaller than the expected maximum need for the directive. Set errno to
30029         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30030         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30032         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30033         * modules/vasnprintf (Files): Add m4/printf.m4.
30034         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30035
30036 2010-04-10  Bruno Haible  <bruno@clisp.org>
30037
30038         vasnprintf: Fix crash in %ls directive.
30039         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30040         string is passed as argument to %ls, with no precision and no width.
30041         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30042
30043 2010-04-10  Bruno Haible  <bruno@clisp.org>
30044
30045         vasnprintf: Fix multiple test failures on mingw.
30046         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30047         _snprintf, or snwprintf, not _snwprintf.
30048
30049 2010-04-10  Bruno Haible  <bruno@clisp.org>
30050
30051         write: Fix a C++ test error on mingw.
30052         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30053
30054 2010-04-10  Bruno Haible  <bruno@clisp.org>
30055
30056         vasnprintf test: Reduce code duplication.
30057         * tests/test-vasnprintf.c (test_function): New function, extracted from
30058         test_vasnprintf.
30059         (test_vasnprintf, test_asnprintf): Invoke it.
30060
30061 2010-04-10  Bruno Haible  <bruno@clisp.org>
30062
30063         strnlen: Fix warning in C++ mode on MacOS X.
30064         * lib/string.in.h (strnlen): Use the modern idiom.
30065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30066         defining strnlen as a macro already in <config.h>.
30067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30068         REPLACE_STRNLEN.
30069         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30070         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30071
30072 2010-04-08  James Youngman  <jay@gnu.org>
30073
30074         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30075         the example.
30076
30077 2010-04-09  Jim Meyering  <meyering@redhat.com>
30078
30079         maint.mk: print better diagnostic when there is no $(_hv_file)
30080         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30081         announce that when $(_hv_file) (aka help-version) does not exist.
30082
30083         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30084         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30085         not try to interpret its random input bytes.  Jarno Rajahalme reported
30086         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30087         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30088         (mktempd_): Likewise, just in case.
30089
30090         ftruncate: add two years to projected module removal date: 2012
30091         * m4/ftruncate.m4: Adjust comments.
30092
30093         ftruncate: mark module as obsolete; even MinGW provides it, now
30094         * modules/ftruncate (Status): Obsolete.
30095         (Notice): Say that.
30096         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30097         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30098
30099 2010-04-08  Bruno Haible  <bruno@clisp.org>
30100
30101         Fix side effects from tests-related modules.
30102         * modules/dprintf-posix (Comment): New section.
30103         * modules/fprintf-posix (Comment): Likewise.
30104         * modules/obstack-printf-posix (Comment): Likewise.
30105         * modules/printf-posix (Comment): Likewise.
30106         * modules/snprintf-posix (Comment): Likewise.
30107         * modules/sprintf-posix (Comment): Likewise.
30108         * modules/vasnprintf-posix (Comment): Likewise.
30109         * modules/vasprintf-posix (Comment): Likewise.
30110         * modules/vdprintf-posix (Comment): Likewise.
30111         * modules/vfprintf-posix (Comment): Likewise.
30112         * modules/vprintf-posix (Comment): Likewise.
30113         * modules/vsnprintf-posix (Comment): Likewise.
30114         * modules/vsprintf-posix (Comment): Likewise.
30115         * modules/xprintf-posix (Comment): Likewise.
30116         * modules/xvasprintf-posix (Comment): Likewise.
30117         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30118         * modules/floorf-tests (Depends-on): Likewise.
30119         * modules/round-tests (Depends-on): Likewise.
30120         * modules/roundf-tests (Depends-on): Likewise.
30121         * modules/trunc-tests (Depends-on): Likewise.
30122         * modules/truncf-tests (Depends-on): Likewise.
30123         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30124         'fprintf-posix' module is not present.
30125         * tests/test-floorf2.c (check): Likewise.
30126         * tests/test-trunc2.c (check): Likewise.
30127         * tests/test-truncf2.c (check): Likewise.
30128         * tests/test-round2.c (equal): Likewise.
30129         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30130
30131 2010-04-07  Karl Berry  <karl@gnu.org>
30132
30133         * config/srclist.txt,
30134         * config/srclistvars.sh,
30135         * config/srclist-update: doc fixes.
30136
30137 2010-04-07  Jim Meyering  <meyering@redhat.com>
30138
30139         maint.mk: add a PATH crosschecking syntax-check rule
30140         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30141         Useful if you use a test like the one in help-version (coreutils,
30142         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30143         printed by prog --version.
30144
30145 2010-04-06  Bruno Haible  <bruno@clisp.org>
30146
30147         Fix link error on mingw.
30148         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30149         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30150
30151 2010-04-06  Bruno Haible  <bruno@clisp.org>
30152
30153         Assume rmdir exists.
30154         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30155
30156 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30157
30158         doc: update users.txt
30159         * users.txt: Add gcal.
30160
30161 2010-04-06  Jim Meyering  <meyering@redhat.com>
30162
30163         init.sh: simply unset TMPDIR rather than risking env -i
30164         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30165         although it probably works fine on all Unix-based systems, some
30166         systems (Cygwin?) cannot tolerate a totally cleared environment.
30167         Suggestion from Eric Blake.
30168
30169 2010-04-06  Jim Meyering  <meyering@redhat.com>
30170
30171         init.sh: portability fix: use env's POSIX-specified -i option not -u
30172         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30173         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30174
30175 2010-04-05  Bruno Haible  <bruno@clisp.org>
30176
30177         btowc: Work around Cygwin 1.7.2 bug.
30178         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30179         does not map NUL to 0.
30180         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30181
30182 2010-04-05  Bruno Haible  <bruno@clisp.org>
30183
30184         Make the multithread modules work on Cygwin 1.7.2.
30185         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30186         imported symbols can be declared weak, so that it returns "no" on
30187         Cygwin 1.7.2.
30188
30189 2010-04-05  Bruno Haible  <bruno@clisp.org>
30190
30191         Use the module 'strncat'.
30192         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30193
30194         Tests for module 'strncat'.
30195         * modules/strncat-tests: New file.
30196         * tests/test-strncat.c: New file.
30197
30198         New module 'strncat'.
30199         * lib/string.in.h (strncat): New declaration.
30200         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30201         * m4/strncat.m4: New file, based on m4/memchr.m4.
30202         * modules/strncat: New file.
30203         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30204         is declared.
30205         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30206         REPLACE_STRNCAT.
30207         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30208         REPLACE_STRNCAT.
30209         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30210         module.
30211         * tests/test-string-c++.cc: Check signature of strncat.
30212
30213 2010-04-05  Jim Meyering  <meyering@redhat.com>
30214
30215         xstrtoumax-tests: convert to use init.sh
30216         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30217         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30218         Use Exit, not exit.
30219         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30220
30221         xstrtoimax-tests: convert to use init.sh
30222         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30223         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30224         Use Exit, not exit.
30225         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30226
30227 2010-04-05  Bruno Haible  <bruno@clisp.org>
30228
30229         sys_socket: Avoid #define replacements in C++ mode.
30230         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30231         warning to the function if possible, rather than #defining the symbol
30232         to a dysfunctional alias.
30233
30234 2010-04-05  Bruno Haible  <bruno@clisp.org>
30235
30236         fseeko: Fix C++ test error on mingw.
30237         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30238         gl_FUNC_FSEEKO.
30239         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30240         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30241         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30242         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30243
30244 2010-04-05  Bruno Haible  <bruno@clisp.org>
30245
30246         duplocale: Improve test output.
30247         * tests/test-duplocale.c (main): Print reason for skipped test.
30248
30249 2010-04-05  Bruno Haible  <bruno@clisp.org>
30250
30251         Assume rmdir exists.
30252         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30253         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30254
30255 2010-04-05  Bruno Haible  <bruno@clisp.org>
30256
30257         Fix link error on Solaris 8 with cc.
30258         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30259
30260 2010-04-05  Bruno Haible  <bruno@clisp.org>
30261
30262         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30263         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30264
30265 2010-04-05  Bruno Haible  <bruno@clisp.org>
30266
30267         vasprintf: Update documentation.
30268         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30269
30270 2010-04-05  Bruno Haible  <bruno@clisp.org>
30271
30272         ptsname: Improve test.
30273         * tests/test-ptsname.c (main): Also try the various master names of BSD
30274         systems.
30275
30276 2010-04-05  Bruno Haible  <bruno@clisp.org>
30277
30278         memchr: Avoid a possible C++ test error.
30279         * lib/string.in.h (memchr): Provide declaration if function is missing.
30280         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30281         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30283         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30284
30285 2010-04-05  Bruno Haible  <bruno@clisp.org>
30286
30287         strtok_r: Improve idiom.
30288         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30289         AC_LIBOBJ is used.
30290
30291 2010-04-05  Bruno Haible  <bruno@clisp.org>
30292
30293         strdup: Improve idiom.
30294         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30295         AC_LIBOBJ is used.
30296         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30297         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30298         when AC_LIBOBJ is used.
30299
30300 2010-04-05  Bruno Haible  <bruno@clisp.org>
30301
30302         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30303         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30304         don't set REPLACE_MBSINIT to 1.
30305         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30306         don't set REPLACE_MBRTOWC to 1.
30307         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30308         exist, don't set REPLACE_MBSRTOWCS to 1.
30309         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30310         exist, don't set REPLACE_MBSNRTOWCS to 1.
30311         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30312         don't set REPLACE_WCRTOMB to 1.
30313         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30314         exist, don't set REPLACE_WCSRTOMBS to 1.
30315         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30316         exist, don't set REPLACE_WCSNRTOMBS to 1.
30317
30318 2010-04-05  Bruno Haible  <bruno@clisp.org>
30319
30320         ldexpl: Improve idiom.
30321         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30322         make sure to set HAVE_DECL_LDEXPL to 0.
30323
30324 2010-04-05  Jim Meyering  <meyering@redhat.com>
30325
30326         xstrtol-tests: convert to use init.sh
30327         * modules/xstrtol-tests (Files): Add tests/init.sh.
30328         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30329         Use Exit, not exit.
30330         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30331
30332         atexit-tests: convert to use init.sh
30333         * modules/atexit-tests (Files): Add tests/init.sh.
30334         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30335         Use Exit, not exit.
30336         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30337
30338         init.sh: fix typo
30339         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30340
30341         init.sh: make it easier for a test script to write to the tty, ...
30342         when using automake's parallel-tests mode.
30343         * tests/init.sh (stderr_fileno_): Define overridable variable.
30344         (warn_): New function, to use it.
30345         (fail_, skip_, framework_failure_): Use warn_.
30346
30347 2010-04-04  Bruno Haible  <bruno@clisp.org>
30348
30349         btowc: Avoid warning.
30350         * lib/btowc.c: Include <stdlib.h>.
30351         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30352
30353 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30354             Bruno Haible  <bruno@clisp.org>
30355
30356         wchar: Port to NetBSD 1.5.
30357         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30358         * lib/wctype.in.h (WEOF): Likewise.
30359
30360 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30361             Bruno Haible  <bruno@clisp.org>
30362
30363         Port extended stdio to NetBSD 1.5.
30364         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30365         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30366         older.
30367
30368 2010-04-04  Bruno Haible  <bruno@clisp.org>
30369
30370         string: Remove unused substitution.
30371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30372         HAVE_DECL_STRERROR.
30373         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30374
30375 2010-04-04  Bruno Haible  <bruno@clisp.org>
30376
30377         strtod: Avoid a possible C++ test error.
30378         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30379         set REPLACE_STRTOD.
30380
30381 2010-04-04  Bruno Haible  <bruno@clisp.org>
30382
30383         strerror: Update documentation.
30384         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30385
30386 2010-04-04  Bruno Haible  <bruno@clisp.org>
30387
30388         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30389         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30390         _GL_CXXALIAS_SYS_CAST.
30391
30392 2010-04-04  Bruno Haible  <bruno@clisp.org>
30393
30394         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30395         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30396         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30397         REPLACE_FREXPL to 1.
30398         * doc/posix-functions/frexpl.texi: Update documentation.
30399
30400 2010-04-04  Bruno Haible  <bruno@clisp.org>
30401
30402         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30403         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30404
30405 2010-04-04  Bruno Haible  <bruno@clisp.org>
30406
30407         Implement nanosleep for native Windows.
30408         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30409
30410 2010-04-04  Bruno Haible  <bruno@clisp.org>
30411
30412         math: Fix some C++ test errors on Solaris 8.
30413         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30414
30415 2010-04-04  Bruno Haible  <bruno@clisp.org>
30416
30417         math: Fix some C++ test errors on Cygwin.
30418         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30419         truncl): Provide declaration if the system does not have it.
30420         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30421         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30422         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30423         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30424         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30425         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30426         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30427         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30428         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30429         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30430         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30431         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30432         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30433         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30434         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30435         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30437         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30438         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30439         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30440         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30441         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30442
30443 2010-04-04  Bruno Haible  <bruno@clisp.org>
30444
30445         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30446         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30447         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30448         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30449         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30450         * m4/isinf.m4 (gl_ISINF): Likewise.
30451         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30452
30453 2010-04-04  Bruno Haible  <bruno@clisp.org>
30454
30455         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30456         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30457
30458 2010-04-04  Bruno Haible  <bruno@clisp.org>
30459
30460         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30461         * modules/tmpfile (configure.ac): Update.
30462
30463         tmpfile: Fix C++ test error on mingw.
30464         * lib/stdio.in.h (tmpfile): New declaration.
30465         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30466         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30467         * modules/tmpfile (Depends-on): Add stdio.
30468         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30469         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30470         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30471         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30472         REPLACE_TMPFILE.
30473         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30474
30475 2010-04-04  Bruno Haible  <bruno@clisp.org>
30476
30477         ioctl: Fix C++ test error on mingw.
30478         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30479         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30480         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30481
30482 2010-04-03  Bruno Haible  <bruno@clisp.org>
30483
30484         wcwidth: Fix C++ test error on mingw.
30485         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30487         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30488
30489 2010-04-03  Bruno Haible  <bruno@clisp.org>
30490
30491         nanosleep: Fix C++ test error on mingw.
30492         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30493         * lib/time.in.h (nanosleep): Use modern idiom.
30494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30495         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30496         REPLACE_NANOSLEEP to 1.
30497         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30498         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30499
30500 2010-04-03  Bruno Haible  <bruno@clisp.org>
30501
30502         strptime: Fix C++ test error on mingw.
30503         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30504         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30505         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30506         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30507         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30508         not REPLACE_STRPTIME.
30509         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30510         REPLACE_STRPTIME.
30511
30512 2010-04-03  Bruno Haible  <bruno@clisp.org>
30513
30514         timegm: Fix C++ test error on mingw.
30515         * lib/time.in.h (timegm): Use modern idiom.
30516         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30517         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30518         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30519         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30520
30521 2010-04-03  Bruno Haible  <bruno@clisp.org>
30522
30523         timegm: Assume declaration if function exists.
30524         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30525         if it exists. Don't clobber ac_cv_func_timegm.
30526
30527 2010-04-03  Bruno Haible  <bruno@clisp.org>
30528
30529         time_r: Fix C++ test error on mingw.
30530         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30531         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30532         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30533         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30534         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30535
30536 2010-04-03  Bruno Haible  <bruno@clisp.org>
30537
30538         time_r: Minor updates.
30539         * modules/time_r (Description): Mention the provided functions.
30540         * lib/time_r.c: Don't include <string.h>.
30541         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30542         * doc/posix-functions/localtime_r.texi: Likewise.
30543
30544 2010-04-03  Bruno Haible  <bruno@clisp.org>
30545
30546         time: Fix regression introduced on 2010-03-08.
30547         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30548         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30549
30550 2010-04-03  Jim Meyering  <meyering@redhat.com>
30551
30552         maint.mk: don't silently disable project-specific syntax-check rules
30553         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30554         that they need to convert their project-specific syntax-check rules
30555         to use the new _sc_search_regexp.
30556
30557 2010-04-03  Bruno Haible  <bruno@clisp.org>
30558
30559         fchdir: Fix regression introduced on 2010-03-08.
30560         * lib/unistd.in.h (fchdir): Fix declaration.
30561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30563         REPLACE_FCHDIR.
30564         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30565         REPLACE_FCHDIR.
30566
30567 2010-04-03  Bruno Haible  <bruno@clisp.org>
30568
30569         getpagesize: Fix C++ test error on mingw.
30570         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30571         system does not declare the function.
30572         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30573         declared.
30574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30575         HAVE_DECL_GETPAGESIZE.
30576         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30577
30578 2010-04-03  Bruno Haible  <bruno@clisp.org>
30579
30580         stdio: Make C++ tests work on mingw.
30581         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30582         does not declare the function.
30583
30584 2010-04-03  Bruno Haible  <bruno@clisp.org>
30585
30586         ftello: Fix C++ test error on mingw.
30587         * lib/stdio.in.h (ftello): Use modern idiom.
30588         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30589         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30590         is missing and that it needs to be replaced.
30591         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30593         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30594
30595 2010-04-03  Bruno Haible  <bruno@clisp.org>
30596
30597         fseeko: Fix C++ test error on mingw.
30598         * lib/stdio.in.h (fseeko): Use modern idiom.
30599         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30601         is missing and that it needs to be replaced.
30602         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30604         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30605
30606 2010-04-03  Bruno Haible  <bruno@clisp.org>
30607
30608         mkstemp: Fix C++ test error on mingw.
30609         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30610         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30611         function is missing and that it needs to be replaced.
30612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30613         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30614
30615 2010-04-03  Bruno Haible  <bruno@clisp.org>
30616
30617         stpncpy: Fix C++ test error on mingw.
30618         * lib/string.in.h (stpncpy): Use modern idiom.
30619         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30620         function is missing and that it needs to be replaced.
30621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30622         REPLACE_STPNCPY.
30623         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30624
30625 2010-04-03  Bruno Haible  <bruno@clisp.org>
30626
30627         sys_stat: Fix C++ test error on mingw.
30628         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30629         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30630
30631 2010-04-03  Bruno Haible  <bruno@clisp.org>
30632
30633         pty: Update doc.
30634         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30635
30636 2010-04-03  Bruno Haible  <bruno@clisp.org>
30637
30638         unistd: Fix C++ test error on mingw.
30639         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30640
30641 2010-04-03  Bruno Haible  <bruno@clisp.org>
30642
30643         Update doc regarding mingw.
30644         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30645         * doc/glibc-functions/login_tty.texi: Likewise.
30646         * doc/glibc-functions/forkpty.texi: Likewise.
30647
30648 2010-04-03  Bruno Haible  <bruno@clisp.org>
30649
30650         stdlib: Avoid compilation failure of c-strtold on mingw.
30651         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30652
30653 2010-04-03  Bruno Haible  <bruno@clisp.org>
30654
30655         locale: Make C++ tests work on Cygwin and mingw.
30656         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30657         cannot provide the function.
30658         Reported by Simon Josefsson.
30659
30660 2010-04-03  Bruno Haible  <bruno@clisp.org>
30661
30662         localename: Port to MacOS X 10.6.
30663         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30664         memory layout of the locales in MacOS X 10.6 as well.
30665         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30666
30667 2010-04-02  Bruno Haible  <bruno@clisp.org>
30668
30669         gnulib-tool: Ensure that long-running tests are executed last.
30670         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30671         running tests after the one for the other tests.
30672
30673 2010-04-02  Bruno Haible  <bruno@clisp.org>
30674
30675         gnulib-tool: Ensure the tests in the main directory are executed first.
30676         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30677         start with the current directory.
30678
30679 2010-04-02  Bruno Haible  <bruno@clisp.org>
30680
30681         Tests for module 'havelib', moved here from GNU gettext.
30682         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30683         modifications.
30684         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30685         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30686         with modifications.
30687         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30688         modifications.
30689         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30690         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30691         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30692         with modifications.
30693         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30694         with modifications.
30695         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30696         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30697         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30698         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30699         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30700         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30701         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30702         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30703         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30704         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30705         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30706         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30707         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30708         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30709         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30710         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30711         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30712         with modifications.
30713         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30714         with modifications.
30715         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30716         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30717         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30718         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30719         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30720         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30721         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30722         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30723         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30724         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30725         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30726         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30727         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30728         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30729         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30730         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30731         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30732         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30733         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30734         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30735         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30736         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30737         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30738         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30739         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30740         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30741         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30742         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30743         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30744         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30745         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30746         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30747         * tests/havelib/rpathx/rpathx.c: New file, from
30748         gettext/autoconf-lib-link.
30749         * tests/havelib/rpathx/Makefile.am: New file, from
30750         gettext/autoconf-lib-link.
30751         * tests/havelib/rpathx/configure.ac: New file, from
30752         gettext/autoconf-lib-link with modifications.
30753         * tests/havelib/rpathy/rpathy.c: New file, from
30754         gettext/autoconf-lib-link.
30755         * tests/havelib/rpathy/Makefile.am: New file, from
30756         gettext/autoconf-lib-link.
30757         * tests/havelib/rpathy/configure.ac: New file, from
30758         gettext/autoconf-lib-link with modifications.
30759         * tests/havelib/rpathz/rpathz.c: New file, from
30760         gettext/autoconf-lib-link.
30761         * tests/havelib/rpathz/Makefile.am: New file, from
30762         gettext/autoconf-lib-link.
30763         * tests/havelib/rpathz/configure.ac: New file, from
30764         gettext/autoconf-lib-link with modifications.
30765         * tests/havelib/rpathlx/usex.c: New file, from
30766         gettext/autoconf-lib-link.
30767         * tests/havelib/rpathlx/Makefile.am: New file, from
30768         gettext/autoconf-lib-link.
30769         * tests/havelib/rpathlx/configure.ac: New file, from
30770         gettext/autoconf-lib-link with modifications.
30771         * tests/havelib/rpathly/usey.c: New file, from
30772         gettext/autoconf-lib-link.
30773         * tests/havelib/rpathly/Makefile.am: New file, from
30774         gettext/autoconf-lib-link.
30775         * tests/havelib/rpathly/configure.ac: New file, from
30776         gettext/autoconf-lib-link with modifications.
30777         * tests/havelib/rpathlz/usez.c: New file, from
30778         gettext/autoconf-lib-link.
30779         * tests/havelib/rpathlz/Makefile.am: New file, from
30780         gettext/autoconf-lib-link.
30781         * tests/havelib/rpathlz/configure.ac: New file, from
30782         gettext/autoconf-lib-link with modifications.
30783         * tests/havelib/rpathlyx/usey.c: New file, from
30784         gettext/autoconf-lib-link.
30785         * tests/havelib/rpathlyx/Makefile.am: New file, from
30786         gettext/autoconf-lib-link.
30787         * tests/havelib/rpathlyx/configure.ac: New file, from
30788         gettext/autoconf-lib-link with modifications.
30789         * tests/havelib/rpathlzyx/usez.c: New file, from
30790         gettext/autoconf-lib-link.
30791         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30792         gettext/autoconf-lib-link.
30793         * tests/havelib/rpathlzyx/configure.ac: New file, from
30794         gettext/autoconf-lib-link with modifications.
30795         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30796         with modifications.
30797
30798 2010-04-02  Bruno Haible  <bruno@clisp.org>
30799
30800         gnulib-tool: Create distributed built sources also for the tests.
30801         * gnulib-tool (func_create_testdir): Also generate distributed built
30802         sources in the tests directory.
30803
30804 2010-04-02  Bruno Haible  <bruno@clisp.org>
30805
30806         gnulib-tool: Obey user's environment variables.
30807         * gnulib-tool (func_create_testdir): When creating built sources,
30808         respect the environment variables for autoconf, automake, etc. given by
30809         the user.
30810
30811 2010-04-02  Bruno Haible  <bruno@clisp.org>
30812
30813         gnulib-tool: Provide the value of --m4-base to modules.
30814         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30815         of gl_m4_base.
30816
30817 2010-04-02  Eric Blake  <eblake@redhat.com>
30818
30819         maint.mk: fix some fallout
30820         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30821         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30822
30823 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30824
30825         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30826         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30827         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30828         (sc_cast_of_x_alloc_return_value): Likewise.
30829         (sc_cast_of_alloca_return_value): Likewise.
30830         (sc_space_tab): Likewise.
30831         (sc_prohibit_atoi_atof): Likewise.
30832         (sc_prohibit_magic_number_exit): Likewise.
30833         (sc_error_exit_success): Likewise.
30834         (sc_file_system): Likewise.
30835         (sc_prohibit_have_config_h): Likewise.
30836         (sc_require_config_h): Likewise.
30837         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30838         (sc_obsolete_symbols): Likewise.
30839         (sc_changelog): Likewise.
30840         (sc_program_name): Likewise.
30841         (sc_the_the): Likewise.
30842         (sc_trailing_blank): Likewise.
30843         (sc_two_space_separator_in_usage): Likewise.
30844         (sc_useless_cpp_parens): Likewise.
30845         (sc_GPL_version): Likewise.
30846         (sc_GFDL_version): Likewise.
30847         (sc_texinfo_acronym): Likewise.
30848         (sc_prohibit_cvs_keyword): Likewise.
30849         (sc_prohibit_stat_st_blocks): Likewise.
30850         (sc_prohibit_S_IS_definition): Likewise.
30851         (sc_redundant_const): Likewise.
30852         (sc_makefile_TAB_only_indentation): Likewise.
30853         (sc_m4_quote_check): Likewise.
30854         (sc_makefile_path_separator_check): Likewise.
30855         (sc_copyright_check): Likewise.
30856         (sc_Wundef_boolean): Likewise.
30857         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30858
30859         maint.mk: match 0 or more whitespace-before-function-call '('
30860         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30861         that have zero or two-and-more spaces between the function name
30862         and the open parenthesis.
30863         (sc_error_message_warn_fatal): Likewise.
30864         (sc_error_message_uppercase): Likewise.
30865         (sc_error_message_period): Likewise.
30866
30867 2010-03-31  Eric Blake  <eblake@redhat.com>
30868
30869         maint.mk: check for [ as well as test
30870         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30871         Based on a libvirt report by Matthias Bolte.
30872
30873         gnumakefile: don't squelch _version output
30874         * top/GNUmakefile (_version): Create one-shot dependency rather
30875         than using $(shell) when version must be regenerated.
30876         (_autoreconf): Run verbosely, by default.
30877
30878         sys_time: avoid compiler warnings
30879         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30880         unconditional, fixing regression from 2010-03-29.
30881         Reported by Simon Josefsson.
30882
30883 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30884
30885         maint.mk: s/_header_without_use/_sc_header_without_use/
30886         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30887         (sc_prohibit_assert_without_use): Use the new name.
30888         (sc_prohibit_close_stream_without_use): Likewise.
30889         (sc_prohibit_getopt_without_use): Likewise.
30890         (sc_prohibit_quotearg_without_use): Likewise.
30891         (sc_prohibit_quote_without_use): Likewise.
30892         (sc_prohibit_long_options_without_use): Likewise.
30893         (sc_prohibit_inttostr_without_use): Likewise.
30894         (sc_prohibit_ignore_value_without_use): Likewise.
30895         (sc_prohibit_error_without_use): Likewise.
30896         (sc_prohibit_xalloc_without_use): Likewise.
30897         (sc_prohibit_hash_without_use): Likewise.
30898         (sc_prohibit_hash_pjw_without_use): Likewise.
30899         (sc_prohibit_safe_read_without_use): Likewise.
30900         (sc_prohibit_argmatch_without_use): Likewise.
30901         (sc_prohibit_canonicalize_without_use): Likewise.
30902         (sc_prohibit_root_dev_ino_without_use): Likewise.
30903         (sc_prohibit_openat_without_use): Likewise.
30904         (sc_prohibit_c_ctype_without_use): Likewise.
30905         (sc_prohibit_signal_without_use): Likewise.
30906         (sc_prohibit_intprops_without_use): Likewise.
30907
30908 2010-03-30  Eric Blake  <eblake@redhat.com>
30909
30910         maint: improve module indicators
30911         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30912         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30913         columns, and avoid extra macro expansion.
30914
30915         fdopendir: work around FreeBSD bug
30916         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30917         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30918         * modules/dirent (Makefile.am): Substitute it.
30919         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30920         declaration.
30921         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30922         fix.
30923         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30924
30925 2010-03-29  Bruno Haible  <bruno@clisp.org>
30926
30927         Emit #pragma system_header after the inclusion guard, not before.
30928         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30929         guard that spans the entire file, not before. This enables an
30930         optimization in GCC's preprocessor.
30931         * lib/ctype.in.h: Likewise.
30932         * lib/dirent.in.h: Likewise.
30933         * lib/errno.in.h: Likewise.
30934         * lib/float.in.h: Likewise.
30935         * lib/getopt.in.h: Likewise.
30936         * lib/iconv.in.h: Likewise.
30937         * lib/langinfo.in.h: Likewise.
30938         * lib/locale.in.h: Likewise.
30939         * lib/math.in.h: Likewise.
30940         * lib/netdb.in.h: Likewise.
30941         * lib/netinet_in.in.h: Likewise.
30942         * lib/pty.in.h: Likewise.
30943         * lib/sched.in.h: Likewise.
30944         * lib/se-selinux.in.h: Likewise.
30945         * lib/search.in.h: Likewise.
30946         * lib/spawn.in.h: Likewise.
30947         * lib/stdarg.in.h: Likewise.
30948         * lib/stdint.in.h: Likewise.
30949         * lib/string.in.h: Likewise.
30950         * lib/strings.in.h: Likewise.
30951         * lib/sys_file.in.h: Likewise.
30952         * lib/sys_ioctl.in.h: Likewise.
30953         * lib/sys_time.in.h: Likewise.
30954         * lib/sys_times.in.h: Likewise.
30955         * lib/sys_utsname.in.h: Likewise.
30956         * lib/sys_wait.in.h: Likewise.
30957         * lib/sysexits.in.h: Likewise.
30958         * lib/wctype.in.h: Likewise.
30959
30960 2010-03-28  James Youngman  <jay@gnu.org>
30961
30962         save-cwd: don't leak a file descriptor when the caller execs.
30963         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30964         saved file descriptor.
30965         * modules/save-cwd (Depends-on): Depend on cloexec.
30966
30967 2010-03-29  Bruno Haible  <bruno@clisp.org>
30968
30969         Remove vestiges of fts-lgpl module.
30970         * lib/fts_.h: Assume GNULIB_FTS is 1.
30971         * lib/fts.c: Likewise.
30972         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30973
30974 2010-03-28  Bruno Haible  <bruno@clisp.org>
30975
30976         Fix definition of tests witness macro.
30977         * gnulib-tool (func_import): Fix definition of witness macro.
30978
30979 2010-03-28  Bruno Haible  <bruno@clisp.org>
30980
30981         Fix ioctl's protoype on glibc systems.
30982         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30983         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30984         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30985         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30986         signature. If not, arrange to replace the ioctl function.
30987         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30988         REPLACE_IOCTL.
30989         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30990         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30991         Reported by Ludovic Courtès <ludo@gnu.org>.
30992
30993 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30994
30995         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30996         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30997         made it so grep -r --include=GLOB* ... did not work.
30998
30999 2010-03-26  Jim Meyering  <meyering@redhat.com>
31000             Eric Blake  <eblake@redhat.com>
31001
31002         maint.mk: prohibit use of test's -o and -a operators
31003         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31004
31005 2010-03-28  Bruno Haible  <bruno@clisp.org>
31006
31007         Remove unused GNULIB_XYZ macro definitions.
31008         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31009         invocation.
31010
31011 2010-03-28  Bruno Haible  <bruno@clisp.org>
31012
31013         Mark privileged tests modules.
31014         * modules/idpriv-drop-tests (Status): New section.
31015         * modules/idpriv-droptemp-tests (Status): New section.
31016
31017 2010-03-28  Bruno Haible  <bruno@clisp.org>
31018
31019         Split C++ tests into separate tests modules.
31020         * modules/dirent-c++-tests: New file, extracted from
31021         modules/dirent-tests.
31022         * modules/dirent-tests: Depend on it.
31023         * modules/fcntl-h-c++-tests: New file, extracted from
31024         modules/fcntl-h-tests.
31025         * modules/fcntl-h-tests: Depend on it.
31026         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31027         * modules/glob-tests: Depend on it.
31028         * modules/iconv-h-c++-tests: New file, extracted from
31029         modules/iconv-h-tests.
31030         * modules/iconv-h-tests: Depend on it.
31031         * modules/langinfo-c++-tests: New file, extracted from
31032         modules/langinfo-tests.
31033         * modules/langinfo-tests: Depend on it.
31034         * modules/locale-c++-tests: New file, extracted from
31035         modules/locale-tests.
31036         * modules/locale-tests: Depend on it.
31037         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31038         * modules/math-tests: Depend on it.
31039         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31040         * modules/pty-tests: Depend on it.
31041         * modules/search-c++-tests: New file, extracted from
31042         modules/search-tests.
31043         * modules/search-tests: Depend on it.
31044         * modules/signal-c++-tests: New file, extracted from
31045         modules/signal-tests.
31046         * modules/signal-tests: Depend on it.
31047         * modules/spawn-c++-tests: New file, extracted from
31048         modules/spawn-tests.
31049         * modules/spawn-tests: Depend on it.
31050         * modules/stdio-c++-tests: New file, extracted from
31051         modules/stdio-tests.
31052         * modules/stdio-tests: Depend on it.
31053         * modules/stdlib-c++-tests: New file, extracted from
31054         modules/stdlib-tests.
31055         * modules/stdlib-tests: Depend on it.
31056         * modules/string-c++-tests: New file, extracted from
31057         modules/string-tests.
31058         * modules/string-tests: Depend on it.
31059         * modules/sys_ioctl-c++-tests: New file, extracted from
31060         modules/sys_ioctl-tests.
31061         * modules/sys_ioctl-tests: Depend on it.
31062         * modules/sys_select-c++-tests: New file, extracted from
31063         modules/sys_select-tests.
31064         * modules/sys_select-tests: Depend on it.
31065         * modules/sys_socket-c++-tests: New file, extracted from
31066         modules/sys_socket-tests.
31067         * modules/sys_socket-tests: Depend on it.
31068         * modules/sys_stat-c++-tests: New file, extracted from
31069         modules/sys_stat-tests.
31070         * modules/sys_stat-tests: Depend on it.
31071         * modules/sys_time-c++-tests: New file, extracted from
31072         modules/sys_time-tests.
31073         * modules/sys_time-tests: Depend on it.
31074         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31075         * modules/time-tests: Depend on it.
31076         * modules/unistd-c++-tests: New file, extracted from
31077         modules/unistd-tests.
31078         * modules/unistd-tests: Depend on it.
31079         * modules/wchar-c++-tests: New file, extracted from
31080         modules/wchar-tests.
31081         * modules/wchar-tests: Depend on it.
31082         * modules/wctype-c++-tests: New file, extracted from
31083         modules/wctype-tests.
31084         * modules/wctype-tests: Depend on it.
31085         Reported by Simon Josefsson.
31086
31087 2010-03-28  Bruno Haible  <bruno@clisp.org>
31088
31089         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31090         * gnulib-tool (func_exists_module): New function, extracted from
31091         func_verify_module.
31092         (func_verify_module): Use it.
31093         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31094         'foo' only if 'foo' exists.
31095         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31096         module.
31097
31098 2010-03-28  Bruno Haible  <bruno@clisp.org>
31099
31100         gnulib-tool: Add support for special categories of tests.
31101         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31102         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31103         (func_usage): Document them.
31104         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31105         inc_unportable_tests, inc_all_tests): New variables.
31106         (func_acceptable): Consider these variables.
31107         (func_modules_transitive_closure): Make it work when the 'Status' field
31108         consists of multiple words.
31109         (func_import): Store and restore the values of inc_cxx_tests,
31110         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31111         inc_all_tests in gnulib-comp.m4.
31112         (func_create_testdir): Set inc_all_tests to true.
31113         * doc/gnulib.texi (Extra tests modules): New section.
31114         Suggested by Jim Meyering.
31115
31116 2010-03-28  Bruno Haible  <bruno@clisp.org>
31117
31118         ansi-c++-opt: Allow turning off the C++ build by default.
31119         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31120         gl_CXX_CHOICE_DEFAULT_NO is defined.
31121         Requested by Eric Blake.
31122
31123 2010-03-28  Bruno Haible  <bruno@clisp.org>
31124
31125         unistd: Avoid #define replacements in C++ mode.
31126         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31127         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31128         setsockopt, shutdown, select): In C++, attach a warning to the function
31129         if possible, rather than #defining the symbol to a dysfunctional alias.
31130         Reported by John W. Eaton <jwe@gnu.org>.
31131
31132 2010-03-28  Bruno Haible  <bruno@clisp.org>
31133
31134         Fix link errors on mingw.
31135         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31136         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31137         $(LIBSOCKET).
31138         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31139         $(LIBSOCKET).
31140
31141 2010-03-28  Bruno Haible  <bruno@clisp.org>
31142             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31143
31144         lib-ignore: Determine different options for different compilers.
31145         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31146         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31147         Add comments.
31148         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31149         * NEWS: Mention the change.
31150
31151 2010-03-27  Bruno Haible  <bruno@clisp.org>
31152
31153         Remove unused GNULIB_XYZ macro definitions.
31154         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31155         * modules/fseek (configure.ac): Likewise.
31156         * modules/ioctl (configure.ac): Likewise.
31157         * modules/open (configure.ac): Likewise.
31158         * modules/stdlib-safer (configure.ac): Likewise.
31159
31160 2010-03-27  Bruno Haible  <bruno@clisp.org>
31161
31162         Add a remark about certain modules.
31163         * modules/malloc (Comment): New section.
31164         * modules/realloc (Comment): Likewise.
31165         * modules/sigpipe (Comment): Likewise.
31166
31167 2010-03-27  Bruno Haible  <bruno@clisp.org>
31168
31169         Resolve conflict between the two kinds of module indicators.
31170         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31171         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31172         * modules/canonicalize (configure.ac): Invoke
31173         gl_MODULE_INDICATOR_FOR_TESTS.
31174         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31175         GNULIB_XYZ.
31176         * tests/test-dirent-c++.cc: Likewise.
31177         * tests/test-dirent-safer.c: Likewise.
31178         * tests/test-dup2.c: Likewise.
31179         * tests/test-fchdir.c: Likewise.
31180         * tests/test-fcntl-h-c++.cc: Likewise.
31181         * tests/test-getopt.c: Likewise.
31182         * tests/test-getopt.h: Likewise.
31183         * tests/test-langinfo-c++.cc: Likewise.
31184         * tests/test-locale-c++.cc: Likewise.
31185         * tests/test-math-c++.cc: Likewise.
31186         * tests/test-pty-c++.cc: Likewise.
31187         * tests/test-search-c++.cc: Likewise.
31188         * tests/test-signal-c++.cc: Likewise.
31189         * tests/test-spawn-c++.cc: Likewise.
31190         * tests/test-stdio-c++.cc: Likewise.
31191         * tests/test-stdlib-c++.cc: Likewise.
31192         * tests/test-string-c++.cc: Likewise.
31193         * tests/test-sys_ioctl-c++.cc: Likewise.
31194         * tests/test-sys_select-c++.cc: Likewise.
31195         * tests/test-sys_socket-c++.cc: Likewise.
31196         * tests/test-sys_stat-c++.cc: Likewise.
31197         * tests/test-sys_time-c++.cc: Likewise.
31198         * tests/test-time-c++.cc: Likewise.
31199         * tests/test-unistd-c++.cc: Likewise.
31200         * tests/test-wchar-c++.cc: Likewise.
31201         * tests/uninorm/test-u8-nfc.c: Likewise.
31202         * tests/uninorm/test-u8-nfd.c: Likewise.
31203         * tests/uninorm/test-u8-nfkc.c: Likewise.
31204         * tests/uninorm/test-u8-nfkd.c: Likewise.
31205         * tests/uninorm/test-u16-nfc.c: Likewise.
31206         * tests/uninorm/test-u16-nfd.c: Likewise.
31207         * tests/uninorm/test-u16-nfkc.c: Likewise.
31208         * tests/uninorm/test-u16-nfkd.c: Likewise.
31209         * tests/uninorm/test-u32-nfc.c: Likewise.
31210         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31211         * tests/uninorm/test-u32-nfd.c: Likewise.
31212         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31213         * tests/uninorm/test-u32-nfkc.c: Likewise.
31214         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31215         * tests/uninorm/test-u32-nfkd.c: Likewise.
31216         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31217         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31218
31219 2010-03-27  Bruno Haible  <bruno@clisp.org>
31220
31221         Distinguish two kinds of module indicators.
31222         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31223         gl_MODULE_INDICATOR.
31224         (gl_MODULE_INDICATOR): New macro.
31225         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31226         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31227         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31228         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31229         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31230         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31231         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31232         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31233         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31234         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31235         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31236         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31237         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31238         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31239         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31240         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31241         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31242         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31243         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31244         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31245         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31246         * modules/cloexec (configure.ac): Likewise.
31247         * modules/getopt-gnu (configure.ac): Likewise.
31248         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31249         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31250         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31251         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31252
31253 2010-03-27  Bruno Haible  <bruno@clisp.org>
31254
31255         New module description field 'Comment'.
31256         * gnulib-tool: New option --extract-comment.
31257         (func_usage): Document it.
31258         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31259         (func_get_comment): New function.
31260         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31261
31262 2010-03-27  Bruno Haible  <bruno@clisp.org>
31263
31264         Addendum to 2010-02-07 commit.
31265         * gnulib-tool (func_usage): Document --extract-applicability option.
31266
31267 2010-03-27  Bruno Haible  <bruno@clisp.org>
31268
31269         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31270         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31271         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31272         rather than link errors.
31273
31274 2010-03-27  Bruno Haible  <bruno@clisp.org>
31275
31276         Avoid side effects from tests-related modules on the compilation of lib.
31277         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31278         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31279         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31280         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31281         macro.
31282         (func_import): Define a witness macro. Assign it a value that depends
31283         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31284         tests-related modules.
31285         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31286         Reported by Jim Meyering.
31287
31288 2010-03-27  Bruno Haible  <bruno@clisp.org>
31289
31290         Factorize common .m4 code.
31291         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31292         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31293         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31294         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31295         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31296         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31297         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31298         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31299         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31300         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31301         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31302         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31303         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31304         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31305         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31306         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31307         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31308         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31309         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31310         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31311         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31312         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31313         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31314         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31315         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31316         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31317         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31318         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31319         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31320         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31321         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31322         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31323
31324 2010-03-27  Bruno Haible  <bruno@clisp.org>
31325
31326         Fix a compilation error on Cygwin with g++ >= 4.3.
31327         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31328         if it is undefined or if we alias it to chmod.
31329         (lstat): Don't warn about the use of this function if it is undefined
31330         or if we alias it to stat.
31331         Reported by Simon Josefsson.
31332
31333 2010-03-27  Bruno Haible  <bruno@clisp.org>
31334
31335         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31336         * modules/getlogin (configure.ac): Update.
31337
31338         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31339         * modules/getlogin_r (configure.ac): Update.
31340
31341         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31343         * modules/inet_ntop (configure.ac): Update.
31344
31345         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31346         * modules/inet_pton (configure.ac): Update.
31347
31348         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31349         * modules/mbslen (configure.ac): Update.
31350
31351         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31352         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31353         * modules/forkpty (configure.ac): Update.
31354         * modules/openpty (configure.ac): Update.
31355
31356 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31357
31358         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31359         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31360
31361 2010-03-25  Eric Blake  <eblake@redhat.com>
31362
31363         maint: use pragma consistently across replacement headers
31364         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31365         * lib/dirent.in.h (system_header): Likewise.
31366         * lib/errno.in.h (system_header): Likewise.
31367         * lib/float.in.h (system_header): Likewise.
31368         * lib/getopt.in.h (system_header): Likewise.
31369         * lib/iconv.in.h (system_header): Likewise.
31370         * lib/inttypes.in.h (system_header): Likewise.
31371         * lib/langinfo.in.h (system_header): Likewise.
31372         * lib/locale.in.h (system_header): Likewise.
31373         * lib/math.in.h (system_header): Likewise.
31374         * lib/netdb.in.h (system_header): Likewise.
31375         * lib/netinet_in.in.h (system_header): Likewise.
31376         * lib/pty.in.h (system_header): Likewise.
31377         * lib/sched.in.h (system_header): Likewise.
31378         * lib/se-selinux.in.h (system_header): Likewise.
31379         * lib/search.in.h (system_header): Likewise.
31380         * lib/spawn.in.h (system_header): Likewise.
31381         * lib/stdarg.in.h (system_header): Likewise.
31382         * lib/stdint.in.h (system_header): Likewise.
31383         * lib/string.in.h (system_header): Likewise.
31384         * lib/strings.in.h (system_header): Likewise.
31385         * lib/sys_file.in.h (system_header): Likewise.
31386         * lib/sys_ioctl.in.h (system_header): Likewise.
31387         * lib/sys_socket.in.h (system_header): Likewise.
31388         * lib/sys_times.in.h (system_header): Likewise.
31389         * lib/sys_utsname.in.h (system_header): Likewise.
31390         * lib/sys_wait.in.h (system_header): Likewise.
31391         * lib/sysexits.in.h (system_header): Likewise.
31392         * lib/unistd.in.h (system_header): Likewise.
31393         * lib/wctype.in.h (system_header): Likewise.
31394
31395         arpa/inet: fix mingw compilation warning
31396         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31397         Reported by Matthew Bolte.
31398
31399 2010-03-25  Bruno Haible  <bruno@clisp.org>
31400
31401         Avoid collision between gnulib wrapper and libintl wrapper.
31402         * lib/printf.c (printf): Don't define if a printf wrapper is already
31403         defined in intl/printf.c.
31404         Reported by Michel Boaventura <michel@michelboaventura.com>.
31405
31406 2010-03-25  Bruno Haible  <bruno@clisp.org>
31407
31408         Use ANSI C.
31409         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31410
31411 2010-03-25  Bruno Haible  <bruno@clisp.org>
31412
31413         Minor formatting changes.
31414         * lib/acosl.c: Insert space before function argument list.
31415         * lib/argz.c: Likewise.
31416         * lib/asinl.c: Likewise.
31417         * lib/expl.c: Likewise.
31418         * lib/gen-uni-tables.c: Likewise.
31419         * lib/gettext.h: Likewise.
31420         * lib/glthread/lock.h: Likewise.
31421         * lib/tanl.c: Likewise.
31422         * lib/uniname/uniname.c: Likewise.
31423         * tests/test-idpriv-drop.c: Likewise.
31424         * tests/test-idpriv-droptemp.c: Likewise.
31425         * tests/test-lock.c: Likewise.
31426         * tests/test-tls.c: Likewise.
31427         * lib/argp-help.c: Insert space before function-like macro argument
31428         list.
31429         * lib/memcmp.c: Likewise.
31430         * tests/test-base64.c: Likewise.
31431         * lib/localename.c: Insert space before sizeof's argument list.
31432         * lib/safe-alloc.h: Likewise.
31433         * lib/file-set.h: Insert space before macro argument list.
31434         * tests/test-argp.c: Likewise.
31435         * lib/argp-namefrob.h: Insert space before function parameter list.
31436         * lib/getaddrinfo.c: Likewise.
31437         * lib/netdb.in.h: Likewise.
31438         * lib/parse-duration.h: Likewise.
31439         * lib/parse-duration.c: Likewise.
31440         * lib/poll.c: Likewise.
31441         * lib/select.c: Likewise.
31442         * lib/trim.h: Likewise.
31443         * tests/test-usleep.c: Likewise.
31444         * lib/ldexpl.c: Insert space before function parameter list and before
31445         function argument list.
31446         * lib/logl.c: Likewise.
31447         * lib/sqrtl.c: Likewise.
31448         * lib/trim.c: Likewise.
31449         * lib/cosl.c: Use GNU style indentation. Insert space before function
31450         argument list.
31451         * lib/sinl.c: Likewise.
31452         * lib/tsearch.c: Insert space after 'for'.
31453         Reported by Jim Meyering.
31454
31455 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31456
31457         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31458         config header before grepping, as it's not present before
31459         autoreconf/configure are run.  Reported by Simon Josefsson.
31460
31461 2010-03-23  Bruno Haible  <bruno@clisp.org>
31462
31463         pt_chown: Make it work with automake < 1.11.
31464         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31465         Reported by Simon Josefsson.
31466
31467 2010-03-23  Bruno Haible  <bruno@clisp.org>
31468
31469         pt_chown: Don't depend on GPLed modules.
31470         * lib/pt_chown.c: Don't include idpriv.h.
31471         (main): Don't drop privileges.
31472         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31473         Reported by Simon Josefsson.
31474
31475 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31476
31477         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31478         suggestions from karl@freefriends.org (Karl Berry).
31479
31480 2010-03-22  Eric Blake  <eblake@redhat.com>
31481
31482         gethostname: further tweaks
31483         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31484         are overriding gethostname.
31485         Suggested by Bruno Haible.
31486
31487 2010-03-21  Bruno Haible  <bruno@clisp.org>
31488
31489         Fix comments.
31490         * lib/forkpty.c (rpl_forkpty): Fix comment.
31491         * lib/openpty.c (rpl_openpty): Likewise.
31492         Reported by Eric Blake.
31493
31494 2010-03-22  Eric Blake  <eblake@redhat.com>
31495
31496         gethostname: fix build on mingw
31497         * lib/unistd.in.h (includes): Work around fact that mingw
31498         <winsock2.h> re-includes <unistd.h>, by avoiding any
31499         redeclarations if we are being included by <winsock2.h>.
31500         Reported by Matthias Bolte.
31501
31502 2010-03-21  Bruno Haible  <bruno@clisp.org>
31503
31504         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31505         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31506         modifications.
31507         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31508         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31509         provide the replacement.
31510         * modules/forkpty (Depends-on): Add openpty, login_tty.
31511         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31512         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31513         * doc/glibc-functions/forkpty.texi: More supported platforms.
31514         * config/srclist.txt: Add forkpty.c (commented).
31515
31516 2010-03-21  Bruno Haible  <bruno@clisp.org>
31517
31518         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31519         (Makefile.am): Verify that PTY_LIB is defined.
31520
31521         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31522
31523 2010-03-21  Bruno Haible  <bruno@clisp.org>
31524
31525         Tests for module 'login_tty'.
31526         * modules/login_tty-tests: New file.
31527         * tests/test-login_tty.c: New file.
31528
31529         New module 'login_tty'.
31530         * lib/login_tty.c: New file.
31531         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31532         * modules/login_tty: New file.
31533         * doc/glibc-functions/login_tty.texi: Mention the new module.
31534
31535 2010-03-21  Bruno Haible  <bruno@clisp.org>
31536
31537         login_tty: Documentation.
31538         * doc/glibc-functions/login_tty.texi: New file.
31539         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31540
31541 2010-03-21  Bruno Haible  <bruno@clisp.org>
31542
31543         pty: Consistent macro naming.
31544         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31545         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31546         * modules/pty (configure.ac): Update.
31547
31548 2010-03-21  Bruno Haible  <bruno@clisp.org>
31549
31550         Tests for openpty: Make stricter.
31551         * tests/test-openpty.c (main): Add test of canonical processing and
31552         erase.
31553         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31554
31555         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31556         * lib/openpty.c (openpty): New replacement function.
31557         * lib/pty.in.h: Include <termios.h>.
31558         (openpty): Update declaration. Add comments.
31559         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31560         is not declared, arrange to provide the replacement. Check for _getpty
31561         and posix_openpt.
31562         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31563         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31564         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31565         * modules/pty-tests (test_pty_c___LDADD): New variable.
31566         * doc/glibc-functions/openpty.texi: More supported platforms.
31567
31568 2010-03-21  Bruno Haible  <bruno@clisp.org>
31569
31570         setenv: Tweaks.
31571         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31572         the test program.
31573         * doc/posix-functions/setenv.texi: Update platforms list.
31574
31575 2010-03-21  Bruno Haible  <bruno@clisp.org>
31576
31577         New module 'unlockpt'.
31578         * lib/unlockpt.c: New file, from glibc with modifications.
31579         * m4/unlockpt.m4: New file.
31580         * modules/unlockpt: New file.
31581         * lib/stdlib.in.h (unlockpt): New declaration.
31582         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31583         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31584         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31585         HAVE_UNLOCKPT.
31586         * doc/posix-functions/unlockpt.texi: Mention the new module.
31587         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31588         * config/srclist.txt: Add unlockpt.c (commented).
31589
31590 2010-03-21  Jim Meyering  <meyering@redhat.com>
31591
31592         maint.mk: prohibit inclusion of "intprops.h" without use
31593         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31594
31595 2010-03-21  Bruno Haible  <bruno@clisp.org>
31596
31597         New module 'grantpt'.
31598         * lib/grantpt.c: New file, from glibc with modifications.
31599         * m4/grantpt.m4: New file.
31600         * modules/grantpt: New file.
31601         * lib/stdlib.in.h (grantpt): New declaration.
31602         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31603         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31604         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31605         HAVE_GRANTPT.
31606         * doc/posix-functions/grantpt.texi: Mention the new module.
31607         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31608         * config/srclist.txt: Add grantpt.c (commented).
31609
31610 2010-03-21  Bruno Haible  <bruno@clisp.org>
31611
31612         New module 'pt_chown'.
31613         * lib/pt_chown.c: New file, from glibc with modifications.
31614         * lib/pty-private.h: New file, from glibc with modifications.
31615         * modules/pt_chown: New file.
31616         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31617
31618 2010-03-21  Bruno Haible  <bruno@clisp.org>
31619
31620         Tests for module 'ptsname'.
31621         * modules/ptsname-tests: New file.
31622         * tests/test-ptsname.c: New file.
31623
31624         New module 'ptsname'.
31625         * lib/ptsname.c: New file, from glibc with modifications.
31626         * m4/ptsname.m4: New file.
31627         * modules/ptsname: New file.
31628         * lib/stdlib.in.h (ptsname): New declaration.
31629         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31630         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31631         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31632         HAVE_PTSNAME.
31633         * doc/posix-functions/ptsname.texi: Mention the new module.
31634         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31635         * config/srclist.txt: Add ptsname.c (commented).
31636
31637 2010-03-21  Bruno Haible  <bruno@clisp.org>
31638
31639         Tests for module 'ttyname_r'.
31640         * modules/ttyname_r-tests: New file.
31641         * tests/test-ttyname_r.c: New file.
31642
31643         New module 'ttyname_r'.
31644         * lib/ttyname_r.c: New file.
31645         * m4/ttyname_r.m4: New file.
31646         * modules/ttyname_r: New file.
31647         * lib/unistd.in.h (ttyname_r): New declaration.
31648         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31649         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31650         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31651         HAVE_TTYNAME_R.
31652         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31653         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31654
31655 2010-03-20  Bruno Haible  <bruno@clisp.org>
31656
31657         signal: Undefine macro definitions in C++ mode.
31658         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31659         sigfillset): Undefine macro definitions from the system header in C++
31660         mode.
31661         Reported by John W. Eaton <jwe@gnu.org>.
31662
31663 2010-03-20  Bruno Haible  <bruno@clisp.org>
31664
31665         Ensure no #include statements inside extern "C" { ... }.
31666         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31667         contain #include statements.
31668         * lib/time.in.h: Likewise.
31669
31670 2010-03-20  Bruno Haible  <bruno@clisp.org>
31671
31672         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31673         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31674         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31675         Reported by John W. Eaton <jwe@gnu.org>.
31676
31677 2010-03-20  Bruno Haible  <bruno@clisp.org>
31678
31679         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31680         Reported by Jim Meyering.
31681
31682 2010-03-20  Bruno Haible  <bruno@clisp.org>
31683
31684         pipe: Set errno upon failure.
31685         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31686         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31687         errno value in error message.
31688
31689 2010-03-20  Bruno Haible  <bruno@clisp.org>
31690             Jim Meyering  <meyering@redhat.com>
31691
31692         lchown: Avoid "unused variable" warning.
31693         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31694
31695 2010-03-20  Bruno Haible  <bruno@clisp.org>
31696
31697         Work around unlink() bug on MacOS X 10.5.6.
31698         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31699         attempting to unlink a parent directory.
31700         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31701         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31702         activate for the replacement function.
31703         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31704
31705 2010-03-20  Bruno Haible  <bruno@clisp.org>
31706
31707         Fix link errors on Solaris 8.
31708         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31709         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31710
31711 2010-03-19  Jim Meyering  <meyering@redhat.com>
31712
31713         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31714         The _LIBC implementation of build_range_exp correctly honors the
31715         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31716         However, the non-_LIBC implementation would ignore that syntax-bit
31717         flag and return REG_ERANGE unconditionally.
31718         This change makes it honor that flag.
31719         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31720         Make two pointer parameters "const".
31721         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31722         (parse_bracket_exp): Update caller.
31723
31724         regex.m4: correct the reversed range endpoint ([b-a]) test
31725         * m4/regex.m4: When requiring that [b-a] evoke failure,
31726         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31727         test pass once again for x86-based systems.
31728
31729 2010-03-19  Bruno Haible  <bruno@clisp.org>
31730
31731         scandir: Fix link error on Solaris 8.
31732         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31733         macros.
31734
31735 2010-03-19  Bruno Haible  <bruno@clisp.org>
31736
31737         getusershell: Fix documentation.
31738         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31739         module.
31740         * doc/glibc-functions/setusershell.texi: Likewise.
31741
31742         getusershell: Provide declaration, missing on Solaris 9.
31743         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31744         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31745         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31746         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31748         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31749         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31750         HAVE_GETUSERSHELL.
31751         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31752
31753 2010-03-19  Bruno Haible  <bruno@clisp.org>
31754
31755         wctype: Provide iswblank function.
31756         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31757         exists and is fine.
31758         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31759         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31760         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31761         * doc/posix-functions/iswblank.texi: Update.
31762
31763 2010-03-19  Bruno Haible  <bruno@clisp.org>
31764
31765         Tests of module 'pty' in C++ mode.
31766         * modules/pty-tests: New file.
31767         * tests/test-pty-c++.cc: New file.
31768         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31769
31770 2010-03-19  Eric Blake  <eblake@redhat.com>
31771
31772         logb: fix documentation
31773         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31774         1.5 declaration bug.
31775
31776         forkpty, openpty: prefer glibc's const-safe prototype
31777         * lib/forkpty.c (rpl_forkpty): New file.
31778         * lib/openpty.c (rpl_openpty): Likewise.
31779         * modules/forkpty (Files): Distribute it.
31780         * modules/openpty (Files): Likewise.
31781         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31782         check...
31783         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31784         replacement for for non-const BSD signature.
31785         * modules/pty (Makefile.am): Substitute witnesses.
31786         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31787         * tests/test-forkpty.c: Update signature check.
31788         * tests/test-openpty.c: Likewise.
31789         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31790         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31791
31792         forkpty, openpty: split functions into new modules
31793         * modules/pty (Makefile.am): Substitute new witnesses.
31794         (Libraries): Move library detection...
31795         * modules/forkpty: ...into new module.
31796         * modules/openpty: Another new module.
31797         * modules/pty-tests: Rename and split...
31798         * modules/forkpty-tests: ...to this...
31799         * modules/openpty-tests: ...and this.
31800         * tests/test-pty.c: Rename and split...
31801         * tests/test-forkpty.c: ...to this...
31802         * tests/test-openpty.c: ...and this.
31803         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31804         (gl_PTY): Split library searching...
31805         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31806         (gl_FORKPTY, gl_OPENPTY): New macros.
31807         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31808         * NEWS: Mention the split.
31809         * MODULES.html.sh (Misc): Document the modules.
31810         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31811         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31812
31813         pty: improve replacement header
31814         * lib/pty.in.h: New file.
31815         * modules/pty (Files): Ship it.
31816         (Makefile.am): Always build replacement.
31817         * m4/pty.m4: Rename...
31818         * m4/pty_h.m4: ...to this.
31819         (gl_PTY): Modernize setting of witness macros; update check of
31820         forkpty to take proper advantage of cache.
31821         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31822
31823         getopt: avoid compiler warning
31824         * lib/getopt.c (attribute_hidden): Remove unused macro.
31825
31826 2010-03-18  Bruno Haible  <bruno@clisp.org>
31827
31828         Fix link errors on Solaris 8.
31829         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31830         * modules/search-tests (test_search_c___LDADD): Likewise.
31831         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31832         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31833         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31834         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31835         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31836         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31837         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31838
31839 2010-03-18  Bruno Haible  <bruno@clisp.org>
31840
31841         Fix bug introduced on 2010-03-14.
31842         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31843         (gl_SPAWN_H): Require it.
31844         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31845         Reported by Simon Josefsson.
31846
31847 2010-03-18  Bruno Haible  <bruno@clisp.org>
31848
31849         Fix typo introduced on 2009-12-31.
31850         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31851         posix_spawn_file_actions_adddup2.
31852
31853 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31854         and Eric Blake  <eblake@redhat.com>
31855
31856         test-vc-list-files-git: make more robust
31857         * tests/test-vc-list-files-git.sh: Unset problematic environment
31858         variables.  Chain commands together.
31859
31860 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31861
31862         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31863         `AC_CHECK_DECL' invocation.
31864
31865 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31866
31867         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31868         appears before executable statements. Suggested by Petr Sumbera
31869         <Petr.Sumbera@Sun.COM>.
31870
31871 2010-03-14  Bruno Haible  <bruno@clisp.org>
31872
31873         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31874         portability problems. Instead use a simpler test.
31875         (main): Check that invalid arguments are rejected only on Linux.
31876
31877 2010-03-14  Bruno Haible  <bruno@clisp.org>
31878
31879         Fix bug introduced on 2009-12-31.
31880         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31881         gl_PREREQ_SYS_H_WINSOCK2 always.
31882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31883         SYS_SOCKET_H variable.
31884         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31885         Update comments.
31886         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31887         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31888         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31889         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31890         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31891
31892 2010-03-14  Bruno Haible  <bruno@clisp.org>
31893
31894         Fix values returned by sinl, cosl.
31895         * lib/trigl.h: Add specification comments.
31896         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31897         that combines the values from the precomputed table with the values of
31898         the Chebyshev polynomials.
31899
31900 2010-03-14  Bruno Haible  <bruno@clisp.org>
31901
31902         Fix compilation error when modules 'posix_spawn[p]' are not used.
31903         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31904         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31905
31906 2010-03-14  Bruno Haible  <bruno@clisp.org>
31907
31908         Fix compilation error on mingw when module 'time_r' is not used.
31909         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31910         is 1.
31911         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31912         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31913         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31914         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31915
31916 2010-03-14  Bruno Haible  <bruno@clisp.org>
31917
31918         Fix compilation error with Sun C.
31919         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31920         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31921         instead of GCC specific ULONG_LONG_MAX.
31922         * lib/xstrtoll.c: Likewise.
31923         * lib/xstrtoull.c: Likewise.
31924
31925 2010-03-13  Bruno Haible  <bruno@clisp.org>
31926
31927         Allow the user to disable C++ code and tests.
31928         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31929         (gl_PROG_ANSI_CXX): Require it.
31930
31931 2010-03-13  Bruno Haible  <bruno@clisp.org>
31932
31933         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31934         cases.
31935
31936 2010-03-13  Bruno Haible  <bruno@clisp.org>
31937
31938         Test that gnulib does not break the standard C++ headers.
31939         * tests/test-locale-c++2.cc: New file.
31940         * modules/locale-tests (Files): Add it.
31941         (Makefile.am): Compile it for test-locale-c++.
31942         * tests/test-math-c++2.cc: New file.
31943         * modules/math-tests (Files): Add it.
31944         (Makefile.am): Compile it for test-math-c++.
31945         * tests/test-signal-c++2.cc: New file.
31946         * modules/signal-tests (Files): Add it.
31947         (Makefile.am): Compile it for test-signal-c++.
31948         * tests/test-stdio-c++2.cc: New file.
31949         * modules/stdio-tests (Files): Add it.
31950         (Makefile.am): Compile it for test-stdio-c++.
31951         * tests/test-stdlib-c++2.cc: New file.
31952         * modules/stdlib-tests (Files): Add it.
31953         (Makefile.am): Compile it for test-stdlib-c++.
31954         * tests/test-string-c++2.cc: New file.
31955         * modules/string-tests (Files): Add it.
31956         (Makefile.am): Compile it for test-string-c++.
31957         * tests/test-time-c++2.cc: New file.
31958         * modules/time-tests (Files): Add it.
31959         (Makefile.am): Compile it for test-time-c++.
31960         Reported by John W. Eaton <jwe@gnu.org>.
31961
31962 2010-03-13  Bruno Haible  <bruno@clisp.org>
31963
31964         * gnulib-tool (func_usage): Clarify which options are available for
31965         --create-testdir and --create-megatestdir.
31966
31967 2010-03-13  Bruno Haible  <bruno@clisp.org>
31968
31969         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31970         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31971         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31972         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31973         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31974         when appropriate.
31975         Reported by Jim Meyering.
31976
31977 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31978
31979         * gnulib-tool (func_import): Explain origin of code.
31980
31981 2010-03-12  Bruno Haible  <bruno@clisp.org>
31982
31983         Fix problem with automake's definition of CXXLINK.
31984         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31985         Reported by Simon Josefsson and Ludovic Courtès.
31986
31987 2010-03-12  Bruno Haible  <bruno@clisp.org>
31988
31989         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31990         stable releases.
31991
31992 2010-03-11  Bruno Haible  <bruno@clisp.org>
31993
31994         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31995         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31996         whether the system provides one variant or multiple variants of the
31997         function.
31998         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31999         C++ compilers.
32000         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32001         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32002         Reported by Jim Meyering.
32003
32004 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32005
32006         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32007
32008 2010-03-08  Bruno Haible  <bruno@clisp.org>
32009
32010         gnulib-tool: Add support for --libtool in --create-testdir.
32011         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32012         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32013
32014 2010-03-08  Eric Blake  <eblake@redhat.com>
32015
32016         gnulib-tool.texi: mention possibility of git submodule
32017         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32018         submodules.
32019         * doc/.gitignore: Ignore another generated file.
32020
32021 2010-03-08  Karl Berry  <karl@gnu.org>
32022
32023         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32024         of committing gnulib files while skipping others.
32025
32026 2010-03-07  Bruno Haible  <bruno@clisp.org>
32027
32028         Tests of module 'wctype' in C++ mode.
32029         * tests/test-wctype-c++.cc: New file.
32030         * modules/wctype-tests (Files): Add it and tests/signature.h.
32031         (Depends-on): Add ansi-c++-opt.
32032         (Makefile.am): Arrange to compile and run test-wctype-c++.
32033
32034         Tests of module 'wchar' in C++ mode.
32035         * tests/test-wchar-c++.cc: New file.
32036         * modules/wchar-tests (Files): Add it and tests/signature.h.
32037         (Depends-on): Add ansi-c++-opt.
32038         (Makefile.am): Arrange to compile and run test-wchar-c++.
32039         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32040         gl_MODULE_INDICATOR.
32041
32042         Tests of module 'unistd' in C++ mode.
32043         * tests/test-unistd-c++.cc: New file.
32044         * modules/unistd-tests (Files): Add it and tests/signature.h.
32045         (Depends-on): Add ansi-c++-opt.
32046         (Makefile.am): Arrange to compile and run test-unistd-c++.
32047         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32048         gl_MODULE_INDICATOR.
32049
32050         Tests of module 'time' in C++ mode.
32051         * tests/test-time-c++.cc: New file.
32052         * modules/time-tests (Files): Add it and tests/signature.h.
32053         (Depends-on): Add ansi-c++-opt.
32054         (Makefile.am): Arrange to compile and run test-time-c++.
32055         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32056
32057         Tests of module 'sys_time' in C++ mode.
32058         * tests/test-sys_time-c++.cc: New file.
32059         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32060         (Depends-on): Add ansi-c++-opt.
32061         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32062         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32063         gl_MODULE_INDICATOR.
32064
32065         Tests of module 'sys_stat' in C++ mode.
32066         * tests/test-sys_stat-c++.cc: New file.
32067         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32068         (Depends-on): Add ansi-c++-opt.
32069         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32070         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32071         gl_MODULE_INDICATOR.
32072
32073         Tests of module 'sys_socket' in C++ mode.
32074         * tests/test-sys_socket-c++.cc: New file.
32075         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32076         (Depends-on): Add ansi-c++-opt.
32077         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32078         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32079         gl_MODULE_INDICATOR.
32080
32081         Tests of module 'sys_select' in C++ mode.
32082         * tests/test-sys_select-c++.cc: New file.
32083         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32084         (Depends-on): Add ansi-c++-opt.
32085         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32086         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32087         gl_MODULE_INDICATOR.
32088
32089         Tests of module 'sys_ioctl' in C++ mode.
32090         * tests/test-sys_ioctl-c++.cc: New file.
32091         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32092         (Depends-on): Add ansi-c++-opt.
32093         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32094         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32095         gl_MODULE_INDICATOR.
32096
32097         Tests of module 'string' in C++ mode.
32098         * tests/test-string-c++.cc: New file.
32099         * modules/string-tests (Files): Add it and tests/signature.h.
32100         (Depends-on): Add ansi-c++-opt.
32101         (Makefile.am): Arrange to compile and run test-string-c++.
32102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32103         gl_MODULE_INDICATOR.
32104
32105         Tests of module 'stdlib' in C++ mode.
32106         * tests/test-stdlib-c++.cc: New file.
32107         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32108         (Depends-on): Add ansi-c++-opt.
32109         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32110         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32111         gl_MODULE_INDICATOR.
32112
32113         Tests of module 'stdio' in C++ mode.
32114         * tests/test-stdio-c++.cc: New file.
32115         * modules/stdio-tests (Files): Add it and tests/signature.h.
32116         (Depends-on): Add ansi-c++-opt.
32117         (Makefile.am): Arrange to compile and run test-stdio-c++.
32118         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32119         gl_MODULE_INDICATOR.
32120
32121         Tests of module 'spawn' in C++ mode.
32122         * tests/test-spawn-c++.cc: New file.
32123         * modules/spawn-tests (Files): Add it and tests/signature.h.
32124         (Depends-on): Add ansi-c++-opt.
32125         (Makefile.am): Arrange to compile and run test-spawn-c++.
32126         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32127         gl_MODULE_INDICATOR.
32128
32129         Tests of module 'signal' in C++ mode.
32130         * tests/test-signal-c++.cc: New file.
32131         * modules/signal-tests (Files): Add it and tests/signature.h.
32132         (Depends-on): Add ansi-c++-opt.
32133         (Makefile.am): Arrange to compile and run test-signal-c++.
32134         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32135         gl_MODULE_INDICATOR.
32136
32137         Tests of module 'search' in C++ mode.
32138         * tests/test-search-c++.cc: New file.
32139         * modules/search-tests (Files): Add it and tests/signature.h.
32140         (Depends-on): Add ansi-c++-opt.
32141         (Makefile.am): Arrange to compile and run test-search-c++.
32142         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32143         gl_MODULE_INDICATOR.
32144
32145         Tests of module 'math' in C++ mode.
32146         * tests/test-math-c++.cc: New file.
32147         * modules/math-tests (Files): Add it and tests/signature.h.
32148         (Depends-on): Add ansi-c++-opt.
32149         (Makefile.am): Arrange to compile and run test-math-c++.
32150         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32151
32152         Tests of module 'locale' in C++ mode.
32153         * tests/test-locale-c++.cc: New file.
32154         * modules/locale-tests (Files): Add it and tests/signature.h.
32155         (Depends-on): Add ansi-c++-opt.
32156         (Makefile.am): Arrange to compile and run test-locale-c++.
32157         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32158         gl_MODULE_INDICATOR.
32159
32160         Tests of module 'langinfo' in C++ mode.
32161         * tests/test-langinfo-c++.cc: New file.
32162         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32163         (Depends-on): Add ansi-c++-opt.
32164         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32165         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32166         gl_MODULE_INDICATOR.
32167
32168         Tests of module 'iconv-h' in C++ mode.
32169         * tests/test-iconv-h-c++.cc: New file.
32170         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32171         (Depends-on): Add ansi-c++-opt.
32172         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32173
32174         Tests of module 'glob' in C++ mode.
32175         * tests/test-glob-c++.cc: New file.
32176         * modules/glob-tests (Files): Add it.
32177         (Depends-on): Add ansi-c++-opt.
32178         (Makefile.am): Arrange to compile and run test-glob-c++.
32179
32180         Tests of module 'fcntl-h' in C++ mode.
32181         * tests/test-fcntl-h-c++.cc: New file.
32182         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32183         (Depends-on): Add ansi-c++-opt.
32184         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32185         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32186         gl_MODULE_INDICATOR.
32187
32188         Tests of module 'dirent' in C++ mode.
32189         * tests/test-dirent-c++.cc: New file.
32190         * modules/dirent-tests (Files): Add it and tests/signature.h.
32191         (Depends-on): Add ansi-c++-opt.
32192         (Makefile.am): Arrange to compile and run test-dirent-c++.
32193         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32194         gl_MODULE_INDICATOR.
32195
32196         New module 'ansi-c++-opt'.
32197         * modules/ansi-c++-opt: New file.
32198         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32199
32200         Document C++ namespace mode.
32201         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32202
32203         wctype: Avoid #define replacements in C++ mode.
32204         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32205         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32206         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32207         In C++, define a namespaced alias symbol.
32208         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32209         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32210         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32211         rule.
32212
32213         wchar: Avoid #define replacements in C++ mode.
32214         * lib/wchar.in.h: Include c++defs.h.
32215         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32216         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32217         symbol.
32218         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32219         * modules/wchar (Depends-on): Add c++defs.
32220         (Makefile.am): Update wchar.h rule.
32221
32222         unistd: Avoid #define replacements in C++ mode.
32223         * lib/unistd.in.h: Include c++defs.h.
32224         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32225         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32226         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32227         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32228         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32229         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32230         symbol.
32231         (environ): Update.
32232         * modules/unistd (Depends-on): Add c++defs.
32233         (Makefile.am): Update unistd.h rule.
32234
32235         time: Avoid #define replacements in C++ mode.
32236         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32237         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32238         define a namespaced alias symbol.
32239         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32240         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32241         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32242         * modules/time (Depends-on): Add c++defs, warn-on-use.
32243         (Makefile.am): Update time.h rule.
32244         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32245         * modules/nanosleep (configure.ac): Likewise.
32246         * modules/strptime (configure.ac): Likewise.
32247         * modules/timegm (configure.ac): Likewise.
32248
32249         sys_time: Avoid #define replacements in C++ mode.
32250         * lib/sys_time.in.h: Include c++defs.h.
32251         (gettimeofday): In C++, define a namespaced alias symbol.
32252         * modules/sys_time (Depends-on): Add c++defs.
32253         (Makefile.am): Update sys/time.h rule.
32254
32255         sys_stat: Avoid #define replacements in C++ mode.
32256         * lib/sys_stat.in.h: Include c++defs.h.
32257         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32258         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32259         namespaced alias symbol.
32260         In C++, define a namespaced alias symbol.
32261         * modules/sys_stat (Depends-on): Add c++defs.
32262         (Makefile.am): Update sys/stat.h rule.
32263
32264         sys_socket: Avoid #define replacements in C++ mode.
32265         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32266         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32267         definitions also when the system has a <sys/socket.h>.
32268         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32269         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32270         In C++, define a namespaced alias symbol.
32271         * modules/sys_socket (Depends-on): Add c++defs.
32272         (Makefile.am): Update sys/socket.h rule.
32273
32274         sys_select: Avoid #define replacements in C++ mode.
32275         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32276         definitions also when the system has a <sys/select.h>.
32277         (select): In C++, define a namespaced alias symbol.
32278         * modules/sys_select (Depends-on): Add c++defs.
32279         (Makefile.am): Update sys/select.h rule.
32280
32281         sys_ioctl: Avoid #define replacements in C++ mode.
32282         * lib/sys_ioctl.in.h: Include c++defs.h.
32283         (ioctl): In C++, define a namespaced alias symbol.
32284         * modules/sys_ioctl (Depends-on): Add c++defs.
32285         (Makefile.am): Update sys/ioctl.h rule.
32286
32287         string: Avoid #define replacements in C++ mode.
32288         * lib/string.in.h: Include c++defs.h.
32289         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32290         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32291         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32292         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32293         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32294         * modules/string (Depends-on): Add c++defs.
32295         (Makefile.am): Update string.h rule.
32296
32297         stdlib: Avoid #define replacements in C++ mode.
32298         * lib/stdlib.in.h: Include c++defs.h.
32299         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32300         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32301         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32302         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32303         symbol.
32304         * modules/stdlib (Depends-on): Add c++defs.
32305         (Makefile.am): Update stdlib.h rule.
32306
32307         stdio: Avoid #define replacements in C++ mode.
32308         * lib/stdio.in.h: Include c++defs.h.
32309         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32310         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32311         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32312         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32313         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32314         namespaced alias symbol.
32315         * modules/stdio (Depends-on): Add c++defs.
32316         (Makefile.am): Update stdio.h rule.
32317
32318         spawn: Avoid #define replacements in C++ mode.
32319         * lib/spawn.in.h: Include c++defs.h.
32320         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32321         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32322         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32323         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32324         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32325         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32326         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32327         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32328         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32329         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32330         In C++, define a namespaced alias symbol.
32331         * modules/spawn (Depends-on): Add c++defs.
32332         (Makefile.am): Update spawn.h rule.
32333
32334         signal: Avoid #define replacements in C++ mode.
32335         * lib/signal.in.h: Include c++defs.h.
32336         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32337         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32338         namespaced alias symbol.
32339         * modules/signal (Depends-on): Add c++defs.
32340         (Makefile.am): Update signal.h rule.
32341
32342         search: Avoid #define replacements in C++ mode.
32343         * lib/search.in.h: Include c++defs.h.
32344         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32345         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32346         symbol.
32347         * modules/search (Depends-on): Add c++defs.
32348         (Makefile.am): Update search.h rule.
32349
32350         math: Avoid #define replacements in C++ mode.
32351         * lib/math.in.h: Include c++defs.h.
32352         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32353         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32354         trunc, truncl): In C++, define a namespaced alias symbol.
32355         * modules/math (Depends-on): Add c++defs.
32356         (Makefile.am): Update math.h rule.
32357
32358         locale: Avoid #define replacements in C++ mode.
32359         * lib/locale.in.h: Include c++defs.h.
32360         (duplocale): In C++, define a namespaced alias symbol.
32361         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32362         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32363         * modules/locale (Depends-on): Add c++defs.
32364         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32365
32366         langinfo: Avoid #define replacements in C++ mode.
32367         * lib/langinfo.in.h: Include c++defs.h.
32368         (nl_langinfo): In C++, define a namespaced alias symbol.
32369         * modules/langinfo (Depends-on): Add c++defs.
32370         (Makefile.am): Update langinfo.h rule.
32371
32372         iconv-h: Avoid #define replacements in C++ mode.
32373         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32374         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32375         symbol.
32376         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32377         whenever iconv is present.
32378         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32379         (Makefile.am): Update iconv.h rule.
32380
32381         glob: Avoid #define replacements in C++ mode.
32382         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32383         (_gl_glob_errfunc_fn): New type.
32384         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32385         symbol.
32386         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32387         (Makefile.am): Update glob.h rule.
32388
32389         fcntl-h: Avoid #define replacements in C++ mode.
32390         * lib/fcntl.in.h: Include c++defs.h.
32391         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32392         * modules/fcntl-h (Depends-on): Add c++defs.
32393         (Makefile.am): Update fcntl.h rule.
32394
32395         dirent: Avoid #define replacements in C++ mode.
32396         * lib/dirent.in.h: Include c++defs.h.
32397         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32398         namespaced alias symbol.
32399         (dirfd): Update declaration.
32400         * modules/dirent (Depends-on): Add c++defs.
32401         (Makefile.am): Update dirent.h rule.
32402
32403         ctype: Make it usable in C++ code.
32404         * lib/ctype.in.h: Include c++defs.h.
32405         (isblank): Declare as extern "C".
32406         * modules/ctype (Depends-on): Add c++defs.
32407         (Makefile.am): Update ctype.h rule.
32408
32409         New module 'c++defs'.
32410         * modules/c++defs: New file.
32411         * build-aux/c++defs.h: New file.
32412         Reported by John W. Eaton <jwe@gnu.org>.
32413
32414 2010-03-07  Bruno Haible  <bruno@clisp.org>
32415
32416         logb: Provide missing declaration for Cygwin.
32417         * lib/math.in.h (logb): New declaration.
32418         * m4/logb.m4: New file.
32419         * modules/logb (Files): Add m4/logb.m4.
32420         (Depends-on): Add math.
32421         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32422         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32424         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32425         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32426
32427 2010-03-07  Bruno Haible  <bruno@clisp.org>
32428
32429         Fix test-cond link error.
32430         * tests/test-cond.c: Include <stdio.h>.
32431
32432 2010-03-07  Bruno Haible  <bruno@clisp.org>
32433
32434         Fix test-dirent-safer link error.
32435         * modules/dirent-safer-tests (Makefile.am): Define
32436         test_dirent_safer_LDADD.
32437
32438 2010-03-07  Bruno Haible  <bruno@clisp.org>
32439
32440         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32441         among default module list.
32442
32443 2010-03-07  Bruno Haible  <bruno@clisp.org>
32444
32445         Fix link error on platforms with GNU libiconv.
32446         * modules/unistr/u8-strcoll-tests (Makefile): Define
32447         test_u8_strcoll_LDADD.
32448         * modules/unistr/u16-strcoll-tests (Makefile): Define
32449         test_u16_strcoll_LDADD.
32450         * modules/unistr/u32-strcoll-tests (Makefile): Define
32451         test_u32_strcoll_LDADD.
32452
32453 2010-03-07  Bruno Haible  <bruno@clisp.org>
32454
32455         Use POSIX declarations for socket functions.
32456         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32457         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32458         rpl_sendto): Change declaration to match POSIX.
32459         * lib/connect.c (rpl_connect): Likewise.
32460         * lib/accept.c (rpl_accept): Likewise.
32461         * lib/bind.c (rpl_bind): Likewise.
32462         * lib/getpeername.c (rpl_getpeername): Likewise.
32463         * lib/getsockname.c (rpl_getsockname): Likewise.
32464         * lib/recv.c (rpl_recv): Likewise.
32465         * lib/send.c (rpl_send): Likewise.
32466         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32467         * lib/sendto.c (rpl_sendto): Likewise.
32468
32469 2010-03-06  Bruno Haible  <bruno@clisp.org>
32470
32471         Clarify access, euidaccess, faccessat.
32472         * doc/posix-functions/faccessat.texi: Mention security problem under
32473         "Other problems", not "Portability problems".
32474         * doc/posix-functions/access.texi: Likewise. Mention a related security
32475         problem.
32476         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32477         * lib/euidaccess.c: Add comments about platforms.
32478         * lib/unistd.in.h (access, euidaccess): Add warnings.
32479
32480 2010-03-07  Bruno Haible  <bruno@clisp.org>
32481
32482         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32483         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32484         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32485         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32486         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32487         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32488         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32489         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32490         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32491         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32492         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32493         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32494         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32495         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32496         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32497         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32498         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32499         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32500         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32501         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32502         Likewise.
32503         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32504         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32505         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32506         Likewise.
32507         * tests/test-spawn.c (main): Make it work when
32508         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32509
32510 2010-03-07  Bruno Haible  <bruno@clisp.org>
32511
32512         Fix incorrect Makefile.am generation in German locale.
32513         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32514         Execute sed command with character range in C locale.
32515
32516 2010-03-06  Bruno Haible  <bruno@clisp.org>
32517
32518         Tests for module 'iconv-h'.
32519         * modules/iconv-h-tests: New file.
32520         * tests/test-iconv-h.c: New file.
32521
32522         New module 'iconv-h'.
32523         * modules/iconv-h: New file.
32524         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32525         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32526         (configure.ac): Remove gl_ICONV_H.
32527         (Makefile.am): Remove rule for iconv.h.
32528
32529 2010-03-06  Bruno Haible  <bruno@clisp.org>
32530
32531         More consistent naming of *.m4 files.
32532         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32533         * modules/wctype (Files): Update.
32534
32535         More consistent naming of *.m4 files.
32536         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32537         * modules/wchar (Files): Update.
32538
32539 2010-03-06  Jim Meyering  <meyering@redhat.com>
32540
32541         euidaccess: relax license to LGPLv2+
32542         * modules/euidaccess (License): Relax to LGPLv2+.
32543
32544 2010-03-06  Bruno Haible  <bruno@clisp.org>
32545
32546         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32547         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32548         (Makefile.am): Augment lib_SOURCES instead.
32549
32550 2010-03-04  Jim Meyering  <meyering@redhat.com>
32551
32552         utime: remove obsolete module
32553         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32554         unnecessary for years, and has been marked as obsolete for 10 months.
32555         * modules/utime: Remove file.
32556         * lib/utime.c: Remove file.
32557         * m4/utime.m4: Remove file.
32558         * m4/utimes-null.m4: Remove file.
32559         * doc/posix-functions/utime.texi (utime): Remove reference to
32560         the module.  Move the sole "fixed by gnulib" item into the
32561         "problems not fixed by Gnulib" list.
32562         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32563
32564 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32565
32566         * modules/exit (License): Relax license to LGPLv2+.
32567         (Status): Mark as obsolete.
32568         * NEWS: Mention deprecated 'exit' module.
32569         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32570         of now obsolete 'exit'.
32571
32572 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32573
32574         fts-lgpl: remove unused module
32575         * modules/fts-lgpl: Remove.
32576         * MODULES.html.sh (func_all_modules): Adjust.
32577         * check-module (find_included_lib_files): Adjust.
32578         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32579
32580 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32581
32582         copy-acl: enhance Solaris ACL error handling
32583         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32584         * lib/set-mode-acl.c (qset_acl): Likewise.
32585
32586 2010-03-02  Bruno Haible  <bruno@clisp.org>
32587
32588         spawn: Don't override the system defined values on FreeBSD 8.
32589         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32590         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32591         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32592         if HAVE_POSIX_SPAWN is 1.
32593         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32594
32595 2010-03-01  Bruno Haible  <bruno@clisp.org>
32596
32597         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32598         regarding Automake.
32599
32600 2010-02-25  Bruno Haible  <bruno@clisp.org>
32601
32602         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32603         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32604         setting, not afterwards.
32605         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32606
32607 2010-02-24  Eric Blake  <eblake@redhat.com>
32608
32609         bootstrap, git-version-gen: use timestamp
32610         * build-aux/git-version-gen (scriptversion): Force UTC.
32611         * build-aux/bootstrap (scriptversion): New variable.
32612
32613         bootstrap: allow older git
32614         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32615         older than 1.6.4.  Requested by the libvirt project.
32616
32617 2010-02-23  Eric Blake  <eblake@redhat.com>
32618
32619         warn-on-use: work with old autoconf
32620         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32621         AS_VAR semantics of autoconf 2.60.
32622         Reported by Bruno Haible.
32623
32624         bootstrap: improve some comments
32625         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32626         clarification comments.
32627
32628         gettimeofday: provide correct function
32629         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32630         when replacement is declared, otherwise provide gettimeofday.
32631         Reported by Michael Goffioul.
32632
32633 2010-02-23  Jim Meyering  <meyering@redhat.com>
32634
32635         lib-ignore: relax license to "unlimited", not LGPLv2+
32636         * modules/lib-ignore (License): Relax to "unlimited".
32637
32638 2010-02-23  Jim Meyering  <meyering@redhat.com>
32639
32640         lib-ignore: relax license to LGPLv2+
32641         * modules/lib-ignore (License): Relax to LGPLv2+.
32642
32643 2010-02-22  Eric Blake  <eblake@redhat.com>
32644
32645         lseek: avoid bash 3.2 broken pipe bug
32646         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32647         warning from bash 3.2.
32648         Reported by Ben Pfaff, with analysis from Bruno Haible.
32649
32650         bootstrap: support non-FSF copyright holder
32651         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32652         bootstrap.conf override of COPYRIGHT_HOLDER.
32653         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32654
32655         bootstrap: interoperate with gettext 0.14.1
32656         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32657
32658         bootstrap: allow for alternate submodule location
32659         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32660         hardcoding submodule location.
32661         (gnulib_mk): Allow direct use of Makefile.am.
32662
32663         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32664         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32665         rather than reconfiguring where the submodule points.
32666
32667         gettimeofday: restore support for platforms that lack function
32668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32669         replacement if function is missing.
32670         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32671         * modules/sys_time (Makefile.am): Substitute it.
32672         * lib/sys_time.in.h (gettimeofday): Check it.
32673         Reported by Michael Goffioul.
32674
32675 2010-02-21  Bruno Haible  <bruno@clisp.org>
32676
32677         * lib/stdio.in.h (obstack_printf): Fix typo.
32678
32679 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32680
32681         vc-list-files: use bzr ls's -R option
32682         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32683         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32684
32685 2010-02-21  Jim Meyering  <meyering@redhat.com>
32686
32687         init.sh: fix EXEEXT shims to work also for names like test-prog
32688         * tests/init.sh: Re-exec a better shell, when needed.
32689         If the current shell lacks support for posix $(...), an init.sh-using
32690         test will now try to find a shell that supports that.  If EXEEXT is
32691         nonempty, we also require support for hyphen-in-alias-name and shell
32692         substitutions like ${var#glob}.  Failure to find such a shell results
32693         in a skipped test.
32694
32695 2010-02-21  Bruno Haible  <bruno@clisp.org>
32696
32697         Really work around around "broken pipe" error message from bash 3.2.
32698         * gnulib-tool (func_reset_sigpipe): Remove function.
32699         (echo): In bash 3.2, define to a function that uses printf.
32700         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32701
32702 2010-02-20  Bruno Haible  <bruno@clisp.org>
32703
32704         Restore support for automake 1.9.6 with autoconf 2.61.
32705         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32706         Reported by James Youngman <jay@gnu.org>.
32707
32708 2010-02-20  Bruno Haible  <bruno@clisp.org>
32709
32710         Improve *printf warning condition.
32711         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32712         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32713         and the function is overridden due to SIGPIPE emulation.
32714
32715 2010-02-20  Bruno Haible  <bruno@clisp.org>
32716
32717         * lib/stdio.in.h: Tweak comments.
32718
32719 2010-02-19  Bruno Haible  <bruno@clisp.org>
32720
32721         Make it easier to find modules. New gnulib-tool option '--find'.
32722         * gnulib-tool: New option --find.
32723         (func_usage): Document it.
32724         (func_sanitize_modulelist): New function, extracted from
32725         func_all_modules.
32726         (func_all_modules): Invoke it.
32727         * doc/gnulib-tool.texi (Which modules?): New node.
32728
32729 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32730
32731         * lib/sys_select.in.h: Provide select replacement even if
32732         sys/select.h exists on a system, for Interix.
32733
32734 2010-02-18  Jim Meyering  <meyering@redhat.com>
32735
32736         init.sh: don't use $(...) just yet
32737         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32738         to accommodate e.g., Solaris' /bin/sh.
32739
32740 2010-02-17  Bruno Haible  <bruno@clisp.org>
32741
32742         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32743         Reported by Ludovic Courtès <ludo@gnu.org>.
32744
32745 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32746
32747         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32748         linking with -lintl.
32749
32750 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32751
32752         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32753         if not provided by the system's netdb.h.  Reported by
32754         ludo@gnu.org (Ludovic Courtès).
32755
32756 2010-02-15  Jim Meyering  <meyering@redhat.com>
32757
32758         init.sh: improve portability and efficiency
32759         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32760         "dummy" in a for loop.
32761         Use '!', not '^' to select the complement of a character set used
32762         in a "case" statement.
32763         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32764         Suggestions from Eric Blake.
32765
32766         init.sh: automatically accommodate programs with the .exe suffix
32767         Automatically arrange for an invocation of "prog" to execute the
32768         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32769         may use the simpler "prog", yet still work when built on a system
32770         that requires specifying the added suffix.
32771         Do this by constructing a function named "prog" that invokes
32772         "prog.exe" for each .exe file in selected directories.
32773         * tests/init.sh (find_exe_basenames_): New function.
32774         (create_exe_shim_functions_): New function.
32775         (path_prepend_): Use it.
32776
32777         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32778         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32779         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32780
32781 2010-02-14  Jim Meyering  <meyering@redhat.com>
32782
32783         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32784         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32785         (sc_prohibit_hash_pjw_without_use): New rule.
32786
32787         maint.mk: allow the default upload destination dir to be overridden
32788         * top/maint.mk (upload_dest_dir_): Define with a default that
32789         preserves the status quo.
32790         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32791         Reported by Peter Simons.
32792
32793         maint.mk: prohibit inclusion of "hash.h" without_use
32794         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32795
32796 2010-02-10  Jim Meyering  <meyering@redhat.com>
32797
32798         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32799         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32800
32801 2010-02-09  Eric Blake  <ebb9@byu.net>
32802         and Bruno Haible  <bruno@clisp.org>
32803
32804         obstack-printf-posix: ensure declaration
32805         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32806         extracted from gl_FUNC_OBSTACK_PRINTF.
32807         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32808         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32809         Likewise.
32810         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32811         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32812         0.
32813
32814 2010-02-08  Bruno Haible  <bruno@clisp.org>
32815
32816         gnulib-tool: Fix typo in 2010-02-07 commit.
32817         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32818         Reported by Eric Blake.
32819
32820 2010-02-07  Bruno Haible  <bruno@clisp.org>
32821
32822         gnulib-tool: Fix up caching patches.
32823         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32824         option --no-cache. Use associative arrays when supported by the shell.
32825         (sed_comments): New variable.
32826         (modcache): Renamed from do_cache.
32827         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32828         abbreviate unnecessarily.
32829         (have_associative): New variable.
32830         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32831         way also for ksh and zsh.
32832         (func_init_sed_convert_to_cache_statements): New function, extracted
32833         from func_cache_lookup_module. Add support for associative arrays.
32834         Don't set the c_MODULE_cached variable here. Ignore all lines before
32835         the first field header. Remove only the final newline, not all trailing
32836         newlines. Support empty fields correctly. Limit the use of 'eval' to
32837         assignments.
32838         (func_get_description, func_get_status, func_get_notice,
32839         func_get_applicability, func_get_filelist, func_get_dependencies,
32840         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32841         func_get_automake_snippet, func_get_include_directive,
32842         func_get_link_directive, func_get_license, func_get_maintainer):
32843         Update documentation. List the unoptimized code first. Add support for
32844         associative arrays. Limit the use of 'eval' to assignments.
32845         (func_get_applicability): Undo stylistic pessimisations.
32846         (func_get_automake_snippet, func_get_include_directive): Reduce code
32847         duplication.
32848         (func_modules_transitive_closure, func_modules_add_dummy,
32849         func_modules_notice, func_modules_to_filelist, func_add_file,
32850         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32851         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32852         func_create_testdir, func_create_megatestdir): Update documentation.
32853
32854 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32855
32856         * gnulib-tool (func_cache_lookup_module): Store the module name
32857         belonging to the cache variable; error out if two different
32858         module names map to the same cache variable name.
32859
32860 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32861
32862         gnulib-tool: Make caching optional.
32863         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32864         Update matching short versions of --no-changelog.
32865         (func_usage): Update.
32866         (sed_extract_cache_prog): Renamed from ...
32867         (sed_extract_prog): ... this; revert to old extraction script.
32868         (func_get_description, func_get_status)
32869         (func_get_notice, func_get_applicability, func_get_filelist)
32870         (func_get_dependencies, func_get_autoconf_early_snippet)
32871         (func_get_autoconf_snippet, func_get_automake_snippet)
32872         (func_get_include_directive, func_get_link_directive)
32873         (func_get_license, func_get_maintainer): If $do_cache is false,
32874         use old, non-caching extraction scripts.
32875         Suggestion by Bruno Haible.
32876
32877 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32878
32879         gnulib-tool: cache module metainformation.
32880         * gnulib-tool (sed_extract_prog): Match newline before each
32881         header, and rewrite header to a shell variable suffix.
32882         (func_cache_var, func_cache_lookup_module): New functions,
32883         to turn a module name into a cache variable prefix, and to
32884         look up and cache module metainformation.
32885         (func_get_description, func_get_status)
32886         (func_get_notice, func_get_applicability, func_get_filelist)
32887         (func_get_dependencies, func_get_autoconf_early_snippet)
32888         (func_get_autoconf_snippet, func_get_automake_snippet)
32889         (func_get_include_directive, func_get_link_directive)
32890         (func_get_license, func_get_maintainer): Use
32891         func_cache_lookup_module.
32892
32893 2010-02-07  Bruno Haible  <bruno@clisp.org>
32894
32895         fnctl: Fix missing dependency.
32896         * modules/fcntl (Depends-on): Add getdtablesize.
32897         Reported by John W. Eaton <jwe@gnu.org>.
32898
32899 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32900
32901         Argp: fix recognition of short alias options.
32902
32903         * lib/argp-parse.c (convert_options): Fix improper use of
32904         `|' between character values.
32905         * tests/test-argp.c (group1_option): New alias option
32906         --read (-r).
32907         (group1_parser): Special handling for 'r'.
32908         (test15): New test case.
32909         (test_fun): Add test15.
32910         * tests/test-argp-2.sh: Update expected --help and --usage
32911         outputs.
32912
32913 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32914
32915         * tests/test-argp.c: Fix indentation.
32916
32917 2010-02-04  Eric Blake  <ebb9@byu.net>
32918
32919         gettimeofday: expose type of second argument
32920         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32921         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32922         * tests/test-gettimeofday.c: Use it to silence warning.
32923         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32924         the issue.
32925
32926 2010-02-03  Jim Meyering  <meyering@redhat.com>
32927
32928         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32929         * lib/regcomp.c (TYPE_SIGNED): Define.
32930         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32931
32932         regcomp.c: avoid a new -Wshadow warning
32933         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32934
32935 2010-02-01  Jim Meyering  <meyering@redhat.com>
32936
32937         removing useless parentheses in cpp #define directives
32938         For motivation, see commit c0221df4, "define STREQ(a,b)
32939         consistently, removing useless parentheses"
32940         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32941         * lib/mountlist.c (MNT_IGNORE): Likewise.
32942         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32943
32944 2010-02-01  Eric Blake  <ebb9@byu.net>
32945
32946         sys_time: use link-warning
32947         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32948         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32949         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32950         * modules/sys_time (Depends-on): Add warn-on-use.
32951         (Makefile.am): Always build replacement.
32952         (configure.ac): Update substitutions.
32953         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32954         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32955         bother with SYS_TIME_H.
32956         * modules/gettimeofday (configure.ac): Declare indicator.
32957         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32958         in use.
32959
32960         closein-tests: silence compiler warning
32961         * tests/test-closein.c (main): Ignore fread result.
32962         * modules/closein-tests (Depends-on): Add ignore-value.
32963
32964         tests: silence warning about system return
32965         * tests/test-areadlink-with-size.c (main): Ignore system result.
32966         * tests/test-areadlink.c (main): Likewise.
32967         * tests/test-areadlinkat-with-size.c (main): Likewise.
32968         * tests/test-areadlinkat.c (main): Likewise.
32969         * tests/test-canonicalize-lgpl.c (main): Likewise.
32970         * tests/test-canonicalize.c (main): Likewise.
32971         * tests/test-chown.c (main): Likewise.
32972         * tests/test-fchownat.c (main): Likewise.
32973         * tests/test-fdutimensat.c (main): Likewise.
32974         * tests/test-fstatat.c (main): Likewise.
32975         * tests/test-futimens.c (main): Likewise.
32976         * tests/test-lchown.c (main): Likewise.
32977         * tests/test-link.c (main): Likewise.
32978         * tests/test-linkat.c (main): Likewise.
32979         * tests/test-lstat.c (main): Likewise.
32980         * tests/test-mkdir.c (main): Likewise.
32981         * tests/test-mkdirat.c (main): Likewise.
32982         * tests/test-mkfifo.c (main): Likewise.
32983         * tests/test-mkfifoat.c (main): Likewise.
32984         * tests/test-mknod.c (main): Likewise.
32985         * tests/test-readlink.c (main): Likewise.
32986         * tests/test-remove.c (main): Likewise.
32987         * tests/test-rename.c (main): Likewise.
32988         * tests/test-renameat.c (main): Likewise.
32989         * tests/test-rmdir.c (main): Likewise.
32990         * tests/test-symlink.c (main): Likewise.
32991         * tests/test-symlinkat.c (main): Likewise.
32992         * tests/test-unlink.c (main): Likewise.
32993         * tests/test-unlinkat.c (main): Likewise.
32994         * tests/test-utimens.c (main): Likewise.
32995         * tests/test-utimensat.c (main): Likewise.
32996         * modules/areadlink-tests (Depends-on): Add ignore-value.
32997         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32998         * modules/areadlinkat-tests (Depends-on): Likewise.
32999         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33000         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33001         * modules/canonicalize-tests (Depends-on): Likewise.
33002         * modules/chown-tests (Depends-on): Likewise.
33003         * modules/fdutimensat-tests (Depends-on): Likewise.
33004         * modules/futimens-tests (Depends-on): Likewise.
33005         * modules/lchown-tests (Depends-on): Likewise.
33006         * modules/link-tests (Depends-on): Likewise.
33007         * modules/linkat-tests (Depends-on): Likewise.
33008         * modules/lstat-tests (Depends-on): Likewise.
33009         * modules/mkdir-tests (Depends-on): Likewise.
33010         * modules/mkfifo-tests (Depends-on): Likewise.
33011         * modules/mkfifoat-tests (Depends-on): Likewise.
33012         * modules/mknod-tests (Depends-on): Likewise.
33013         * modules/openat-tests (Depends-on): Likewise.
33014         * modules/readlink-tests (Depends-on): Likewise.
33015         * modules/remove-tests (Depends-on): Likewise.
33016         * modules/rename-tests (Depends-on): Likewise.
33017         * modules/renameat-tests (Depends-on): Likewise.
33018         * modules/rmdir-tests (Depends-on): Likewise.
33019         * modules/symlink-tests (Depends-on): Likewise.
33020         * modules/symlinkat-tests (Depends-on): Likewise.
33021         * modules/unlink-tests (Depends-on): Likewise.
33022         * modules/utimens-tests (Depends-on): Likewise.
33023         * modules/utimensat-tests (Depends-on): Likewise.
33024
33025 2010-01-31  Bruno Haible  <bruno@clisp.org>
33026
33027         Perform the same test for many <math.h> functions.
33028         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33029         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33030         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33031         of gl_MATHFUNC.
33032         * modules/acos (configure.ac): Likewise.
33033         * modules/asin (configure.ac): Likewise.
33034         * modules/atan (configure.ac): Likewise.
33035         * modules/atan2 (configure.ac): Likewise.
33036         * modules/cbrt (configure.ac): Likewise.
33037         * modules/copysign (configure.ac): Likewise.
33038         * modules/cos (configure.ac): Likewise.
33039         * modules/cosh (configure.ac): Likewise.
33040         * modules/erf (configure.ac): Likewise.
33041         * modules/erfc (configure.ac): Likewise.
33042         * modules/exp (configure.ac): Likewise.
33043         * modules/fmod (configure.ac): Likewise.
33044         * modules/hypot (configure.ac): Likewise.
33045         * modules/j0 (configure.ac): Likewise.
33046         * modules/j1 (configure.ac): Likewise.
33047         * modules/jn (configure.ac): Likewise.
33048         * modules/lgamma (configure.ac): Likewise.
33049         * modules/log (configure.ac): Likewise.
33050         * modules/log10 (configure.ac): Likewise.
33051         * modules/log1p (configure.ac): Likewise.
33052         * modules/pow (configure.ac): Likewise.
33053         * modules/remainder (configure.ac): Likewise.
33054         * modules/sin (configure.ac): Likewise.
33055         * modules/sinh (configure.ac): Likewise.
33056         * modules/tan (configure.ac): Likewise.
33057         * modules/tanh (configure.ac): Likewise.
33058         * modules/y0 (configure.ac): Likewise.
33059         * modules/y1 (configure.ac): Likewise.
33060         * modules/yn (configure.ac): Likewise.
33061         Suggested by Paolo Bonzini.
33062
33063 2010-01-31  Bruno Haible  <bruno@clisp.org>
33064
33065         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33066
33067 2010-01-31  Bruno Haible  <bruno@clisp.org>
33068
33069         Work around getdelim() bug on FreeBSD 8.0.
33070         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33071         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33072         not work.
33073         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33074         is 1.
33075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33076         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33077         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33078         a non-zero size.
33079         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33080
33081 2010-01-31  Bruno Haible  <bruno@clisp.org>
33082
33083         Work around getline() bug on FreeBSD 8.0.
33084         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33085         and a non-zero size.
33086         * tests/test-getline.c (main): Likewise.
33087         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33088         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33089
33090 2010-01-28  Eric Blake  <ebb9@byu.net>
33091
33092         regex: fix build failure
33093         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33094         platforms.
33095
33096 2010-01-28  Jim Meyering  <meyering@redhat.com>
33097
33098         regex: do not ignore memory allocation failure
33099         * lib/regex_internal.c (create_cd_newstate): Detect
33100         re_node_set_init_copy failure.   Extracted from glibc commit
33101         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33102
33103         regex: sync more white-space changes from libc
33104         * lib/regex_internal.c: White-space only changes.
33105         * lib/regexec.c: Likewise.
33106
33107         regex: add many uses of __attribute_warn_unused_result__
33108         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33109         * lib/regexec.c: Likewise.
33110         Extracted from a messy glibc commit.
33111
33112         regcomp.c: spelling and merge-artifact from glibc
33113         * lib/regcomp.c: Merge remainder of glibc's
33114         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33115
33116         regcomp.c: sync white-space changes from glibc
33117         * lib/regcomp.c: Merge to accommodate white space
33118         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33119
33120         regcomp.c: do not ignore internal return values
33121         * lib/regcomp.c: Do not ignore internal return values.
33122         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33123         but without its white-space changes and spelling fixes.
33124
33125         regex_internal.h: define __attribute_warn_unused_result__
33126         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33127
33128         maint: add a syntax-check rule to check for vulnerable Makefile.in
33129         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33130
33131 2010-01-27  Jim Meyering  <meyering@redhat.com>
33132
33133         ncftpput-ftp: clean up spaces
33134         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33135         Remove trailing blanks.
33136
33137 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33138
33139         * build-aux/git-version-gen: Fix copyright statement.
33140         * build-aux/gnupload: Likewise.
33141         * tests/test-arcfour.c: Likewise.
33142         * tests/test-arctwo.c: Likewise.
33143         * tests/test-count-one-bits.c: Likewise.
33144         * tests/test-crc.c: Likewise.
33145         * tests/test-des.c: Likewise.
33146         * tests/test-gc-arcfour.c: Likewise.
33147         * tests/test-gc-arctwo.c: Likewise.
33148         * tests/test-gc-des.c: Likewise.
33149         * tests/test-gc-hmac-md5.c: Likewise.
33150         * tests/test-gc-hmac-sha1.c: Likewise.
33151         * tests/test-gc-md2.c: Likewise.
33152         * tests/test-gc-md4.c: Likewise.
33153         * tests/test-gc-md5.c: Likewise.
33154         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33155         * tests/test-gc-rijndael.c: Likewise.
33156         * tests/test-gc-sha1.c: Likewise.
33157         * tests/test-gc.c: Likewise.
33158         * tests/test-gethostname.c: Likewise.
33159         * tests/test-gettimeofday.c: Likewise.
33160         * tests/test-hash.c: Likewise.
33161         * tests/test-hmac-md5.c: Likewise.
33162         * tests/test-hmac-sha1.c: Likewise.
33163         * tests/test-md2.c: Likewise.
33164         * tests/test-md4.c: Likewise.
33165         * tests/test-md5.c: Likewise.
33166         * tests/test-memchr.c: Likewise.
33167         * tests/test-memchr2.c: Likewise.
33168         * tests/test-memcmp.c: Likewise.
33169         * tests/test-memmem.c: Likewise.
33170         * tests/test-memrchr.c: Likewise.
33171         * tests/test-rawmemchr.c: Likewise.
33172         * tests/test-read-file.c: Likewise.
33173         * tests/test-rijndael.c: Likewise.
33174         * tests/test-sockets.c: Likewise.
33175         * tests/test-strchrnul.c: Likewise.
33176         * tests/test-strstr.c: Likewise.
33177         * tests/test-strtod.c: Likewise.
33178         * build-aux/ncftpput-ftp: Likewise.
33179
33180 2010-01-26  Eric Blake  <ebb9@byu.net>
33181
33182         ignore-value: update recommended header name
33183         * modules/ignore-value (Include): Only use <> for headers that
33184         exist in glibc.
33185
33186 2010-01-26  Jim Meyering  <meyering@redhat.com>
33187
33188         test-userspec.c: avoid compiler warnings
33189         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33190         and "initialization discards qualifiers..." warnings.
33191         Put the first "uid" in its own scope, and make char* members "const".
33192
33193 2010-01-25  Bruno Haible  <bruno@clisp.org>
33194
33195         gnulib-tool: Make warning diagnostics consistent.
33196         * gnulib-tool (func_warning): New function.
33197         Use it everywhere where gnulib-tool produces output to stderr and it is
33198         not a fatal error.
33199
33200 2010-01-25  Bruno Haible  <bruno@clisp.org>
33201
33202         Fix test dependencies.
33203         * modules/xstrtol-tests (Depends-on): Add inttypes.
33204         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33205
33206 2010-01-25 Pádraig Brady <P@draigBrady.com>
33207
33208         syntax-check: detect incorrect boolean macro values in config.h
33209         * modules/maintainer-makefile (configure.ac): Parameterize the location
33210         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33211         The logic is from Eric Blake and the location indicated by Jim Meyering.
33212         Note the more natural CONFIG_HEADER name is prohibited by automake
33213         for backwards compatibility reasons.
33214         * top/maint.mk (sc_Wundef_boolean): New rule.
33215
33216 2010-01-25  Jim Meyering  <meyering@redhat.com>
33217
33218         bootstrap: detect MacOS 10.6's shasum, too
33219         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33220         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33221
33222 2010-01-23  Jim Meyering  <meyering@redhat.com>
33223
33224         xstrtoll: new module
33225         * modules/xstrtoll: New file.
33226         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33227         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33228         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33229         ./configure fails if you use this module and lack "long long".
33230         * modules/xstrtoll-tests: New module.
33231         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33232         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33233         new init.sh-based test framework.
33234
33235 2010-01-24  Bruno Haible  <bruno@clisp.org>
33236
33237         Tests for module 'yn'.
33238         * modules/yn-tests: New file.
33239         * tests/test-yn.c: New file.
33240
33241         Tests for module 'y1'.
33242         * modules/y1-tests: New file.
33243         * tests/test-y1.c: New file.
33244
33245         Tests for module 'y0'.
33246         * modules/y0-tests: New file.
33247         * tests/test-y0.c: New file.
33248
33249         Tests for module 'tanh'.
33250         * modules/tanh-tests: New file.
33251         * tests/test-tanh.c: New file.
33252
33253         Tests for module 'tan'.
33254         * modules/tan-tests: New file.
33255         * tests/test-tan.c: New file.
33256
33257         Tests for module 'sqrt'.
33258         * modules/sqrt-tests: New file.
33259         * tests/test-sqrt.c: New file.
33260
33261         Tests for module 'sinh'.
33262         * modules/sinh-tests: New file.
33263         * tests/test-sinh.c: New file.
33264
33265         Tests for module 'sin'.
33266         * modules/sin-tests: New file.
33267         * tests/test-sin.c: New file.
33268
33269         Tests for module 'rint'.
33270         * modules/rint-tests: New file.
33271         * tests/test-rint.c: New file.
33272
33273         Tests for module 'remainder'.
33274         * modules/remainder-tests: New file.
33275         * tests/test-remainder.c: New file.
33276
33277         Tests for module 'pow'.
33278         * modules/pow-tests: New file.
33279         * tests/test-pow.c: New file.
33280
33281         Tests for module 'nextafter'.
33282         * modules/nextafter-tests: New file.
33283         * tests/test-nextafter.c: New file.
33284
33285         Tests for module 'modf'.
33286         * modules/modf-tests: New file.
33287         * tests/test-modf.c: New file.
33288
33289         Tests for module 'logb'.
33290         * modules/logb-tests: New file.
33291         * tests/test-logb.c: New file.
33292
33293         Tests for module 'log1p'.
33294         * modules/log1p-tests: New file.
33295         * tests/test-log1p.c: New file.
33296
33297         Tests for module 'log10'.
33298         * modules/log10-tests: New file.
33299         * tests/test-log10.c: New file.
33300
33301         Tests for module 'log'.
33302         * modules/log-tests: New file.
33303         * tests/test-log.c: New file.
33304
33305         Tests for module 'lgamma'.
33306         * modules/lgamma-tests: New file.
33307         * tests/test-lgamma.c: New file.
33308
33309         Tests for module 'ldexp'.
33310         * modules/ldexp-tests: New file.
33311         * tests/test-ldexp.c: New file.
33312
33313         Tests for module 'jn'.
33314         * modules/jn-tests: New file.
33315         * tests/test-jn.c: New file.
33316
33317         Tests for module 'j1'.
33318         * modules/j1-tests: New file.
33319         * tests/test-j1.c: New file.
33320
33321         Tests for module 'j0'.
33322         * modules/j0-tests: New file.
33323         * tests/test-j0.c: New file.
33324
33325         Tests for module 'hypot'.
33326         * modules/hypot-tests: New file.
33327         * tests/test-hypot.c: New file.
33328
33329         Tests for module 'fmod'.
33330         * modules/fmod-tests: New file.
33331         * tests/test-fmod.c: New file.
33332
33333         Tests for module 'fabs'.
33334         * modules/fabs-tests: New file.
33335         * tests/test-fabs.c: New file.
33336
33337         Tests for module 'exp'.
33338         * modules/exp-tests: New file.
33339         * tests/test-exp.c: New file.
33340
33341         Tests for module 'erfc'.
33342         * modules/erfc-tests: New file.
33343         * tests/test-erfc.c: New file.
33344
33345         Tests for module 'erf'.
33346         * modules/erf-tests: New file.
33347         * tests/test-erf.c: New file.
33348
33349         Tests for module 'cosh'.
33350         * modules/cosh-tests: New file.
33351         * tests/test-cosh.c: New file.
33352
33353         Tests for module 'cos'.
33354         * modules/cos-tests: New file.
33355         * tests/test-cos.c: New file.
33356
33357         Tests for module 'copysign'.
33358         * modules/copysign-tests: New file.
33359         * tests/test-copysign.c: New file.
33360
33361         Tests for module 'cbrt'.
33362         * modules/cbrt-tests: New file.
33363         * tests/test-cbrt.c: New file.
33364
33365         Tests for module 'atan2'.
33366         * modules/atan2-tests: New file.
33367         * tests/test-atan2.c: New file.
33368
33369         Tests for module 'atan'.
33370         * modules/atan-tests: New file.
33371         * tests/test-atan.c: New file.
33372
33373         Tests for module 'asin'.
33374         * modules/asin-tests: New file.
33375         * tests/test-asin.c: New file.
33376
33377         Tests for module 'acos'.
33378         * modules/acos-tests: New file.
33379         * tests/test-acos.c: New file.
33380
33381 2010-01-24  Bruno Haible  <bruno@clisp.org>
33382
33383         Fix tests for common <math.h> functions.
33384         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33385         code snippet that references the function pointer, rather than merely
33386         calling the function. Substitute the FUNC_LIBM variable.
33387         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33388         * modules/acos (configure.ac): Likewise.
33389         * modules/asin (configure.ac): Likewise.
33390         * modules/atan (configure.ac): Likewise.
33391         * modules/atan2 (configure.ac): Likewise.
33392         * modules/cbrt (configure.ac): Likewise.
33393         * modules/copysign (configure.ac): Likewise.
33394         * modules/cos (configure.ac): Likewise.
33395         * modules/cosh (configure.ac): Likewise.
33396         * modules/erf (configure.ac): Likewise.
33397         * modules/erfc (configure.ac): Likewise.
33398         * modules/exp (configure.ac): Likewise.
33399         * modules/fabs (configure.ac): Likewise.
33400         * modules/fmod (configure.ac): Likewise.
33401         * modules/hypot (configure.ac): Likewise.
33402         * modules/j0 (configure.ac): Likewise.
33403         * modules/j1 (configure.ac): Likewise.
33404         * modules/jn (configure.ac): Likewise.
33405         * modules/ldexp (configure.ac): Likewise.
33406         * modules/lgamma (configure.ac): Likewise.
33407         * modules/log (configure.ac): Likewise.
33408         * modules/log10 (configure.ac): Likewise.
33409         * modules/log1p (configure.ac): Likewise.
33410         * modules/logb (configure.ac): Likewise.
33411         * modules/modf (configure.ac): Likewise.
33412         * modules/nextafter (configure.ac): Likewise.
33413         * modules/pow (configure.ac): Likewise.
33414         * modules/remainder (configure.ac): Likewise.
33415         * modules/rint (configure.ac): Likewise.
33416         * modules/sin (configure.ac): Likewise.
33417         * modules/sinh (configure.ac): Likewise.
33418         * modules/tan (configure.ac): Likewise.
33419         * modules/tanh (configure.ac): Likewise.
33420         * modules/y0 (configure.ac): Likewise.
33421         * modules/y1 (configure.ac): Likewise.
33422         * modules/yn (configure.ac): Likewise.
33423
33424 2010-01-24  Bruno Haible  <bruno@clisp.org>
33425
33426         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33427         * tests/test-acosl.c (x): New variable.
33428         (main): Store argument in x and fetch it from x.
33429         * tests/test-asinl.c (x): New variable.
33430         (main): Store argument in x and fetch it from x.
33431         * tests/test-atanl.c (x): New variable.
33432         (main): Store argument in x and fetch it from x.
33433         * tests/test-cosl.c (x): New variable.
33434         (main): Store argument in x and fetch it from x.
33435         * tests/test-expl.c (x): New variable.
33436         (main): Store argument in x and fetch it from x.
33437         * tests/test-logl.c (x): New variable.
33438         (main): Store argument in x and fetch it from x.
33439         * tests/test-sinl.c (x): New variable.
33440         (main): Store argument in x and fetch it from x.
33441         * tests/test-sqrtl.c (x): New variable.
33442         (main): Store argument in x and fetch it from x.
33443         * tests/test-tanl.c (x): New variable.
33444         (main): Store argument in x and fetch it from x.
33445
33446 2010-01-24  Bruno Haible  <bruno@clisp.org>
33447
33448         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33449         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33450         assignments to the initial TESTS_ENVIRONMENT.
33451         * doc/gnulib.texi (Unit test modules): Document it.
33452         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33453         TESTS_ENVIRONMENT.
33454         * modules/btowc-tests (Makefile.am): Likewise.
33455         * modules/c-stack-tests (Makefile.am): Likewise.
33456         * modules/c-strcase-tests (Makefile.am): Likewise.
33457         * modules/copy-file-tests (Makefile.am): Likewise.
33458         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33459         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33460         * modules/mbrtowc-tests (Makefile.am): Likewise.
33461         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33462         * modules/mbscasestr-tests (Makefile.am): Likewise.
33463         * modules/mbschr-tests (Makefile.am): Likewise.
33464         * modules/mbscspn-tests (Makefile.am): Likewise.
33465         * modules/mbsinit-tests (Makefile.am): Likewise.
33466         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33467         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33468         * modules/mbspbrk-tests (Makefile.am): Likewise.
33469         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33470         * modules/mbsrchr-tests (Makefile.am): Likewise.
33471         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33472         * modules/mbsspn-tests (Makefile.am): Likewise.
33473         * modules/mbsstr-tests (Makefile.am): Likewise.
33474         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33475         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33476         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33477         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33478         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33479         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33480         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33481         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33482         * modules/wcrtomb-tests (Makefile.am): Likewise.
33483         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33484         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33485         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33486         assignments from TESTS_ENVIRONMENT.
33487         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33488         augmentation.
33489         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33490         * modules/atexit-tests (Makefile.am): Likewise.
33491         * modules/binary-io-tests (Makefile.am): Likewise.
33492         * modules/closein-tests (Makefile.am): Likewise.
33493         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33494         * modules/exclude-tests (Makefile.am): Likewise.
33495         * modules/fflush-tests (Makefile.am): Likewise.
33496         * modules/fpending-tests (Makefile.am): Likewise.
33497         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33498         * modules/freadahead-tests (Makefile.am): Likewise.
33499         * modules/freadptr-tests (Makefile.am): Likewise.
33500         * modules/freadseek-tests (Makefile.am): Likewise.
33501         * modules/fseek-tests (Makefile.am): Likewise.
33502         * modules/fseeko-tests (Makefile.am): Likewise.
33503         * modules/ftell-tests (Makefile.am): Likewise.
33504         * modules/ftello-tests (Makefile.am): Likewise.
33505         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33506         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33507         * modules/lseek-tests (Makefile.am): Likewise.
33508         * modules/parse-duration-tests (Makefile.am): Likewise.
33509         * modules/perror-tests (Makefile.am): Likewise.
33510         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33511         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33512         * modules/pipe-tests (Makefile.am): Likewise.
33513         * modules/pread-tests (Makefile.am): Likewise.
33514         * modules/printf-posix-tests (Makefile.am): Likewise.
33515         * modules/select-tests (Makefile.am): Likewise.
33516         * modules/sigpipe-tests (Makefile.am): Likewise.
33517         * modules/tsearch-tests (Makefile.am): Likewise.
33518         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33519         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33520         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33521         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33522         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33523         * modules/version-etc-tests (Makefile.am): Likewise.
33524         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33525         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33526         * modules/xalloc-die-tests (Makefile.am): Likewise.
33527         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33528         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33529         * modules/xstrtol-tests (Makefile.am): Likewise.
33530         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33531         * modules/yesno-tests (Makefile.am): Likewise.
33532         Suggested by Jim Meyering.
33533
33534 2010-01-24  Bruno Haible  <bruno@clisp.org>
33535
33536         More documentation.
33537         * doc/gnulib.texi (Writing modules): New chapter.
33538         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33539         the new chapter.
33540
33541 2010-01-24  Jim Meyering  <meyering@redhat.com>
33542
33543         maint.mk: do not prepend "./" after filtering
33544         * top/maint.mk (_prepend_srcdir_prefix): New variable
33545         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33546         "./" when $(srcdir) is ".".
33547
33548         define STREQ(a,b) consistently, removing useless parentheses
33549         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33550         since the only risk is that "a" or "b" contains an unparenthesized
33551         comma, but if either did that, STREQ would have 3 or more arguments.
33552         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33553         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33554         * lib/hash-triple.c (STREQ): Likewise.
33555         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33556         * lib/getugroups.c (STREQ): Likewise.
33557
33558 2010-01-23  Jim Meyering  <meyering@redhat.com>
33559
33560         maint.mk: fix syntax-check in a non-srcdir build directory
33561         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33562         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33563
33564 2010-01-22  Jim Meyering  <meyering@redhat.com>
33565
33566         userspec: add unit tests
33567         * tests/test-userspec.c: New file.
33568         * modules/userspec-tests: Likewise.
33569
33570 2010-01-21  Jim Meyering  <meyering@redhat.com>
33571
33572         maint.mk: handle source file names containing "." robustly
33573         * top/maint.mk (_dot_escaped_srcdir): Define.
33574         (VC_LIST): Use it in LHS of sed substitution.
33575
33576 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33577
33578         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33579         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33580         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33581         from a non-srcdir build.
33582
33583 2010-01-20  Eric Blake  <ebb9@byu.net>
33584
33585         warn-on-use: use instead of link-warning
33586         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33587         * modules/unistd (Depends-on, Makefile.am): Likewise.
33588         * modules/arpa_inet (Depends-on): Replace link-warning with
33589         warn-on-use.
33590         (Makefile.am): Update rules accordingly.
33591         * modules/ctype (Depends-on, Makefile.am): Likewise.
33592         * modules/dirent (Depends-on, Makefile.am): Likewise.
33593         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33594         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33595         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33596         * modules/locale (Depends-on, Makefile.am): Likewise.
33597         * modules/math (Depends-on, Makefile.am): Likewise.
33598         * modules/search (Depends-on, Makefile.am): Likewise.
33599         * modules/signal (Depends-on, Makefile.am): Likewise.
33600         * modules/spawn (Depends-on, Makefile.am): Likewise.
33601         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33602         * modules/string (Depends-on, Makefile.am): Likewise.
33603         * modules/strings (Depends-on, Makefile.am): Likewise.
33604         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33605         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33606         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33607         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33608         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33609         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33610         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33611         * modules/wchar (Depends-on, Makefile.am): Likewise.
33612         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33613         should be poisoned.
33614         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33615         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33616         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33617         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33618         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33619         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33620         * m4/math_h.m4 (gl_MATH_H): Likewise.
33621         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33622         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33623         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33624         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33625         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33626         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33627         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33628         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33629         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33630         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33631         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33632         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33633         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33634         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33635         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33636         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33637         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33638         GL_LINK_WARNING.
33639         * lib/ctype.in.h: Likewise.
33640         * lib/dirent.in.h: Likewise.
33641         * lib/fcntl.in.h: Likewise.
33642         * lib/inttypes.in.h: Likewise.
33643         * lib/langinfo.in.h: Likewise.
33644         * lib/locale.in.h: Likewise.
33645         * lib/math.in.h: Likewise.
33646         * lib/search.in.h: Likewise.
33647         * lib/signal.in.h: Likewise.
33648         * lib/spawn.in.h: Likewise.
33649         * lib/stdio.in.h: Likewise.
33650         * lib/stdlib.in.h: Likewise.
33651         * lib/string.in.h: Likewise.
33652         * lib/strings.in.h: Likewise.
33653         * lib/sys_file.in.h: Likewise.
33654         * lib/sys_ioctl.in.h: Likewise.
33655         * lib/sys_select.in.h: Likewise.
33656         * lib/sys_socket.in.h: Likewise.
33657         * lib/sys_stat.in.h: Likewise.
33658         * lib/sys_times.in.h: Likewise.
33659         * lib/sys_utsname.in.h: Likewise.
33660         * lib/unistd.in.h: Likewise.
33661         * lib/wchar.in.h: Likewise.
33662
33663 2010-01-20  Bruno Haible  <bruno@clisp.org>
33664
33665         Avoid duplicate -lm.
33666         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33667         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33668         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33669         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33670         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33671         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33672         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33673         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33674         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33675         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33676         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33677         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33678         Reported by Paolo Bonzini.
33679
33680 2010-01-19  Bruno Haible  <bruno@clisp.org>
33681
33682         langinfo, nl_langinfo: Relicense under LGPLv2+.
33683         * modules/langinfo (License): Change to LGPLv2+.
33684         * modules/nl_langinfo (License): Likewise.
33685         Patch by David Lutterkort <lutter@redhat.com>.
33686
33687 2010-01-19  Bruno Haible  <bruno@clisp.org>
33688
33689         Avoid compilation error with cc on OSF/1 5.1.
33690         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33691         statement, not before.
33692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33693
33694 2010-01-18  Bruno Haible  <bruno@clisp.org>
33695
33696         Avoid a link error due to the __printf__ symbol.
33697         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33698         and 2.6.x.
33699         (__format__, __printf__): Remove definitions.
33700         * lib/argp-fmtstream.h: Likewise.
33701         * lib/argp.h: Likewise.
33702         * lib/error.h: Likewise.
33703         * lib/vasnprintf.h: Likewise.
33704         * lib/xprintf.h: Likewise.
33705         * lib/xvasprintf.h: Likewise.
33706         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33707
33708 2010-01-18  Bruno Haible  <bruno@clisp.org>
33709
33710         Tests for module 'tanl'.
33711         * modules/tanl-tests: New file.
33712         * tests/test-tanl.c: New file.
33713
33714         Tests for module 'sqrtl'.
33715         * modules/sqrtl-tests: New file.
33716         * tests/test-sqrtl.c: New file.
33717
33718         Tests for module 'sinl'.
33719         * modules/sinl-tests: New file.
33720         * tests/test-sinl.c: New file.
33721
33722         Tests for module 'logl'.
33723         * modules/logl-tests: New file.
33724         * tests/test-logl.c: New file.
33725
33726         Tests for module 'expl'.
33727         * modules/expl-tests: New file.
33728         * tests/test-expl.c: New file.
33729
33730         Tests for module 'cosl'.
33731         * modules/cosl-tests: New file.
33732         * tests/test-cosl.c: New file.
33733
33734         Tests for module 'atanl'.
33735         * modules/atanl-tests: New file.
33736         * tests/test-atanl.c: New file.
33737
33738         Tests for module 'asinl'.
33739         * modules/asinl-tests: New file.
33740         * tests/test-asinl.c: New file.
33741
33742         Tests for module 'acosl'.
33743         * modules/acosl-tests: New file.
33744         * tests/test-acosl.c: New file.
33745
33746         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33747         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33748         tanl): Use the standard gnulib idiom.
33749         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33750         * lib/sinl.c: Likewise.
33751         * lib/tanl.c: Don't include trigl.c.
33752         (kernel_tanl): Make static.
33753         * lib/sincosl.c: Include trigl.h first.
33754         * lib/trigl.c: Likewise.
33755         * m4/acosl.m4: New file.
33756         * m4/asinl.m4: New file.
33757         * m4/atanl.m4: New file.
33758         * m4/cosl.m4: New file.
33759         * m4/expl.m4: New file.
33760         * m4/logl.m4: New file.
33761         * m4/sinl.m4: New file.
33762         * m4/sqrtl.m4: New file.
33763         * m4/tanl.m4: New file.
33764         * m4/mathl.m4: Remove file.
33765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33766         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33767         Don't initialize GNULIB_MATHL.
33768         * modules/acosl: New file.
33769         * modules/asinl: New file.
33770         * modules/atanl: New file.
33771         * modules/cosl: New file.
33772         * modules/expl: New file.
33773         * modules/logl: New file.
33774         * modules/sinl: New file.
33775         * modules/sqrtl: New file.
33776         * modules/tanl: New file.
33777         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33778         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33779         substitute GNULIB_MATHL.
33780         * modules/mathl: Rewritten.
33781         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33782         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33783         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33784         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33785         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33786         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33787         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33788         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33789         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33790
33791 2010-01-18  Bruno Haible  <bruno@clisp.org>
33792
33793         sqrt: Make gl_FUNC_SQRT requirable.
33794         * m4/sqrt.m4: New file.
33795         * modules/sqrt (Files): Add it.
33796         (configure.ac): Invoke gl_FUNC_SQRT.
33797
33798 2010-01-18  Bruno Haible  <bruno@clisp.org>
33799
33800         New modules for common <math.h> functions.
33801         * m4/mathfunc.m4: New file.
33802         * modules/acos: New file.
33803         * modules/asin: New file.
33804         * modules/atan: New file.
33805         * modules/atan2: New file.
33806         * modules/cbrt: New file.
33807         * modules/copysign: New file.
33808         * modules/cos: New file.
33809         * modules/cosh: New file.
33810         * modules/erf: New file.
33811         * modules/erfc: New file.
33812         * modules/exp: New file.
33813         * modules/fabs: New file.
33814         * modules/fmod: New file.
33815         * modules/hypot: New file.
33816         * modules/j0: New file.
33817         * modules/j1: New file.
33818         * modules/jn: New file.
33819         * modules/ldexp: New file.
33820         * modules/lgamma: New file.
33821         * modules/log: New file.
33822         * modules/log10: New file.
33823         * modules/log1p: New file.
33824         * modules/logb: New file.
33825         * modules/modf: New file.
33826         * modules/nextafter: New file.
33827         * modules/pow: New file.
33828         * modules/remainder: New file.
33829         * modules/rint: New file.
33830         * modules/sin: New file.
33831         * modules/sinh: New file.
33832         * modules/sqrt: New file.
33833         * modules/tan: New file.
33834         * modules/tanh: New file.
33835         * modules/y0: New file.
33836         * modules/y1: New file.
33837         * modules/yn: New file.
33838         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33839         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33840         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33841         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33842         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33843         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33844         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33845         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33846         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33847         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33848         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33849         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33850         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33851         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33852         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33853         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33854         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33855         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33856         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33857         * doc/posix-functions/log.texi: Mention the 'log' module.
33858         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33859         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33860         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33861         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33862         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33863         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33864         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33865         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33866         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33867         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33868         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33869         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33870         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33871         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33872         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33873         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33874
33875 2010-01-18  Jim Meyering  <meyering@redhat.com>
33876
33877         ignore-value: relax license to LGPLv2+
33878         * modules/ignore-value (License): Relax to LGPLv2+.
33879
33880         getdate: don't leak when TZ contains two or more '"'s
33881         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33882         double quote in TZ after the first one.
33883
33884         readtokens: do not leak internal token_lengths buffer
33885         * lib/readtokens.c (readtokens): Free the local, lengths,
33886         when the supplied "token_lengths" parameter is NULL.
33887
33888 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33889
33890         Fix a couple of missing LIBTHREAD link failures on AIX.
33891         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33892         $(LIBTHREAD).
33893         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33894
33895         Link test-poll against INET_PTON_LIB.
33896         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33897         for inet_pton on Solaris 10.
33898
33899 2010-01-17  Bruno Haible  <bruno@clisp.org>
33900
33901         unistdio/*-sprintf: Fix typo in module description.
33902         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33903         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33904         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33905         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33906         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33907         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33908         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33909         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33910
33911 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33912
33913         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33914         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33915         variables in shell case patterns, for AIX and HP-UX ksh.
33916
33917         Split large sed scripts, for HP-UX sed.
33918         * modules/stdio: Split sed scripts around 50 sed commands,
33919         to avoid HP-UX limit of 99 commands, in the near future.
33920         * modules/string: Likewise.
33921         * modules/unistd: Likewise.
33922
33923         gnulib-tool: avoid writing in the current directory.
33924         * gnulib-tool (func_emit_lib_Makefile_am)
33925         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33926         not in the current directory, so concurrent gnulib-tool
33927         instances do not interfere.
33928
33929 2010-01-16  Jim Meyering  <meyering@redhat.com>
33930
33931         doc: update users.txt
33932         * users.txt: Add grep.
33933         (diffutils, gzip): Update URLs.
33934
33935 2010-01-12  Bruno Haible  <bruno@clisp.org>
33936
33937         posix_spawn: Avoid test failure on Cygwin.
33938         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33939         characters.
33940         Reported by Simon Josefsson.
33941
33942 2010-01-12  Bruno Haible  <bruno@clisp.org>
33943
33944         * tests/test-cond.c (main): When skipping the test, show the reason.
33945
33946 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33947
33948         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33949
33950 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33951
33952         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33953         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33954
33955 2010-01-12  Eric Blake  <ebb9@byu.net>
33956
33957         build: guarantee AS_VAR_IF
33958         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33959         (gl_AS_VAR_IF): Move...
33960         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33961         Reported by Simon Josefsson.
33962
33963 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33964
33965         * lib/stdio.in.h: Fix typo.
33966
33967 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33968
33969         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33970         libgpg-error.
33971
33972 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33973
33974         * tests/test-xalloc-die.sh: Use $EXEEXT.
33975
33976 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33977             Bruno Haible  <bruno@clisp.org>
33978
33979         getlogin, getlogin_r: Avoid test failure.
33980         * tests/test-getlogin.c: Include <stdio.h>.
33981         (main): Skip the test when the function fails because stdin is not a
33982         tty.
33983         * tests/test-getlogin_r.c: Include <stdio.h>.
33984         (main): Skip the test when the function fails because stdin is not a
33985         tty.
33986
33987 2010-01-11  Eric Blake  <ebb9@byu.net>
33988
33989         tests: avoid more large file warnings
33990         * tests/test-fflush.c: Avoid warning about ftell use.
33991         * tests/test-fseek.c: Avoid warning about fseek use.
33992
33993 2010-01-10  Bruno Haible  <bruno@clisp.org>
33994
33995         nproc: Work better on Linux when /proc and /sys are not mounted.
33996         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33997         as lower bound when, on glibc/Linux systems,
33998         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33999         Suggested by Pádraig Brady <P@draigbrady.com>.
34000         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34001
34002         nproc: Refactor.
34003         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34004         extracted from num_processors.
34005         (num_processors): Call it.
34006
34007 2010-01-11  Jim Meyering  <meyering@redhat.com>
34008
34009         utimecmp: avoid new warning from upcoming gcc-4.5.0
34010         * lib/utimecmp.c (BILLION): Define using #define rather than an
34011         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34012
34013 2010-01-11  Eric Blake  <ebb9@byu.net>
34014
34015         math: add portability warnings for classification macros
34016         * modules/math (Depends-on): Add warn-on-use.
34017         (Makefile.am): Provide new substitutions.
34018         * m4/math_h.m4 (gl_MATH_H): Require inline.
34019         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34020         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34021         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34022         implement warnings.
34023
34024         unistd: warn on use of environ without module
34025         * modules/unistd (Depends-on): Add warn-on-use.
34026         (Makefile.am): Provide new substitutions.
34027         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34028         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34029
34030         stdio: warn on suspicious uses
34031         * modules/stdio (Depends-on): Add warn-on-use.
34032         (Makefile.am): Provide new substitutions.
34033         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34034         fseeko.
34035         * lib/stdio.in.h (gets): Always warn on use.
34036         (fseek, ftell): Adjust when warnings are issued, and honor
34037         _GL_NO_LARGE_FILES as a way to silence the warning.
34038         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34039         any warning about large file offsets.
34040         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34041         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34042         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34043         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34044         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34045         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34046         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34047         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34048
34049         warn-on-use: new module
34050         * modules/warn-on-use: New file.
34051         * build-aux/warn-on-use.h: Likewise.
34052         * m4/warn-on-use.m4: Likewise.
34053         * MODULES.html.sh (Support for building): Mention it.
34054
34055 2010-01-10  Bruno Haible  <bruno@clisp.org>
34056
34057         Tests for module 'unistr/u32-strdup'.
34058         * modules/unistr/u32-strdup-tests: New file.
34059         * tests/unistr/test-u32-strdup.c: New file.
34060
34061         Tests for module 'unistr/u16-strdup'.
34062         * modules/unistr/u16-strdup-tests: New file.
34063         * tests/unistr/test-u16-strdup.c: New file.
34064
34065         Tests for module 'unistr/u8-strdup'.
34066         * modules/unistr/u8-strdup-tests: New file.
34067         * tests/unistr/test-u8-strdup.c: New file.
34068         * tests/unistr/test-strdup.h: New file.
34069
34070         Tests for module 'unistr/u32-strncmp'.
34071         * modules/unistr/u32-strncmp-tests: New file.
34072         * tests/unistr/test-u32-strncmp.c: New file.
34073
34074         Tests for module 'unistr/u16-strncmp'.
34075         * modules/unistr/u16-strncmp-tests: New file.
34076         * tests/unistr/test-u16-strncmp.c: New file.
34077
34078         Tests for module 'unistr/u8-strncmp'.
34079         * modules/unistr/u8-strncmp-tests: New file.
34080         * tests/unistr/test-u8-strncmp.c: New file.
34081         * tests/unistr/test-strncmp.h: New file.
34082
34083         Tests for module 'unistr/u32-strcoll'.
34084         * modules/unistr/u32-strcoll-tests: New file.
34085         * tests/unistr/test-u32-strcoll.c: New file.
34086
34087         Tests for module 'unistr/u16-strcoll'.
34088         * modules/unistr/u16-strcoll-tests: New file.
34089         * tests/unistr/test-u16-strcoll.c: New file.
34090
34091         Tests for module 'unistr/u8-strcoll'.
34092         * modules/unistr/u8-strcoll-tests: New file.
34093         * tests/unistr/test-u8-strcoll.c: New file.
34094
34095         Tests for module 'unistr/u32-strcmp'.
34096         * modules/unistr/u32-strcmp-tests: New file.
34097         * tests/unistr/test-u32-strcmp.c: New file.
34098         * tests/unistr/test-u32-strcmp.h: New file.
34099
34100         Tests for module 'unistr/u16-strcmp'.
34101         * modules/unistr/u16-strcmp-tests: New file.
34102         * tests/unistr/test-u16-strcmp.c: New file.
34103         * tests/unistr/test-u16-strcmp.h: New file.
34104
34105         Tests for module 'unistr/u8-strcmp'.
34106         * modules/unistr/u8-strcmp-tests: New file.
34107         * tests/unistr/test-u8-strcmp.c: New file.
34108         * tests/unistr/test-u8-strcmp.h: New file.
34109         * tests/unistr/test-strcmp.h: New file.
34110
34111         Tests for module 'unistr/u32-strncat'.
34112         * modules/unistr/u32-strncat-tests: New file.
34113         * tests/unistr/test-u32-strncat.c: New file.
34114
34115         Tests for module 'unistr/u16-strncat'.
34116         * modules/unistr/u16-strncat-tests: New file.
34117         * tests/unistr/test-u16-strncat.c: New file.
34118
34119         Tests for module 'unistr/u8-strncat'.
34120         * modules/unistr/u8-strncat-tests: New file.
34121         * tests/unistr/test-u8-strncat.c: New file.
34122         * tests/unistr/test-strncat.h: New file.
34123
34124         Tests for module 'unistr/u32-strcat'.
34125         * modules/unistr/u32-strcat-tests: New file.
34126         * tests/unistr/test-u32-strcat.c: New file.
34127
34128         Tests for module 'unistr/u16-strcat'.
34129         * modules/unistr/u16-strcat-tests: New file.
34130         * tests/unistr/test-u16-strcat.c: New file.
34131
34132         Tests for module 'unistr/u8-strcat'.
34133         * modules/unistr/u8-strcat-tests: New file.
34134         * tests/unistr/test-u8-strcat.c: New file.
34135         * tests/unistr/test-strcat.h: New file.
34136
34137         Tests for module 'unistr/u32-stpncpy'.
34138         * modules/unistr/u32-stpncpy-tests: New file.
34139         * tests/unistr/test-u32-stpncpy.c: New file.
34140
34141         Tests for module 'unistr/u16-stpncpy'.
34142         * modules/unistr/u16-stpncpy-tests: New file.
34143         * tests/unistr/test-u16-stpncpy.c: New file.
34144
34145         Tests for module 'unistr/u8-stpncpy'.
34146         * modules/unistr/u8-stpncpy-tests: New file.
34147         * tests/unistr/test-u8-stpncpy.c: New file.
34148         * tests/unistr/test-stpncpy.h: New file.
34149
34150         Tests for module 'unistr/u32-strncpy'.
34151         * modules/unistr/u32-strncpy-tests: New file.
34152         * tests/unistr/test-u32-strncpy.c: New file.
34153
34154         Tests for module 'unistr/u16-strncpy'.
34155         * modules/unistr/u16-strncpy-tests: New file.
34156         * tests/unistr/test-u16-strncpy.c: New file.
34157
34158         Tests for module 'unistr/u8-strncpy'.
34159         * modules/unistr/u8-strncpy-tests: New file.
34160         * tests/unistr/test-u8-strncpy.c: New file.
34161         * tests/unistr/test-strncpy.h: New file.
34162
34163         Tests for module 'unistr/u32-stpcpy'.
34164         * modules/unistr/u32-stpcpy-tests: New file.
34165         * tests/unistr/test-u32-stpcpy.c: New file.
34166
34167         Tests for module 'unistr/u16-stpcpy'.
34168         * modules/unistr/u16-stpcpy-tests: New file.
34169         * tests/unistr/test-u16-stpcpy.c: New file.
34170
34171         Tests for module 'unistr/u8-stpcpy'.
34172         * modules/unistr/u8-stpcpy-tests: New file.
34173         * tests/unistr/test-u8-stpcpy.c: New file.
34174         * tests/unistr/test-stpcpy.h: New file.
34175
34176         Tests for module 'unistr/u32-strcpy'.
34177         * modules/unistr/u32-strcpy-tests: New file.
34178         * tests/unistr/test-u32-strcpy.c: New file.
34179
34180         Tests for module 'unistr/u16-strcpy'.
34181         * modules/unistr/u16-strcpy-tests: New file.
34182         * tests/unistr/test-u16-strcpy.c: New file.
34183
34184         Tests for module 'unistr/u8-strcpy'.
34185         * modules/unistr/u8-strcpy-tests: New file.
34186         * tests/unistr/test-u8-strcpy.c: New file.
34187         * tests/unistr/test-strcpy.h: New file.
34188
34189         Tests for module 'unistr/u32-strnlen'.
34190         * modules/unistr/u32-strnlen-tests: New file.
34191         * tests/unistr/test-u32-strnlen.c: New file.
34192
34193         Tests for module 'unistr/u16-strnlen'.
34194         * modules/unistr/u16-strnlen-tests: New file.
34195         * tests/unistr/test-u16-strnlen.c: New file.
34196
34197         Tests for module 'unistr/u8-strnlen'.
34198         * modules/unistr/u8-strnlen-tests: New file.
34199         * tests/unistr/test-u8-strnlen.c: New file.
34200         * tests/unistr/test-strnlen.h: New file.
34201
34202         Tests for module 'unistr/u32-strlen'.
34203         * modules/unistr/u32-strlen-tests: New file.
34204         * tests/unistr/test-u32-strlen.c: New file.
34205
34206         Tests for module 'unistr/u16-strlen'.
34207         * modules/unistr/u16-strlen-tests: New file.
34208         * tests/unistr/test-u16-strlen.c: New file.
34209
34210         Tests for module 'unistr/u8-strlen'.
34211         * modules/unistr/u8-strlen-tests: New file.
34212         * tests/unistr/test-u8-strlen.c: New file.
34213
34214         Tests for module 'unistr/u32-prev'.
34215         * modules/unistr/u32-prev-tests: New file.
34216         * tests/unistr/test-u32-prev.c: New file.
34217
34218         Tests for module 'unistr/u16-prev'.
34219         * modules/unistr/u16-prev-tests: New file.
34220         * tests/unistr/test-u16-prev.c: New file.
34221
34222         Tests for module 'unistr/u8-prev'.
34223         * modules/unistr/u8-prev-tests: New file.
34224         * tests/unistr/test-u8-prev.c: New file.
34225
34226         Tests for module 'unistr/u32-next'.
34227         * modules/unistr/u32-next-tests: New file.
34228         * tests/unistr/test-u32-next.c: New file.
34229
34230         Tests for module 'unistr/u16-next'.
34231         * modules/unistr/u16-next-tests: New file.
34232         * tests/unistr/test-u16-next.c: New file.
34233
34234         Tests for module 'unistr/u8-next'.
34235         * modules/unistr/u8-next-tests: New file.
34236         * tests/unistr/test-u8-next.c: New file.
34237
34238         Tests for module 'unistr/u32-strmbtouc'.
34239         * modules/unistr/u32-strmbtouc-tests: New file.
34240         * tests/unistr/test-u32-strmbtouc.c: New file.
34241
34242         Tests for module 'unistr/u16-strmbtouc'.
34243         * modules/unistr/u16-strmbtouc-tests: New file.
34244         * tests/unistr/test-u16-strmbtouc.c: New file.
34245
34246         Tests for module 'unistr/u8-strmbtouc'.
34247         * modules/unistr/u8-strmbtouc-tests: New file.
34248         * tests/unistr/test-u8-strmbtouc.c: New file.
34249
34250         Tests for module 'unistr/u32-strmblen'.
34251         * modules/unistr/u32-strmblen-tests: New file.
34252         * tests/unistr/test-u32-strmblen.c: New file.
34253
34254         Tests for module 'unistr/u16-strmblen'.
34255         * modules/unistr/u16-strmblen-tests: New file.
34256         * tests/unistr/test-u16-strmblen.c: New file.
34257
34258         Tests for module 'unistr/u8-strmblen'.
34259         * modules/unistr/u8-strmblen-tests: New file.
34260         * tests/unistr/test-u8-strmblen.c: New file.
34261
34262         Tests for module 'unistr/u32-cpy-alloc'.
34263         * modules/unistr/u32-cpy-alloc-tests: New file.
34264         * tests/unistr/test-u32-cpy-alloc.c: New file.
34265
34266         Tests for module 'unistr/u16-cpy-alloc'.
34267         * modules/unistr/u16-cpy-alloc-tests: New file.
34268         * tests/unistr/test-u16-cpy-alloc.c: New file.
34269
34270         Tests for module 'unistr/u8-cpy-alloc'.
34271         * modules/unistr/u8-cpy-alloc-tests: New file.
34272         * tests/unistr/test-u8-cpy-alloc.c: New file.
34273         * tests/unistr/test-cpy-alloc.h: New file.
34274
34275         Tests for module 'unistr/u32-mbsnlen'.
34276         * modules/unistr/u32-mbsnlen-tests: New file.
34277         * tests/unistr/test-u32-mbsnlen.c: New file.
34278
34279         Tests for module 'unistr/u16-mbsnlen'.
34280         * modules/unistr/u16-mbsnlen-tests: New file.
34281         * tests/unistr/test-u16-mbsnlen.c: New file.
34282
34283         Tests for module 'unistr/u8-mbsnlen'.
34284         * modules/unistr/u8-mbsnlen-tests: New file.
34285         * tests/unistr/test-u8-mbsnlen.c: New file.
34286
34287         Tests for module 'unistr/u32-chr'.
34288         * modules/unistr/u32-chr-tests: New file.
34289         * tests/unistr/test-u32-chr.c: New file.
34290
34291         Tests for module 'unistr/u16-chr'.
34292         * modules/unistr/u16-chr-tests: New file.
34293         * tests/unistr/test-u16-chr.c: New file.
34294
34295         Tests for module 'unistr/u8-chr'.
34296         * modules/unistr/u8-chr-tests: New file.
34297         * tests/unistr/test-u8-chr.c: New file.
34298         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34299
34300         Tests for module 'unistr/u32-cmp2'.
34301         * modules/unistr/u32-cmp2-tests: New file.
34302         * tests/unistr/test-u32-cmp2.c: New file.
34303
34304         Tests for module 'unistr/u16-cmp2'.
34305         * modules/unistr/u16-cmp2-tests: New file.
34306         * tests/unistr/test-u16-cmp2.c: New file.
34307
34308         Tests for module 'unistr/u8-cmp2'.
34309         * modules/unistr/u8-cmp2-tests: New file.
34310         * tests/unistr/test-u8-cmp2.c: New file.
34311         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34312
34313         Tests for module 'unistr/u32-cmp'.
34314         * modules/unistr/u32-cmp-tests: New file.
34315         * tests/unistr/test-u32-cmp.c: New file.
34316
34317         Tests for module 'unistr/u16-cmp'.
34318         * modules/unistr/u16-cmp-tests: New file.
34319         * tests/unistr/test-u16-cmp.c: New file.
34320
34321         Tests for module 'unistr/u8-cmp'.
34322         * modules/unistr/u8-cmp-tests: New file.
34323         * tests/unistr/test-u8-cmp.c: New file.
34324         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34325
34326         Tests for module 'unistr/u32-set'.
34327         * modules/unistr/u32-set-tests: New file.
34328         * tests/unistr/test-u32-set.c: New file.
34329
34330         Tests for module 'unistr/u16-set'.
34331         * modules/unistr/u16-set-tests: New file.
34332         * tests/unistr/test-u16-set.c: New file.
34333
34334         Tests for module 'unistr/u8-set'.
34335         * modules/unistr/u8-set-tests: New file.
34336         * tests/unistr/test-u8-set.c: New file.
34337         * tests/unistr/test-set.h: New file.
34338
34339         Tests for module 'unistr/u32-move'.
34340         * modules/unistr/u32-move-tests: New file.
34341         * tests/unistr/test-u32-move.c: New file.
34342
34343         Tests for module 'unistr/u16-move'.
34344         * modules/unistr/u16-move-tests: New file.
34345         * tests/unistr/test-u16-move.c: New file.
34346
34347         Tests for module 'unistr/u8-move'.
34348         * modules/unistr/u8-move-tests: New file.
34349         * tests/unistr/test-u8-move.c: New file.
34350         * tests/unistr/test-move.h: New file.
34351
34352         Tests for module 'unistr/u32-cpy'.
34353         * modules/unistr/u32-cpy-tests: New file.
34354         * tests/unistr/test-u32-cpy.c: New file.
34355
34356         Tests for module 'unistr/u16-cpy'.
34357         * modules/unistr/u16-cpy-tests: New file.
34358         * tests/unistr/test-u16-cpy.c: New file.
34359
34360         Tests for module 'unistr/u8-cpy'.
34361         * modules/unistr/u8-cpy-tests: New file.
34362         * tests/unistr/test-u8-cpy.c: New file.
34363         * tests/unistr/test-cpy.h: New file.
34364
34365 2010-01-09  Bruno Haible  <bruno@clisp.org>
34366
34367         Tests for module 'unistr/u32-uctomb'.
34368         * modules/unistr/u32-uctomb-tests: New file.
34369         * tests/unistr/test-u32-uctomb.c: New file.
34370
34371         Tests for module 'unistr/u16-uctomb'.
34372         * modules/unistr/u16-uctomb-tests: New file.
34373         * tests/unistr/test-u16-uctomb.c: New file.
34374
34375         Tests for module 'unistr/u8-uctomb'.
34376         * modules/unistr/u8-uctomb-tests: New file.
34377         * tests/unistr/test-u8-uctomb.c: New file.
34378
34379         Tests for module 'unistr/u32-mbtoucr'.
34380         * modules/unistr/u32-mbtoucr-tests: New file.
34381         * tests/unistr/test-u32-mbtoucr.c: New file.
34382
34383         Tests for module 'unistr/u16-mbtoucr'.
34384         * modules/unistr/u16-mbtoucr-tests: New file.
34385         * tests/unistr/test-u16-mbtoucr.c: New file.
34386
34387         Tests for module 'unistr/u8-mbtoucr'.
34388         * modules/unistr/u8-mbtoucr-tests: New file.
34389         * tests/unistr/test-u8-mbtoucr.c: New file.
34390
34391         Tests for module 'unistr/u32-mbtouc'.
34392         * modules/unistr/u32-mbtouc-tests: New file.
34393         * tests/unistr/test-u32-mbtouc.c: New file.
34394
34395         Tests for module 'unistr/u16-mbtouc'.
34396         * modules/unistr/u16-mbtouc-tests: New file.
34397         * tests/unistr/test-u16-mbtouc.c: New file.
34398
34399         Tests for module 'unistr/u8-mbtouc'.
34400         * modules/unistr/u8-mbtouc-tests: New file.
34401         * tests/unistr/test-u8-mbtouc.c: New file.
34402
34403         Tests for module 'unistr/u32-mbtouc-unsafe'.
34404         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34405         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34406         * tests/unistr/test-u32-mbtouc.h: New file.
34407
34408         Tests for module 'unistr/u16-mbtouc-unsafe'.
34409         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34410         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34411         * tests/unistr/test-u16-mbtouc.h: New file.
34412
34413         Tests for module 'unistr/u8-mbtouc-unsafe'.
34414         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34415         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34416         * tests/unistr/test-u8-mbtouc.h: New file.
34417
34418         Tests for module 'unistr/u32-mblen'.
34419         * modules/unistr/u32-mblen-tests: New file.
34420         * tests/unistr/test-u32-mblen.c: New file.
34421
34422         Tests for module 'unistr/u16-mblen'.
34423         * modules/unistr/u16-mblen-tests: New file.
34424         * tests/unistr/test-u16-mblen.c: New file.
34425
34426         Tests for module 'unistr/u8-mblen'.
34427         * modules/unistr/u8-mblen-tests: New file.
34428         * tests/unistr/test-u8-mblen.c: New file.
34429
34430         Tests for module 'unistr/u32-to-u16'.
34431         * modules/unistr/u32-to-u16-tests: New file.
34432         * tests/unistr/test-u32-to-u16.c: New file.
34433
34434         Tests for module 'unistr/u32-to-u8'.
34435         * modules/unistr/u32-to-u8-tests: New file.
34436         * tests/unistr/test-u32-to-u8.c: New file.
34437
34438         Tests for module 'unistr/u16-to-u32'.
34439         * modules/unistr/u16-to-u32-tests: New file.
34440         * tests/unistr/test-u16-to-u32.c: New file.
34441
34442         Tests for module 'unistr/u16-to-u8'.
34443         * modules/unistr/u16-to-u8-tests: New file.
34444         * tests/unistr/test-u16-to-u8.c: New file.
34445
34446         Tests for module 'unistr/u8-to-u32'.
34447         * modules/unistr/u8-to-u32-tests: New file.
34448         * tests/unistr/test-u8-to-u32.c: New file.
34449
34450         Tests for module 'unistr/u8-to-u16'.
34451         * modules/unistr/u8-to-u16-tests: New file.
34452         * tests/unistr/test-u8-to-u16.c: New file.
34453
34454         Tests for module 'unistr/u32-check'.
34455         * modules/unistr/u32-check-tests: New file.
34456         * tests/unistr/test-u32-check.c: New file.
34457
34458         Tests for module 'unistr/u16-check'.
34459         * modules/unistr/u16-check-tests: New file.
34460         * tests/unistr/test-u16-check.c: New file.
34461
34462         Tests for module 'unistr/u8-check'.
34463         * modules/unistr/u8-check-tests: New file.
34464         * tests/unistr/test-u8-check.c: New file.
34465
34466         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34467         (category_equals): New function.
34468         (main): Add more tests.
34469         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34470
34471         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34472
34473 2010-01-10  Bruno Haible  <bruno@clisp.org>
34474
34475         unistr/u*-strcoll: Try harder to distinguish different strings.
34476         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34477         compare s1 and s2 to see if they are different.
34478
34479 2010-01-10  Bruno Haible  <bruno@clisp.org>
34480
34481         unistr/u*-stpncpy: Fix the return value.
34482         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34483         description of the return value consistent with stpncpy in glibc.
34484         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34485         written non-NUL unit.
34486
34487 2010-01-10  Bruno Haible  <bruno@clisp.org>
34488
34489         unistr/u*-next: Add missing dependencies.
34490         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34491         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34492         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34493
34494 2010-01-10  Bruno Haible  <bruno@clisp.org>
34495
34496         unistr/u8-mbsnlen: Fix return value for incomplete character.
34497         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34498         u8_mblen.
34499         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34500         Remove unistr/u8-mblen.
34501         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34502         u16_mblen.
34503         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34504         Remove unistr/u16-mblen.
34505
34506 2010-01-10  Bruno Haible  <bruno@clisp.org>
34507
34508         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34509         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34510         Reported by Brian Gough <bjg@gnu.org> and
34511         Chris Clayton <chris2553@googlemail.com> via
34512         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34513
34514 2010-01-09  Bruno Haible  <bruno@clisp.org>
34515
34516         unistr/u16-to-u32: Reject invalid input.
34517         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34518         u16_mbtouc.
34519         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34520         Remove unistr/u16-mbtouc.
34521
34522         unistr/u16-to-u8: Reject invalid input.
34523         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34524         u16_mbtouc.
34525         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34526         Remove unistr/u16-mbtouc.
34527
34528         unistr/u8-to-u32: Reject invalid input.
34529         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34530         u8_mbtouc.
34531         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34532         Remove unistr/u8-mbtouc.
34533
34534         unistr/u8-to-u16: Reject invalid input.
34535         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34536         u8_mbtouc.
34537         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34538         Remove unistr/u8-mbtouc.
34539
34540 2010-01-09  Bruno Haible  <bruno@clisp.org>
34541
34542         Tests for module 'getlogin'.
34543         * modules/getlogin-tests: New file.
34544         * tests/test-getlogin.c: New file.
34545
34546         New module 'getlogin'.
34547         * lib/unistd.in.h (getlogin): New declaration.
34548         * lib/getlogin.c: New file.
34549         * m4/getlogin.m4: New file.
34550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34551         HAVE_GETLOGIN.
34552         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34553         HAVE_GETLOGIN.
34554         * modules/getlogin: New file.
34555         * doc/posix-functions/getlogin.texi: Mention the new module.
34556         Reported by John W. Eaton <jwe@gnu.org>.
34557
34558 2010-01-09  Bruno Haible  <bruno@clisp.org>
34559
34560         getlogin_r: Support for native Windows.
34561         * lib/getlogin_r.c: Include <windows.h>
34562         (getlogin_r): Implement for native Windows.
34563         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34564         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34565         via John W. Eaton <jwe@gnu.org>.
34566
34567 2010-01-09  Bruno Haible  <bruno@clisp.org>
34568
34569         getlogin_r: Small fixes.
34570         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34571         succeeds.
34572         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34573         before testing whether getlogin_r is declared. No need to set
34574         HAVE_DECL_GETLOGIN_R to 1.
34575         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34576
34577 2010-01-09  Bruno Haible  <bruno@clisp.org>
34578
34579         * lib/unistd.in.h (getlogin_r): Add comment.
34580
34581 2010-01-09  Bruno Haible  <bruno@clisp.org>
34582
34583         Tests for module 'getlogin_r'.
34584         * modules/getlogin_r-tests: New file.
34585         * tests/test-getlogin_r.c: New file.
34586
34587 2010-01-09  Jim Meyering  <meyering@redhat.com>
34588
34589         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34590         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34591         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34592
34593 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34594
34595         * lib/dup2.c (rpl_dup2): Improve comment.
34596
34597 2010-01-08  Eric Blake  <ebb9@byu.net>
34598
34599         maint.mk: allow packages to add makefile @@ exceptions
34600         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34601         (sc_makefile_check): Rename...
34602         (sc_makefile_at_at_check): ...to this, and use hook.
34603
34604         dup2: work around mingw bug
34605         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34606         Reported by Simon Josefsson.
34607
34608 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34609
34610         glob: Fix C++ compilation.
34611         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34612         C++.
34613
34614 2010-01-07  Bruno Haible  <bruno@clisp.org>
34615
34616         Fix indentation of wctype.in.h, broken since 2007-01-06.
34617         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34618
34619 2010-01-07  Bruno Haible  <bruno@clisp.org>
34620
34621         mbslen: Avoid collision with system function.
34622         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34623         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34624         * m4/mbslen.m4: New file.
34625         * modules/mbslen (Files): Add it.
34626         (configure.ac): Invoke gl_MBSLEN.
34627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34628         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34629         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34630         via Ian Beckwith <ianb@erislabs.net>.
34631
34632 2010-01-07  Bruno Haible  <bruno@clisp.org>
34633
34634         dirent: Document the last fix.
34635         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34636
34637 2010-01-07  Bruno Haible  <bruno@clisp.org>
34638
34639         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34640         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34641         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34642         va_list are defined.
34643         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34644         Reported by Eric Blake.
34645
34646 2010-01-07  Bruno Haible  <bruno@clisp.org>
34647
34648         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34649         * modules/xlist (Depends-on): Add 'list',
34650         * modules/xoset (Depends-on): Add 'oset'.
34651         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34652
34653 2010-01-07  Bruno Haible  <bruno@clisp.org>
34654
34655         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34656         * doc/posix-functions/strncasecmp.texi: Likewise.
34657
34658 2010-01-07  Bruno Haible  <bruno@clisp.org>
34659
34660         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34661
34662 2010-01-07  John W. Eaton  <jwe@octave.org>
34663
34664         wctype: allow C++ use
34665         * lib/wctype.in.h: Add extern "C" block for C++.
34666
34667 2010-01-06  Eric Blake  <ebb9@byu.net>
34668
34669         maint.mk: detect incorrect GFDL usage
34670         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34671
34672 2010-01-06  Jim Meyering  <meyering@redhat.com>
34673         and Eric Blake  <ebb9@byu.net>
34674
34675         maint.mk: ignore multi-line copyright in NEWS
34676         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34677
34678 2010-01-06  Eric Blake  <ebb9@byu.net>
34679
34680         select: add missing dependency
34681         * modules/select-tests (Depends-on): Move sockets dependency...
34682         * modules/select (Depends-on): ...here.
34683         Reported by Ian Beckwith.
34684
34685         doc: regenerate INSTALL
34686         * doc/INSTALL: Reflect recent autoconf update.
34687         * doc/INSTALL.ISO: Likewise.
34688         * doc/INSTALL.UTF-8: Likewise.
34689
34690         pread: fix compilation on glibc
34691         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34692         Reported by Ralf Wildenhues.
34693
34694         dirent: fix test failure
34695         * lib/dirent.in.h (includes): Guarantee ino_t.
34696         Reported by Ralf Wildenhues.
34697
34698 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34699
34700         linkat, renameat: avoid bad free
34701         * lib/at-func2.c (at_func2): Fix typo.
34702         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34703
34704 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34705
34706         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34707         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34708         to avoid failure of symlink test later.
34709
34710 2010-01-06  Eric Blake  <ebb9@byu.net>
34711
34712         stdio, unistd: guarantee ssize_t
34713         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34714         2008 are exposed when needed.
34715         * lib/stdio.in.h (includes): Likewise.
34716         Reported by Ralf Wildenhues.
34717
34718 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34719
34720         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34721         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34722         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34723
34724 2010-01-06  Jim Meyering  <meyering@redhat.com>
34725
34726         readtokens: this module *does* require xalloc.h
34727         It uses only functions that were omitted by the old syntax-check rule.
34728         * lib/readtokens.c: Include "xalloc.h" once again.
34729         * modules/readtokens (Depends-on): Add xalloc.
34730         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34731
34732 2010-01-05  Eric Blake  <ebb9@byu.net>
34733
34734         maint: support 'make announcement' from a VPATH build
34735         * top/maint.mk (announcement): Look for correct NEWS file.
34736
34737 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34738
34739         utimens (fdutimens): ignore a negative FD, per contract
34740         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34741         when we have a valid file descriptor.  Otherwise, using a brand
34742         new glibc (with just-patched futimens that now fails with EBADF)
34743         would cause this function to fail with ENOSYS.
34744         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34745         See also http://bugzilla.redhat.com/552320.
34746
34747 2010-01-05  Eric Blake  <ebb9@byu.net>
34748
34749         strcase: document what it provides
34750         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34751         gnulib module.
34752         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34753         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34754
34755 2010-01-05  Jim Meyering  <meyering@redhat.com>
34756
34757         maint: remove useless inclusions of "xalloc.h"
34758         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34759         * lib/readtokens.c: Likewise.
34760         * lib/same.c: Likewise.
34761         * modules/getloadavg (Depends-on): Remove xalloc.
34762         * modules/readtokens: Likewise.
34763         * modules/same: Likewise.
34764
34765         maint.mk: include 4 more function names in alloca.h-checking regexp
34766         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34767         regexp.  Before, we would give a false-positive (saying alloca.h
34768         is included unnecessarily) when the only uses involved omitted symbols.
34769
34770         xalloc.h: use consistent formatting
34771         * lib/xalloc.h: Move declarations to start in the first column.
34772
34773 2010-01-05  Eric Blake  <ebb9@byu.net>
34774
34775         mkdir: avoid xalloc
34776         * lib/mkdir.c (includes): Drop unused header.
34777         Reported by John W. Eaton.
34778
34779 2010-01-04  Jim Meyering  <meyering@redhat.com>
34780
34781         nl_langinfo: avoid configure-time syntax error
34782         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34783         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34784         the empty string.  Don't let that provoke a shell syntax error.
34785
34786         regcomp, regexec, fnmatch: avoid array bounds read error
34787         * lib/regcomp.c (build_equiv_class): From glibc:
34788         Use only the low 24 bits of a findidx return value as an index
34789         into the weights array.  Patch by Ulrich Drepper:
34790         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34791         * lib/regexec.c (check_node_accept_bytes): Likewise.
34792         * lib/fnmatch_loop.c (FCT): Likewise.
34793
34794         regcomp: skip collseq lookup when there are no rules
34795         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34796         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34797
34798         regcomp: recognize ill-formed { } expressions
34799         * lib/regcomp.c (parse_dup_op): From glibc:
34800         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34801
34802         regcomp: fix typo in comment
34803         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34804         s/satisfy/satisfies/.
34805
34806         regcomp: sync from glibc: remove dead store
34807         * lib/regcomp.c (duplicate_node_closure): Remove useless
34808         search_duplicated_node call and dead store.
34809
34810         regcomp: sync from glibc; always use nl_langinfo
34811         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34812         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34813         * modules/regex (Depends-on): Add nl_langinfo.
34814
34815 2010-01-04  Eric Blake  <ebb9@byu.net>
34816
34817         fdopendir: fix configure test
34818         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34819
34820 2010-01-01  Bruno Haible  <bruno@clisp.org>
34821
34822         wchar: Remove unused configure check.
34823         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34824
34825 2010-01-01  Eric Blake  <ebb9@byu.net>
34826
34827         headers: make check of system header explicit
34828         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34829         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34830         ourselves.
34831         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34832         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34833         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34834         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34835         internals.
34836         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34837         missing.
34838         Suggested by Bruno Haible.
34839
34840 2010-01-01  Jim Meyering  <meyering@redhat.com>
34841
34842         ChangeLog: tweak to eliminate unnecessary copyright line
34843         * ChangeLog: Remove a copyright line that was mistakenly updated
34844         by today's update-copyright run.  Reported by Eric Blake.
34845
34846         test-update-copyright: don't let envvar setting cause test failure
34847         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34848
34849 2010-01-01  Bruno Haible  <bruno@clisp.org>
34850
34851         localename: Avoid gcc warning.
34852         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34853         function if it is not used.
34854
34855 2010-01-01  Jim Meyering  <meyering@redhat.com>
34856
34857         update nearly all FSF copyright year lists to include 2010
34858         Use the same procedure as for 2009, outlined in
34859         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34860
34861         version-etc: set COPYRIGHT_YEAR to 2010
34862         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34863
34864 2009-12-31  Eric Blake  <ebb9@byu.net>
34865
34866         doc: correct availability of cygwin 1.5.x getopt
34867         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34868         variables.
34869         * doc/posix-functions/opterr.texi (opterr): Likewise.
34870         * doc/posix-functions/optind.texi (optind): Likewise.
34871         * doc/posix-functions/optopt.texi (optopt): Likewise.
34872         * doc/posix-functions/tzname.texi (tzname): Likewise.
34873
34874         openat: update maintainer
34875         * modules/openat (Maintainer): Add myself.
34876
34877         utimens: avoid shadowing warning
34878         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34879         buffers into one, to avoid shadowing, as well as avoiding a
34880         redundant stat.
34881         Reported by Jim Meyering.
34882
34883         test-dup2: avoid compiler warning
34884         * tests/test-dup2.c (is_inheritable): Only define if used.
34885
34886 2010-01-01  Bruno Haible  <bruno@clisp.org>
34887
34888         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34889         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34890         defined, use wctomb instead of wcrtomb.
34891
34892 2010-01-01  Bruno Haible  <bruno@clisp.org>
34893
34894         iconv: Reject native Solaris iconv.
34895         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34896         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34897
34898 2009-12-31  Bruno Haible  <bruno@clisp.org>
34899
34900         * tests/test-signal.c (main): Remove test of 'SIG'.
34901
34902 2009-12-31  Bruno Haible  <bruno@clisp.org>
34903
34904         spawn: Fix incomplete fix.
34905         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34906         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34907         warnings for GNULIB_POSIXCHECK again.
34908         Reported by Eric Blake.
34909
34910 2009-12-31  Bruno Haible  <bruno@clisp.org>
34911
34912         Avoid namespace pollution on glibc systems.
34913         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34914         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34915         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34916         glibc systems.
34917
34918 2009-12-31  Bruno Haible  <bruno@clisp.org>
34919
34920         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34921         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34922         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34923         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34924         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34925         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34926         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34927
34928 2009-12-31  Bruno Haible  <bruno@clisp.org>
34929
34930         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34931         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34932         afterwards.
34933
34934 2009-12-31  Bruno Haible  <bruno@clisp.org>
34935
34936         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34937         SYS_UTSNAME_H.
34938
34939 2009-12-31  Bruno Haible  <bruno@clisp.org>
34940
34941         spawn: Fix misapplied patch.
34942         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34943         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34944         warnings for GNULIB_POSIXCHECK.
34945
34946 2009-12-31  Bruno Haible  <bruno@clisp.org>
34947
34948         times: Update after sys_times changed.
34949         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34950         * modules/times (Files): Add it.
34951         (configure.ac): Invoke gl_FUNC_TIMES.
34952
34953 2009-12-31  Bruno Haible  <bruno@clisp.org>
34954
34955         Use AC_C_INLINE where necessary.
34956         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34957         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34958         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34959         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34960         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34961         * m4/mbiter.m4 (gl_MBITER): Likewise.
34962         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34963         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34964         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34965         * modules/u64 (configure.ac): Likewise.
34966
34967 2009-12-31  Bruno Haible  <bruno@clisp.org>
34968
34969         Use AC_C_INLINE instead of module 'inline' where possible.
34970         * modules/inline (Description): Clarify purpose.
34971         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34972         * modules/count-one-bits (Depends-on): Remove inline.
34973         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34974         * modules/openat (Depends-on): Remove inline.
34975         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34976         instead of depending on module 'inline'.
34977         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34978         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34979         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34980         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34981         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34982         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34983         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34984         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34985         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34986         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34987         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34988         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34989         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34990         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34991         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34992         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34993         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34994         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34995         Likewise.
34996         * modules/unictype/property-ascii-hex-digit (Depends-on,
34997         configure.ac): Likewise.
34998         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34999         configure.ac): Likewise.
35000         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35001         configure.ac): Likewise.
35002         * modules/unictype/property-bidi-block-separator (Depends-on,
35003         configure.ac): Likewise.
35004         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35005         configure.ac): Likewise.
35006         * modules/unictype/property-bidi-common-separator (Depends-on,
35007         configure.ac): Likewise.
35008         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35009         Likewise.
35010         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35011         configure.ac): Likewise.
35012         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35013         configure.ac): Likewise.
35014         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35015         configure.ac): Likewise.
35016         * modules/unictype/property-bidi-european-digit (Depends-on,
35017         configure.ac): Likewise.
35018         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35019         configure.ac): Likewise.
35020         * modules/unictype/property-bidi-left-to-right (Depends-on,
35021         configure.ac): Likewise.
35022         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35023         configure.ac): Likewise.
35024         * modules/unictype/property-bidi-other-neutral (Depends-on,
35025         configure.ac): Likewise.
35026         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35027         Likewise.
35028         * modules/unictype/property-bidi-segment-separator (Depends-on,
35029         configure.ac): Likewise.
35030         * modules/unictype/property-bidi-whitespace (Depends-on,
35031         configure.ac): Likewise.
35032         * modules/unictype/property-combining (Depends-on, configure.ac):
35033         Likewise.
35034         * modules/unictype/property-composite (Depends-on, configure.ac):
35035         Likewise.
35036         * modules/unictype/property-currency-symbol (Depends-on,
35037         configure.ac): Likewise.
35038         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35039         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35040         Likewise.
35041         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35042         configure.ac): Likewise.
35043         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35044         Likewise.
35045         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35046         Likewise.
35047         * modules/unictype/property-extender (Depends-on, configure.ac):
35048         Likewise.
35049         * modules/unictype/property-format-control (Depends-on, configure.ac):
35050         Likewise.
35051         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35052         Likewise.
35053         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35054         Likewise.
35055         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35056         Likewise.
35057         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35058         Likewise.
35059         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35060         Likewise.
35061         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35062         Likewise.
35063         * modules/unictype/property-id-start (Depends-on, configure.ac):
35064         Likewise.
35065         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35066         Likewise.
35067         * modules/unictype/property-ids-binary-operator (Depends-on,
35068         configure.ac): Likewise.
35069         * modules/unictype/property-ids-trinary-operator (Depends-on,
35070         configure.ac): Likewise.
35071         * modules/unictype/property-ignorable-control (Depends-on,
35072         configure.ac): Likewise.
35073         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35074         Likewise.
35075         * modules/unictype/property-join-control (Depends-on, configure.ac):
35076         Likewise.
35077         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35078         Likewise.
35079         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35080         Likewise.
35081         * modules/unictype/property-logical-order-exception (Depends-on,
35082         configure.ac): Likewise.
35083         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35084         Likewise.
35085         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35086         * modules/unictype/property-non-break (Depends-on, configure.ac):
35087         Likewise.
35088         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35089         Likewise.
35090         * modules/unictype/property-numeric (Depends-on, configure.ac):
35091         Likewise.
35092         * modules/unictype/property-other-alphabetic (Depends-on,
35093         configure.ac): Likewise.
35094         * modules/unictype/property-other-default-ignorable-code-point
35095         (Depends-on, configure.ac): Likewise.
35096         * modules/unictype/property-other-grapheme-extend (Depends-on,
35097         configure.ac): Likewise.
35098         * modules/unictype/property-other-id-continue (Depends-on,
35099         configure.ac): Likewise.
35100         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35101         Likewise.
35102         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35103         Likewise.
35104         * modules/unictype/property-other-math (Depends-on, configure.ac):
35105         Likewise.
35106         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35107         Likewise.
35108         * modules/unictype/property-paired-punctuation (Depends-on,
35109         configure.ac): Likewise.
35110         * modules/unictype/property-paragraph-separator (Depends-on,
35111         configure.ac): Likewise.
35112         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35113         Likewise.
35114         * modules/unictype/property-pattern-white-space (Depends-on,
35115         configure.ac): Likewise.
35116         * modules/unictype/property-private-use (Depends-on, configure.ac):
35117         Likewise.
35118         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35119         Likewise.
35120         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35121         Likewise.
35122         * modules/unictype/property-radical (Depends-on, configure.ac):
35123         Likewise.
35124         * modules/unictype/property-sentence-terminal (Depends-on,
35125         configure.ac): Likewise.
35126         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35127         Likewise.
35128         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35129         * modules/unictype/property-terminal-punctuation (Depends-on,
35130         configure.ac): Likewise.
35131         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35132         Likewise.
35133         * modules/unictype/property-unassigned-code-value (Depends-on,
35134         configure.ac): Likewise.
35135         * modules/unictype/property-unified-ideograph (Depends-on,
35136         configure.ac): Likewise.
35137         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35138         Likewise.
35139         * modules/unictype/property-variation-selector (Depends-on,
35140         configure.ac): Likewise.
35141         * modules/unictype/property-white-space (Depends-on, configure.ac):
35142         Likewise.
35143         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35144         Likewise.
35145         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35146         Likewise.
35147         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35148         Likewise.
35149         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35150         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35151         Likewise.
35152
35153 2009-12-31  Bruno Haible  <bruno@clisp.org>
35154
35155         Remove unnecessary AC_C_INLINE invocation.
35156         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35157         since 2009-08-21.
35158
35159 2009-12-31  Jim Meyering  <meyering@redhat.com>
35160
35161         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35162         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35163         With this change, we can all remove the gpg_key_ID = ... definition
35164         from our respective cfg.mk files.
35165
35166         maint.mk: create announcement template in ~/, not in /tmp
35167         * top/maint.mk (emit_upload_commands): Adjust.
35168         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35169         Remove temporary file, .ci-msg.
35170
35171 2009-12-31  Eric Blake  <ebb9@byu.net>
35172
35173         link-warning: always build headers with link warnings
35174         * modules/arpa_inet (Makefile.am): Always build replacement
35175         header.
35176         * modules/ctype (Makefile.am): Likewise.
35177         * modules/dirent (Makefile.am): Likewise.
35178         * modules/inttypes (Makefile.am): Likewise.
35179         * modules/langinfo (Makefile.am): Likewise.
35180         * modules/locale (Makefile.am): Likewise.
35181         * modules/spawn (Makefile.am): Likewise.
35182         * modules/sys_file (Makefile.am): Likewise.
35183         * modules/sys_ioctl (Makefile.am): Likewise.
35184         * modules/sys_select (Makefile.am): Likewise.
35185         * modules/sys_socket (Makefile.am): Likewise.
35186         * modules/sys_times (Makefile.am): Likewise.
35187         * modules/sys_utsname (Makefile.am): Likewise.
35188         * modules/sys_wait (Makefile.am): Likewise.
35189         * modules/wchar (Makefile.am): Likewise.
35190         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35191         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35192         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35193         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35194         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35195         Likewise.
35196         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35197         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35198         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35199         Likewise.
35200         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35201         Likewise.
35202         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35203         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35204         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35205         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35206         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35207         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35208         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35209         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35210         (gl_WCHAR_H_DEFAULTS): Likewise.
35211
35212 2009-12-31  Eric Blake  <ebb9@byu.net>
35213
35214         signal, spawn: use link warnings
35215         * lib/signal.in.h (sigset_t): Make unconditional.
35216         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35217         (sigpending, sigprocmask, sigaction): Add link warnings.
35218         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35219         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35220         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35221         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35222         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35223         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35224         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35225         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35226         (posix_spawn_file_actions_destroy)
35227         (posix_spawn_file_actions_addopen)
35228         (posix_spawn_file_actions_addclose)
35229         (posix_spawn_file_actions_adddup2): Likewise.
35230         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35231         * tests/test-signal.c (main): Enhance test.
35232
35233         spawn: improve wrapper support
35234         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35235         (gl_SPAWN_H_DEFAULTS): New defaults.
35236         * modules/spawn (Makefile.am): Substitute them.
35237         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35238         Only declare if missing or broken.
35239
35240         sys_times, sys_utsname: use include_next
35241         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35242         header.
35243         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35244         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35245         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35246         * modules/sys_times (Depends-on): Add include_next.
35247         (Makefile.am): Substitute additional values.
35248         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35249         * lib/sys_times.in.h (includes): Include native header, if
35250         available.
35251         * lib/sys_utsname.in.h (includes): Likewise.
35252         * tests/test-sys_times.c (main): Enhance test.
35253
35254         fdutimensat: revert prior patch
35255         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35256         utimens.h.
35257         Reported by Bruno Haible.
35258
35259 2009-12-30  Eric Blake  <ebb9@byu.net>
35260
35261         sys_wait: drop link-warning dependency
35262         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35263         link-warning efforts.
35264         * lib/sys_wait.in.h: Likewise.
35265
35266         fdutimensat: remove bogus dependency
35267         * modules/fdutimensat (Depends-on): Drop inline.
35268
35269         unistd: fix typo
35270         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35271
35272 2009-12-30  Bruno Haible  <bruno@clisp.org>
35273
35274         Fix compilation error with Solaris cc.
35275         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35276         * lib/unicase/u16-is-invariant.c: Likewise.
35277         * lib/unicase/u32-is-invariant.c: Likewise.
35278         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35279
35280 2009-12-30  Bruno Haible  <bruno@clisp.org>
35281
35282         Fix test crash.
35283         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35284         locales.
35285         Reported by Simon Josefsson <simon@josefsson.org>.
35286
35287 2009-12-30  Bruno Haible  <bruno@clisp.org>
35288
35289         Fix compilation error on most platforms.
35290         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35291         Reported by Simon Josefsson <simon@josefsson.org>
35292         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35293
35294 2009-12-30  Eric Blake  <ebb9@byu.net>
35295
35296         futimens, utimensat: work around ntfs-3g bug
35297         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35298         a ctime bug is present, and expand workaround to cover ntfs-3g.
35299         * lib/utimens.c (fdutimens, lutimens): Likewise.
35300         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35301         (validate_timespec): Adjust return value.
35302         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35303         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35304         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35305
35306 2009-12-29  Eric Blake  <ebb9@byu.net>
35307
35308         link-warning: make usage consistent
35309         * modules/ctype (Depends-on): Add link-warning.
35310         (Makefile.am): Update rules accordingly.
35311         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35312         * modules/locale (Depends-on, Makefile.am): Likewise.
35313         * modules/sys_file (Makefile.am): Likewise.
35314         * modules/getopt-posix (Makefile.am): Delete unused link warning
35315         efforts.
35316         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35317         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35318         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35319         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35320
35321         stdio: remove unused variables
35322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35323         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35324         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35325
35326         tests: test more substitute headers
35327         * modules/ctype-tests: New file.
35328         * modules/dirent-tests: Likewise.
35329         * modules/spawn-tests: Likewise.
35330         * modules/sys_file-tests: Likewise.
35331         * modules/sys_ioctl-tests: Likewise.
35332         * modules/sys_wait-tests: Likewise.
35333         * tests/test-ctype.c: Likewise.
35334         * tests/test-dirent.c: Likewise.
35335         * tests/test-spawn.c: Likewise.
35336         * tests/test-sys_file.c: Likewise.
35337         * tests/test-sys_ioctl.c: Likewise.
35338         * tests/test-sys_wait.c: Likewise.
35339         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35340         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35341         whether or not flock is in use.
35342
35343         tests: remove License section from module
35344         * modules/arpa_inet-tests: Remove unneeded section.
35345         * modules/byteswap-tests: Likewise.
35346         * modules/ceilf-tests: Likewise.
35347         * modules/ceill-tests: Likewise.
35348         * modules/crypto/des-tests: Likewise.
35349         * modules/crypto/gc-arcfour-tests: Likewise.
35350         * modules/crypto/gc-arctwo-tests: Likewise.
35351         * modules/crypto/gc-des-tests: Likewise.
35352         * modules/crypto/gc-hmac-md5-tests: Likewise.
35353         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35354         * modules/crypto/gc-md2-tests: Likewise.
35355         * modules/crypto/gc-md4-tests: Likewise.
35356         * modules/crypto/gc-md5-tests: Likewise.
35357         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35358         * modules/crypto/gc-rijndael-tests: Likewise.
35359         * modules/crypto/gc-sha1-tests: Likewise.
35360         * modules/crypto/gc-tests: Likewise.
35361         * modules/crypto/md2-tests: Likewise.
35362         * modules/crypto/md4-tests: Likewise.
35363         * modules/fcntl-h-tests: Likewise.
35364         * modules/floorf-tests: Likewise.
35365         * modules/floorl-tests: Likewise.
35366         * modules/frexp-nolibm-tests: Likewise.
35367         * modules/frexp-tests: Likewise.
35368         * modules/frexpl-nolibm-tests: Likewise.
35369         * modules/frexpl-tests: Likewise.
35370         * modules/getaddrinfo-tests: Likewise.
35371         * modules/inttypes-tests: Likewise.
35372         * modules/isfinite-tests: Likewise.
35373         * modules/isinf-tests: Likewise.
35374         * modules/ldexpl-tests: Likewise.
35375         * modules/locale-tests: Likewise.
35376         * modules/math-tests: Likewise.
35377         * modules/netdb-tests: Likewise.
35378         * modules/netinet_in-tests: Likewise.
35379         * modules/printf-frexp-tests: Likewise.
35380         * modules/printf-frexpl-tests: Likewise.
35381         * modules/priv-set-tests: Likewise.
35382         * modules/random_r-tests: Likewise.
35383         * modules/round-tests: Likewise.
35384         * modules/roundf-tests: Likewise.
35385         * modules/roundl-tests: Likewise.
35386         * modules/search-tests: Likewise.
35387         * modules/select-tests: Likewise.
35388         * modules/signal-tests: Likewise.
35389         * modules/stdbool-tests: Likewise.
35390         * modules/stddef-tests: Likewise.
35391         * modules/stdint-tests: Likewise.
35392         * modules/stdio-tests: Likewise.
35393         * modules/stdlib-tests: Likewise.
35394         * modules/string-tests: Likewise.
35395         * modules/strings-tests: Likewise.
35396         * modules/sys_select-tests: Likewise.
35397         * modules/sys_socket-tests: Likewise.
35398         * modules/sys_stat-tests: Likewise.
35399         * modules/sys_time-tests: Likewise.
35400         * modules/sys_utsname-tests: Likewise.
35401         * modules/sysexits-tests: Likewise.
35402         * modules/time-tests: Likewise.
35403         * modules/trunc-tests: Likewise.
35404         * modules/truncf-tests: Likewise.
35405         * modules/truncl-tests: Likewise.
35406         * modules/tsearch-tests: Likewise.
35407         * modules/unistd-tests: Likewise.
35408         * modules/wchar-tests: Likewise.
35409         * modules/wctype-tests: Likewise.
35410
35411         tests: fix license on several tests
35412         * tests/test-des.c: Update to GPLv3+.
35413         * tests/test-flock.c: Likewise.
35414         * tests/test-fsync.c: Likewise.
35415         * tests/test-futimens.h: Likewise.
35416         * tests/test-gc-arcfour.c: Likewise.
35417         * tests/test-gc-arctwo.c: Likewise.
35418         * tests/test-gc-des.c: Likewise.
35419         * tests/test-gc-hmac-md5.c: Likewise.
35420         * tests/test-gc-hmac-sha1.c: Likewise.
35421         * tests/test-gc-md2.c: Likewise.
35422         * tests/test-gc-md4.c: Likewise.
35423         * tests/test-gc-md5.c: Likewise.
35424         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35425         * tests/test-gc-rijndael.c: Likewise.
35426         * tests/test-gc-sha1.c: Likewise.
35427         * tests/test-gc.c: Likewise.
35428         * tests/test-getcwd.c: Likewise.
35429         * tests/test-link.c: Likewise.
35430         * tests/test-link.h: Likewise.
35431         * tests/test-lutimens.h: Likewise.
35432         * tests/test-md2.c: Likewise.
35433         * tests/test-md4.c: Likewise.
35434         * tests/test-mkdir.h: Likewise.
35435         * tests/test-rename.c: Likewise.
35436         * tests/test-rename.h: Likewise.
35437         * tests/test-safe-alloc.c: Likewise.
35438         * tests/test-utimens-common.h: Likewise.
35439         * tests/test-utimens.h: Likewise.
35440
35441         maint: sync license texts
35442         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35443         * doc/gpl-3.0.texi: Revert copyright year update.
35444         * doc/lgpl-3.0.texi: Likewise.
35445
35446 2009-12-29  Jim Meyering  <meyering@redhat.com>
35447
35448         update nearly all FSF copyright year lists to include 2009
35449         The files named by the following are exempted:
35450             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35451               test -f "$dst" && { echo "$dst"; continue; }
35452               test -d "$dst" || continue
35453               echo "$dst"/$(basename "$src")
35454             done > exempt
35455             git ls-files tests/unictype >> exempt
35456         In the remaining files, convert to all-interval notation if
35457         - there is already at least one year interval like 2000-2003
35458         - the file is maintained by me
35459         - the file is in lib/uni*/, where that style already prevails
35460         Otherwise, use update-copyright's default.
35461
35462 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35463         and Eric Blake  <ebb9@byu.net>
35464
35465         tests: don't require debug system() to pass
35466         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35467         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35468         * tests/test-unlink.h (test_unlink_func): Likewise.
35469         * tests/test-fstatat.c (main): ...into callers.
35470         * tests/test-lstat.c (main): Likewise.
35471         * tests/test-rmdir.c (main): Likewise.
35472         * tests/test-unlink.c (main): Likewise.
35473         * tests/test-unlinkat.c (main): Likewise.
35474         * tests/test-areadlink-with-size.c (main): Don't require a
35475         debug-only system call to pass, aiding cross-testing to mingw.
35476         * tests/test-areadlink.c (main): Likewise.
35477         * tests/test-areadlinkat-with-size.c (main): Likewise.
35478         * tests/test-areadlinkat.c (main): Likewise.
35479         * tests/test-canonicalize-lgpl.c (main): Likewise.
35480         * tests/test-canonicalize.c (main): Likewise.
35481         * tests/test-chown.c (main): Likewise.
35482         * tests/test-fchownat.c (main): Likewise.
35483         * tests/test-lchown.c (main): Likewise.
35484         * tests/test-fdutimensat.c (main): Likewise.
35485         * tests/test-futimens.c (main): Likewise.
35486         * tests/test-link.c (main): Likewise.
35487         * tests/test-linkat.c (main): Likewise.
35488         * tests/test-mkdir.c (main): Likewise.
35489         * tests/test-mkdirat.c (main): Likewise.
35490         * tests/test-mkfifo.c (main): Likewise.
35491         * tests/test-mkfifoat.c (main): Likewise.
35492         * tests/test-mknod.c (main): Likewise.
35493         * tests/test-readlink.c (main): Likewise.
35494         * tests/test-remove.c (main): Likewise.
35495         * tests/test-rename.c (main): Likewise.
35496         * tests/test-renameat.c (main): Likewise.
35497         * tests/test-symlink.c (main): Likewise.
35498         * tests/test-symlinkat.c (main): Likewise.
35499         * tests/test-utimens.c (main): Likewise.
35500         * tests/test-utimensat.c (main): Likewise.
35501
35502 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35503
35504         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35505         on $(UNUSED_PARAMETER_H) to avoid build failure.
35506
35507 2009-12-28  Jim Meyering  <meyering@redhat.com>
35508
35509         update-copyright: you may specify a max. line length other than 72
35510         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35511
35512         maint: use consistent FSF copyright line syntax
35513         * lib/posixtm.c: Add missing comma in FSF copyright line.
35514         * lib/posixtm.h: Likewise.
35515         * lib/getugroups.c: Add missing ", Inc.".
35516
35517         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35518         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35519         FSF copyright line.  Remove trailing blanks.
35520
35521 2009-12-28  Eric Blake  <ebb9@byu.net>
35522
35523         test-dup2: reduce dependencies
35524         * modules/cloexec (Configure.ac): Set witness.
35525         * modules/dup2-tests (Depends-on): Drop cloexec.
35526         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35527         not present.
35528         Suggested by Bruno Haible.
35529
35530 2009-12-26  Bruno Haible  <bruno@clisp.org>
35531
35532         Remove an unneeded dependency.
35533         * modules/fseterr (Depends-on): Remove dup2.
35534
35535 2009-12-26  Eric Blake  <ebb9@byu.net>
35536
35537         tests: use macros.h in more places
35538         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35539         (ASSERT_STREAM): Provide default of stderr.
35540         * tests/test-dirent-safer.c: Include macros.h, using alternate
35541         stream for assertions.
35542         * tests/test-dup-safer.c: Likewise.
35543         * tests/test-freopen-safer.c: Likewise.
35544         * tests/test-getopt.c: Likewise.
35545         * tests/test-openat-safer.c: Likewise.
35546         * tests/test-pipe.c: Likewise.
35547         * tests/test-popen-safer.c: Likewise.
35548         * modules/dirent-safer-tests (Files): Include macros.h.
35549         * modules/unistd-safer-tests (Files): Likewise.
35550         * modules/freopen-safer-tests (Files): Likewise.
35551         * modules/getopt-posix-tests (Files): Likewise.
35552         * modules/openat-safer-tests (Files): Likewise.
35553         * modules/pipe-tests (Files): Likewise.
35554
35555 2009-12-26  Bruno Haible  <bruno@clisp.org>
35556
35557         javacomp: Portability fix.
35558         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35559         that it also works on Solaris.
35560
35561 2009-12-26  Bruno Haible  <bruno@clisp.org>
35562
35563         localename: Fix storage allocation of gl_locale_name_thread's result.
35564         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35565         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35566         all platforms that have 'uselocale'.
35567         (gl_locale_name_thread_unsafe): New function, extracted from
35568         gl_locale_name_thread.
35569         (gl_locale_name_thread): Call struniq on all platforms that have
35570         'uselocale'.
35571         * tests/test-localename.c (test_locale_name_thread): Check that the
35572         resulting strings are permanently allocated.
35573         * modules/localename-tests (Depends-on): Add strdup.
35574
35575 2009-12-26  Bruno Haible  <bruno@clisp.org>
35576
35577         * tests/test-localename.c (categories): Fill in the strings.
35578
35579 2009-12-26  Jim Meyering  <meyering@redhat.com>
35580
35581         isdir: complete the removal of m4/isdir.m4
35582         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35583
35584         isdir: clean up, since at least grep still uses it
35585         * lib/isdir.c: Include "isdir.h".
35586         (S_ISDIR): Remove now-unneeded definition.
35587         * modules/isdir (Files): Add lib/isdir.h.
35588         * lib/isdir.h: New file, with declaration.
35589         * m4/isdir.m4: Remove file -- unneeded.
35590
35591 2009-12-25  Bruno Haible  <bruno@clisp.org>
35592
35593         selinux-h: Make generated .h files standalone.
35594         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35595         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35596         * lib/se-selinux.in.h: Likewise.
35597         * modules/selinux-h (Depends-on): Add unused-parameter.
35598         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35599         selinux/selinux.h and selinux/context.h.
35600         Suggested by Eric Blake.
35601
35602 2009-12-25  Bruno Haible  <bruno@clisp.org>
35603
35604         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35605         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35606         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35607         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35608         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35609
35610 2009-12-24  Bruno Haible  <bruno@clisp.org>
35611
35612         openat: Fix warning.
35613         * lib/openat-proc.c: Include <unistd.h>.
35614
35615 2009-12-24  Bruno Haible  <bruno@clisp.org>
35616
35617         New module 'unused-parameter'.
35618         * build-aux/unused-parameter.h: New file, extracted from earlier
35619         gnulib-common.m4.
35620         * modules/unused-parameter: New file.
35621         * lib/unistr.h: Include unused-parameter.h.
35622         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35623         _GL_UNUSED.
35624         * modules/unistr/base (Depends-on): Add unused-parameter.
35625
35626 2009-12-24  Bruno Haible  <bruno@clisp.org>
35627
35628         Add missing dependencies to 'extensions' module.
35629         * m4/extensions.m4: Add comment.
35630         * modules/accept4 (Depends-on): Add extensions.
35631         * modules/dup3 (Depends-on): Likewise.
35632         * modules/fcntl (Depends-on): Likewise.
35633         * modules/futimens (Depends-on): Likewise.
35634         * modules/mknod (Depends-on): Likewise.
35635         * modules/pipe2 (Depends-on): Likewise.
35636         * modules/stat-time (Depends-on): Likewise.
35637         * modules/strcasestr-simple (Depends-on): Likewise.
35638         * modules/strsignal (Depends-on): Likewise.
35639         * modules/utimensat (Depends-on): Likewise.
35640         * modules/localcharset (Depends-on): Likewise. Needed because of
35641         gl_FCNTL_O_FLAGS.
35642         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35643         AC_TYPE_MBSTATE_T.
35644         * modules/wcsnrtombs (Depends-on): Likewise.
35645         * modules/wcsrtombs (Depends-on): Likewise.
35646
35647 2009-12-24  Bruno Haible  <bruno@clisp.org>
35648
35649         binary-io: Avoid gcc warning due to SET_BINARY.
35650         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35651         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35652
35653 2009-12-24  Bruno Haible  <bruno@clisp.org>
35654
35655         Avoid future namespace pollution on glibc systems.
35656         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35657         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35658         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35659         glibc systems.
35660
35661 2009-12-24  Bruno Haible  <bruno@clisp.org>
35662
35663         Refactor common macros used in tests.
35664         * tests/macros.h: New file.
35665         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35666         and/or <stdlib.h>, if appropriate.
35667         (ASSERT, SIZEOF): Remove macros.
35668         * tests/test-areadlink-with-size.c: Likewise.
35669         * tests/test-areadlinkat.c: Likewise.
35670         * tests/test-areadlinkat-with-size.c: Likewise.
35671         * tests/test-argmatch.c: Likewise.
35672         * tests/test-argv-iter.c: Likewise.
35673         * tests/test-array-mergesort.c: Likewise.
35674         * tests/test-array_list.c: Likewise.
35675         * tests/test-array_oset.c: Likewise.
35676         * tests/test-avltree_list.c: Likewise.
35677         * tests/test-avltree_oset.c: Likewise.
35678         * tests/test-avltreehash_list.c: Likewise.
35679         * tests/test-base64.c: Likewise.
35680         * tests/test-binary-io.c: Likewise.
35681         * tests/test-bitrotate.c: Likewise.
35682         * tests/test-btowc.c: Likewise.
35683         * tests/test-byteswap.c: Likewise.
35684         * tests/test-c-ctype.c: Likewise.
35685         * tests/test-c-stack.c: Likewise.
35686         * tests/test-c-strcasecmp.c: Likewise.
35687         * tests/test-c-strcasestr.c: Likewise.
35688         * tests/test-c-strncasecmp.c: Likewise.
35689         * tests/test-c-strstr.c: Likewise.
35690         * tests/test-canonicalize-lgpl.c: Likewise.
35691         * tests/test-canonicalize.c: Likewise.
35692         * tests/test-carray_list.c: Likewise.
35693         * tests/test-ceilf1.c: Likewise.
35694         * tests/test-ceilf2.c: Likewise.
35695         * tests/test-ceill.c: Likewise.
35696         * tests/test-chown.c: Likewise.
35697         * tests/test-cloexec.c: Likewise.
35698         * tests/test-copy-acl.c: Likewise.
35699         * tests/test-copy-file.c: Likewise.
35700         * tests/test-count-one-bits.c: Likewise.
35701         * tests/test-dprintf-posix.c: Likewise.
35702         * tests/test-dup2.c: Likewise.
35703         * tests/test-dup3.c: Likewise.
35704         * tests/test-duplocale.c: Likewise.
35705         * tests/test-fbufmode.c: Likewise.
35706         * tests/test-fchdir.c: Likewise.
35707         * tests/test-fchownat.c: Likewise.
35708         * tests/test-fcntl-safer.c: Likewise.
35709         * tests/test-fcntl.c: Likewise.
35710         * tests/test-fdopendir.c: Likewise.
35711         * tests/test-fdutimensat.c: Likewise.
35712         * tests/test-fflush2.c: Likewise.
35713         * tests/test-file-has-acl.c: Likewise.
35714         * tests/test-filevercmp.c: Likewise.
35715         * tests/test-flock.c: Likewise.
35716         * tests/test-floorf1.c: Likewise.
35717         * tests/test-floorf2.c: Likewise.
35718         * tests/test-floorl.c: Likewise.
35719         * tests/test-fnmatch.c: Likewise.
35720         * tests/test-fopen.h: Likewise.
35721         * tests/test-fpending.c: Likewise.
35722         * tests/test-fprintf-posix.c: Likewise.
35723         * tests/test-fpurge.c: Likewise.
35724         * tests/test-freadable.c: Likewise.
35725         * tests/test-freadahead.c: Likewise.
35726         * tests/test-freading.c: Likewise.
35727         * tests/test-freadptr.c: Likewise.
35728         * tests/test-freadptr2.c: Likewise.
35729         * tests/test-freadseek.c: Likewise.
35730         * tests/test-freopen.c: Likewise.
35731         * tests/test-frexp.c: Likewise.
35732         * tests/test-frexpl.c: Likewise.
35733         * tests/test-fseek.c: Likewise.
35734         * tests/test-fseeko.c: Likewise.
35735         * tests/test-fstatat.c: Likewise.
35736         * tests/test-fstrcmp.c: Likewise.
35737         * tests/test-fsync.c: Likewise.
35738         * tests/test-ftell.c: Likewise.
35739         * tests/test-ftello.c: Likewise.
35740         * tests/test-func.c: Likewise.
35741         * tests/test-futimens.c: Likewise.
35742         * tests/test-fwritable.c: Likewise.
35743         * tests/test-fwriting.c: Likewise.
35744         * tests/test-getcwd.c: Likewise.
35745         * tests/test-getdate.c: Likewise.
35746         * tests/test-getdelim.c: Likewise.
35747         * tests/test-getdtablesize.c: Likewise.
35748         * tests/test-getgroups.c: Likewise.
35749         * tests/test-getline.c: Likewise.
35750         * tests/test-getndelim2.c: Likewise.
35751         * tests/test-glob.c: Likewise.
35752         * tests/test-hash.c: Likewise.
35753         * tests/test-i-ring.c: Likewise.
35754         * tests/test-iconv-utf.c: Likewise.
35755         * tests/test-iconv.c: Likewise.
35756         * tests/test-idpriv-drop.c: Likewise.
35757         * tests/test-idpriv-droptemp.c: Likewise.
35758         * tests/test-inet_ntop.c: Likewise.
35759         * tests/test-inet_pton.c: Likewise.
35760         * tests/test-isblank.c: Likewise.
35761         * tests/test-isfinite.c: Likewise.
35762         * tests/test-isinf.c: Likewise.
35763         * tests/test-isnan.c: Likewise.
35764         * tests/test-isnand.h: Likewise.
35765         * tests/test-isnanf.h: Likewise.
35766         * tests/test-isnanl.h: Likewise.
35767         * tests/test-lchown.c: Likewise.
35768         * tests/test-ldexpl.c: Likewise.
35769         * tests/test-link.c: Likewise.
35770         * tests/test-linkat.c: Likewise.
35771         * tests/test-linked_list.c: Likewise.
35772         * tests/test-linkedhash_list.c: Likewise.
35773         * tests/test-localename.c: Likewise.
35774         * tests/test-lseek.c: Likewise.
35775         * tests/test-lstat.c: Likewise.
35776         * tests/test-mbmemcasecmp.c: Likewise.
35777         * tests/test-mbmemcasecoll.c: Likewise.
35778         * tests/test-mbrtowc.c: Likewise.
35779         * tests/test-mbscasecmp.c: Likewise.
35780         * tests/test-mbscasestr1.c: Likewise.
35781         * tests/test-mbscasestr2.c: Likewise.
35782         * tests/test-mbscasestr3.c: Likewise.
35783         * tests/test-mbscasestr4.c: Likewise.
35784         * tests/test-mbschr.c: Likewise.
35785         * tests/test-mbscspn.c: Likewise.
35786         * tests/test-mbsinit.c: Likewise.
35787         * tests/test-mbsncasecmp.c: Likewise.
35788         * tests/test-mbsnrtowcs.c: Likewise.
35789         * tests/test-mbspbrk.c: Likewise.
35790         * tests/test-mbspcasecmp.c: Likewise.
35791         * tests/test-mbsrchr.c: Likewise.
35792         * tests/test-mbsrtowcs.c: Likewise.
35793         * tests/test-mbsspn.c: Likewise.
35794         * tests/test-mbsstr1.c: Likewise.
35795         * tests/test-mbsstr2.c: Likewise.
35796         * tests/test-mbsstr3.c: Likewise.
35797         * tests/test-memchr.c: Likewise.
35798         * tests/test-memchr2.c: Likewise.
35799         * tests/test-memcmp.c: Likewise.
35800         * tests/test-memmem.c: Likewise.
35801         * tests/test-memrchr.c: Likewise.
35802         * tests/test-mkdir.c: Likewise.
35803         * tests/test-mkdirat.c: Likewise.
35804         * tests/test-mkfifo.c: Likewise.
35805         * tests/test-mkfifoat.c: Likewise.
35806         * tests/test-mknod.c: Likewise.
35807         * tests/test-nanosleep.c: Likewise.
35808         * tests/test-nl_langinfo.c: Likewise.
35809         * tests/test-obstack-printf.c: Likewise.
35810         * tests/test-open.c: Likewise.
35811         * tests/test-openat.c: Likewise.
35812         * tests/test-pipe-filter-gi1.c: Likewise.
35813         * tests/test-pipe-filter-gi2-main.c: Likewise.
35814         * tests/test-pipe-filter-ii1.c: Likewise.
35815         * tests/test-pipe-filter-ii2-main.c: Likewise.
35816         * tests/test-pipe2.c: Likewise.
35817         * tests/test-popen.h: Likewise.
35818         * tests/test-posixtm.c: Likewise.
35819         * tests/test-pread.c: Likewise.
35820         * tests/test-printf-frexp.c: Likewise.
35821         * tests/test-printf-frexpl.c: Likewise.
35822         * tests/test-printf-posix.c: Likewise.
35823         * tests/test-priv-set.c: Likewise.
35824         * tests/test-quotearg.c: Likewise.
35825         * tests/test-random_r.c: Likewise.
35826         * tests/test-rawmemchr.c: Likewise.
35827         * tests/test-rbtree_list.c: Likewise.
35828         * tests/test-rbtree_oset.c: Likewise.
35829         * tests/test-rbtreehash_list.c: Likewise.
35830         * tests/test-readlink.c: Likewise.
35831         * tests/test-remove.c: Likewise.
35832         * tests/test-rename.c: Likewise.
35833         * tests/test-renameat.c: Likewise.
35834         * tests/test-rmdir.c: Likewise.
35835         * tests/test-round1.c: Likewise.
35836         * tests/test-roundf1.c: Likewise.
35837         * tests/test-roundl.c: Likewise.
35838         * tests/test-safe-alloc.c: Likewise.
35839         * tests/test-sameacls.c: Likewise.
35840         * tests/test-set-mode-acl.c: Likewise.
35841         * tests/test-setenv.c: Likewise.
35842         * tests/test-sigaction.c: Likewise.
35843         * tests/test-signbit.c: Likewise.
35844         * tests/test-sleep.c: Likewise.
35845         * tests/test-snprintf-posix.c: Likewise.
35846         * tests/test-snprintf.c: Likewise.
35847         * tests/test-sprintf-posix.c: Likewise.
35848         * tests/test-stat-time.c: Likewise.
35849         * tests/test-stat.c: Likewise.
35850         * tests/test-strcasestr.c: Likewise.
35851         * tests/test-strchrnul.c: Likewise.
35852         * tests/test-strerror.c: Likewise.
35853         * tests/test-striconv.c: Likewise.
35854         * tests/test-striconveh.c: Likewise.
35855         * tests/test-striconveha.c: Likewise.
35856         * tests/test-strsignal.c: Likewise.
35857         * tests/test-strstr.c: Likewise.
35858         * tests/test-strtod.c: Likewise.
35859         * tests/test-strverscmp.c: Likewise.
35860         * tests/test-symlink.c: Likewise.
35861         * tests/test-symlinkat.c: Likewise.
35862         * tests/test-trunc1.c: Likewise.
35863         * tests/test-trunc2.c: Likewise.
35864         * tests/test-truncf1.c: Likewise.
35865         * tests/test-truncf2.c: Likewise.
35866         * tests/test-truncl.c: Likewise.
35867         * tests/test-uname.c: Likewise.
35868         * tests/test-unlink.c: Likewise.
35869         * tests/test-unlinkat.c: Likewise.
35870         * tests/test-unsetenv.c: Likewise.
35871         * tests/test-usleep.c: Likewise.
35872         * tests/test-utimens.c: Likewise.
35873         * tests/test-utimensat.c: Likewise.
35874         * tests/test-vasnprintf-posix.c: Likewise.
35875         * tests/test-vasnprintf-posix2.c: Likewise.
35876         * tests/test-vasnprintf.c: Likewise.
35877         * tests/test-vasprintf-posix.c: Likewise.
35878         * tests/test-vasprintf.c: Likewise.
35879         * tests/test-vdprintf-posix.c: Likewise.
35880         * tests/test-vfprintf-posix.c: Likewise.
35881         * tests/test-vprintf-posix.c: Likewise.
35882         * tests/test-vsnprintf-posix.c: Likewise.
35883         * tests/test-vsnprintf.c: Likewise.
35884         * tests/test-vsprintf-posix.c: Likewise.
35885         * tests/test-wcrtomb.c: Likewise.
35886         * tests/test-wcsnrtombs.c: Likewise.
35887         * tests/test-wcsrtombs.c: Likewise.
35888         * tests/test-wctype.c: Likewise.
35889         * tests/test-wcwidth.c: Likewise.
35890         * tests/test-xfprintf-posix.c: Likewise.
35891         * tests/test-xmemdup0.c: Likewise.
35892         * tests/test-xprintf-posix.c: Likewise.
35893         * tests/test-xvasprintf.c: Likewise.
35894         * tests/unicase/test-locale-language.c: Likewise.
35895         * tests/unicase/test-mapping-part1.h: Likewise.
35896         * tests/unicase/test-predicate-part1.h: Likewise.
35897         * tests/unicase/test-u8-casecmp.c: Likewise.
35898         * tests/unicase/test-u8-casecoll.c: Likewise.
35899         * tests/unicase/test-u8-casefold.c: Likewise.
35900         * tests/unicase/test-u8-is-cased.c: Likewise.
35901         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35902         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35903         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35904         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35905         * tests/unicase/test-u8-tolower.c: Likewise.
35906         * tests/unicase/test-u8-totitle.c: Likewise.
35907         * tests/unicase/test-u8-toupper.c: Likewise.
35908         * tests/unicase/test-u16-casecmp.c: Likewise.
35909         * tests/unicase/test-u16-casecoll.c: Likewise.
35910         * tests/unicase/test-u16-casefold.c: Likewise.
35911         * tests/unicase/test-u16-is-cased.c: Likewise.
35912         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35913         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35914         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35915         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35916         * tests/unicase/test-u16-tolower.c: Likewise.
35917         * tests/unicase/test-u16-totitle.c: Likewise.
35918         * tests/unicase/test-u16-toupper.c: Likewise.
35919         * tests/unicase/test-u32-casecmp.c: Likewise.
35920         * tests/unicase/test-u32-casecoll.c: Likewise.
35921         * tests/unicase/test-u32-casefold.c: Likewise.
35922         * tests/unicase/test-u32-is-cased.c: Likewise.
35923         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35924         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35925         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35926         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35927         * tests/unicase/test-u32-tolower.c: Likewise.
35928         * tests/unicase/test-u32-totitle.c: Likewise.
35929         * tests/unicase/test-u32-toupper.c: Likewise.
35930         * tests/unicase/test-ulc-casecmp.c: Likewise.
35931         * tests/unicase/test-ulc-casecoll.c: Likewise.
35932         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35933         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35934         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35935         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35936         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35937         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35938         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35939         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35940         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35941         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35942         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35943         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35944         * tests/unictype/test-bidi_byname.c: Likewise.
35945         * tests/unictype/test-bidi_name.c: Likewise.
35946         * tests/unictype/test-bidi_of.c: Likewise.
35947         * tests/unictype/test-bidi_test.c: Likewise.
35948         * tests/unictype/test-block_list.c: Likewise.
35949         * tests/unictype/test-block_of.c: Likewise.
35950         * tests/unictype/test-block_test.c: Likewise.
35951         * tests/unictype/test-categ_and.c: Likewise.
35952         * tests/unictype/test-categ_and_not.c: Likewise.
35953         * tests/unictype/test-categ_byname.c: Likewise.
35954         * tests/unictype/test-categ_name.c: Likewise.
35955         * tests/unictype/test-categ_none.c: Likewise.
35956         * tests/unictype/test-categ_of.c: Likewise.
35957         * tests/unictype/test-categ_or.c: Likewise.
35958         * tests/unictype/test-categ_test_withtable.c: Likewise.
35959         * tests/unictype/test-combining.c: Likewise.
35960         * tests/unictype/test-decdigit.c: Likewise.
35961         * tests/unictype/test-digit.c: Likewise.
35962         * tests/unictype/test-mirror.c: Likewise.
35963         * tests/unictype/test-numeric.c: Likewise.
35964         * tests/unictype/test-pr_byname.c: Likewise.
35965         * tests/unictype/test-pr_test.c: Likewise.
35966         * tests/unictype/test-predicate-part1.h: Likewise.
35967         * tests/unictype/test-scripts.c: Likewise.
35968         * tests/unictype/test-sy_c_ident.c: Likewise.
35969         * tests/unictype/test-sy_java_ident.c: Likewise.
35970         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35971         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35972         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35973         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35974         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35975         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35976         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35977         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35978         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35979         * tests/uninorm/test-compat-decomposition.c: Likewise.
35980         * tests/uninorm/test-composition.c: Likewise.
35981         * tests/uninorm/test-decomposing-form.c: Likewise.
35982         * tests/uninorm/test-decomposition.c: Likewise.
35983         * tests/uninorm/test-u8-nfc.c: Likewise.
35984         * tests/uninorm/test-u8-nfd.c: Likewise.
35985         * tests/uninorm/test-u8-nfkc.c: Likewise.
35986         * tests/uninorm/test-u8-nfkd.c: Likewise.
35987         * tests/uninorm/test-u8-normcmp.c: Likewise.
35988         * tests/uninorm/test-u8-normcoll.c: Likewise.
35989         * tests/uninorm/test-u16-nfc.c: Likewise.
35990         * tests/uninorm/test-u16-nfd.c: Likewise.
35991         * tests/uninorm/test-u16-nfkc.c: Likewise.
35992         * tests/uninorm/test-u16-nfkd.c: Likewise.
35993         * tests/uninorm/test-u16-normcmp.c: Likewise.
35994         * tests/uninorm/test-u16-normcoll.c: Likewise.
35995         * tests/uninorm/test-u32-nfc.c: Likewise.
35996         * tests/uninorm/test-u32-nfd.c: Likewise.
35997         * tests/uninorm/test-u32-nfkc.c: Likewise.
35998         * tests/uninorm/test-u32-nfkd.c: Likewise.
35999         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36000         * tests/uninorm/test-u32-normcmp.c: Likewise.
36001         * tests/uninorm/test-u32-normcoll.c: Likewise.
36002         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36003         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36004         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36005         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36006         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36007         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36008         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36009         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36010         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36011         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36012         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36013         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36014         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36015         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36016         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36017         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36018         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36019         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36020         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36021         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36022         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36023         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36024         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36025         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36026         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36027         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36028         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36029         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36030         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36031         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36032         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36033         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36034         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36035         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36036         * tests/uniwidth/test-u8-width.c: Likewise.
36037         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36038         * tests/uniwidth/test-u16-width.c: Likewise.
36039         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36040         * tests/uniwidth/test-u32-width.c: Likewise.
36041         * tests/uniwidth/test-uc_width.c: Likewise.
36042         * tests/uniwidth/test-uc_width2.c: Likewise.
36043         * modules/acl-tests (Files): Add tests/macros.h.
36044         * modules/areadlink-tests (Files): Likewise.
36045         * modules/areadlink-with-size-tests (Files): Likewise.
36046         * modules/areadlinkat-tests (Files): Likewise.
36047         * modules/areadlinkat-with-size-tests (Files): Likewise.
36048         * modules/argmatch-tests (Files): Likewise.
36049         * modules/argv-iter-tests (Files): Likewise.
36050         * modules/array-list-tests (Files): Likewise.
36051         * modules/array-mergesort-tests (Files): Likewise.
36052         * modules/array-oset-tests (Files): Likewise.
36053         * modules/avltree-list-tests (Files): Likewise.
36054         * modules/avltree-oset-tests (Files): Likewise.
36055         * modules/avltreehash-list-tests (Files): Likewise.
36056         * modules/base64-tests (Files): Likewise.
36057         * modules/binary-io-tests (Files): Likewise.
36058         * modules/bitrotate-tests (Files): Likewise.
36059         * modules/btowc-tests (Files): Likewise.
36060         * modules/byteswap-tests (Files): Likewise.
36061         * modules/c-ctype-tests (Files): Likewise.
36062         * modules/c-stack-tests (Files): Likewise.
36063         * modules/c-strcase-tests (Files): Likewise.
36064         * modules/c-strcasestr-tests (Files): Likewise.
36065         * modules/c-strstr-tests (Files): Likewise.
36066         * modules/canonicalize-lgpl-tests (Files): Likewise.
36067         * modules/canonicalize-tests (Files): Likewise.
36068         * modules/carray-list-tests (Files): Likewise.
36069         * modules/ceilf-tests (Files): Likewise.
36070         * modules/ceill-tests (Files): Likewise.
36071         * modules/chown-tests (Files): Likewise.
36072         * modules/cloexec-tests (Files): Likewise.
36073         * modules/copy-file-tests (Files): Likewise.
36074         * modules/count-one-bits-tests (Files): Likewise.
36075         * modules/dprintf-posix-tests (Files): Likewise.
36076         * modules/dup2-tests (Files): Likewise.
36077         * modules/dup3-tests (Files): Likewise.
36078         * modules/duplocale-tests (Files): Likewise.
36079         * modules/fbufmode-tests (Files): Likewise.
36080         * modules/fchdir-tests (Files): Likewise.
36081         * modules/fcntl-safer-tests (Files): Likewise.
36082         * modules/fcntl-tests (Files): Likewise.
36083         * modules/fdopendir-tests (Files): Likewise.
36084         * modules/fdutimensat-tests (Files): Likewise.
36085         * modules/fflush-tests (Files): Likewise.
36086         * modules/filevercmp-tests (Files): Likewise.
36087         * modules/flock-tests (Files): Likewise.
36088         * modules/floorf-tests (Files): Likewise.
36089         * modules/floorl-tests (Files): Likewise.
36090         * modules/fnmatch-tests (Files): Likewise.
36091         * modules/fopen-safer-tests (Files): Likewise.
36092         * modules/fopen-tests (Files): Likewise.
36093         * modules/fpending-tests (Files): Likewise.
36094         * modules/fprintf-posix-tests (Files): Likewise.
36095         * modules/fpurge-tests (Files): Likewise.
36096         * modules/freadable-tests (Files): Likewise.
36097         * modules/freadahead-tests (Files): Likewise.
36098         * modules/freading-tests (Files): Likewise.
36099         * modules/freadptr-tests (Files): Likewise.
36100         * modules/freadseek-tests (Files): Likewise.
36101         * modules/freopen-tests (Files): Likewise.
36102         * modules/frexp-nolibm-tests (Files): Likewise.
36103         * modules/frexp-tests (Files): Likewise.
36104         * modules/frexpl-nolibm-tests (Files): Likewise.
36105         * modules/frexpl-tests (Files): Likewise.
36106         * modules/fseek-tests (Files): Likewise.
36107         * modules/fseeko-tests (Files): Likewise.
36108         * modules/fstrcmp-tests (Files): Likewise.
36109         * modules/fsync-tests (Files): Likewise.
36110         * modules/ftell-tests (Files): Likewise.
36111         * modules/ftello-tests (Files): Likewise.
36112         * modules/func-tests (Files): Likewise.
36113         * modules/futimens-tests (Files): Likewise.
36114         * modules/fwritable-tests (Files): Likewise.
36115         * modules/fwriting-tests (Files): Likewise.
36116         * modules/getcwd-tests (Files): Likewise.
36117         * modules/getdate-tests (Files): Likewise.
36118         * modules/getdelim-tests (Files): Likewise.
36119         * modules/getdtablesize-tests (Files): Likewise.
36120         * modules/getgroups-tests (Files): Likewise.
36121         * modules/getline-tests (Files): Likewise.
36122         * modules/getndelim2-tests (Files): Likewise.
36123         * modules/glob-tests (Files): Likewise.
36124         * modules/hash-tests (Files): Likewise.
36125         * modules/i-ring-tests (Files): Likewise.
36126         * modules/iconv-tests (Files): Likewise.
36127         * modules/iconv_open-utf-tests (Files): Likewise.
36128         * modules/idpriv-drop-tests (Files): Likewise.
36129         * modules/idpriv-droptemp-tests (Files): Likewise.
36130         * modules/inet_ntop-tests (Files): Likewise.
36131         * modules/inet_pton-tests (Files): Likewise.
36132         * modules/isblank-tests (Files): Likewise.
36133         * modules/isfinite-tests (Files): Likewise.
36134         * modules/isinf-tests (Files): Likewise.
36135         * modules/isnan-tests (Files): Likewise.
36136         * modules/isnand-nolibm-tests (Files): Likewise.
36137         * modules/isnand-tests (Files): Likewise.
36138         * modules/isnanf-nolibm-tests (Files): Likewise.
36139         * modules/isnanf-tests (Files): Likewise.
36140         * modules/isnanl-nolibm-tests (Files): Likewise.
36141         * modules/isnanl-tests (Files): Likewise.
36142         * modules/lchown-tests (Files): Likewise.
36143         * modules/ldexpl-tests (Files): Likewise.
36144         * modules/link-tests (Files): Likewise.
36145         * modules/linkat-tests (Files): Likewise.
36146         * modules/linked-list-tests (Files): Likewise.
36147         * modules/linkedhash-list-tests (Files): Likewise.
36148         * modules/localename-tests (Files): Likewise.
36149         * modules/lseek-tests (Files): Likewise.
36150         * modules/lstat-tests (Files): Likewise.
36151         * modules/mbmemcasecmp-tests (Files): Likewise.
36152         * modules/mbmemcasecoll-tests (Files): Likewise.
36153         * modules/mbrtowc-tests (Files): Likewise.
36154         * modules/mbscasecmp-tests (Files): Likewise.
36155         * modules/mbscasestr-tests (Files): Likewise.
36156         * modules/mbschr-tests (Files): Likewise.
36157         * modules/mbscspn-tests (Files): Likewise.
36158         * modules/mbsinit-tests (Files): Likewise.
36159         * modules/mbsncasecmp-tests (Files): Likewise.
36160         * modules/mbsnrtowcs-tests (Files): Likewise.
36161         * modules/mbspbrk-tests (Files): Likewise.
36162         * modules/mbspcasecmp-tests (Files): Likewise.
36163         * modules/mbsrchr-tests (Files): Likewise.
36164         * modules/mbsrtowcs-tests (Files): Likewise.
36165         * modules/mbsspn-tests (Files): Likewise.
36166         * modules/mbsstr-tests (Files): Likewise.
36167         * modules/memchr-tests (Files): Likewise.
36168         * modules/memchr2-tests (Files): Likewise.
36169         * modules/memcmp-tests (Files): Likewise.
36170         * modules/memmem-tests (Files): Likewise.
36171         * modules/memrchr-tests (Files): Likewise.
36172         * modules/mkdir-tests (Files): Likewise.
36173         * modules/mkfifo-tests (Files): Likewise.
36174         * modules/mkfifoat-tests (Files): Likewise.
36175         * modules/mknod-tests (Files): Likewise.
36176         * modules/nanosleep-tests (Files): Likewise.
36177         * modules/nl_langinfo-tests (Files): Likewise.
36178         * modules/obstack-printf-tests (Files): Likewise.
36179         * modules/open-tests (Files): Likewise.
36180         * modules/openat-tests (Files): Likewise.
36181         * modules/pipe-filter-gi-tests (Files): Likewise.
36182         * modules/pipe-filter-ii-tests (Files): Likewise.
36183         * modules/pipe2-tests (Files): Likewise.
36184         * modules/popen-safer-tests (Files): Likewise.
36185         * modules/popen-tests (Files): Likewise.
36186         * modules/posixtm-tests (Files): Likewise.
36187         * modules/pread-tests (Files): Likewise.
36188         * modules/printf-frexp-tests (Files): Likewise.
36189         * modules/printf-frexpl-tests (Files): Likewise.
36190         * modules/printf-posix-tests (Files): Likewise.
36191         * modules/priv-set-tests (Files): Likewise.
36192         * modules/quotearg-tests (Files): Likewise.
36193         * modules/random_r-tests (Files): Likewise.
36194         * modules/rawmemchr-tests (Files): Likewise.
36195         * modules/rbtree-list-tests (Files): Likewise.
36196         * modules/rbtree-oset-tests (Files): Likewise.
36197         * modules/rbtreehash-list-tests (Files): Likewise.
36198         * modules/readlink-tests (Files): Likewise.
36199         * modules/remove-tests (Files): Likewise.
36200         * modules/rename-tests (Files): Likewise.
36201         * modules/renameat-tests (Files): Likewise.
36202         * modules/rmdir-tests (Files): Likewise.
36203         * modules/round-tests (Files): Likewise.
36204         * modules/roundf-tests (Files): Likewise.
36205         * modules/roundl-tests (Files): Likewise.
36206         * modules/safe-alloc-tests (Files): Likewise.
36207         * modules/setenv-tests (Files): Likewise.
36208         * modules/sigaction-tests (Files): Likewise.
36209         * modules/signbit-tests (Files): Likewise.
36210         * modules/sleep-tests (Files): Likewise.
36211         * modules/snprintf-posix-tests (Files): Likewise.
36212         * modules/snprintf-tests (Files): Likewise.
36213         * modules/sprintf-posix-tests (Files): Likewise.
36214         * modules/stat-tests (Files): Likewise.
36215         * modules/stat-time-tests (Files): Likewise.
36216         * modules/strcasestr-tests (Files): Likewise.
36217         * modules/strchrnul-tests (Files): Likewise.
36218         * modules/strerror-tests (Files): Likewise.
36219         * modules/striconv-tests (Files): Likewise.
36220         * modules/striconveh-tests (Files): Likewise.
36221         * modules/striconveha-tests (Files): Likewise.
36222         * modules/strsignal-tests (Files): Likewise.
36223         * modules/strstr-tests (Files): Likewise.
36224         * modules/strtod-tests (Files): Likewise.
36225         * modules/strverscmp-tests (Files): Likewise.
36226         * modules/symlink-tests (Files): Likewise.
36227         * modules/symlinkat-tests (Files): Likewise.
36228         * modules/trunc-tests (Files): Likewise.
36229         * modules/truncf-tests (Files): Likewise.
36230         * modules/truncl-tests (Files): Likewise.
36231         * modules/uname-tests (Files): Likewise.
36232         * modules/unicase/cased-tests (Files): Likewise.
36233         * modules/unicase/ignorable-tests (Files): Likewise.
36234         * modules/unicase/locale-language-tests (Files): Likewise.
36235         * modules/unicase/tolower-tests (Files): Likewise.
36236         * modules/unicase/totitle-tests (Files): Likewise.
36237         * modules/unicase/toupper-tests (Files): Likewise.
36238         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36239         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36240         * modules/unicase/u8-casefold-tests (Files): Likewise.
36241         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36242         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36243         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36244         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36245         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36246         * modules/unicase/u8-tolower-tests (Files): Likewise.
36247         * modules/unicase/u8-totitle-tests (Files): Likewise.
36248         * modules/unicase/u8-toupper-tests (Files): Likewise.
36249         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36250         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36251         * modules/unicase/u16-casefold-tests (Files): Likewise.
36252         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36253         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36254         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36255         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36256         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36257         * modules/unicase/u16-tolower-tests (Files): Likewise.
36258         * modules/unicase/u16-totitle-tests (Files): Likewise.
36259         * modules/unicase/u16-toupper-tests (Files): Likewise.
36260         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36261         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36262         * modules/unicase/u32-casefold-tests (Files): Likewise.
36263         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36264         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36265         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36266         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36267         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36268         * modules/unicase/u32-tolower-tests (Files): Likewise.
36269         * modules/unicase/u32-totitle-tests (Files): Likewise.
36270         * modules/unicase/u32-toupper-tests (Files): Likewise.
36271         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36272         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36273         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36274         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36275         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36276         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36277         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36278         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36279         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36280         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36281         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36282         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36283         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36284         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36285         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36286         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36287         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36288         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36289         * modules/unictype/block-list-tests (Files): Likewise.
36290         * modules/unictype/block-of-tests (Files): Likewise.
36291         * modules/unictype/block-test-tests (Files): Likewise.
36292         * modules/unictype/category-C-tests (Files): Likewise.
36293         * modules/unictype/category-Cc-tests (Files): Likewise.
36294         * modules/unictype/category-Cf-tests (Files): Likewise.
36295         * modules/unictype/category-Cn-tests (Files): Likewise.
36296         * modules/unictype/category-Co-tests (Files): Likewise.
36297         * modules/unictype/category-Cs-tests (Files): Likewise.
36298         * modules/unictype/category-L-tests (Files): Likewise.
36299         * modules/unictype/category-Ll-tests (Files): Likewise.
36300         * modules/unictype/category-Lm-tests (Files): Likewise.
36301         * modules/unictype/category-Lo-tests (Files): Likewise.
36302         * modules/unictype/category-Lt-tests (Files): Likewise.
36303         * modules/unictype/category-Lu-tests (Files): Likewise.
36304         * modules/unictype/category-M-tests (Files): Likewise.
36305         * modules/unictype/category-Mc-tests (Files): Likewise.
36306         * modules/unictype/category-Me-tests (Files): Likewise.
36307         * modules/unictype/category-Mn-tests (Files): Likewise.
36308         * modules/unictype/category-N-tests (Files): Likewise.
36309         * modules/unictype/category-Nd-tests (Files): Likewise.
36310         * modules/unictype/category-Nl-tests (Files): Likewise.
36311         * modules/unictype/category-No-tests (Files): Likewise.
36312         * modules/unictype/category-P-tests (Files): Likewise.
36313         * modules/unictype/category-Pc-tests (Files): Likewise.
36314         * modules/unictype/category-Pd-tests (Files): Likewise.
36315         * modules/unictype/category-Pe-tests (Files): Likewise.
36316         * modules/unictype/category-Pf-tests (Files): Likewise.
36317         * modules/unictype/category-Pi-tests (Files): Likewise.
36318         * modules/unictype/category-Po-tests (Files): Likewise.
36319         * modules/unictype/category-Ps-tests (Files): Likewise.
36320         * modules/unictype/category-S-tests (Files): Likewise.
36321         * modules/unictype/category-Sc-tests (Files): Likewise.
36322         * modules/unictype/category-Sk-tests (Files): Likewise.
36323         * modules/unictype/category-Sm-tests (Files): Likewise.
36324         * modules/unictype/category-So-tests (Files): Likewise.
36325         * modules/unictype/category-Z-tests (Files): Likewise.
36326         * modules/unictype/category-Zl-tests (Files): Likewise.
36327         * modules/unictype/category-Zp-tests (Files): Likewise.
36328         * modules/unictype/category-Zs-tests (Files): Likewise.
36329         * modules/unictype/category-and-not-tests (Files): Likewise.
36330         * modules/unictype/category-and-tests (Files): Likewise.
36331         * modules/unictype/category-byname-tests (Files): Likewise.
36332         * modules/unictype/category-name-tests (Files): Likewise.
36333         * modules/unictype/category-none-tests (Files): Likewise.
36334         * modules/unictype/category-of-tests (Files): Likewise.
36335         * modules/unictype/category-or-tests (Files): Likewise.
36336         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36337         * modules/unictype/combining-class-tests (Files): Likewise.
36338         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36339         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36340         * modules/unictype/ctype-blank-tests (Files): Likewise.
36341         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36342         * modules/unictype/ctype-digit-tests (Files): Likewise.
36343         * modules/unictype/ctype-graph-tests (Files): Likewise.
36344         * modules/unictype/ctype-lower-tests (Files): Likewise.
36345         * modules/unictype/ctype-print-tests (Files): Likewise.
36346         * modules/unictype/ctype-punct-tests (Files): Likewise.
36347         * modules/unictype/ctype-space-tests (Files): Likewise.
36348         * modules/unictype/ctype-upper-tests (Files): Likewise.
36349         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36350         * modules/unictype/decimal-digit-tests (Files): Likewise.
36351         * modules/unictype/digit-tests (Files): Likewise.
36352         * modules/unictype/mirror-tests (Files): Likewise.
36353         * modules/unictype/numeric-tests (Files): Likewise.
36354         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36355         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36356         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36357         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36358         Likewise.
36359         * modules/unictype/property-bidi-block-separator-tests (Files):
36360         Likewise.
36361         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36362         Likewise.
36363         * modules/unictype/property-bidi-common-separator-tests (Files):
36364         Likewise.
36365         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36366         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36367         Likewise.
36368         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36369         Likewise.
36370         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36371         Likewise.
36372         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36373         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36374         Likewise.
36375         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36376         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36377         Likewise.
36378         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36379         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36380         * modules/unictype/property-bidi-segment-separator-tests (Files):
36381         Likewise.
36382         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36383         * modules/unictype/property-byname-tests (Files): Likewise.
36384         * modules/unictype/property-combining-tests (Files): Likewise.
36385         * modules/unictype/property-composite-tests (Files): Likewise.
36386         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36387         * modules/unictype/property-dash-tests (Files): Likewise.
36388         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36389         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36390         Likewise.
36391         * modules/unictype/property-deprecated-tests (Files): Likewise.
36392         * modules/unictype/property-diacritic-tests (Files): Likewise.
36393         * modules/unictype/property-extender-tests (Files): Likewise.
36394         * modules/unictype/property-format-control-tests (Files): Likewise.
36395         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36396         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36397         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36398         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36399         * modules/unictype/property-hyphen-tests (Files): Likewise.
36400         * modules/unictype/property-id-continue-tests (Files): Likewise.
36401         * modules/unictype/property-id-start-tests (Files): Likewise.
36402         * modules/unictype/property-ideographic-tests (Files): Likewise.
36403         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36404         * modules/unictype/property-ids-trinary-operator-tests (Files):
36405         Likewise.
36406         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36407         * modules/unictype/property-iso-control-tests (Files): Likewise.
36408         * modules/unictype/property-join-control-tests (Files): Likewise.
36409         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36410         * modules/unictype/property-line-separator-tests (Files): Likewise.
36411         * modules/unictype/property-logical-order-exception-tests (Files):
36412         Likewise.
36413         * modules/unictype/property-lowercase-tests (Files): Likewise.
36414         * modules/unictype/property-math-tests (Files): Likewise.
36415         * modules/unictype/property-non-break-tests (Files): Likewise.
36416         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36417         * modules/unictype/property-numeric-tests (Files): Likewise.
36418         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36419         * modules/unictype/property-other-default-ignorable-code-point-tests
36420         (Files): Likewise.
36421         * modules/unictype/property-other-grapheme-extend-tests (Files):
36422         Likewise.
36423         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36424         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36425         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36426         * modules/unictype/property-other-math-tests (Files): Likewise.
36427         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36428         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36429         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36430         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36431         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36432         * modules/unictype/property-private-use-tests (Files): Likewise.
36433         * modules/unictype/property-punctuation-tests (Files): Likewise.
36434         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36435         * modules/unictype/property-radical-tests (Files): Likewise.
36436         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36437         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36438         * modules/unictype/property-space-tests (Files): Likewise.
36439         * modules/unictype/property-terminal-punctuation-tests (Files):
36440         Likewise.
36441         * modules/unictype/property-test-tests (Files): Likewise.
36442         * modules/unictype/property-titlecase-tests (Files): Likewise.
36443         * modules/unictype/property-unassigned-code-value-tests (Files):
36444         Likewise.
36445         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36446         * modules/unictype/property-uppercase-tests (Files): Likewise.
36447         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36448         * modules/unictype/property-white-space-tests (Files): Likewise.
36449         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36450         * modules/unictype/property-xid-start-tests (Files): Likewise.
36451         * modules/unictype/property-zero-width-tests (Files): Likewise.
36452         * modules/unictype/scripts-tests (Files): Likewise.
36453         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36454         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36455         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36456         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36457         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36458         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36459         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36460         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36461         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36462         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36463         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36464         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36465         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36466         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36467         * modules/uninorm/composition-tests (Files): Likewise.
36468         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36469         * modules/uninorm/decomposition-tests (Files): Likewise.
36470         * modules/uninorm/filter-tests (Files): Likewise.
36471         * modules/uninorm/nfc-tests (Files): Likewise.
36472         * modules/uninorm/nfd-tests (Files): Likewise.
36473         * modules/uninorm/nfkc-tests (Files): Likewise.
36474         * modules/uninorm/nfkd-tests (Files): Likewise.
36475         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36476         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36477         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36478         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36479         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36480         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36481         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36482         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36483         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36484         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36485         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36486         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36487         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36488         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36489         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36490         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36491         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36492         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36493         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36494         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36495         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36496         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36497         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36498         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36499         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36500         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36501         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36502         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36503         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36504         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36505         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36506         * modules/uniwidth/u8-width-tests (Files): Likewise.
36507         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36508         * modules/uniwidth/u16-width-tests (Files): Likewise.
36509         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36510         * modules/uniwidth/u32-width-tests (Files): Likewise.
36511         * modules/uniwidth/width-tests (Files): Likewise.
36512         * modules/unlink-tests (Files): Likewise.
36513         * modules/unsetenv-tests (Files): Likewise.
36514         * modules/usleep-tests (Files): Likewise.
36515         * modules/utimens-tests (Files): Likewise.
36516         * modules/utimensat-tests (Files): Likewise.
36517         * modules/vasnprintf-posix-tests (Files): Likewise.
36518         * modules/vasnprintf-tests (Files): Likewise.
36519         * modules/vasprintf-posix-tests (Files): Likewise.
36520         * modules/vasprintf-tests (Files): Likewise.
36521         * modules/vdprintf-posix-tests (Files): Likewise.
36522         * modules/vfprintf-posix-tests (Files): Likewise.
36523         * modules/vprintf-posix-tests (Files): Likewise.
36524         * modules/vsnprintf-posix-tests (Files): Likewise.
36525         * modules/vsnprintf-tests (Files): Likewise.
36526         * modules/vsprintf-posix-tests (Files): Likewise.
36527         * modules/wcrtomb-tests (Files): Likewise.
36528         * modules/wcsnrtombs-tests (Files): Likewise.
36529         * modules/wcsrtombs-tests (Files): Likewise.
36530         * modules/wctype-tests (Files): Likewise.
36531         * modules/wcwidth-tests (Files): Likewise.
36532         * modules/xmemdup0-tests (Files): Likewise.
36533         * modules/xprintf-posix-tests (Files): Likewise.
36534         * modules/xvasprintf-tests (Files): Likewise.
36535
36536 2009-12-24  Eric Blake  <ebb9@byu.net>
36537
36538         test-nanosleep: fix typo
36539         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36540         patch.
36541         Reported by Bruno Haible.
36542
36543 2009-12-24  Bruno Haible  <bruno@clisp.org>
36544
36545         Reduce namespace pollution on glibc systems.
36546         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36547         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36548         systems.
36549         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36550         <getopt.h> on glibc systems.
36551         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36552         systems.
36553         * lib/fcntl.c: Include <unistd.h> here instead.
36554
36555 2009-12-24  Bruno Haible  <bruno@clisp.org>
36556
36557         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36558
36559 2009-12-24  Eric Blake  <ebb9@byu.net>
36560
36561         tests: add signature checks
36562         * tests/signature.h (SIGNATURE_CHECK): New file.
36563         * modules/atexit-tests (Files): Use it.
36564         * modules/btowc-tests (Files): Likewise.
36565         * modules/canonicalize-lgpl-tests (Files): Likewise.
36566         * modules/ceilf-tests (Files): Likewise.
36567         * modules/ceill-tests (Files): Likewise.
36568         * modules/chown-tests (Files): Likewise.
36569         * modules/dprintf-posix-tests (Files): Likewise.
36570         * modules/dup2-tests (Files): Likewise.
36571         * modules/dup3-tests (Files): Likewise.
36572         * modules/duplocale-tests (Files): Likewise.
36573         * modules/fchdir-tests (Files): Likewise.
36574         * modules/fcntl-tests (Files): Likewise.
36575         * modules/fdopendir-tests (Files): Likewise.
36576         * modules/fflush-tests (Files): Likewise.
36577         * modules/flock-tests (Files): Likewise.
36578         * modules/floorf-tests (Files): Likewise.
36579         * modules/floorl-tests (Files): Likewise.
36580         * modules/fnmatch-tests (Files): Likewise.
36581         * modules/fopen-tests (Files): Likewise.
36582         * modules/fprintf-posix-tests (Files): Likewise.
36583         * modules/freopen-tests (Files): Likewise.
36584         * modules/frexp-nolibm-tests (Files): Likewise.
36585         * modules/frexp-tests (Files): Likewise.
36586         * modules/frexpl-nolibm-tests (Files): Likewise.
36587         * modules/frexpl-tests (Files): Likewise.
36588         * modules/fseek-tests (Files): Likewise.
36589         * modules/fseeko-tests (Files): Likewise.
36590         * modules/fsync-tests (Files): Likewise.
36591         * modules/ftell-tests (Files): Likewise.
36592         * modules/ftello-tests (Files): Likewise.
36593         * modules/futimens-tests (Files): Likewise.
36594         * modules/getaddrinfo-tests (Files): Likewise.
36595         * modules/getcwd-tests (Files): Likewise.
36596         * modules/getdelim-tests (Files): Likewise.
36597         * modules/getdtablesize-tests (Files): Likewise.
36598         * modules/getgroups-tests (Files): Likewise.
36599         * modules/gethostname-tests (Files): Likewise.
36600         * modules/getline-tests (Files): Likewise.
36601         * modules/getopt-posix-tests (Files): Likewise.
36602         * modules/gettimeofday-tests (Files): Likewise.
36603         * modules/glob-tests (Files): Likewise.
36604         * modules/iconv-tests (Files): Likewise.
36605         * modules/inet_ntop-tests (Files): Likewise.
36606         * modules/inet_pton-tests (Files): Likewise.
36607         * modules/isblank-tests (Files): Likewise.
36608         * modules/lchown-tests (Files): Likewise.
36609         * modules/ldexpl-tests (Files): Likewise.
36610         * modules/link-tests (Files): Likewise.
36611         * modules/linkat-tests (Files): Likewise.
36612         * modules/lseek-tests (Files): Likewise.
36613         * modules/lstat-tests (Files): Likewise.
36614         * modules/mbrtowc-tests (Files): Likewise.
36615         * modules/mbsinit-tests (Files): Likewise.
36616         * modules/mbsnrtowcs-tests (Files): Likewise.
36617         * modules/mbsrtowcs-tests (Files): Likewise.
36618         * modules/memchr-tests (Files): Likewise.
36619         * modules/memcmp-tests (Files): Likewise.
36620         * modules/memmem-tests (Files): Likewise.
36621         * modules/memrchr-tests (Files): Likewise.
36622         * modules/mkdir-tests (Files): Likewise.
36623         * modules/mkfifo-tests (Files): Likewise.
36624         * modules/mkfifoat-tests (Files): Likewise.
36625         * modules/mknod-tests (Files): Likewise.
36626         * modules/nanosleep-tests (Files): Likewise.
36627         * modules/nl_langinfo-tests (Files): Likewise.
36628         * modules/obstack-printf-tests (Files): Likewise.
36629         * modules/open-tests (Files): Likewise.
36630         * modules/openat-tests (Files): Likewise.
36631         * modules/perror-tests (Files): Likewise.
36632         * modules/pipe2-tests (Files): Likewise.
36633         * modules/poll-tests (Files): Likewise.
36634         * modules/popen-tests (Files): Likewise.
36635         * modules/posix_spawn-tests (Files): Likewise.
36636         * modules/posix_spawnp-tests (Files): Likewise.
36637         * modules/pread-tests (Files): Likewise.
36638         * modules/printf-posix-tests (Files): Likewise.
36639         * modules/pty-tests (Files): Likewise.
36640         * modules/random_r-tests (Files): Likewise.
36641         * modules/rawmemchr-tests (Files): Likewise.
36642         * modules/readlink-tests (Files): Likewise.
36643         * modules/remove-tests (Files): Likewise.
36644         * modules/rename-tests (Files): Likewise.
36645         * modules/renameat-tests (Files): Likewise.
36646         * modules/rmdir-tests (Files): Likewise.
36647         * modules/round-tests (Files): Likewise.
36648         * modules/roundf-tests (Files): Likewise.
36649         * modules/roundl-tests (Files): Likewise.
36650         * modules/select-tests (Files): Likewise.
36651         * modules/setenv-tests (Files): Likewise.
36652         * modules/sigaction-tests (Files): Likewise.
36653         * modules/sleep-tests (Files): Likewise.
36654         * modules/snprintf-posix-tests (Files): Likewise.
36655         * modules/snprintf-tests (Files): Likewise.
36656         * modules/sprintf-posix-tests (Files): Likewise.
36657         * modules/stat-tests (Files): Likewise.
36658         * modules/strcasestr-tests (Files): Likewise.
36659         * modules/strchrnul-tests (Files): Likewise.
36660         * modules/strerror-tests (Files): Likewise.
36661         * modules/strsignal-tests (Files): Likewise.
36662         * modules/strstr-tests (Files): Likewise.
36663         * modules/strtod-tests (Files): Likewise.
36664         * modules/strverscmp-tests (Files): Likewise.
36665         * modules/symlink-tests (Files): Likewise.
36666         * modules/symlinkat-tests (Files): Likewise.
36667         * modules/times-tests (Files): Likewise.
36668         * modules/trunc-tests (Files): Likewise.
36669         * modules/truncf-tests (Files): Likewise.
36670         * modules/truncl-tests (Files): Likewise.
36671         * modules/tsearch-tests (Files): Likewise.
36672         * modules/uname-tests (Files): Likewise.
36673         * modules/unlink-tests (Files): Likewise.
36674         * modules/unsetenv-tests (Files): Likewise.
36675         * modules/usleep-tests (Files): Likewise.
36676         * modules/utimensat-tests (Files): Likewise.
36677         * modules/vasprintf-tests (Files): Likewise.
36678         * modules/vdprintf-posix-tests (Files): Likewise.
36679         * modules/vfprintf-posix-tests (Files): Likewise.
36680         * modules/vprintf-posix-tests (Files): Likewise.
36681         * modules/vsnprintf-posix-tests (Files): Likewise.
36682         * modules/vsnprintf-tests (Files): Likewise.
36683         * modules/vsprintf-posix-tests (Files): Likewise.
36684         * modules/wcrtomb-tests (Files): Likewise.
36685         * modules/wcsnrtombs-tests (Files): Likewise.
36686         * modules/wcsrtombs-tests (Files): Likewise.
36687         * modules/wcwidth-tests (Files): Likewise.
36688         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36689         * tests/test-isinf.c (isinf): Likewise.
36690         * tests/test-isnan.c (isnan): Likewise.
36691         * tests/test-signbit.c (signbit): Likewise.
36692         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36693         declaration, either as macro or with correct signature.
36694         (select): Ensure function under test is declared with correct
36695         signature in correct header.
36696         * tests/test-atexit.c (atexit): Likewise.
36697         * tests/test-btowc.c (btowc): Likewise.
36698         * tests/test-canonicalize-lgpl.c (realpath)
36699         (canonicalize_file_name): Likewise.
36700         * tests/test-ceilf1.c (ceilf): Likewise.
36701         * tests/test-ceill.c (ceill): Likewise.
36702         * tests/test-chown.c (chown): Likewise.
36703         * tests/test-dprintf-posix.c (dprintf): Likewise.
36704         * tests/test-dup2.c (dup2): Likewise.
36705         * tests/test-dup3.c (dup3): Likewise.
36706         * tests/test-duplocale.c (duplocale): Likewise.
36707         * tests/test-fchdir.c (fchdir): Likewise.
36708         * tests/test-fchownat.c (fchownat): Likewise.
36709         * tests/test-fcntl.c (fcntl): Likewise.
36710         * tests/test-fdopendir.c (fdopendir): Likewise.
36711         * tests/test-fflush.c (fflush): Likewise.
36712         * tests/test-flock.c (flock): Likewise.
36713         * tests/test-floorf1.c (floorf): Likewise.
36714         * tests/test-floorl.c (floorl): Likewise.
36715         * tests/test-fnmatch.c (fnmatch): Likewise.
36716         * tests/test-fopen.c (fopen): Likewise.
36717         * tests/test-fprintf-posix.c (fprintf): Likewise.
36718         * tests/test-freopen.c (freopen): Likewise.
36719         * tests/test-frexp.c (frexp): Likewise.
36720         * tests/test-frexpl.c (frexpl): Likewise.
36721         * tests/test-fseek.c (fseek): Likewise.
36722         * tests/test-fseeko.c (fseeko): Likewise.
36723         * tests/test-fstatat.c (fstatat): Likewise.
36724         * tests/test-fsync.c (fsync): Likewise.
36725         * tests/test-ftell.c (ftell): Likewise.
36726         * tests/test-ftello.c (ftello): Likewise.
36727         * tests/test-futimens.c (futimens): Likewise.
36728         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36729         (gai_strerror): Likewise.
36730         * tests/test-getcwd.c (getcwd): Likewise.
36731         * tests/test-getdelim.c (getdelim): Likewise.
36732         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36733         * tests/test-getgroups.c (getgroups): Likewise.
36734         * tests/test-gethostname.c (gethostname): Likewise.
36735         * tests/test-getline.c (getline): Likewise.
36736         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36737         Likewise.
36738         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36739         * tests/test-glob.c (glob, globfree): Likewise.
36740         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36741         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36742         * tests/test-inet_pton.c (inet_pton): Likewise.
36743         * tests/test-isblank.c (isblank): Likewise.
36744         * tests/test-lchown.c (lchown): Likewise.
36745         * tests/test-ldexpl.c (ldexpl): Likewise.
36746         * tests/test-link.c (link): Likewise.
36747         * tests/test-linkat.c (linkat): Likewise.
36748         * tests/test-lseek.c (lseek): Likewise.
36749         * tests/test-lstat.c (lstat): Likewise.
36750         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36751         * tests/test-mbsinit.c (mbsinit): Likewise.
36752         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36753         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36754         * tests/test-memchr.c (memchr): Likewise.
36755         * tests/test-memcmp.c (memcmp): Likewise.
36756         * tests/test-memmem.c (memmem): Likewise.
36757         * tests/test-memrchr.c (memrchr): Likewise.
36758         * tests/test-mkdir.c (mkdir): Likewise.
36759         * tests/test-mkdirat.c (mkdirat): Likewise.
36760         * tests/test-mkfifo.c (mkfifo): Likewise.
36761         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36762         * tests/test-mknod.c (mknod): Likewise.
36763         * tests/test-nanosleep.c (nanosleep): Likewise.
36764         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36765         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36766         Likewise.
36767         * tests/test-open.c (open): Likewise.
36768         * tests/test-openat.c (openat): Likewise.
36769         * tests/test-perror.c (perror): Likewise.
36770         * tests/test-pipe2.c (pipe2): Likewise.
36771         * tests/test-poll.c (poll): Likewise.
36772         * tests/test-popen.c (popen, pclose): Likewise.
36773         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36774         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36775         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36776         (posix_spawn_file_actions_destroy)
36777         (posix_spawn_file_actions_addclose)
36778         (posix_spawn_file_actions_addopen)
36779         (posix_spawn_file_actions_adddup2): Likewise.
36780         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36781         * tests/test-pread.c (pread): Likewise.
36782         * tests/test-printf-posix.c (printf): Likewise.
36783         * tests/test-pty.c (openpty, forkpty): Likewise.
36784         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36785         (random_r): Likewise.
36786         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36787         * tests/test-readlink.c (readlink): Likewise.
36788         * tests/test-remove.c (remove): Likewise.
36789         * tests/test-rename.c (rename): Likewise.
36790         * tests/test-renameat.c (renameat): Likewise.
36791         * tests/test-rmdir.c (rmdir): Likewise.
36792         * tests/test-round1.c (round): Likewise.
36793         * tests/test-roundf1.c (roundf): Likewise.
36794         * tests/test-roundl.c (roundl): Likewise.
36795         * tests/test-setenv.c (setenv): Likewise.
36796         * tests/test-sigaction.c (sigaction): Likewise.
36797         * tests/test-sleep.c (sleep): Likewise.
36798         * tests/test-snprintf.c (snprintf): Likewise.
36799         * tests/test-sprintf-posix.c (sprintf): Likewise.
36800         * tests/test-stat.c (stat): Likewise.
36801         * tests/test-stpncpy.c (stpncpy): Likewise.
36802         * tests/test-strcasestr.c (strcasestr): Likewise.
36803         * tests/test-strchrnul.c (strchrnul): Likewise.
36804         * tests/test-strerror.c (strerror): Likewise.
36805         * tests/test-strsignal.c (strsignal): Likewise.
36806         * tests/test-strstr.c (strstr): Likewise.
36807         * tests/test-strtod.c (strtod): Likewise.
36808         * tests/test-strverscmp.c (strverscmp): Likewise.
36809         * tests/test-symlink.c (symlink): Likewise.
36810         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36811         * tests/test-times.c (times): Likewise.
36812         * tests/test-trunc1.c (trunc): Likewise.
36813         * tests/test-truncf1.c (truncf): Likewise.
36814         * tests/test-truncl.c (truncl): Likewise.
36815         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36816         Likewise.
36817         * tests/test-uname.c (uname): Likewise.
36818         * tests/test-unlink.c (unlink): Likewise.
36819         * tests/test-unlinkat.c (unlinkat): Likewise.
36820         * tests/test-unsetenv.c (unsetenv): Likewise.
36821         * tests/test-usleep.c (usleep): Likewise.
36822         * tests/test-utimensat.c (utimensat): Likewise.
36823         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36824         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36825         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36826         * tests/test-vprintf-posix.c (vprintf): Likewise.
36827         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36828         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36829         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36830         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36831         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36832         * tests/test-wcwidth.c (wcwidth): Likewise.
36833
36834         build: pull in conditional headers during GNULIB_POSIXCHECK
36835         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36836         definitions from any conditionally-included headers.
36837         * lib/stdlib.in.h (includes): Likewise.
36838         * lib/unistd.in.h (includes): Likewise.
36839
36840 2009-12-24  Bruno Haible  <bruno@clisp.org>
36841
36842         * tests/test-argv-iter.c: Include header file being tested immediately
36843         after config.h.
36844         * tests/test-base64.c: Likewise.
36845         * tests/test-flock.c: Likewise.
36846         * tests/test-fsync.c: Likewise.
36847         * tests/test-getdate.c: Likewise.
36848         * tests/test-getndelim2.c: Likewise.
36849         * tests/test-isfinite.c: Likewise.
36850         * tests/test-isinf.c: Likewise.
36851         * tests/test-strerror.c: Likewise.
36852         * tests/test-strsignal.c: Likewise.
36853
36854 2009-12-23  Eric Blake  <ebb9@byu.net>
36855
36856         unistd: work around cygwin bug
36857         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36858         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36859         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36860
36861 2009-12-23  Bruno Haible  <bruno@clisp.org>
36862
36863         localename: More tests.
36864         * tests/test-localename.c (SIZEOF): New macro.
36865         (categories): New variable.
36866         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36867         test_locale_name_default): Add test w.r.t. thread locale.
36868         (test_locale_name_thread): New function.
36869         (main): Invoke it.
36870
36871         localename: Make aware of thread locale.
36872         * lib/localename.h (gl_locale_name_thread): New declaration.
36873         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36874         behaviour with respect to thread locale.
36875         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36876         <langinfo.h>, glthread/lock.h.
36877         (SIZE_BITS): New macro.
36878         (string_hash): New function.
36879         (struct hash_node): New type.
36880         (HASH_TABLE_SIZE): New macro.
36881         (struniq_hash_table, struniq_lock): New variables.
36882         (struniq): New function.
36883         (gl_locale_name_thread): New function.
36884         (gl_locale_name): Invoke it.
36885         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36886         * modules/localename (Depends-on): Add lock.
36887         Reported by Mike Gran <spk121@yahoo.com>.
36888
36889 2009-12-23  Eric Blake  <ebb9@byu.net>
36890
36891         va-args: new module
36892         * modules/va-args: New file.
36893         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36894         * MODULES.html.sh (Core language properties): Mention it.
36895
36896         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36897         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36898         named alias for __attribute__((__unused__)).
36899         * lib/chown.c: Update client.
36900         * lib/fchmodat.c: Likewise.
36901         * lib/fts.c: Likewise.
36902         * lib/getdate.y: Likewise.
36903         * lib/getgroups.c: Likewise.
36904         * lib/getopt.c: Likewise.
36905         * lib/getugroups.c: Likewise.
36906         * lib/mkdir.c: Likewise.
36907         * lib/mkfifo.c: Likewise.
36908         * lib/mkfifoat.c: Likewise.
36909         * lib/mknod.c: Likewise.
36910         * lib/mknodat.c: Likewise.
36911         * lib/readlink.c: Likewise.
36912         * lib/se-context.in.h: Likewise.
36913         * lib/se-selinux.in.h: Likewise.
36914         * lib/sockets.c: Likewise.
36915         * lib/symlink.c: Likewise.
36916         * lib/symlinkat.c: Likewise.
36917         * lib/unicodeio.c: Likewise.
36918         * lib/unistr.h: Likewise.
36919         * tests/test-areadlink.c: Likewise.
36920         * tests/test-areadlinkat.c: Likewise.
36921         * tests/test-filenamecat.c: Likewise.
36922         * tests/test-fseeko.c: Likewise.
36923         * tests/test-ftello.c: Likewise.
36924         * tests/test-getdate.c: Likewise.
36925         * tests/test-getgroups.c: Likewise.
36926         * tests/test-gethostname.c: Likewise.
36927         * tests/test-quotearg.c: Likewise.
36928         * tests/test-version-etc.c: Likewise.
36929         * tests/test-xalloc-die.c: Likewise.
36930         * tests/test-xfprintf-posix.c: Likewise.
36931         * tests/test-xprintf-posix.c: Likewise.
36932         * tests/test-xvasprintf.c: Likewise.
36933
36934         tests: avoid compiler warnings
36935         * tests/test-fcntl.c (main): Delete unused parameters.
36936         * tests/test-freopen-safer.c (main): Likewise.
36937         * tests/test-xalloc-die.c (main): Mark unused parameters.
36938         * tests/test-fseeko.c (main): Likewise.
36939         * tests/test-ftello.c (main): Likewise.
36940         * tests/test-nanosleep.c (main): Avoid declaration warning.
36941         * tests/test-sleep.c (main): Likewise.
36942         * tests/test-unsetenv.c (main): Silence warning about string
36943         literal.
36944         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36945
36946 2009-12-23  Bruno Haible  <bruno@clisp.org>
36947
36948         * tests/test-localename.c (test_locale_name): New function, extracted
36949         from main. Also test mixed situations.
36950         (test_locale_name_posix, test_locale_name_environ,
36951         test_locale_name_default): New functions.
36952         (main): Invoke them all.
36953         * modules/localename-tests (configure.ac): Test for newlocale.
36954
36955 2009-12-23  Bruno Haible  <bruno@clisp.org>
36956
36957         unistd: Ensure getcwd gets declared before being overridden.
36958         * lib/unistd.in.h: Conditionally include <io.h>.
36959
36960 2009-12-22  Bruno Haible  <bruno@clisp.org>
36961
36962         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36963         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36964         (gl_WCHAR_H): Invoke it.
36965         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36966         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36967         Reported by Karl Berry <karl@freefriends.org>.
36968
36969 2009-12-22  Eric Blake  <ebb9@byu.net>
36970
36971         math, unistd: avoid redundant includes
36972         * lib/math.in.h (isnan): No need to re-include <math.h>.
36973         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36974
36975         getsubopt: work around cygwin bug
36976         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36977         avoid conflicting with system getsubopt.
36978         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36979         bug.
36980
36981         getopt: synchronize from glibc
36982         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36983         parameter order.  Adjust all callers.
36984         (_getopt_internal_r, main): Adjust quoting in error messages.
36985         Drop considerations for outdated POSIX 1003.2 error message.
36986         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36987         callers.
36988         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36989
36990         test-getopt: test stderr behavior
36991         * modules/getopt-posix-tests (Depends-on): Add dup2.
36992         * tests/test-getopt.c (ASSERT): Avoid stderr.
36993         (main): Move stderr to a temporary file.
36994         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36995         Instead, add parameter to inform caller if output occurred.
36996         (test_getopt): Adjust all existing tests to expect silence, and
36997         add new tests of leading ":".
36998         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36999         glibc shortcomings with leading "-:" or "+:" in optstring.
37000         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37001         Likewise.
37002         * doc/posix-functions/getopt.texi (getopt): Likewise.
37003
37004         test-getopt: enhance test
37005         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37006         supports optind=0.
37007         * tests/test-getopt.c (OPTIND_MIN): Move...
37008         * tests/test-getopt.h (OPTIND_MIN): ...here.
37009         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37010         Require that optind=0 works, since modern BSD supports it in
37011         addition to optreset, and since coreutils expects it.
37012         (test_getopt_long_only): New test.
37013         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37014         glibc shortcomings with 'W;', and enforcement of optind=0.
37015         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37016         Likewise.
37017
37018 2009-12-21  Bruno Haible  <bruno@clisp.org>
37019
37020         localename: Improvements for MacOS X and Cygwin.
37021         * lib/localename.h (gl_locale_name_environ): New declaration.
37022         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37023         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37024         (gl_locale_name_posix): Invoke it.
37025         (gl_locale_name_default): Add comments. Use Windows native API also on
37026         Cygwin.
37027
37028 2009-12-21  Bruno Haible  <bruno@clisp.org>
37029
37030         Update list of Win32 locale ids.
37031         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37032         (LANG_SAMI): Renamed from LANG_SAAMI.
37033         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37034         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37035         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37036         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37037         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37038         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37039         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37040         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37041         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37042         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37043         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37044         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37045         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37046         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37047         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37048         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37049         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37050         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37051         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37052         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37053         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37054         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37055         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37056         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37057         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37058         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37059         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37060         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37061         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37062         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37063         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37064         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37065         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37066         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37067         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37068         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37069         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37070         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37071         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37072         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37073         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37074         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37075         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37076         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37077         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37078         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37079         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37080         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37081         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37082         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37083         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37084         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37085         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37086         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37087         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37088         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37089         Add more languages and countries for Sami, Sorbian. Add more countries
37090         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37091         for Pashto. Change country for Syriac, Tswana.
37092
37093 2009-12-21  Eric Blake  <ebb9@byu.net>
37094
37095         test-utimens: avoid spurious failure
37096         * tests/test-chown.h (nap): Factor...
37097         * tests/nap.h: ...into new file.
37098         * tests/test-lchown.h (nap): Avoid duplication.
37099         * tests/test-utimens-common.h (nap): Use shared implementation,
37100         necessary on file systems with 1-second resolution.
37101         * modules/chown-tests (Files): Include new file.
37102         * modules/fdutimensat-tests (Files): Likewise.
37103         * modules/futimens-tests (Files): Likewise.
37104         * modules/lchown-tests (Files): Likewise.
37105         * modules/openat-tests (Files): Likewise.
37106         * modules/utimens-tests (Files): Likewise.
37107         * modules/utimensat-tests (Files): Likewise.
37108
37109 2009-12-19  Eric Blake  <ebb9@byu.net>
37110
37111         futimens, utimensat: work around Linux bug
37112         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37113         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37114         * lib/utimensat.c (rpl_utimensat): Work around it.
37115         * lib/futimens.c (rpl_futimens): Adjust comment.
37116
37117         utimens: work around Linux ctime bug
37118         * lib/utimens.c (detect_ctime_bug): New helper function.
37119         (update_timespec): Differentiate between workaround needed for
37120         this bug vs. what is needed for systems that lack utimensat.
37121         (fdutimens, lutimens): Work around bug.
37122
37123         utimens: check for ctime update
37124         * tests/test-utimens-common.h (check_ctime): Define.
37125         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37126         * tests/test-futimens.h (test_futimens): Likewise.
37127         * tests/test-lutimens.h (test_lutimens): Likewise.
37128         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37129         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37130
37131 2009-12-19  Bruno Haible  <bruno@clisp.org>
37132
37133         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37134         * tests/test-dprintf-posix2.sh: New file.
37135         * tests/test-dprintf-posix2.c: New file.
37136         * modules/dprintf-posix-tests (Files): Add them.
37137         (configure.ac): Check for getrlimit and setrlimit.
37138         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37139
37140 2009-12-19  Bruno Haible  <bruno@clisp.org>
37141
37142         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37143         * tests/test-fprintf-posix3.sh: New file.
37144         * tests/test-fprintf-posix3.c: New file.
37145         * modules/fprintf-posix-tests (Files): Add them.
37146         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37147
37148 2009-12-19  Eric Blake  <ebb9@byu.net>
37149
37150         dirfd: fix prototype
37151         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37152         * lib/dirfd.c (dirfd): Likewise.
37153
37154         canonicalize: reduce memory usage
37155         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37156         allocation to size.
37157         Reported by Solar Designer <solar@openwall.com>.
37158
37159 2009-12-19  Bruno Haible  <bruno@clisp.org>
37160
37161         New module attribute 'Applicability'.
37162         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37163         * gnulib-tool: New option --extract-applicability.
37164         (func_usage): Document it.
37165         (sed_extract_prog): Recognize it.
37166         (func_get_applicability): New function.
37167         (func_import): Generalize handling of 'link-warning' module.
37168         * modules/link-warning (Applicability): New section.
37169         * modules/arg-nonnull (Applicability): New section.
37170         Repoted by Simon Josefsson <simon@josefsson.org>.
37171
37172 2009-12-19  Bruno Haible  <bruno@clisp.org>
37173
37174         fflush: tweak
37175         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37176         * lib/fseeko.c (rpl_fseeko): Likewise.
37177
37178 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37179
37180         * lib/gl_list.h: Fix typo in comment.
37181
37182 2009-12-16  Eric Blake  <ebb9@byu.net>
37183
37184         fcntl: use to simplify other modules
37185         * modules/cloexec (Depends-on): Add fcntl.
37186         * modules/fchdir (Depends-on): Likewise.
37187         * modules/fd-safer-flag (Depends-on): Likewise.
37188         * modules/unistd-safer (Depends-on): Likewise.
37189         * modules/dup3 (configure.ac): Set module indicator.
37190         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37191         missing.
37192         * lib/fchdir.c (_gl_register_dup): Fix comment.
37193         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37194         * lib/dup-safer.c (dup_safer): Likewise.
37195         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37196         * lib/dup3.c (dup3): Likewise.
37197         * tests/test-fchdir.c (main): Enhance test.
37198         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37199
37200         fcntl: port portions of fcntl to mingw
37201         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37202         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37203         replacement for mingw.
37204         * modules/fcntl (Description): Update.
37205         (Depends-on): Add dup2.
37206         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37207         * modules/fcntl-h (Makefile.am): Substitute it.
37208         * lib/fcntl.in.h (fcntl): Update declaration.
37209         (F_DUPFD, F_GETFD): New macros, when needed.
37210         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37211         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37212         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37213         we now guarantee.
37214
37215         fcntl: work around cygwin bug in F_DUPFD
37216         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37217         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37218         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37219         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37220         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37221
37222         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37223         * modules/fcntl (Files): List new files.
37224         (configure.ac): Run a test.
37225         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37226         * lib/fcntl.c (rpl_fcntl): Likewise.
37227         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37228         (gl_FCNTL_H): Always replace fcntl.h.
37229         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37230         * lib/fcntl.in.h (fcntl): Declare replacement.
37231         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37232         needed, plus a witness.
37233         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37234         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37235         * tests/test-fcntl.c: New file.
37236         * modules/fcntl-tests: Likewise.
37237
37238         binary-io: avoid potential compilation warning
37239         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37240         directives.
37241
37242         fflush: avoid compilation error on NetBSD
37243         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37244         between off_t and fpos_t, since the latter is sometimes a struct.
37245         * lib/fseeko.c (rpl_fseeko): Likewise.
37246         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37247
37248 2009-12-15  Eric Blake  <ebb9@byu.net>
37249
37250         fcntl-h, stdio, sys_ioctl: fix declarations
37251         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37252         function must not take arguments.
37253         * lib/sys_ioctl.in.h (ioctl): Likewise.
37254         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37255         (open): Add a link warning.
37256
37257 2009-12-15  Jim Meyering  <meyering@redhat.com>
37258
37259         areadlink, areadlink-with-size: relax license to LGPLv2+
37260         * modules/areadlink (License): Relax to LGPLv2+.
37261         * modules/areadlink-with-size (License): Likewise.
37262
37263 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37264             Bruno Haible  <bruno@clisp.org>
37265
37266         *printf: Fix memory leak.
37267         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37268         * lib/vfprintf.c (vfprintf): Likewise.
37269         * lib/dprintf.c (dprintf): Likewise.
37270         * lib/vdprintf.c (vdprintf): Likewise.
37271
37272 2009-12-14  Eric Blake  <ebb9@byu.net>
37273
37274         accept4: adjust module dependencies
37275         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37276
37277         utimens: one more try at avoiding compiler warning
37278         * lib/utimens.c (lutimens): Lower scope of result.
37279
37280 2009-12-13  Bruno Haible  <bruno@clisp.org>
37281
37282         Move the malloc checking from module 'list' to new module 'xlist'.
37283         * modules/xlist: New file.
37284         * lib/gl_xlist.h: New file.
37285         * lib/gl_xlist.c: New file.
37286         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37287         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37288         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37289         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37290         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37291         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37292         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37293         gl_sortedlist_nx_add): New declarations.
37294         (struct gl_list_implementation): Rename and change methods accordingly.
37295         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37296         (gl_list_nx_create): Renamed from gl_list_create.
37297         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37298         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37299         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37300         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37301         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37302         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37303         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37304         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37305         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37306         gl_list_create_empty.
37307         (gl_list_nx_create): Renamed from gl_list_create.
37308         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37309         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37310         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37311         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37312         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37313         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37314         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37315         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37316         * lib/gl_array_list.c: Don't include xalloc.h.
37317         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37318         NULL upon out-of-memory.
37319         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37320         out-of-memory.
37321         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37322         Change return type to 'int'.
37323         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37324         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37325         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37326         upon out-of-memory.
37327         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37328         upon out-of-memory.
37329         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37330         upon out-of-memory.
37331         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37332         upon out-of-memory.
37333         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37334         out-of-memory.
37335         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37336         Update.
37337         (gl_array_list_implementation): Update.
37338         * lib/gl_carray_list.c: Don't include xalloc.h.
37339         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37340         Return NULL upon out-of-memory.
37341         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37342         out-of-memory.
37343         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37344         Change return type to 'int'.
37345         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37346         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37347         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37348         upon out-of-memory.
37349         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37350         upon out-of-memory.
37351         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37352         out-of-memory.
37353         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37354         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37355         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37356         Update.
37357         (gl_carray_list_implementation): Update.
37358         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37359         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37360         gl_linked_create_empty. Return NULL upon out-of-memory.
37361         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37362         out-of-memory.
37363         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37364         Change return type to 'int'. Return -1 upon out-of-memory.
37365         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37366         out-of-memory.
37367         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37368         upon out-of-memory.
37369         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37370         upon out-of-memory.
37371         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37372         NULL upon out-of-memory.
37373         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37374         upon out-of-memory.
37375         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37376         out-of-memory.
37377         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37378         Update.
37379         * lib/gl_linked_list.c: Don't include xalloc.h.
37380         (gl_linked_list_implementation): Update.
37381         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37382         (add_to_bucket): Change return type to 'int'.
37383         (gl_linkedhash_list_implementation): Update.
37384         * lib/gl_anytree_list1.h (free_subtree): New function.
37385         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37386         gl_tree_create_empty. Return NULL upon out-of-memory.
37387         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37388         Change return type to 'int'. Return -1 upon out-of-memory.
37389         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37390         out-of-memory.
37391         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37392         (gl_tree_remove_node): New function, moved here from
37393         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37394         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37395         Update.
37396         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37397         malloc, not xmalloc. Return NULL upon out-of-memory.
37398         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37399         out-of-memory.
37400         (gl_tree_remove_node_from_tree): New function, extracted from
37401         gl_tree_remove_node.
37402         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37403         upon out-of-memory.
37404         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37405         out-of-memory.
37406         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37407         upon out-of-memory.
37408         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37409         upon out-of-memory.
37410         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37411         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37412         not xmalloc. Return NULL upon out-of-memory.
37413         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37414         out-of-memory.
37415         (gl_tree_remove_node_from_tree): New function, extracted from
37416         gl_tree_remove_node.
37417         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37418         upon out-of-memory.
37419         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37420         out-of-memory.
37421         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37422         upon out-of-memory.
37423         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37424         upon out-of-memory.
37425         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37426         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37427         gl_anytree_list1.h before gl_anyavltree_list2.h.
37428         (gl_avltree_list_implementation): Update.
37429         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37430         gl_anytree_list1.h before gl_anyavltree_list2.h.
37431         (gl_rbtree_list_implementation): Update.
37432         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37433         Change return type to 'int'. Return -1 upon out-of-memory. Use
37434         __builtin_expect.
37435         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37436         (gl_avltreehash_list_implementation): Update.
37437         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37438         (gl_rbtreehash_list_implementation): Update.
37439         * modules/array-list (Depends-on): Remove xalloc.
37440         * modules/carray-list (Depends-on): Likewise.
37441         * modules/linked-list (Depends-on): Likewise.
37442         * modules/linkedhash-list (Depends-on): Likewise.
37443         * modules/avltree-list (Depends-on): Likewise.
37444         * modules/rbtree-list (Depends-on): Likewise.
37445         * modules/avltreehash-list (Depends-on): Likewise.
37446         * modules/rbtreehash-list (Depends-on): Likewise.
37447
37448         * modules/xsublist: New file.
37449         * lib/gl_xsublist.h: New file.
37450         * lib/gl_xsublist.c: New file.
37451         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37452         (gl_sublist_nx_create): New declaration.
37453         * lib/gl_sublist.c: Don't include xalloc.h.
37454         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37455         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37456         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37457         Change return type to 'int'. Return -1 upon out-of-memory.
37458         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37459         upon out-of-memory.
37460         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37461         NULL upon out-of-memory.
37462         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37463         upon out-of-memory.
37464         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37465         NULL upon out-of-memory.
37466         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37467         NULL upon out-of-memory.
37468         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37469         upon out-of-memory.
37470         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37471         (gl_sublist_list_implementation): Update.
37472         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37473         upon out-of-memory.
37474         * modules/sublist (Depends-on): Remove xalloc.
37475
37476         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37477         * tests/test-carray_list.c: Likewise.
37478         * tests/test-linked_list.c: Likewise.
37479         * tests/test-linkedhash_list.c: Likewise.
37480         * tests/test-avltree_list.c: Likewise.
37481         * tests/test-rbtree_list.c: Likewise.
37482         * tests/test-avltreehash_list.c: Likewise.
37483         * tests/test-rbtreehash_list.c: Likewise.
37484         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37485         * modules/carray-list-tests (Makefile.am): Likewise.
37486         * modules/linked-list-tests (Makefile.am): Likewise.
37487         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37488         * modules/avltree-list-tests (Makefile.am): Likewise.
37489         * modules/rbtree-list-tests (Makefile.am): Likewise.
37490         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37491         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37492
37493         * NEWS: Mention the changes.
37494
37495         * lib/clean-temp.c: Include gl_xlist.h.
37496         * modules/clean-temp (Depends-on): Add xlist.
37497
37498         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37499         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37500
37501         * tests/test-array_oset.c: Include gl_xlist.h.
37502         * modules/array-oset-tests (Depends-on): Add xlist.
37503
37504         Reported by José E. Marchesi <jemarch@gnu.org>.
37505
37506 2009-12-13  Bruno Haible  <bruno@clisp.org>
37507
37508         Move the malloc checking from module 'oset' to new module 'xoset'.
37509         * modules/xoset: New file.
37510         * lib/gl_xoset.h: New file.
37511         * lib/gl_xoset.c: New file.
37512         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37513         declarations.
37514         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37515         (struct gl_oset_implementation): Rename and change methods accordingly.
37516         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37517         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37518         'int'. Mark as __warn_unused_result__.
37519         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37520         gl_oset_create_empty.
37521         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37522         'int'.
37523         * lib/gl_array_oset.c: Don't include xalloc.h.
37524         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37525         malloc, not xmalloc.
37526         (grow): Change return type to 'int'. Don't call xalloc_die.
37527         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37528         to 'int'.
37529         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37530         'int'.
37531         (gl_array_oset_implementation): Update.
37532         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37533         gl_tree_create_empty.
37534         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37535         'int'.
37536         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37537         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37538         xmalloc.
37539         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37540         not xmalloc.
37541         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37542         xmalloc.
37543         (gl_avltree_oset_implementation): Update.
37544         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37545         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37546         xmalloc.
37547         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37548         not xmalloc.
37549         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37550         xmalloc.
37551         (gl_rbtree_oset_implementation): Update.
37552         * modules/array-oset (Depends-on): Remove xalloc.
37553         * modules/avltree-oset (Depends-on): Likewise.
37554         * modules/rbtree-oset (Depends-on): Likewise.
37555         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37556         * tests/test-avltree_oset.c: Likewise.
37557         * tests/test-rbtree_oset.c: Likewise.
37558         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37559         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37560         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37561         * NEWS: Mention the change.
37562
37563 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37564
37565         maint.mk: allow a project to override release-prep commands
37566         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37567         commands into a new rule.
37568         (release-prep): New rule.
37569         (release-prep-hook): New overridable variable.
37570
37571 2009-12-13  Bruno Haible  <bruno@clisp.org>
37572
37573         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37574
37575 2009-12-13  Jim Meyering  <meyering@redhat.com>
37576
37577         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37578         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37579
37580 2009-12-12  Bruno Haible  <bruno@clisp.org>
37581
37582         duplocale: Tweak.
37583         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37584
37585 2009-12-12  Karl Berry  <karl@gnu.org>
37586
37587         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37588
37589 2009-12-12  Bruno Haible  <bruno@clisp.org>
37590
37591         * m4/po.m4: Undo incorrect untabification.
37592
37593 2009-12-12  Bruno Haible  <bruno@clisp.org>
37594
37595         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37596         * modules/c-strtod (Depends-on): Add locale.
37597         * modules/c-strtold (Depends-on): Likewise.
37598
37599 2009-12-12  Bruno Haible  <bruno@clisp.org>
37600
37601         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37602
37603 2009-12-11  Eric Blake  <ebb9@byu.net>
37604
37605         setenv: relax requirement in light of POSIX ruling
37606         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37607         not NULL.
37608         * tests/test-setenv.c (main): Relax test.
37609         * tests/test-unsetenv.c (main): Likewise.
37610         * doc/posix-functions/setenv.texi (setenv): Document this.
37611         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37612
37613 2009-12-11  Bruno Haible  <bruno@clisp.org>
37614
37615         New module 'fd-safer-flag'.
37616         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37617         * lib/dup-safer.c (dup_safer_flag): Remove function.
37618         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37619         * lib/fd-safer.c (fd_safer_flag): Remove function.
37620         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37621         * modules/cloexec (configure.ac): Drop indicator macro.
37622         * modules/fd-safer-flag: New file.
37623         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37624         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37625         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37626
37627 2009-12-11  Bruno Haible  <bruno@clisp.org>
37628
37629         Tests for module 'nl_langinfo'.
37630         * modules/nl_langinfo-tests: New file.
37631         * tests/test-nl_langinfo.sh: New file.
37632         * tests/test-nl_langinfo.c: New file.
37633
37634         New module 'nl_langinfo'.
37635         * lib/nl_langinfo.c: New file.
37636         * m4/nl_langinfo.m4: New file.
37637         * modules/nl_langinfo: New file.
37638         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37639
37640 2009-12-11  Bruno Haible  <bruno@clisp.org>
37641
37642         Tests for module 'langinfo'.
37643         * modules/langinfo-tests: New file.
37644         * tests/test-langinfo.c: New file.
37645
37646         New module 'langinfo'.
37647         * lib/langinfo.in.h: New file.
37648         * m4/langinfo_h.m4: New file.
37649         * modules/langinfo: New file.
37650         * doc/posix-headers/langinfo.texi: Mention the new module.
37651
37652 2009-12-11  Bruno Haible  <bruno@clisp.org>
37653
37654         * lib/config.charset: Untabify.
37655
37656 2009-12-11  Bruno Haible  <bruno@clisp.org>
37657
37658         * modules/unistd-safer (configure.ac): Drop indicator macro.
37659
37660 2009-12-11  Bruno Haible  <bruno@clisp.org>
37661
37662         Move pipe2-safer code to its own file.
37663         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37664         * lib/pipe-safer.c (pipe2_safer): Remove function.
37665         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37666         (Makefile.am): Add it to lib_SOURCES.
37667
37668 2009-12-10  Bruno Haible  <bruno@clisp.org>
37669
37670         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37671
37672 2009-12-10  Bruno Haible  <bruno@clisp.org>
37673
37674         Declare which arguments expect non-NULL values, for GCC and clang.
37675         * build-aux/arg-nonnull.h: New file.
37676         * modules/arg-nonnull: New file.
37677         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37678         (inet_ntop, inet_pton): Use it.
37679         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37680         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37681         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37682         (open, openat): Use it.
37683         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37684         (fnmatch): Use it.
37685         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37686         (getopt, getopt_long, getopt_long_only): Use it.
37687         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37688         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37689         Use it.
37690         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37691         (iconv_open): Use it.
37692         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37693         (strtoimax, strtoumax): Use it.
37694         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37695         (duplocale): Use it.
37696         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37697         (frexp, frexpl): Use it.
37698         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37699         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37700         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37701         (tsearch, tfind, tdelete, twalk): Use it.
37702         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37703         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37704         sigpending): Use it.
37705         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37706         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37707         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37708         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37709         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37710         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37711         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37712         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37713         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37714         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37715         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37716         Use it.
37717         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37718         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37719         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37720         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37721         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37722         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37723         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37724         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37725         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37726         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37727         strtoull, unsetenv): Use it.
37728         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37729         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37730         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37731         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37732         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37733         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37734         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37735         (strcasecmp, strncasecmp): Use it.
37736         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37737         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37738         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37739         rpl_setsockopt): Use it.
37740         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37741         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37742         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37743         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37744         (gettimeofday): Use it.
37745         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37746         (times): Use it.
37747         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37748         (uname): Use it.
37749         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37750         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37751         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37752         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37753         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37754         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37755         unlinkat, write): Use it.
37756         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37757         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37758         * lib/argv-iter.h: Include arg-nonnull.h.
37759         (_ATTRIBUTE_NONNULL_): Remove macro.
37760         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37761         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37762         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37763         optimization.
37764         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37765         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37766         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37767         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37768         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37769         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37770         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37771         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37772         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37773         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37774         * modules/dirent (Depends-on): Add arg-nonnull.
37775         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37776         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37777         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37778         * modules/fnmatch (Depends-on): Add arg-nonnull.
37779         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37780         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37781         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37782         * modules/glob (Depends-on): Add arg-nonnull.
37783         (Makefile.am): Insert arg-nonnull.h into glob.h.
37784         * modules/iconv_open (Depends-on): Add arg-nonnull.
37785         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37786         * modules/inttypes (Depends-on): Add arg-nonnull.
37787         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37788         * modules/locale (Depends-on): Add arg-nonnull.
37789         (Makefile.am): Insert arg-nonnull.h into locale.h.
37790         * modules/math (Depends-on): Add arg-nonnull.
37791         (Makefile.am): Insert arg-nonnull.h into math.h.
37792         * modules/netdb (Depends-on): Add arg-nonnull.
37793         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37794         * modules/search (Depends-on): Add arg-nonnull.
37795         (Makefile.am): Insert arg-nonnull.h into search.h.
37796         * modules/signal (Depends-on): Add arg-nonnull.
37797         (Makefile.am): Insert arg-nonnull.h into signal.h.
37798         * modules/spawn (Depends-on): Add arg-nonnull.
37799         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37800         * modules/stdio (Depends-on): Add arg-nonnull.
37801         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37802         * modules/stdlib (Depends-on): Add arg-nonnull.
37803         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37804         * modules/string (Depends-on): Add arg-nonnull.
37805         (Makefile.am): Insert arg-nonnull.h into string.h.
37806         * modules/strings (Depends-on): Add arg-nonnull.
37807         (Makefile.am): Insert arg-nonnull.h into strings.h.
37808         * modules/sys_socket (Depends-on): Add arg-nonnull.
37809         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37810         * modules/sys_stat (Depends-on): Add arg-nonnull.
37811         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37812         * modules/sys_time (Depends-on): Add arg-nonnull.
37813         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37814         * modules/sys_times (Depends-on): Add arg-nonnull.
37815         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37816         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37817         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37818         * modules/time (Depends-on): Add arg-nonnull.
37819         (Makefile.am): Insert arg-nonnull.h into time.h.
37820         * modules/unistd (Depends-on): Add arg-nonnull.
37821         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37822         * modules/wchar (Depends-on): Add arg-nonnull.
37823         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37824         * modules/argv-iter (Depends-on): Add arg-nonnull.
37825         * tests/test-canonicalize.c (null_ptr): New function.
37826         (main): Use it.
37827         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37828         (main): Use it.
37829         * tests/test-memmem.c (null_ptr): New function.
37830         (main): Use it.
37831         Reported by Jim Meyering.
37832
37833 2009-12-10  Bruno Haible  <bruno@clisp.org>
37834
37835         Use spaces for indentation, not tabs.
37836         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37837         * m4/*.m4: Untabify.
37838         * build-aux/*.h: Untabify.
37839         * tests/**/*.[hc]: Untabify.
37840         * README: New section "Indent with spaces, not TABs", based on
37841         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37842         * NEWS: Mention the change.
37843
37844 2009-12-10  Bruno Haible  <bruno@clisp.org>
37845
37846         pty test: Fix link error.
37847         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37848         test_pty_LDADD.
37849
37850 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37851
37852         * modules/pty: New file.
37853         * modules/pty-tests: New file.
37854         * m4/pty.m4: New file.
37855         * tests/test-pty.c: New file.
37856         * doc/glibc-headers/pty.texi: Modified.
37857         * doc/glibc-functions/forkpty.texi: Modified.
37858         * doc/glibc-functions/openpty.texi: Modified.
37859
37860 2009-12-10  Bruno Haible  <bruno@clisp.org>
37861
37862         Avoid syntax error in C++ mode.
37863         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37864
37865 2009-12-10  Bruno Haible  <bruno@clisp.org>
37866
37867         Use sed with option -e.
37868         * gnulib-tool (func_version, func_emit_copyright_notice,
37869         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37870         option -e to sed.
37871         * modules/link-warning (Makefile.am): Likewise.
37872
37873 2009-12-10  Jim Meyering  <meyering@redhat.com>
37874
37875         mgetgroups: do not write bytes beyond end of malloc'd buffer
37876         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37877         username, we call getgroups with a one-element-shorter buffer,
37878         but still told it the length was original, max_n_groups.
37879
37880 2009-12-09  Eric Blake  <ebb9@byu.net>
37881
37882         cloexec: relax license
37883         * modules/cloexec (Maintainer): Add myself.
37884         (License): Use LGPL, not GPL.
37885
37886         link-warning: optimize generation
37887         * modules/link-warning (Makefile.am): Reduce process usage.
37888
37889 2009-12-09  Bruno Haible  <bruno@clisp.org>
37890
37891         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37892         workaround was added on 2009-11-17.
37893
37894 2009-12-09  Jim Meyering  <meyering@redhat.com>
37895             Bruno Haible  <bruno@clisp.org>
37896
37897         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37898         * modules/link-warning (Makefile.am): Make the comment-removing sed
37899         command more robust in the face of bootstrap-prepended comment lines.
37900
37901 2009-12-09  Bruno Haible  <bruno@clisp.org>
37902
37903         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37904         most one group.
37905
37906 2009-12-09  Simon Josefsson <simon@josefsson.org>
37907             Bruno Haible  <bruno@clisp.org>
37908
37909         * build-aux/link-warning.h: Add copyright notice.
37910         * modules/link-warning (Makefile.am): Generate link-warning.h from
37911         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37912         * NEWS: Mention change in link-warning module.
37913         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37914         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37915         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37916         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37917         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37918         * modules/math (Makefile.am): Add dependency to math.h.
37919         * modules/search (Makefile.am): Add dependency to search.h.
37920         * modules/signal (Makefile.am): Add dependency to signal.h.
37921         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37922         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37923         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37924         * modules/string (Makefile.am): Add dependency to string.h.
37925         * modules/strings (Makefile.am): Add dependency to strings.h.
37926         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37927         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37928         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37929         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37930         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37931         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37932         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37933         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37934         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37935
37936 2009-12-09  Bruno Haible  <bruno@clisp.org>
37937
37938         fchdir: Optimize away rpl_fstat when possible.
37939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37940         REPLACE_OPEN_DIRECTORY.
37941         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37942
37943 2009-12-09  Bruno Haible  <bruno@clisp.org>
37944
37945         * lib/fchdir.c: Update comment.
37946
37947 2009-12-09  Bruno Haible  <bruno@clisp.org>
37948
37949         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37950
37951 2009-12-08  Eric Blake  <ebb9@byu.net>
37952
37953         fchdir: avoid memory leak on re-registration.
37954         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37955
37956 2009-12-08  Jim Meyering  <meyering@redhat.com>
37957
37958         init.sh: avoid Solaris 10 /bin/sh portability problem
37959         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37960         sourced script:
37961           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37962           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37963           bar
37964         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37965         and two tests used that idiom.
37966         * tests/init.sh: Update suggested usage comments.
37967         (path_prepend_): New function, to be used in place
37968         of the --src-path=DIR option.
37969         (setup_): Move PATH-prepending code into path_prepend_.
37970         * tests/test-pread.sh: Adapt to new usage.
37971         * tests/test-xalloc-die.sh: Likewise.
37972
37973 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37974
37975         * doc/gnulib.texi (Glibc pty.h): Add.
37976         * doc/glibc-functions/forkpty.texi: Add.
37977         * doc/glibc-functions/openpty.texi: Add.
37978         Suggested by Bruno Haible.
37979
37980 2009-12-08  Eric Blake  <ebb9@byu.net>
37981
37982         fchdir: fix logic bugs
37983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37984         * tests/test-fchdir.c (main): Enhance test.
37985         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37986         is in use.
37987
37988         dup2: fix logic bugs
37989         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37990         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37991         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37992         exists.
37993         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37994
37995 2009-12-07  Eric Blake  <ebb9@byu.net>
37996
37997         unlink: fix m4 detection
37998         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37999
38000         unistd-safer: add unit test
38001         * modules/unistd-safer-tests: New file.
38002         * tests/test-dup-safer.c: Likewise.
38003         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38004         * tests/test-dup2.c (setmode): Likewise.
38005         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38006
38007         cloexec: preserve text vs. binary across dup_cloexec
38008         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38009         mode.
38010         * modules/dup2-tests (Depends-on): Add binary-io.
38011         * modules/cloexec-tests (Depends-on): Likewise.
38012         * tests/test-dup2.c (setmode, is_mode): New helpers.
38013         (main): Add tests that translation mode is preserved.
38014         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38015         Reported by Bruno Haible.
38016
38017         mgetgroups: reduce duplicate listings
38018         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38019         resulting array.
38020         * tests/test-chown.h (test_chown): Simplify client.
38021         * tests/test-lchown.h (test_lchown): Likewise.
38022
38023 2009-12-06  Bruno Haible  <bruno@clisp.org>
38024
38025         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38026         value.
38027
38028 2009-12-06  Bruno Haible  <bruno@clisp.org>
38029
38030         * lib/progname.c: Include stdio.h, stdlib.h.
38031         (set_program_name): Reject a NULL argument.
38032
38033 2009-12-05  Eric Blake  <ebb9@byu.net>
38034
38035         pipe2-safer: new module
38036         * modules/pipe2-safer: New file.
38037         * lib/unistd-safer.h (pipe2_safer): New prototype.
38038         * lib/unistd--.h (pipe2): New wrapper.
38039         * lib/pipe-safer.c (pipe2_safer): New function.
38040         * modules/pipe (Depends-on): Add pipe2-safer.
38041         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38042
38043         stdlib-safer: preserve cloexec flag for mkostemp[s]
38044         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38045         fd_safer_flag.
38046
38047         unistd-safer: allow preservation of cloexec status via flag
38048         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38049         prototypes.
38050         * lib/dup-safer.c (dup_safer_flag): New function.
38051         * lib/fd-safer.c (fd_safer_flag): Likewise.
38052         * modules/cloexec (configure.ac): Set witness.
38053
38054         test-dup2: enhance test
38055         * modules/dup2-tests (Depends-on): Add cloexec.
38056         * tests/test-dup2.c (main): Enhance test.
38057
38058         cloexec: add dup_cloexec
38059         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38060         header and comments.
38061         * lib/cloexec.c (set_cloexec_flag): Add comments.
38062         (dup_cloexec): New function, with mingw implementation borrowed
38063         from...
38064         * lib/w32spawn.h (dup_noinherit): ...here.
38065         * modules/execute (Depends-on): Add cloexec.
38066         * modules/pipe (Depends-on): Likewise.
38067         * modules/cloexec (Depends-on): Add dup2.
38068         * modules/cloexec-tests (Files): New file.
38069         * tests/test-cloexec.c: Likewise.
38070
38071         test-xalloc-die: fix test for mingw
38072         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38073         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38074         directory and .exe suffix off argv[0] output.
38075
38076         test-fseeko: fix test for mingw
38077         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38078         than undefining fseek, so test will pass on mingw.
38079
38080 2009-12-05  Bruno Haible  <bruno@clisp.org>
38081
38082         * lib/progname.h (set_program_name): Clarify specification.
38083         * lib/progname.c (set_program_name): Likewise.
38084         Reported by Jim Meyering.
38085
38086 2009-12-05  Jim Meyering  <meyering@redhat.com>
38087
38088         maint.mk: backslash-escape parens in default regexp
38089         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38090         backslash-escape the literal parentheses.
38091
38092         maint.mk: news-date-check: use grep -E
38093         * top/maint.mk (today): Define a Make variable, not a...
38094         (news-date-check): ...shell variable.
38095         (news-date-regexp): Use the Make variable.
38096         Use grep's -E option.  Change the failing diagnostic to mention
38097         the variable, $(news-date-regexp).
38098
38099 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38100
38101         maintainer-makefile: allow customization of NEWS entry format
38102         * top/maint.mk (news-date-regexp): New overridable variable.
38103         (news-date-check): Use it.
38104
38105 2009-12-04  Eric Blake  <ebb9@byu.net>
38106
38107         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38108         * lib/mgetgroups.h (xgetgroups): New prototype.
38109         * lib/mgetgroups.c (xgetgroups): New wrapper.
38110         (mgetgroups): Handle ENOSYS.
38111         * modules/mgetgroups (Depends-on): Add realloc.
38112         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38113
38114         mgetgroups: avoid argument promotion issues with -1
38115         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38116         for invalid gid_t.
38117         * tests/test-chown.h (getegid, test_chown): Likewise.
38118         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38119
38120 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38121
38122         exclude: Fix header file problems.
38123         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38124
38125 2009-12-01  Jim Meyering  <meyering@redhat.com>
38126
38127         fts: fts_open: do not let an empty string cause immediate failure
38128         This is required in support of GNU rm, for which the command
38129         "rm A '' B" must process and remove both A and B, in spite of
38130         the empty string argument.
38131         * lib/fts.c (fts_open): Do not let the presence of an empty string
38132         cause fts_open to fail immediately.  Most fts-using tools must be
38133         able to process all arguments, in order, and can be expected to
38134         diagnose such arguments themselves.
38135
38136 2009-11-30  Eric Blake  <ebb9@byu.net>
38137
38138         utimens: fix compilation error
38139         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38140         Declare variable at right scope.
38141
38142 2009-11-29  Jim Meyering  <meyering@redhat.com>
38143
38144         bootstrap: handle perl-5.11's changed --version output
38145         * build-aux/bootstrap (get_version): Handle perl separately,
38146         since perl-5.11's --version output is different.
38147
38148 2009-11-28  Jim Meyering  <meyering@redhat.com>
38149
38150         userspec: depend on the inttostr module, too
38151         * modules/userspec (Depends-on): Add inttostr.
38152
38153         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38154         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38155         number of MAXUID when it evaluates to (uid_t) -1.
38156         Likewise for group ID.  Reported by Matt McCutchen in
38157         <http://savannah.gnu.org/bugs/?28113>
38158
38159         userspec: reformat to use spaces, not TABs
38160         * lib/userspec.c: Expand TABs to spaces.
38161         Add Emacs' "indent-tabs-mode: nil" hint.
38162
38163 2009-11-27  Eric Blake  <ebb9@byu.net>
38164
38165         getopt-gnu: flush out another BSD bug
38166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38167         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38168         flush out BSD bug.
38169         * tests/test-getopt.h (test_getopt): End lists with NULL.
38170         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38171         (test_getopt_long_posix): Enhance test.
38172         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38173         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38174         getopt-gnu.
38175         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38176         Likewise.
38177
38178 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38179
38180         * modules/idpriv-droptemp-tests (Notice): Fix text.
38181
38182 2009-11-27  Jim Meyering  <meyering@redhat.com>
38183
38184         test-xalloc-die: avoid spurious failure due to libtool argv difference
38185         In a libtool-enabled project, this test would fail due to a difference
38186         in the emitted program name, e.g.,
38187         -test-xalloc-die: memory exhausted
38188         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38189         Use program to avoid that.
38190         * modules/xalloc-die-tests (Depends-on): Add progname.
38191         * tests/test-xalloc-die.c: Include progname.h".
38192         (program_name): Remove decl.
38193         (main): Call set_program_name.
38194         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38195
38196 2009-11-26  Richard Jones  <rjones@redhat.com>
38197
38198         w32sock: leave win32 error in place.
38199         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38200
38201 2009-11-26  Eric Blake  <ebb9@byu.net>
38202
38203         init.sh: suggest to use skip_ and fail_ functions in comments
38204         * tests/init.sh: Add a sentence.
38205
38206 2009-11-25  Bruno Haible  <bruno@clisp.org>
38207
38208         init.sh: add documentation in comments
38209         * tests/init.sh: Add some developer and user documentation.
38210
38211 2009-11-26  Jim Meyering  <meyering@redhat.com>
38212
38213         init.sh: accommodate even those who specify bogus srcdir manually
38214         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38215         configure-time tests to be sanitized, so that there is no need to
38216         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38217         (with no double quotes) suffices.  However, since tests may be
38218         invoked manually, and since you may explicitly set srcdir to the
38219         name of a directory containing spaces, do quote its uses here.
38220         * tests/test-pread.sh: Likewise.
38221         Suggested by Bruno Haible.
38222
38223         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38224         * tests/test-pread.sh: Write no data into the pipe, because
38225         test-pread actually reads none.  This avoids a diagnostic,
38226         "bash: echo: write error: Broken pipe", that arises in the unusual
38227         event something is ignoring SIGPIPE, and might be interpreted
38228         as some sort of failure.  Reported by Bruno Haible.
38229
38230 2009-11-25  Jim Meyering  <meyering@redhat.com>
38231
38232         test-pread: cover failure with ESPIPE and EINVAL
38233         * tests/test-pread.c (main): Test for failure, too.
38234         * tests/test-pread.sh: Invoke with stdin on a pipe.
38235         Suggested by Eric Blake.
38236
38237         pread: improvement and fix
38238         * modules/pread (Depends-on): Depend on lseek, for portability to
38239         e.g., mingw.  Suggested by Eric Blake.
38240         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38241
38242         unistd.in.h: correct declaration of pread
38243         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38244         Reported by Richard W.M. Jones.
38245
38246         test-pread.sh: distribute the test script
38247         * modules/pread-tests (Files): Include test-pread.sh.
38248
38249         test-pread.sh: clean up
38250         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38251         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38252         That is unnecessary, since it's always ".".
38253         Suggestion from Eric Blake.
38254
38255         test-pread.sh: make executable
38256         * tests/test-pread.sh: Set executable bit.
38257         Reported by Eric Blake.
38258
38259         correct typo in test-pread.sh
38260         * tests/test-pread.sh: Add #! line.
38261
38262         test pread
38263         * tests/test-pread.c: New file.
38264         * tests/test-pread.sh: Likewise.
38265         * modules/pread-tests: Likewise.
38266
38267         pread: new module
38268         * modules/pread: New file.
38269         * lib/unistd.in.h (pread): Define/declare.
38270         * lib/pread.c (pread): New file.
38271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38272         * modules/unistd (Makefile.am): Substitute witnesses.
38273         * doc/posix-functions/pread.texi (pread): Update.
38274         * MODULES.html.sh: Add pread.
38275
38276 2009-11-25  Jim Meyering  <meyering@redhat.com>
38277
38278         tests/init.sh: new file to be used via most *.sh tests
38279         * tests/init.sh: New file.
38280
38281 2009-11-25  Eric Blake  <ebb9@byu.net>
38282
38283         utimens: work around older Linux failure with symlinks
38284         * lib/utimens.c (lutimensat_works_really): New variable.
38285         (fdutimens, lutimens): Use it to manage kernels that support
38286         nanosecond times on files, but not on symlinks.
38287         Reported by OndÅ™ej Vašík.
38288
38289         utimes: fix configure grammar
38290         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38291
38292 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38293
38294         regex: Fix fastmap for multibyte character ranges.
38295         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38296         characters when a multibyte character range is included.
38297
38298 2009-11-22  Andy Wingo  <wingo@pobox.com>
38299
38300         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38301         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38302
38303 2009-11-24  Bruno Haible  <bruno@clisp.org>
38304
38305         doc: Most *_l functions exist in MacOS X 10.5.
38306         * doc/posix-functions/duplocale.texi: Update platforms list.
38307         * doc/posix-functions/freelocale.texi: Likewise.
38308         * doc/posix-functions/newlocale.texi: Likewise.
38309         * doc/posix-functions/uselocale.texi: Likewise.
38310         * doc/posix-functions/isalnum_l.texi: Likewise.
38311         * doc/posix-functions/isalpha_l.texi: Likewise.
38312         * doc/posix-functions/isblank_l.texi: Likewise.
38313         * doc/posix-functions/iscntrl_l.texi: Likewise.
38314         * doc/posix-functions/isdigit_l.texi: Likewise.
38315         * doc/posix-functions/isgraph_l.texi: Likewise.
38316         * doc/posix-functions/islower_l.texi: Likewise.
38317         * doc/posix-functions/isprint_l.texi: Likewise.
38318         * doc/posix-functions/ispunct_l.texi: Likewise.
38319         * doc/posix-functions/isspace_l.texi: Likewise.
38320         * doc/posix-functions/isupper_l.texi: Likewise.
38321         * doc/posix-functions/iswalnum_l.texi: Likewise.
38322         * doc/posix-functions/iswalpha_l.texi: Likewise.
38323         * doc/posix-functions/iswblank_l.texi: Likewise.
38324         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38325         * doc/posix-functions/iswctype_l.texi: Likewise.
38326         * doc/posix-functions/iswdigit_l.texi: Likewise.
38327         * doc/posix-functions/iswgraph_l.texi: Likewise.
38328         * doc/posix-functions/iswlower_l.texi: Likewise.
38329         * doc/posix-functions/iswprint_l.texi: Likewise.
38330         * doc/posix-functions/iswpunct_l.texi: Likewise.
38331         * doc/posix-functions/iswspace_l.texi: Likewise.
38332         * doc/posix-functions/iswupper_l.texi: Likewise.
38333         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38334         * doc/posix-functions/isxdigit_l.texi: Likewise.
38335         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38336         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38337         * doc/posix-functions/strcoll_l.texi: Likewise.
38338         * doc/posix-functions/strfmon_l.texi: Likewise.
38339         * doc/posix-functions/strftime_l.texi: Likewise.
38340         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38341         * doc/posix-functions/strxfrm_l.texi: Likewise.
38342         * doc/posix-functions/tolower_l.texi: Likewise.
38343         * doc/posix-functions/toupper_l.texi: Likewise.
38344         * doc/posix-functions/towctrans_l.texi: Likewise.
38345         * doc/posix-functions/towlower_l.texi: Likewise.
38346         * doc/posix-functions/towupper_l.texi: Likewise.
38347         * doc/posix-functions/wcscoll_l.texi: Likewise.
38348         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38349         * doc/posix-functions/wctrans_l.texi: Likewise.
38350         * doc/posix-functions/wctype_l.texi: Likewise.
38351         * doc/glibc-functions/strptime_l.texi: Likewise.
38352         * doc/glibc-functions/strtod_l.texi: Likewise.
38353         * doc/glibc-functions/strtof_l.texi: Likewise.
38354         * doc/glibc-functions/strtol_l.texi: Likewise.
38355         * doc/glibc-functions/strtold_l.texi: Likewise.
38356         * doc/glibc-functions/strtoll_l.texi: Likewise.
38357         * doc/glibc-functions/strtoul_l.texi: Likewise.
38358         * doc/glibc-functions/strtoull_l.texi: Likewise.
38359         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38360         * doc/glibc-functions/wcstod_l.texi: Likewise.
38361         * doc/glibc-functions/wcstof_l.texi: Likewise.
38362         * doc/glibc-functions/wcstol_l.texi: Likewise.
38363         * doc/glibc-functions/wcstold_l.texi: Likewise.
38364         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38365         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38366         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38367
38368 2009-11-24  Bruno Haible  <bruno@clisp.org>
38369
38370         duplocale: Fix logic bug.
38371         * lib/duplocale.c: Don't include <langinfo.h>.
38372         (_NL_LOCALE_NAME): Remove macro.
38373         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38374         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38375
38376 2009-11-23  Jim Meyering  <meyering@redhat.com>
38377
38378         test-update-copyright: don't hard-code /usr/bin/perl
38379         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38380         perl to print the current year.  Gilles Espinasse reported that
38381         the replaced use of perl was hard-coded as /usr/bin/perl.
38382
38383 2009-11-23  Bruno Haible  <bruno@clisp.org>
38384
38385         duplocale: Add support for glibc 2.3.x.
38386         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38387
38388 2009-11-22  Bruno Haible  <bruno@clisp.org>
38389
38390         vasnprintf: Tiny optimization.
38391         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38392         MacOS X.
38393
38394 2009-11-22  Bruno Haible  <bruno@clisp.org>
38395
38396         Tests for module 'duplocale'.
38397         * modules/duplocale-tests: New file.
38398         * tests/test-duplocale.c: New file.
38399
38400         New module 'duplocale'.
38401         * m4/duplocale.m4: New file.
38402         * lib/locale.in.h (duplocale): New declaration.
38403         * lib/duplocale.c: New file.
38404         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38405         gl_LOCALE_H_DEFAULTS): New macros.
38406         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38407         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38408         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38409         REPLACE_DUPLOCALE.
38410         * modules/duplocale: New file.
38411         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38412
38413 2009-11-22  Bruno Haible  <bruno@clisp.org>
38414
38415         * modules/locale-tests (configure.ac): Test for newlocale function.
38416         * tests/test-locale.c: When the system has extended locale functions,
38417         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38418
38419         locale: Make locale_t available when possible.
38420         * lib/locale.in.h: Include <xlocale.h> when it exists.
38421         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38422         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38423         * modules/locale (Depends-on): Add extensions.
38424         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38425         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38426
38427 2009-11-22  Bruno Haible  <bruno@clisp.org>
38428
38429         Add comments.
38430         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38431         invocation.
38432         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38433         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38434         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38435
38436 2009-11-22  Bruno Haible  <bruno@clisp.org>
38437
38438         error: account for the possibility of freopen (stdout).
38439         * lib/error.c: Include <unistd.h>.
38440         (flush_stdout): New function, extracted from error and error_at_line.
38441         Determine stdout's fd dynamically.
38442         (error, error_at_line): Invoke flush_stdout.
38443         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38444         * modules/error (Depends-on): Add unistd.
38445
38446 2009-11-22  Bruno Haible  <bruno@clisp.org>
38447
38448         diffseq: Add comment.
38449         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38450
38451 2009-11-22  Jim Meyering  <meyering@redhat.com>
38452
38453         c-stack: avoid defining an unused static function
38454         * lib/c-stack.c (find_stack_direction): Do not define this function
38455         when it will not be used.
38456
38457         diffseq: avoid spurious gcc warnings
38458         * lib/diffseq.h (IF_LINT2): Define.
38459         (compareseq): Use it to initialize two members of "part".
38460         This avoids two used-uninitialized warnings.
38461
38462 2009-11-21  Jim Meyering  <meyering@redhat.com>
38463
38464         c-stack: avoid "ignoring return value of `write'" warning
38465         * lib/c-stack.c: Include "ignore-value.h".
38466         (die): Explicitly ignore each write return value.
38467         * modules/c-stack (Depends-on): Add ignore-value.
38468
38469 2009-11-21  Bruno Haible  <bruno@clisp.org>
38470
38471         diffseq: reduce scope of variable 'best'.
38472         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38473         variable, earlier used for two different purposes.
38474
38475 2009-11-21  Jim Meyering  <meyering@redhat.com>
38476
38477         diffseq: remove useless assignment to "best"
38478         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38479         assignment.  At that point "best" is already guaranteed to be zero.
38480
38481 2009-11-20  Eric Blake  <ebb9@byu.net>
38482
38483         build: mention ftp redirector in release announcements
38484         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38485         values that used to come from cfg.mk; mention FTP redirect URL.
38486         * build-aux/announce-gen: Mention the mirror list.
38487         Suggested by Karl Berry.
38488
38489         nanosleep: improve port to mingw
38490         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38492         LIB_NANOSLEEP, but only when needed.
38493         * modules/select (Link): Document LIBSOCKET.
38494         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38495         enough.
38496
38497         nanosleep: work around cygwin bug
38498         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38499         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38500         bug.
38501         (getnow): Delete, not needed.
38502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38503         LIB_CLOCK_GETTIME.
38504         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38505         clock-time, gettime.
38506         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38507         bug.
38508         * modules/nanosleep-tests: New test.
38509         * tests/test-nanosleep.c: New file.
38510
38511         sleep: work around cygwin bug
38512         * lib/sleep.c (rpl_sleep): Work around the bug.
38513         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38514         (gl_PREREQ_SLEEP): Delete unused macro.
38515         * modules/sleep (Depends-on): Add verify.
38516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38517         * modules/unistd (Makefile.am): Substitute witness.
38518         * lib/unistd.in.h (sleep): Update prototype.
38519         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38520         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38521         * modules/sleep-tests (Depends-on): Check for alarm.
38522
38523 2009-11-20  Jim Meyering  <meyering@redhat.com>
38524
38525         maint.mk: improve sc_prohibit_magic_number_exit
38526         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38527         so it does not match uses like System.exit(1).
38528         Add comments showing how to correct all offenders.
38529
38530 2009-11-19  Eric Blake  <ebb9@byu.net>
38531
38532         xalloc-die-tests: add missing library
38533         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38534
38535         test-xvasprintf: silence compiler warnings
38536         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38537         empty string from gcc.
38538
38539 2009-11-19  Jim Meyering  <meyering@redhat.com>
38540
38541         xfreopen: new module, from coreutils
38542         * modules/xfreopen: New module.
38543         * lib/xfreopen.c: New file.
38544         * lib/xfreopen.h: New file.
38545         * MODULES.html.sh (File stream based Input/Output"): Add it.
38546
38547 2009-11-19  Eric Blake  <ebb9@byu.net>
38548
38549         manywarnings: depend on warnings
38550         * modules/manywarnings (Depends-on): Add warnings.
38551
38552         build: avoid compiler warnings
38553         * lib/select.c (rpl_select): Delete unused variable.
38554         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38555
38556 2009-11-18  Eric Blake  <ebb9@byu.net>
38557
38558         tests: avoid false negative with --with-packager
38559         * tests/test-version-etc.sh: Discard packager information.
38560         * tests/test-argp-version-etc-1.sh: Likewise.
38561         Reported by Mike Frysinger.
38562
38563         utimens: fix regression on Solaris
38564         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38565         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38566         can only change fd timestamps via futimesat.  Instead, use an
38567         additional witness macro to avoid BSD bug.
38568         Reported by Jim Meyering.
38569
38570 2009-11-17  Eric Blake  <ebb9@byu.net>
38571
38572         usleep: use it to simplify tests
38573         * modules/stat-time-tests (Depends-on): Add usleep.
38574         (configure.ac): Drop usleep check.
38575         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38576         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38577         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38578         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38579         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38580         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38581         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38582         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38583         Likewise.
38584         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38585         * tests/test-lchown.h (nap): Likewise.
38586         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38587         * tests/test-stat-time.c (nap): Likewise.
38588         * tests/test-utimens-common.h (nap): Update comments.
38589
38590         usleep: new module
38591         * modules/usleep: New file.
38592         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38593         * lib/usleep.c (usleep): Likewise.
38594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38595         * modules/unistd (Makefile.am): Substitute witnesses.
38596         * lib/unistd.in.h (usleep): Add declaration.
38597         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38598         * MODULES.html.sh (Date and time): Likewise.
38599         * modules/usleep-tests (Depends-on): New test.
38600         * tests/test-usleep.c: New file.
38601
38602         chown: work around OpenBSD bug
38603         * lib/chown.c (rpl_chown): Work around the bug.
38604         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38605         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38606         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38607         * modules/chown (Depends-on): Add stdbool.
38608         * modules/lchown (Depends-on): Likewise.
38609         * doc/posix-functions/chown.texi (chown): Document the bug.
38610         * doc/posix-functions/lchown.texi (lchown): Likewise.
38611         * tests/test-lchown.h (test_chown): Relax test.
38612
38613         mkstemp: avoid conflict with C++ keyword template
38614         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38615         * lib/mkostemp.c (mkostemp): Likewise.
38616         * lib/mkostemps.c (mkostemps): Likewise.
38617         * lib/mkstemp.c (mkstemp): Likewise.
38618         * lib/mkstemps.c (mkstemps): Likewise.
38619
38620         xalloc-die-tests: optimize
38621         * tests/test-xalloc-die.sh: Reduce number of processes.
38622
38623 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38624
38625         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38626         patch from ludo@gnu.org (Ludovic Courtès).
38627
38628 2009-11-17  Jim Meyering  <meyering@redhat.com>
38629
38630         version-etc: use proper license string
38631         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38632         * modules/version-etc-fsf: Likewise.
38633
38634 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38635
38636         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38637         printed to stdout.  Deal with EOL differences.
38638
38639 2009-11-17  Eric Blake  <ebb9@byu.net>
38640
38641         unsetenv: work around Solaris bug
38642         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38643         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38644         Reported by Jim Meyering.
38645
38646         vasnprintf: avoid compiler warnings
38647         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38648         variables.
38649         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38650
38651 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38652
38653         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38654         settings since xalloc-die is no longer the self test,
38655         xalloc-die.sh is.
38656
38657 2009-11-17  Jim Meyering  <meyering@redhat.com>
38658
38659         test-xalloc-die.sh: make the code agree with the commit log
38660         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38661         at the end, just in case you happen to have a test-xalloc-die
38662         program in some other PATH directory.
38663
38664         test-xalloc-die.sh: fix a portability bug
38665         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38666         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38667         Otherwise, argv[0] (as often seen in diagnostics) would be too
38668         system-dependent, sometimes with, and sometimes without the leading "./".
38669
38670         version-etc-fsf: relax license to LGPLv3+
38671         * modules/version-etc-fsf (License): Relax license.
38672
38673 2009-11-16  Eric Blake  <ebb9@byu.net>
38674
38675         xalloc-die-tests: avoid printing null pointer
38676         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38677         shell script.
38678         * tests/test-xalloc-die.c (program_name): Declare.
38679         * tests/test-xalloc-die.sh (tmpfiles): New file.
38680
38681         setenv, unsetenv: work around various bugs
38682         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38683         (setenv) [HAVE_SETENV]: Work around bugs.
38684         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38685         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38686         for bugs.
38687         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38688         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38690         * modules/stdlib (Makefile.am): Update substitutions.
38691         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38692         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38693         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38694         * modules/setenv-tests: New test.
38695         * modules/unsetenv-tests: Likewise.
38696         * tests/test-setenv.c: New file.
38697         * tests/test-unsetenv.c: Likewise.
38698
38699 2009-11-16  Jim Meyering  <meyering@redhat.com>
38700
38701         version-etc: relax license to LGPLv3+
38702         * modules/version-etc (License): Relax license.
38703
38704         better AC_REQUIRE expanded-before-required-warning avoidance
38705         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38706         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38707         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38708         which is no longer needed.
38709
38710 2009-11-16  Eric Blake  <ebb9@byu.net>
38711
38712         test-freading: clean up temporary file
38713         * tests/test-freading.c (main): Remove file on success, and use
38714         ASSERT more liberally.
38715         Reported by Jim Meyering.
38716
38717 2009-11-16  Jim Meyering  <meyering@redhat.com>
38718
38719         avoid new AC_REQUIRE expanded-before-required warnings
38720         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38721         merely using it.
38722         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38723         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38724
38725 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38726
38727         * tests/test-xalloc-die.c: New file.
38728         * modules/xalloc-die-tests: New file.
38729         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38730         XFAIL_TESTS so it can be appended by modules.
38731
38732 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38733
38734         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38735         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38736
38737 2009-11-14  Eric Blake  <ebb9@byu.net>
38738
38739         fnmatch: avoid compiler warning
38740         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38741         to silence compiler warning about mismatch signedness in ?:.
38742         Reported by Robert Millan.
38743
38744         intprops: add double-inclusion guard
38745         * lib/intprops.h: Allow idempotent includes.
38746         Suggested by Bruce Korb.
38747
38748         openat: detect Solaris fchownat bug
38749         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38750         penalizing glibc chownat when only lchownat is broken.
38751         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38752         trailing slash bugs.
38753         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38754         * modules/openat-tests (Files): Include more files.
38755         (Depends-on): Add mgetgroups, sleep, stat-time.
38756         (configure.ac): Add additional checks.
38757         (Makefile.am): Build new test.
38758         * tests/test-fchownat.c: New file.
38759
38760         lchown: detect Solaris and FreeBSD bug
38761         * lib/lchown.c (rpl_lchown): Work around bug.
38762         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38764         * modules/unistd (Makefile.am): Populate it.
38765         * lib/unistd.in.h (lchown): Update declaration.
38766         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38767         * modules/lchown-tests: New file.
38768         * tests/test-lchown.h (test_lchown): Likewise.
38769         * tests/test-lchown.c (main): Likewise.
38770
38771         chown: detect Solaris and FreeBSD bug
38772         * lib/chown.c (rpl_chown): Work around bug.
38773         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38774         (gl_PREREQ_CHOWN): Delete.
38775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38776         * modules/unistd (Makefile.am): Populate it.
38777         * lib/unistd.in.h (chown): Update declaration.
38778         * lib/lchown.c (chown): Update client.
38779         * modules/lchown (Depends-on): Add lstat.
38780         * doc/posix-functions/chown.texi (chown): Document the bug.
38781         * doc/posix-functions/getgroups.texi (getgroups): Document
38782         getgroups pitfall.
38783         * modules/chown-tests: New file.
38784         * tests/test-chown.h (test_chown): Likewise.
38785         * tests/test-chown.c (main): Likewise.
38786
38787 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38788
38789         gnulib-tool: correctly detect absence of m4 directories
38790         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38791
38792 2009-11-14  Jim Meyering  <meyering@redhat.com>
38793
38794         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38795         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38796
38797 2009-11-14  John W. Eaton  <jwe@gnu.org>
38798
38799         strftime.h: wrap funtion declaration in extern "C" block
38800         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38801
38802 2009-11-13  Eric Blake  <ebb9@byu.net>
38803
38804         getgroups: avoid compiler warning
38805         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38806
38807         getgroups: work around FreeBSD bug
38808         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38809         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38810         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38811         * tests/test-getgroups.c (main): Fix buffer overrun.
38812
38813         getgroups: avoid compilation failure
38814         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38815         * modules/getgroups (Depends-on): Add stdint.
38816
38817 2009-11-13  Jim Meyering  <meyering@redhat.com>
38818
38819         test-getgroups: avoid compilation failure
38820         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38821
38822 2009-11-13  Eric Blake  <ebb9@byu.net>
38823
38824         mgetgroups: new module, taken from coreutils
38825         * modules/mgetgroups: New file.
38826         * lib/mgetgroups.h: Likewise.
38827         * lib/mgetgroups.c (mgetgroups): Likewise.
38828         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38829         * MODULES.html.sh (Users and groups): Mention it.
38830
38831         getgroups: don't expose GETGROUPS_T to user
38832         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38833         an element at a time if GETGROUPS_T is wrong size.
38834         * lib/getugroups.h (getugroups): Change signature.
38835         * lib/unistd.in.h (getgroups): Likewise.
38836         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38837         signature needs fixing.
38838         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38839         AC_TYPE_GETGROUPS.
38840         * modules/group-member (Depends-on): Add getgroups.
38841         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38842         (group_member): Rely on getgroups replacement.
38843         * lib/getugroups.c (getugroups): Use gid_t.
38844         * tests/test-getgroups.c (main): Likewise.
38845         * NEWS: Mention the signature change.
38846         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38847         problem with signature.
38848         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38849         GETGROUPS_T is still useful for setgroups.
38850
38851         getgroups, getugroups: provide stubs for mingw
38852         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38853         * lib/getugroups.c (getugroups): Likewise.
38854         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38855         function.  Modernize replacement scheme.
38856         (gl_PREREQ_GETGROUPS): Delete.
38857         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38858         * modules/getgroups (configure.ac): Declare witness.
38859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38860         * modules/unistd (Depends-on): Substitute witness.
38861         * lib/unistd.in.h (getgroups): Declare replacement.
38862
38863         getgroups: avoid calling exit
38864         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38865         drop xalloc.
38866         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38867         dependencies.
38868         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38869         exiting, in the rare case of malloc failure.
38870
38871         getgroups: fix logic error
38872         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38873         has more than 20 groups.
38874         * modules/getgroups-tests: New test.
38875         * tests/test-getgroups.c: New file.
38876
38877 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38878
38879         * tests/test-base64.c: Improve.
38880
38881 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38882
38883         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38884         Blake <ebb9@byu.net>.
38885
38886 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38887
38888         * tests/test-xvasprintf.c: Add %s%s related checks.
38889
38890 2009-11-12  Eric Blake  <ebb9@byu.net>
38891
38892         version-etc: match standards.texi style
38893         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38894         and use <> only for URLs.
38895
38896 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38897
38898         fts: do not fail on a submount during traversal
38899         * lib/fts.c (fts_build): Read the stat info again after opening
38900         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38901         Original report at http://bugzilla.redhat.com/501848.
38902
38903 2009-11-12  Jim Meyering  <meyering@redhat.com>
38904
38905         bootstrap: sync from coreutils
38906         * build-aux/bootstrap (bootstrap_epilogue): New function.
38907         Use git_modules_config in one more place.  This make bootstrap's
38908         --gnulib-srcdir option more useful for testing.
38909
38910         bootstrap: generalize autoheader check
38911         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38912         AC_CONFIG_HEADERS.
38913
38914 2009-11-11  Eric Blake  <ebb9@byu.net>
38915
38916         mkfifoat: use new modules for Solaris and BSD bugs
38917         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38918         * lib/mkfifoat.c (mknodat): Split...
38919         * lib/mknodat.c (mknodat): ...into new file.
38920         * modules/mkfifoat (Files): Ship new file.
38921         (Depends-on): Add mkfifo, mknod.
38922         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38923         (Depends-on): Add symlink.
38924         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38925         redundant with test_mkfifo.h.
38926         (do_mkfifoat, do_mknodat): New helpers.
38927
38928         mknod: new module
38929         * modules/mknod: New file.
38930         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38931         * lib/mknod.c (mknod): Likewise.
38932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38933         defaults.
38934         * modules/sys_stat (Makefile.am): Substitute them.
38935         * lib/sys_stat.in.h (mknod): Declare replacement.
38936         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38937         Document it.
38938         * doc/posix-functions/mknod.texi (mknod): Likewise.
38939         * modules/mknod-tests: New test.
38940         * tests/test-mknod.c: Likewise.
38941
38942         mkfifo: new module
38943         * modules/mkfifo: New file.
38944         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38945         * lib/mkfifo.c (mkfifo): Likewise.
38946         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38947         defaults.
38948         * modules/sys_stat (Makefile.am): Substitute them.
38949         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38950         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38951         Document it.
38952         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38953         * modules/mkfifo-tests: New test.
38954         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38955         from test-mkfifoat.c.
38956         * tests/test-mkfifo.c: New file.
38957
38958         readlink: detect FreeBSD bug
38959         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38960         slash on symlink.
38961         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38962         * tests/test-readlink.h (test_readlink): Enhance test.
38963
38964         symlink: detect FreeBSD bug
38965         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38966         slash on symlink.
38967         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38968         * tests/test-symlink.h (test_symlink): Enhance test.
38969
38970 2009-11-10  Eric Blake  <ebb9@byu.net>
38971
38972         link: detect FreeBSD bug
38973         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38974         symlink.
38975         * doc/posix-functions/link.texi (link): Document the bug.
38976         * tests/test-link.h (test_link): Enhance test.
38977         * tests/test-linkat.c (main): Update caller.
38978
38979         unlink, remove: detect FreeBSD bug
38980         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38981         slash on symlink.
38982         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38983         * doc/posix-functions/remove.texi (remove): Likewise.
38984         * tests/test-unlink.h (test_unlink): Enhance test.
38985         * tests/test-remove.c (main): Likewise.
38986
38987 2009-11-09  Eric Blake  <ebb9@byu.net>
38988
38989         rename: detect FreeBSD bug
38990         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38991         slash on symlink.
38992         * modules/renameat-tests (Depends-on): Add filenamecat.
38993         * tests/test-rename.h (test_rename): Allow one more errno.
38994         * tests/test-renameat.c (main): Likewise.
38995         * doc/posix-functions/rename.texi (rename): Document the bug.
38996
38997         open: detect FreeBSD bug
38998         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38999         symlink.
39000         * doc/posix-functions/open.texi (open): Document the bug.
39001         * doc/posix-functions/utimes.texi (utimes): Likewise.
39002         * tests/test-open.h (test_open): Add parameters, and test symlink
39003         handling.
39004         * tests/test-open.c (main): Adjust caller.
39005         * tests/test-fcntl-safer.c (main): Likewise.
39006         * modules/open-tests (Depends-on): Add stdbool, symlink.
39007         * modules/fcntl-safer-tests (Depends-on): Likewise.
39008         * tests/test-openat.c (main): Add test-open tests.
39009
39010         stat: detect FreeBSD bug
39011         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39012         symlink.
39013         * doc/posix-functions/stat.texi (stat): Document the bug.
39014         * tests/test-stat.h (test_stat_func): Add argument.
39015         * tests/test-stat.c (main): Adjust caller.
39016         * tests/test-fstatat.c (main): Likewise.
39017         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39018         Reported by Jim Meyering.
39019
39020 2009-11-09  James Youngman  <jay@gnu.org>
39021
39022         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39023         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39024
39025 2009-11-08  Jim Meyering  <meyering@redhat.com>
39026
39027         utimens: remove invalid futimesat call
39028         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39029         It used the file descriptor of the target file as the DIR_FD
39030         parameter and NULL as the file name.  That caused failure with
39031         errno == EFAULT on FreeBSD-8.0-rc2
39032
39033 2009-11-07  Eric Blake  <ebb9@byu.net>
39034
39035         fflush, freadseek: use fseeko, not fseek
39036         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39037         (clear_ungetc_buffer): Avoid potential problems on large files.
39038         * lib/freadseek.c (freadseek): Likewise.
39039         * modules/freadseek (Depends-on): Add fseeko.
39040         * modules/fseek (configure.ac): Set a witness.
39041         * tests/test-fflush.c (main): Use fseeko.
39042         * tests/test-fpurge.c (fseek): Disable link warning.
39043         * tests/test-freadable.c (fseek): Likewise.
39044         * tests/test-freading.c (fseek): Likewise.
39045         * tests/test-fseeko.c (fseek): Likewise.
39046         * tests/test-ftell.c (fseek): Likewise.
39047         * tests/test-ftello.c (fseek): Likewise.
39048         * tests/test-fwritable.c (fseek): Likewise.
39049         * tests/test-fwriting.c (fseek): Likewise.
39050
39051 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39052
39053         * modules/memchr (Depends-on): Drop getpagesize dependency.
39054
39055 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39056
39057         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39058         Reported by Ludovic Courtès.
39059         * build-aux/pmccabe2html: Improve example usage.
39060         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39061
39062 2009-11-06  Jim Meyering  <meyering@redhat.com>
39063
39064         do-release-commit-and-tag: New module.
39065         Automate the release-commit and tag process.
39066         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39067         * modules/do-release-commit-and-tag: New file.
39068         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39069
39070 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39071
39072         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39073         because test-select.c uses inet_pton.
39074
39075 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39076
39077         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39078         GETADDRINFO_LIB.  Bump serial number.
39079         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39080         Suggested by Eric Blake <ebb9@byu.net>.
39081
39082 2009-11-05  Eric Blake  <ebb9@byu.net>
39083
39084         strtod: detect darwin bug
39085         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39086         Reported by Leo Davis.
39087
39088         freopen-safer: new module
39089         * modules/freopen-safer: New module.
39090         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39091         * lib/freopen-safer.c (freopen_safer): New file.
39092         * lib/stdio-safer.h (freopen_safer): New declaration.
39093         * lib/stdio--.h (freopen): New override.
39094         * MODULES.html.sh (File stream based Input/Output): Mention it.
39095         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39096         freopen-safer module.
39097         * doc/posix-functions/stderr.texi (stderr): Likewise.
39098         * doc/posix-functions/stdin.texi (stdin): Likewise.
39099         * doc/posix-functions/stdout.texi (stdout): Likewise.
39100         * modules/freopen-safer-tests: New test.
39101         * tests/test-reopen-safer.c: New file.
39102
39103 2009-11-05  Jim Meyering  <meyering@redhat.com>
39104
39105         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39106         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39107
39108 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39109
39110         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39111
39112 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39113
39114         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39115
39116 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39117
39118         Fix link error.
39119         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39120         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39121
39122 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39123
39124         * tests/test-func.c: Also test value of __func__.
39125
39126 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39127
39128         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39129         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39130
39131 2009-11-05  Bruno Haible  <bruno@clisp.org>
39132
39133         Fix link error.
39134         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39135         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39136         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39137
39138 2009-11-05  Bruno Haible  <bruno@clisp.org>
39139
39140         Tests for module 'inet_pton'.
39141         * modules/inet_pton-tests: New file.
39142         * tests/test-inet_pton.c: New file.
39143
39144 2009-11-05  Bruno Haible  <bruno@clisp.org>
39145
39146         Tests for module 'inet_ntop'.
39147         * modules/inet_ntop-tests: New file.
39148         * tests/test-inet_ntop.c: New file.
39149
39150 2009-11-04  Eric Blake  <ebb9@byu.net>
39151
39152         stdlib-safer: wrap all mkstemp variants
39153         * modules/mkostemp (configure.ac): Set witness.
39154         * modules/mkostemps (configure.ac): Likewise.
39155         * modules/mkstemps (configure.ac): Likewise.
39156         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39157         (mkstemps_safer): Wrap more functions.
39158         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39159         wrapping.
39160         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39161         (mkstemps_safer): Implement the wrappers.
39162
39163         mkstemps, mkostemps: new modules
39164         * modules/mkostemps: New module.
39165         * modules/mkstemps: Likewise.
39166         * lib/mkostemps.c (mkostemps): New file.
39167         * lib/mkstemps.c (mkstemps): Likewise.
39168         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39169         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39171         * modules/stdlib (Makefile.am): Substitute them.
39172         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39173         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39174         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39175         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39176         * MODULES.html.sh (File system functions): Mention them.
39177
39178         tempname: resync from glibc
39179         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39180         same values for __GT_FILE as glibc.  Abort even when assertions
39181         are disabled.
39182         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39183         match its value otherwise.  Allow idempotent inclusion.
39184         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39185         * lib/mkostemp.c (mkostemp): Likewise.
39186         * lib/mkstemp.c (mkstemp): Likewise.
39187         * lib/tmpfile.c (tmpfile): Likewise.
39188         * NEWS: Document this.
39189
39190         utimens: fix use of futimens on older Linux
39191         * lib/utimens.c (fdutimens): Use updated, rather than original,
39192         timespec to avoid bug in older Linux kernel.
39193         Reported by Simon Josefsson.
39194
39195 2009-11-04  Bruno Haible  <bruno@clisp.org>
39196
39197         Make num_processors more flexible and consistent.
39198         * lib/nproc.h (enum nproc_query): New type.
39199         (num_processors): Add a 'query' argument.
39200         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39201         (num_processors): Add a 'query' argument. Test the value of the
39202         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39203         mingw, count the number of CPUs available for the current process.
39204         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39205         Check for sched_getaffinity and sched_getaffinity_np.
39206         * modules/nproc (Depends-on): Add c-ctype, extensions.
39207         * NEWS: Mention the change.
39208
39209 2009-11-03  Bruno Haible  <bruno@clisp.org>
39210
39211         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39212
39213 2009-11-03  Jim Meyering  <meyering@redhat.com>
39214
39215         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39216         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39217         if it is defined.
39218
39219 2009-11-02  Eric Blake  <ebb9@byu.net>
39220
39221         mktime, timegm: share common declaration
39222         * lib/mktime-internal.h: New file.
39223         * lib/mktime.c: Use it rather than open-coding a declaration.
39224         * lib/timegm.c: Likewise.
39225         * modules/mktime (Files): Ship it.
39226         * modules/timegm (Files): Likewise.
39227         Suggested by Bruno Haible.
39228
39229         test-update-copyright: update test to match script changes
39230         * tests/test-update-copyright.sh: Avoid hard-coding perl
39231         location.  Don't update *.bak created by earlier runs.
39232
39233 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39234             Simon Josefsson  <simon@josefsson.org>
39235             Bruno Haible  <bruno@clisp.org>
39236
39237         Fix link error on Solaris 8.
39238         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39239         also in libnsl. Define also INET_PTON_LIB.
39240         * modules/inet_pton (Link): New section.
39241
39242 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39243             Bruno Haible  <bruno@clisp.org>
39244
39245         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39246         * modules/inet_ntop (Link): New section.
39247         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39248
39249 2009-11-02  Eric Blake  <ebb9@byu.net>
39250
39251         maint: avoid compiler warnings in m4 macros
39252         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39253         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39254
39255 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39256
39257         * m4/pmccabe2html.m4: Remove file.
39258         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39259         function.  Change maintainer.
39260         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39261         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39262         Courtès).
39263
39264 2009-10-31  Eric Blake  <ebb9@byu.net>
39265
39266         fseeko: fix m4 regression
39267         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39268         regression from 2009-10-27.
39269         Reported by Ralf Wildenhues.
39270
39271 2009-10-31  Jim Meyering  <meyering@redhat.com>
39272
39273         inttostr: aesthetics and improved (compile-time) safety
39274         Define inttype_is_signed rather than inttype_is_unsigned,
39275         since the sole use is via "#if inttype_is_signed".
39276         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39277         inttype_is_unsigned.
39278         * lib/offtostr.c (inttype_is_signed): Likewise.
39279         * lib/uinttostr.c (inttype_is_signed): Likewise.
39280         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39281         * lib/inttostr.c (inttostr): Use verify to cross-check the
39282         inttype_is_signed value and the signedness of the actual type.
39283         * modules/inttostr (Depends-on): Add verify.
39284
39285 2009-10-30  Eric Blake  <ebb9@byu.net>
39286
39287         build: avoid compiler warnings
39288         * lib/fchmodat.c (lchmod): Mark unused variables.
39289         * lib/getopt.c (_getopt_initialize): Likewise.
39290         * lib/mktime.c (__mktime_internal): Provide prototype.
39291         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39292         older gcc that do not understand #pragma GCC diagnostic.
39293         * lib/uinttostr.c (inttype_is_unsigned): Define.
39294         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39295
39296 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39297
39298         stat: fix compilation on AIX
39299         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39300         only see struct stat64.
39301
39302 2009-10-30  Eric Blake  <ebb9@byu.net>
39303
39304         exclude: make more robust
39305         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39306         rather than masking a coding bug.
39307         Suggested by Bruno Haible.
39308
39309 2009-10-30  Jim Meyering  <meyering@redhat.com>
39310
39311         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39312         Rather than putting #!/usr/bin/perl on the first line,
39313         start with a variant of what's recommended by "man perlrun" that
39314         invokes the first "perl" program from your shell's search path.
39315         * build-aux/gitlog-to-changelog: Replace #!... as above.
39316         Add a "Local Variables" perl mode setting.
39317         Prompted by a patch from Ludovic Courtès.
39318         Improved by Eric Blake.
39319         * build-aux/useless-if-before-free: Likewise.
39320         * build-aux/announce-gen: Likewise.
39321         * build-aux/update-copyright: Likewise.
39322
39323 2009-10-29  Eric Blake  <ebb9@byu.net>
39324
39325         filenamecat-lgpl: adjust clients
39326         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39327         filenamecat.
39328         * modules/renameat (Depends-on): Likewise.
39329
39330         filenamecat: split into filenamecat-lgpl
39331         * modules/filenamecat-lgpl: New module.
39332         * modules/filenamecat (Files): Move library-safe files into
39333         filenamecat-lgpl.
39334         (Depends-on): Add filenamecat-lgpl.
39335         (configure.ac): Declare witness.
39336         * lib/filenamecat.h (file_name_concat): Only declare when using
39337         GPL module.
39338         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39339         Move...
39340         * lib/filenamecat-lgpl.c: ...into new file.
39341         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39342         (gl_FILE_NAME_CONCAT): Use it.
39343         * MODULES.html.sh (File system functions): Mention new module.
39344
39345         argp: avoid memory leak
39346         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39347         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39348         base_name, since the latter malloc()s and can call exit().
39349         Leak introduced 2006-07-03.
39350
39351         dirname-lgpl: adjust clients that don't need full dirname
39352         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39353         * modules/filenamecat (Depends-on): Likewise.
39354         * modules/linkat (Depends-on): Likewise.
39355         * modules/mkancesdirs (Depends-on): Likewise.
39356         * modules/mkdir (Depends-on): Likewise.
39357         * modules/openat (Depends-on): Likewise.
39358         * modules/savewd (Depends-on): Likewise.
39359         * modules/rename (Depends-on): Likewise.
39360         (License): Relax license.
39361         * modules/mkdir-tests (Depends-on): Drop progname.
39362         (Makefile.am): Delete unneeded LDADD.
39363         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39364
39365         dirname: split into dirname-lgpl
39366         * modules/dirname-lgpl: New module.
39367         * modules/dirname (Files): Move library-safe files into
39368         dirname-lgpl.
39369         (Depends-on): Add dirname-lgpl.
39370         (configure.ac): Declare witness.
39371         * modules/double-slash-root (License): Relax license.
39372         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39373         module.
39374         * lib/dirname.c (dir_len, mdir_name): Move...
39375         * lib/dirname-lgpl.c: ...into new file.
39376         * lib/basename.c (last_component, base_len): Move...
39377         * lib/basename-lgpl.c: ...into new file.
39378         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39379         (gl_DIRNAME): Use it.
39380         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39381         Mention new module.
39382         * modules/dirname-tests (Depends-on): Add progname.
39383         * tests/test-dirname.c (program_name): Delete.
39384
39385         mkdir: make safe for libraries
39386         * modules/mkdir (Depends-on): Drop xalloc.
39387         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39388         exit.
39389
39390         tests: avoid some compiler warnings
39391         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39392         literals.
39393         * tests/test-memchr.c (main): Avoid type mismatch.
39394         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39395         * tests/test-base64.c (main): Likewise.
39396         * tests/test-getdelim.c (main): Likewise.
39397         * tests/test-gethostname.c (main): Likewise.
39398         * tests/test-getline.c (main): Likewise.
39399         * tests/test-netinet_in.c (main): Likewise.
39400         * tests/test-select.c (open_server_socket, main): Likewise.
39401         * tests/test-select-stdin.c (main): Likewise.
39402         * tests/test-sockets.c (main): Likewise.
39403         * tests/test-strsignal.c (main): Likewise.
39404         * tests/test-sys_select.c (main): Likewise.
39405         * tests/test-sys_socket.c (main): Likewise.
39406         * tests/test-u64.c (main): Likewise.
39407         * tests/test-xfprintf-posix.c (main): Likewise.
39408         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39409
39410         sockets: avoid compiler warning
39411         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39412
39413         maint: detect usage(1) and other suspicious exits
39414         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39415
39416 2009-10-29  Jim Meyering  <meyering@redhat.com>
39417
39418         timespec: long-to-int truncation could make timespec_cmp malfunction
39419         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39420         a multiple of 2^32 nanoseconds as no difference.
39421
39422 2009-10-28  Jim Meyering  <meyering@redhat.com>
39423
39424         fprintftime: wrap macro code argument in "do {...} while(0)"
39425         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39426         cpy macro must be a statement that can be followed by a semicolon.
39427         Now that the else clause contains a comment and is hence longer
39428         than one line, I require curly braces.  That in turn requires
39429         that we wrap this code block in the standard do...while(0).
39430
39431         fprintftime: remove stray semicolon from previous change
39432         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39433
39434         fprintftime: avoid a warning about ignored fwrite return value
39435         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39436         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39437         that is unsafe.
39438         * modules/fprintftime (Depends-on): Add ignore-value.
39439
39440         exclude: avoid an unwarranted warning
39441         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39442
39443 2009-10-27  Eric Blake  <ebb9@byu.net>
39444
39445         fseek: avoid compilation failure when fflush is replaced
39446         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39447         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39448         module is in use.
39449         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39450         module is not in use; since REPLACE_FSEEK worked otherwise.
39451         (GNULIB_FTELLO): Likewise for ftell.
39452         Reported by Ian Beckwith and others.
39453
39454 2009-10-27  Bruno Haible  <bruno@clisp.org>
39455
39456         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39457         Reported by Jim Meyering.
39458
39459 2009-10-27  Jim Meyering  <jim@meyering.net>
39460             Bruno Haible  <bruno@clisp.org>
39461
39462         Avoid warning despite dropping the return value of fwrite.
39463         * lib/unicodeio.c: Include ignore-value.h.
39464         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39465         * modules/unicodeio (Depends-on): Add ignore-value.
39466
39467 2009-10-26  Eric Blake  <ebb9@byu.net>
39468
39469         areadlinkat: fix fallback path
39470         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39471         pointer and zero.
39472
39473 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39474
39475         Use a better IO block size for modern systems
39476         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39477         * lib/md2.c: Likewise.
39478         * lib/md4.c: Likewise.
39479         * lib/md5.c: Likewise.
39480         * lib/sha1.c: Likewise.
39481         * lib/sha256.c: Likewise.
39482         * lib/sha512.c: Likewise.
39483
39484 2009-10-22  Eric Blake  <ebb9@byu.net>
39485
39486         tests: avoid several compiler warnings
39487         * tests/test-getcwd.c (main): Avoid buffer underflow.
39488         * tests/test-getdate.c (main): String literals are not safe with
39489         putenv, so use setenv.  Declare unused argument.
39490         * modules/getdate-tests (Depends-on): Add setenv.
39491         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39492         problems with string literals in char *.
39493         * tests/test-hash.c (main): Avoid shadowing declaration.
39494         (insert_new): Treat string literals as char const *.
39495         * tests/test-getopt.h (test_getopt): Likewise.
39496         (getopt_loop): Alter types to minimize casting elsewhere.
39497         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39498         (test_getopt_long_posix): Likewise.
39499         (do_getopt_long): Add wrapper to minimize casting.
39500         * tests/test-atexit.c (clear_temp_file): Use void.
39501         * tests/test-areadlink-with-size.c (main): Declare unused
39502         arguments.
39503         * tests/test-areadlink.c (main): Likewise.
39504         * tests/test-areadlinkat-with-size.c (main): Likewise.
39505         * tests/test-areadlinkat.c (main): Likewise.
39506         * tests/test-canonicalize-lgpl.c (main): Likewise.
39507         * tests/test-canonicalize.c (main): Likewise.
39508         * tests/test-dirent-safer.c (main): Likewise.
39509         * tests/test-dirname.c (main): Likewise.
39510         * tests/test-dup2.c (main): Likewise.
39511         * tests/test-fchdir.c (main): Likewise.
39512         * tests/test-fcntl-h.c (main): Likewise.
39513         * tests/test-fcntl-safer.c (main): Likewise.
39514         * tests/test-fdopendir.c (main): Likewise.
39515         * tests/test-fdutimensat.c (main): Likewise.
39516         * tests/test-fflush.c (main): Likewise.
39517         * tests/test-filenamecat.c (main): Likewise.
39518         * tests/test-filevercmp.c (main): Likewise.
39519         * tests/test-fopen-safer.c (main): Likewise.
39520         * tests/test-fopen.c (main): Likewise.
39521         * tests/test-fpending.c (main): Likewise.
39522         * tests/test-fpurge.c (main): Likewise.
39523         * tests/test-freading.c (main): Likewise.
39524         * tests/test-fstatat.c (main): Likewise.
39525         * tests/test-fsync.c (main): Likewise.
39526         * tests/test-futimens.c (main): Likewise.
39527         * tests/test-getndelim2.c (main): Likewise.
39528         * tests/test-gettimeofday.c (main): Likewise.
39529         * tests/test-getopt.c (main): Likewise.
39530         * tests/test-i-ring.c (main): Likewise.
39531         * tests/test-inttypes.c (main): Likewise.
39532         * tests/test-link.c (main): Likewise.
39533         * tests/test-lstat.c (main): Likewise.
39534         * tests/test-math.c (main): Likewise.
39535         * tests/test-md5.c (main): Likewise.
39536         * tests/test-memchr2.c (main): Likewise.
39537         * tests/test-memrchr.c (main): Likewise.
39538         * tests/test-mkdir.c (main): Likewise.
39539         * tests/test-mkdirat.c (main): Likewise.
39540         * tests/test-mkfifoat.c (main): Likewise.
39541         * tests/test-open.c (main): Likewise.
39542         * tests/test-openat-safer.c (main): Likewise.
39543         * tests/test-openat.c (main): Likewise.
39544         * tests/test-quotearg.c (main): Likewise.
39545         * tests/test-rawmemchr.c (main): Likewise.
39546         * tests/test-readlink.c (main): Likewise.
39547         * tests/test-remove.c (main): Likewise.
39548         * tests/test-rename.c (main): Likewise.
39549         * tests/test-renameat.c (main): Likewise.
39550         * tests/test-rmdir.c (main): Likewise.
39551         * tests/test-sha1.c (main): Likewise.
39552         * tests/test-signal.c (main): Likewise.
39553         * tests/test-sigaction.c (main): Likewise.
39554         * tests/test-stat.c (main): Likewise.
39555         * tests/test-stat-time.c (main): Likewise.
39556         * tests/test-stddef.c (main): Likewise.
39557         * tests/test-stdint.c (main): Likewise.
39558         * tests/test-stdio.c (main): Likewise.
39559         * tests/test-stdlib.c (main): Likewise.
39560         * tests/test-strchrnul.c (main): Likewise.
39561         * tests/test-strerror.c (main): Likewise.
39562         * tests/test-string.c (main): Likewise.
39563         * tests/test-strtod.c (main): Likewise.
39564         * tests/test-strverscmp.c (main): Likewise.
39565         * tests/test-symlink.c (main): Likewise.
39566         * tests/test-symlinkat.c (main): Likewise.
39567         * tests/test-sys_stat.c (main): Likewise.
39568         * tests/test-sys_time.c (main): Likewise.
39569         * tests/test-time.c (main): Likewise.
39570         * tests/test-unistd.c (main): Likewise.
39571         * tests/test-unlink.c (main): Likewise.
39572         * tests/test-unlinkat.c (main): Likewise.
39573         * tests/test-utimens.c (main): Likewise.
39574         * tests/test-utimensat.c (main): Likewise.
39575         * tests/test-version-etc.c (main): Likewise.
39576         * tests/test-wchar.c (main): Likewise.
39577         * tests/test-wctype.c (main): Likewise.
39578         * tests/test-xprintf-posix.c (main): Likewise.
39579         * tests/test-posixtm.c (main): Likewise.
39580         (STREQ): Delete unused macro.
39581         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39582         shadowed variables.
39583         * tests/test-memchr.c (main): Likewise.
39584
39585 2009-10-21  Eric Blake  <ebb9@byu.net>
39586
39587         areadlinkat: avoid failure on older glibc
39588         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39589         rather than mis-comparing 0 against FUNC_RESULT of char*.
39590
39591 2009-10-21  Bruno Haible  <bruno@clisp.org>
39592
39593         * modules/stpncpy (License): Relicense under LGPLv2+.
39594         Reported by David Lutterkort <lutter@redhat.com>.
39595
39596 2009-10-20  Eric Blake  <ebb9@byu.net>
39597
39598         utimensat: work around Solaris 9 bug
39599         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39600         has trailing slash bugs.
39601         * tests/test-lutimens.h (test_lutimens): Enhance test.
39602         * tests/test-utimens.h (test_utimens): Likewise.
39603         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39604         * doc/posix-functions/utimes.texi (utimes): Likewise.
39605         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39606         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39607         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39608         * doc/posix-functions/futimens.texi (futimens): Likewise.
39609
39610         fdutimensat: new module
39611         * modules/fdutimensat: New file.
39612         * lib/fdutimensat.c (fdutimensat): Likewise.
39613         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39614         * MODULES.html.sh (File system functions): Mention module.
39615         * modules/fdutimensat-tests: New test.
39616         * tests/test-fdutimensat.c: Likewise.
39617
39618         doc: regenerate INSTALL
39619         * doc/INSTALL: Reflect recent autoconf update.
39620         * doc/INSTALL.ISO: Likewise.
39621         * doc/INSTALL.UTF-8: Likewise.
39622
39623 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39624
39625         acl: warn if ACL support is not detected
39626         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39627
39628 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39629
39630         * lib/nproc.h: Add extern "C" block for C++.
39631
39632 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39633             Bruno Haible  <bruno@clisp.org>
39634
39635         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39636         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39637         * doc/posix-functions/isalpha.texi: Likewise.
39638         * doc/posix-functions/isblank.texi: Likewise.
39639         * doc/posix-functions/iscntrl.texi: Likewise.
39640         * doc/posix-functions/isdigit.texi: Likewise.
39641         * doc/posix-functions/isgraph.texi: Likewise.
39642         * doc/posix-functions/islower.texi: Likewise.
39643         * doc/posix-functions/isprint.texi: Likewise.
39644         * doc/posix-functions/ispunct.texi: Likewise.
39645         * doc/posix-functions/isspace.texi: Likewise.
39646         * doc/posix-functions/isupper.texi: Likewise.
39647         * doc/posix-functions/isxdigit.texi: Likewise.
39648
39649 2009-10-18  Bruno Haible  <bruno@clisp.org>
39650
39651         Tests for module 'isblank'.
39652         * modules/isblank-tests: New file.
39653         * tests/test-isblank.c: New file.
39654
39655         New module 'isblank'.
39656         * lib/isblank.c: New file.
39657         * m4/isblank.m4: New file.
39658         * modules/isblank: New file.
39659         * doc/posix-functions/isblank.texi: Mention the new module.
39660
39661 2009-10-18  Bruno Haible  <bruno@clisp.org>
39662
39663         New module 'ctype'.
39664         * lib/ctype.in.h: New file.
39665         * m4/ctype.m4: New file.
39666         * modules/ctype: New file.
39667         * doc/posix-headers/ctype.texi: Mention the new module.
39668
39669 2009-10-18  Jim Meyering  <meyering@redhat.com>
39670
39671         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39672         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39673         right after its initialization, rather than farther down.
39674         Keeping these in close proximity makes it easier to ensure
39675         that each such variable is initialized.  E.g.,
39676
39677             LIB_CLOCK_GETTIME=
39678             AC_SUBST([LIB_CLOCK_GETTIME])
39679
39680         This change also increments these serial numbers.
39681         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39682         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39684
39685 2009-10-18  Bruno Haible  <bruno@clisp.org>
39686
39687         Don't let environment variables perturb build.
39688         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39689         (gl_PREREQ_GETHRXTIME): ... not here.
39690
39691 2009-10-18  Bruno Haible  <bruno@clisp.org>
39692
39693         Avoid symlink attack in localcharset module.
39694         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39695         (O_NOFOLLOW): Define fallback.
39696         (get_charset_aliases): Don't open the file if it is a symbolic link.
39697         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39698         gl_FCNTL_H.
39699         (gl_FCNTL_H): Require it.
39700         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39701         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39702         Reported by Fergal Glynn <fglynn@veracode.com>.
39703
39704 2009-10-18  Bruno Haible  <bruno@clisp.org>
39705
39706         Implement nproc for mingw.
39707         * lib/nproc.c: Include <windows.h>
39708         (num_processors): On native Windows platforms, try GetSystemInfo.
39709
39710 2009-10-18  Bruno Haible  <bruno@clisp.org>
39711
39712         Implement nproc for IRIX.
39713         * lib/nproc.c: Include <sys/sysmp.h>.
39714         (num_processors): On IRIX systems, try sysmp.
39715         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39716
39717 2009-10-18  Bruno Haible  <bruno@clisp.org>
39718
39719         Implement nproc for HP-UX.
39720         * lib/nproc.c: Include <sys/pstat.h>
39721         (num_processors): On HP-UX systems, try pstat_getdynamic.
39722         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39723         pstat_getdynamic.
39724
39725 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39726             Bruno Haible  <bruno@clisp.org>
39727
39728         Implement nproc for NetBSD, OpenBSD.
39729         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39730         (ARRAY_SIZE): New macro.
39731         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39732         * m4/nproc.m4: New file.
39733         * modules/nproc (Files): Add m4/nproc.m4.
39734         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39735         (Makefile.am): Instead, augment lib_SOURCES.
39736
39737 2009-10-18  Bruno Haible  <bruno@clisp.org>
39738
39739         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39740         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39741         sys/param.h.
39742
39743 2009-10-16  Eric Blake  <ebb9@byu.net>
39744
39745         utimensat: new module
39746         * modules/utimensat: New file.
39747         * lib/utimensat.c (utimensat): Likewise.
39748         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39749         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39750         so we can work around Linux bugs.
39751         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39752         * modules/sys_stat (Makefile.am): Substitute them.
39753         * lib/sys_stat.in.h (utimensat): Declare it.
39754         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39755         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39756         * modules/utimensat-tests: New test.
39757         * tests/test-utimensat.c: Likewise.
39758
39759         utimens: let lutimens work on non-symlinks
39760         * lib/utimens.c (lutimens): Fall back to utimens rather than
39761         failing with ENOSYS, when file is not a symlink.
39762         (utimens): Reduce redirection.
39763         * tests/test-lutimens.h (test_lutimens): Update test to cover
39764         non-symlinks.
39765         * tests/test-utimens.h (test_utimens): Update test to cover
39766         symlinks.
39767         * tests/test-utimens.c (main): Update caller.
39768
39769         utimens: cache whether utimensat syscall works
39770         * lib/utimens.c (utimensat_works_really): New cache variable.
39771         (fdutimens, lutimens): Use it to avoid failing syscall.
39772
39773         test-stat-time, test-utimens: improve portability
39774         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39775         ext4 on alpha, and for cygwin.
39776         * tests/test-utimens-common.h: New file.
39777         (nap): Factor delays into single function.
39778         * tests/test-lutimens.h (test_lutimens): Use new header.
39779         * tests/test-futimens.h (test_futimens): Likewise.
39780         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39781         timestamps to occur from same machine, as was done previously for
39782         test_utimens.
39783         * modules/utimens-tests (Files): Ship new file.
39784         * modules/futimens-tests (Files): Likewise.
39785         Reported in part by Jim Meyering.
39786
39787         sys_stat: sort replacement declarations
39788         * lib/sys_stat.in.h: Sort declarations.
39789         * lib/futimens.c (futimens): Fix typo.
39790
39791 2009-10-15  Jim Meyering  <meyering@redhat.com>
39792
39793         don't let environment settings perturb build
39794         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39795         could cause a configure-time and/or build-time malfunction.
39796         Typically, a configure-time function-in-library test is performed
39797         via code like this:
39798
39799           LIB_VAR=
39800           AC_SUBST([LIB_VAR])
39801           prefix_saved_LIBS=$LIBS
39802             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39803                        [test "$ac_cv_search_FUNC" = "none required" ||
39804                         LIB_VAR=$ac_cv_search_FUNC])
39805           LIBS=$prefix_saved_LIBS
39806
39807         However, in each of the files affected by this change, the LIB_VAR=
39808         initialization was omitted.  Thus, when set in the environment, its
39809         value would propagate into generated Makefiles when FUNC is not found
39810         in LIB_NAME.
39811         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39812         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39814
39815 2009-10-14  Eric Blake  <ebb9@byu.net>
39816
39817         fchdir: avoid infinite recursion in mingw
39818         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39819         recursing.
39820
39821         test-stat-time: port to mingw
39822         * tests/test-stat-time.c (force_unlink): Return a value.
39823         (test_ctime) [W32]: Fix compilation error.
39824         (nap): Don't call usleep with too large an argument.  Use
39825         force_unlink.
39826         * doc/pastposix-functions/usleep.texi (usleep): Document the
39827         portability issue.
39828
39829 2009-10-13  Jim Meyering  <meyering@redhat.com>
39830
39831         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39832         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39833         * modules/pipe-filter-ii: Likewise.
39834         * modules/sys_socket-tests: Likewise.
39835         * modules/tsearch-tests: Likewise.
39836         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39837         (check): Depend on it.
39838
39839 2009-10-12  Eric Blake  <ebb9@byu.net>
39840
39841         utimens-tests: port to NFS file systems
39842         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39843         comparisons to avoid spurious failures from timestamp drift
39844         between NFS machines.
39845
39846 2009-10-12  Eric Blake  <ebb9@byu.net>
39847
39848         stat-time-tests: minor cleanups
39849         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39850         * tests/test-stat-time.c (nap): Separate assignment from call.
39851         Suggested by Paolo Bonzini and Bruno Haible.
39852
39853         sys_stat: guarantee struct timespec
39854         * lib/sys_stat.in.h (includes): Always include <time.h>
39855         * modules/sys_stat (Depends-on): Add time.
39856         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39857         mode_t permission values.
39858         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39859         get at subsecond timestamps.
39860
39861 2009-10-10  Eric Blake  <ebb9@byu.net>
39862
39863         futimens: new module
39864         * modules/futimens: New file.
39865         * lib/futimens.c (futimens): Likewise.
39866         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39867         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39868         we can work around Linux bugs.
39869         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39870         * modules/sys_stat (Makefile.am): Substitute them.
39871         * lib/sys_stat.in.h (futimens): Declare it.
39872         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39873         * doc/posix-functions/futimens.texi (futimens): Likewise.
39874         * modules/futimens-tests: New test.
39875         * tests/test-futimens.c: Likewise.
39876
39877         utimens: introduce fdutimens
39878         * lib/utimens.h (fdutimens): New prototype.
39879         * lib/utimens.c (gl_futimens): Move guts...
39880         (fdutimens): ...to new interface.
39881         * tests/test-utimens.c (do_fdutimens): Use it.
39882
39883         utimens: add UTIME_NOW and UTIME_OMIT support
39884         * lib/utimens.c (validate_timespec, update_timespec): New helper
39885         functions.
39886         (gl_futimens, lutimens): Use them.
39887         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39888         stdbool, sys_stat.
39889         (Link): Mention resulting library dependency.
39890         * modules/utimecmp (Link): Likewise.
39891         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39892         (Makefile.am): Pick up library dependency.
39893         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39894         definition.
39895         * tests/test-sys_stat.c: Test the definitions.
39896         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39897         * NEWS: Document library dependency.
39898
39899         utimecmp: support symlink timestamps
39900         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39901         hashing when possible.  Use pathconf when available.
39902         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39903         * modules/utimecmp (Depends-on): Add lstat.
39904
39905         utimens: add lutimens interface
39906         * lib/utimens.c (lutimens): New function.
39907         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39908         * lib/utimens.h (lutimens): Declare new interface.
39909         * tests/test-utimens.c (main): Enhance test.
39910         * tests/test-lutimens.h (test_lutimens): New file.
39911         * modules/utimens-tests (Files): Distribute it.
39912         (Depends-on): Add symlink.
39913         (configure.ac): Check for usleep.
39914
39915         utimens: validate futimens usage
39916         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39917         fewer syscalls on failure later on.  Avoid compiler warning on
39918         mingw.
39919         * modules/utimens (Depends-on): Add dup2.
39920
39921         utimens: add test
39922         * modules/utimens-tests: New test.
39923         * tests/test-utimens.h: New file.
39924         * tests/test-futimens.h: Likewise.
39925         * tests/test-utimens.c: Likewise.
39926
39927         doc: mention timestamp portability issues
39928         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39929         instead.
39930         * doc/posix-functions/utime.texi (utime): Likewise.
39931         * doc/posix-functions/utimes.texi (utimes): Likewise.
39932         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39933         instead.
39934         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39935         module.
39936         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39937         Mention weakness with symlink timestamps.
39938         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39939         to utimensat/futimens instead.
39940         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39941
39942         test-dup2: enhance test
39943         * tests/test-dup2.c (main): Also check AT_FDCWD.
39944
39945         test-stat-time: avoid more spurious failures
39946         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39947         xfs; and avoid race if the two timestamps cross quantization edge.
39948
39949         relocatable: prefer 'file system' over 'filesystem'
39950         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39951         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39952         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39953         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39954         * lib/relocatable.c (compute_curr_prefix): Likewise.
39955
39956 2009-10-10  Jim Meyering  <meyering@redhat.com>
39957
39958         stat-time-tests: check for the usleep function
39959         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39960
39961 2009-10-10  Bruno Haible  <bruno@clisp.org>
39962
39963         * modules/xnanosleep: Put the Link section after the Include section.
39964
39965 2009-10-09  Eric Blake  <ebb9@byu.net>
39966
39967         dup2: work around FreeBSD 6.1 bug
39968         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39969         * doc/posix-functions/dup2.texi (dup2): Document it.
39970         Reported by Nelson H. F. Beebe and Jim Meyering.
39971
39972         test-stat-time: port to buggy NFS clients
39973         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39974         (test_ctime): Also skip test if mtime and ctime are skewed.
39975
39976         maint: prefer 'file system' over 'filesystem'
39977         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39978         * doc/posix-functions/lstat.texi (lstat): Likewise.
39979         * lib/file-has-acl.c (file_has_acl): Likewise.
39980         * lib/fwriteerror.c [TEST]: Likewise.
39981         * tests/test-areadlink.h (test_areadlink): Likewise.
39982         * tests/test-areadlinkat-with-size.c (main): Likewise.
39983         * tests/test-areadlinkat.c (main): Likewise.
39984         * tests/test-canonicalize-lgpl.c (main): Likewise.
39985         * tests/test-canonicalize.c (main): Likewise.
39986         * tests/test-fstatat.c (main): Likewise.
39987         * tests/test-linkat.c (main): Likewise.
39988         * tests/test-lstat.h (test_lstat_func): Likewise.
39989         * tests/test-mkdir.h (test_mkdir): Likewise.
39990         * tests/test-readlink.h (test_readlink): Likewise.
39991         * tests/test-remove.c (main): Likewise.
39992         * tests/test-rename.h (test_rename): Likewise.
39993         * tests/test-renameat.c (main): Likewise.
39994         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39995         * tests/test-symlink.h (test_symlink): Likewise.
39996         * tests/test-symlinkat.c (main): Likewise.
39997         * tests/test-unlink.h (test_unlink_func): Likewise.
39998         * tests/test-unlinkat.c (main): Likewise.
39999
40000         maint: make realtime library usage explicit
40001         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40002         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40003         * modules/settime (Link): Likewise.
40004         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40005
40006         test-stat-time: speed up execution
40007         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40008         warning on mingw.
40009         (nap): New helper function.
40010         (prepare_test): Use it to reduce sleep time.
40011         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40012         execution.
40013         * modules/stat-time-tests (configure.ac): Check for usleep.
40014
40015 2009-10-09  Jim Meyering  <meyering@redhat.com>
40016
40017         selinux-h: always use getfilecon wrappers
40018         * lib/getfilecon.c: New file.
40019         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40020         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40021         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40022         (fgetfilecon): Provide a stub.
40023         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40024         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40025         file unconditionally.
40026         When <selinux/selinux.h> is found, arrange to use wrappers.
40027         * modules/selinux-h (Files): Add getfilecon.c.
40028         (Makefile.am): Substitute include-next-related bits
40029         into the now-always-generated selinux/selinux.h file.
40030         * doc/glibc-functions/lgetfilecon.texi: New file.
40031         * doc/glibc-functions/fgetfilecon.texi: New file.
40032         * doc/glibc-functions/getfilecon.texi: New file.
40033         * doc/glibc-functions/getfilecon-desc.texi: New file.
40034         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40035         which to pull in the new files.
40036         * MODULES.html.sh (Misc): Add selinux-h.
40037
40038 2009-10-08  Jim Meyering  <meyering@redhat.com>
40039
40040         unistd: fix comment typo
40041         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40042
40043 2009-10-08  Eric Blake  <ebb9@byu.net>
40044
40045         areadlink: use SIZE_MAX consistently
40046         * modules/areadlink (Depends-on): Add stdint.
40047         * modules/areadlink-with-size (Depends-on): Likewise.
40048         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40049         gives NULL; drop sys/types, since unistd gives size_t; and add
40050         stdint for SIZE_MAX.
40051         (SIZE_MAX): Rely on headers.
40052         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40053         and add stdint.
40054         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40055         (SIZE_MAX): Likewise.
40056         (INITIAL_BUF_SIZE): Turn into enum.
40057         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40058
40059 2009-10-08  Jim Meyering  <meyering@redhat.com>
40060
40061         areadlinkat: avoid compilation failure
40062         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40063         Fix typo in comment.
40064
40065 2009-10-07  Eric Blake  <ebb9@byu.net>
40066
40067         areadlinkat-with-size: new module
40068         * modules/areadlinkat-with-size: New module.
40069         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40070         * lib/areadlink.h (areadlinkat): Declare it.
40071         * MODULES.html.sh (File system functions): Mention it.
40072         * modules/areadlinkat-with-size-tests: New test.
40073         * tests/test-areadlinkat-with-size.c: New file.
40074
40075         xreadlinkat: new module
40076         * modules/xreadlinkat: New module.
40077         * lib/xreadlinkat.c (xreadlinkat): New file.
40078         * lib/xreadlink.h (xreadlinkat): Declare it.
40079         * MODULES.html.sh (File system functions): Mention it.
40080
40081         areadlinkat: new module
40082         * lib/at-func.c (FUNC_FAIL): New define.
40083         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40084         * modules/areadlinkat: New module.
40085         * lib/linkat.c (areadlinkat): Move...
40086         * lib/areadlinkat.c (areadlinkat): ...to new file.
40087         * lib/areadlink.h (areadlinkat): Declare it.
40088         * modules/linkat (Depends-on): Add areadlinkat.
40089         * MODULES.html.sh (File system functions): Mention it.
40090         * modules/areadlinkat-tests: New test.
40091         * tests/test-areadlinkat.c: New file.
40092
40093         areadlink, areadlink-with-size: add tests
40094         * modules/areadlink-tests: New test.
40095         * modules/areadlink-with-size-tests: Likewise.
40096         * tests/test-areadlink.h: New file.
40097         * tests/test-areadlink.c: Likewise.
40098         * tests/test-areadlink-with-size.c: Likewise.
40099
40100         maint: minor cleanups
40101         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40102         _UNUSED_PARAMETER_ instead.
40103         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40104         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40105         * modules/linkat-tests (Files): Distribute test-link.h.
40106
40107         openat, utimens: whitespace cleanup
40108         * lib/openat.c: Prefer space throughout, rather than mix of 8
40109         spaces vs. tabs.
40110         * lib/at-func.c: Likewise.
40111         * lib/utimens.c: Likewise.
40112
40113         openat: avoid using wrong fd
40114         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40115         working directory chooses same fd.
40116         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40117
40118         mkdir, mkdirat: fix cygwin 1.5.x bug
40119         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40120         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40121         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40122         bug.
40123         (gl_PREREQ_MKDIR): Delete unused macro.
40124         * modules/mkdir (Files): Track file rename.
40125         (configure.ac): Update macro name.
40126         * modules/openat (Depends-on): Add mkdir.
40127         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40128
40129         mkdir, mkdirat: add tests
40130         * modules/mkdir-tests: New test.
40131         * tests/test-mkdir.h: New file.
40132         * tests/test-mkdir.c: Likewise.
40133         * tests/test-mkdirat.c: Likewise.
40134         * modules/openat-tests (Files): Add new files.
40135         (Makefile.am): Run new test.
40136
40137 2009-10-06  Eric Blake  <ebb9@byu.net>
40138
40139         doc: tweak *at function documentation
40140         * doc/posix-functions/faccessat.texi (faccessat): Mention
40141         known issue with replacement.
40142         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40143         * doc/posix-functions/linkat.texi (linkat): Likewise.
40144         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40145         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40146         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40147         * doc/posix-functions/renameat.texi (renameat): Likewise.
40148         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40149
40150         openat: fix GNU/Hurd bug in unlinkat
40151         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40152         broken.
40153         * doc/posix-functions/unlink.texi (unlink): Document this.
40154         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40155
40156         fdopendir: fix GNU/Hurd bug
40157         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40158         allowing non-directory fds.
40159         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40160         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40161         * modules/dirent (Makefile.am): Substitute it.
40162         * lib/dirent.in.h (fdopendir): Declare replacement.
40163         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40164         * tests/test-fdopendir.c (main): Test something other than
40165         /dev/null, since on Hurd that behaves like a directory.
40166
40167         test-symlink: port to GNU/Hurd
40168         * tests/test-symlink.h (test_symlink): Relax expected errno.
40169
40170         doc: tweak more cygwin information
40171         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40172         now compatible with glibc.
40173         * doc/posix-functions/getopt.texi (getopt): Likewise.
40174
40175         getopt-gnu: add another test
40176         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40177         guarantee behavior relied on by m4.
40178         * tests/test-getopt.c (main): Use it.
40179         * modules/getopt-posix-tests (Depends-on): Add setenv.
40180         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40181
40182         getopt: fix compilation on darwin
40183         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40184         include.
40185         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40186         Reported by Ludovic Courtès.
40187
40188 2009-10-06  Bruno Haible  <bruno@clisp.org>
40189
40190         * modules/size_max (Description): Discourage its use.
40191         Reported by Simon Josefsson.
40192
40193 2009-10-06  Jim Meyering  <meyering@redhat.com>
40194
40195         linkat: avoid compilation failure
40196         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40197
40198 2009-10-05  Eric Blake  <ebb9@byu.net>
40199
40200         linkat: support Linux 2.6.17
40201         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40202         linkat on Linux, but allow cache variable override.
40203         * lib/linkat.c (rpl_linkat): Define override.
40204         * modules/linkat (Depends-on): Add symlinkat.
40205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40206         * modules/unistd (Makefile.am): Substitute it.
40207         * lib/unistd.in.h (linkat): Declare replacement.
40208         Reported by Pádraig Brady.
40209
40210         quotearg: port test to systems with C.UTF-8 locale
40211         * tests/test-quotearg.c (struct result_strings): Add another
40212         member, differentiating between C.ASCII and C.UTF-8 handling.
40213         (compare_strings): Add parameter.
40214         (main): Adjust all callers.
40215
40216         getopt: avoid clash with FreeBSD _getopt_internal
40217         * lib/getopt.in.h (_getopt_internal): Override the name.
40218         * lib/getopt_int.h (includes): Pick up any overrides.
40219         Reported by Reuben Thomas.
40220
40221         hash: allow C89 compilation
40222         * lib/hash.c (check_tuning): Move declaration before statement.
40223         Reported by Reuben Thomas.
40224
40225 2009-10-05  Karl Berry  <karl@gnu.org>
40226
40227         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40228
40229 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40230             Bruno Haible  <bruno@clisp.org>
40231
40232         * lib/uname.c (uname): Use a table-driven algorithm to compute
40233         Windows NT versions.
40234
40235 2009-10-04  Bruno Haible  <bruno@clisp.org>
40236
40237         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40238         program_invocation_short_name.
40239         * modules/progname (configure.ac): Test for presence of
40240         program_invocation_short_name.
40241         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40242
40243 2009-10-04  Bruno Haible  <bruno@clisp.org>
40244
40245         * lib/progname.c (set_program_name): Fix comment.
40246         Reported by Jim Meyering.
40247
40248 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40249             Bruno Haible  <bruno@clisp.org>
40250
40251         * lib/uname.c: Include <string.h>.
40252         (uname): Do only one call to GetVersionEx in the common case.
40253
40254 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40255             Bruno Haible  <bruno@clisp.org>
40256
40257         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40258         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40259         (uname): Add support for Windows CE and various non-x86 CPU types.
40260
40261 2009-10-03  Bruno Haible  <bruno@clisp.org>
40262
40263         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40264         invocation to tests/configure.ac.
40265         Reported by Ian Beckwith <ianb@erislabs.net>.
40266
40267 2009-10-02  Eric Blake  <ebb9@byu.net>
40268
40269         fchdir: avoid compiler warning
40270         * lib/fchdir.c (canonicalize_file_name)
40271         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40272
40273         test-open: support mingw errno values
40274         * tests/test-open.h (test_open): Relax test.
40275         * tests/test-fopen.h (test_fopen): Likewise.
40276         * tests/test-openat-safer.c (main): Likewise.
40277
40278         open: fix opening directory on mingw
40279         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40280
40281         test-open: on GNU/Hurd, /dev/null is a directory
40282         * tests/test-fopen.h (main): Rename...
40283         (test_fopen): ...to this.  Use a guaranteed non-directory when
40284         confirming open behavior on trailing slash.
40285         * tests/test-openat-safer.c (main): Likewise.
40286         * tests/test-open.h (main): Likewise....
40287         (test_open): ...to this.
40288         * tests/test-fopen.c (main): Adjust caller.
40289         * tests/test-fopen-safer.c (main): Likewise.
40290         * tests/test-open.c (main): Likewise.
40291         * tests/test-fcntl-safer.c (main): Likewise.
40292         Reported by Samuel Thibault.
40293
40294         rename, fchdir: don't ignore chdir failure
40295         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40296         * lib/rename.c (rpl_rename) [W32]: Likewise.
40297         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40298         an empty destination directory if source cannot be renamed,
40299         although there is still possibility for failure.
40300         * doc/posix-functions/rename.texi (rename): Document the race.
40301         Reported by Jim Meyering.
40302
40303         maint: cleanup whitespace in recent commits
40304         * lib/rename.c (rpl_rename): Remove tabs.
40305         * tests/test-link.h (test_link): Likewise.
40306         * lib/fchdir.c (get_name): Likewise.
40307         Reported by Jim Meyering.
40308
40309 2009-10-02  Ben Pfaff  <blp@gnu.org>
40310
40311         relocatable-prog-wrapper: Add missing dependency on
40312         double-slash-root.
40313         * modules/relocatable-prog-wrapper: Add dependency.
40314         Reported by Ian Beckwith <ianb@erislabs.net>.
40315
40316 2009-10-02  Eric Blake  <ebb9@byu.net>
40317
40318         renameat: fix Solaris bugs
40319         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40320         needed fixing.
40321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40322         * modules/stdio (Makefile.am): Substitute it.
40323         * lib/stdio.in.h (renameat): Declare replacement.
40324         * lib/renameat.c (rpl_renameat): Implement fix.
40325
40326         renameat: new module
40327         * modules/renameat: New file.
40328         * lib/renameat.c (renameat): Likewise.
40329         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40331         * modules/stdio (Makefile.am): Substitute them.
40332         * lib/stdio.in.h (renameat): Declare it.
40333         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40334         * doc/posix-functions/renameat.texi (renameat): Likewise.
40335         * modules/renameat-tests: New test.
40336         * tests/test-renameat.c: Likewise.
40337
40338         rename: fix mingw bugs
40339         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40340         directory overwrite bugs.
40341
40342         rename: fix another cygwin 1.5 bug
40343         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40344         checks.
40345         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40346         unnecessary cygwin workarounds.  Also work around bug with moving
40347         full directory onto an empty one.
40348         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40349
40350         rename-dest-slash: merge into rename module
40351         * modules/rename-dest-slash (Status): Mark obsolete.
40352         (Depends-on): Add rename.
40353         (Files): Let rename do it all.
40354         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40355         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40356         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40357         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40358         * lib/rename.c (rpl_rename): Update comments.
40359
40360         rename: fix cygwin 1.5.x bugs
40361         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40362         * lib/rename.c (rpl_rename): Work around them.
40363         * modules/rename (Depends-on): Add same-inode.
40364
40365         rename: fix Solaris 10 bug
40366         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40367         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40368         was the only bug.
40369
40370         rename: fix Solaris 9 bug
40371         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40372         on non-directory.  Avoid calling exit.
40373         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40374         strdup.
40375         * modules/rename-tests (Depends-on): Drop lstat.
40376         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40377         (gl_PREREQ_RENAME): Delete unused macro.
40378
40379         rename-dest-slash: fix NetBSD bug
40380         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40381         links.
40382         * modules/rename-dest-slash (Depends-on): Add same-inode.
40383
40384         rename-tests: new test, exposes several platform bugs
40385         * modules/rename-tests: New file.
40386         * tests/test-rename.h: Likewise.
40387         * tests/test-rename.c: Likewise.
40388         * doc/posix-functions/rename.texi (rename): Improve documentation,
40389         including bugs that will eventually be fixed in gnulib.
40390
40391 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40392
40393         * lib/uname.c: Include <stdlib.h>
40394         (uname): Assume version info is available.
40395
40396 2009-10-02  Jim Meyering  <meyering@redhat.com>
40397
40398         gnu-web-doc-update: correct --help output
40399         * build-aux/gnu-web-doc-update: Make --help output relevant.
40400
40401         gnu-web-doc-update: add standard options
40402         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40403
40404         gnu-web-doc-update: New module.
40405         Use this script to automatically update the on-line web documentation
40406         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40407         * modules/gnu-web-doc-update: New file, from coreutils.
40408         * build-aux/gnu-web-doc-update: New script.
40409
40410 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40411
40412         link: LoadLibrary is not needed.
40413         * lib/link.c: Use GetModuleHandle.
40414
40415 2009-10-01  Eric Blake  <ebb9@byu.net>
40416
40417         getopt: bump serial number
40418         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40419         change.
40420
40421         tests: tighten link, rmdir, and remove tests
40422         * tests/test-link.h (includes): No need to use <config.h> here.
40423         Clean up if directory hard link was created, otherwise test for
40424         trailing '.'.
40425         * tests/test-linkat.c (main): Simplify.
40426         * tests/test-remove.c (main): Enhance test for trailing '.'.
40427         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40428
40429 2009-10-01  Jim Meyering  <meyering@redhat.com>
40430
40431         maint.mk: requiring "make major" was annoying, for a "minor" release.
40432         What is intended is "stable", to contrast with alpha and beta,
40433         so require "make stable", not "make major".
40434         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40435         (get_tool_versions): Likewise.
40436         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40437
40438 2009-09-30  Ben Pfaff  <blp@gnu.org>
40439
40440         Fix broken build of replacement for Windows tmpfile().
40441         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40442         flags argument added along with the 'mkostemp' module.
40443
40444 2009-09-28  Bruno Haible  <bruno@clisp.org>
40445
40446         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40447         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40448         to 'remove_elt'.
40449         (gl_list_remove): Update.
40450         * lib/gl_list.c (gl_list_remove): Update.
40451         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40452         to 'remove_elt'.
40453         (gl_oset_remove): Update.
40454         * lib/gl_list.c (gl_oset_remove): Update.
40455         Reported by Eric Blake.
40456
40457 2009-09-28  Eric Blake  <ebb9@byu.net>
40458
40459         doc: mention yet more cygwin 1.7 status
40460         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40461         cygwin.
40462         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40463         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40464
40465         argp: fix test failure
40466         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40467         that are not upper-case.  Pass correct range to tolower.
40468
40469 2009-09-27  Jim Meyering  <meyering@redhat.com>
40470
40471         test-yesno: work around sparc-dash here-document infelicity
40472         Without this change, the literal \177 byte in a here document
40473         would make dash 0.5.5.1-3 access uninitialized memory.
40474         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40475         Instead, use a marker, "@", and filter through tr to create the desired
40476         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40477
40478 2009-09-27  Bruno Haible  <bruno@clisp.org>
40479
40480         Disable untested support for new flavours of ACLs on AIX.
40481         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40482         progress.
40483         * lib/set-mode-acl.c (qset_acl): Likewise.
40484
40485 2008-12-07  Bruno Haible  <bruno@clisp.org>
40486
40487         Add support for new flavours of ACLs on AIX. (Untested.)
40488         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40489         (file_has_acl): Add support for newer AIX.
40490         * lib/set-mode-acl.c (qset_acl): Likewise.
40491         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40492         Rainer Tammer <tammer@tammer.net>.
40493
40494 2009-09-26  Eric Blake  <ebb9@byu.net>
40495
40496         argp: fix compilation of getopt
40497         * lib/getopt.in.h (includes): Use different guard than glibc.
40498         Reported by Sergey Poznyakoff.
40499
40500         doc: mention more cygwin 1.7 status
40501         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40502         bug.
40503         * doc/posix-functions/execl.texi (execl): Likewise.
40504         * doc/posix-functions/execle.texi (execle): Likewise.
40505         * doc/posix-functions/execlp.texi (execlp): Likewise.
40506         * doc/posix-functions/execv.texi (execv): Likewise.
40507         * doc/posix-functions/execve.texi (execve): Likewise.
40508         * doc/posix-functions/execvp.texi (execvp): Likewise.
40509         * doc/glibc-functions/canonicalize_file_name.texi
40510         (canonicalize_file_name): Cygwin 1.7 now provides this.
40511         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40512         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40513         on AT_SYMLINK_NOFOLLOW.
40514
40515 2009-09-24  Eric Blake  <ebb9@byu.net>
40516
40517         test-linkat: make test more robust
40518         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40519
40520         getopt: fix inclusion guards for cygwin
40521         * modules/getopt-posix (Depends-on): Add include-next.
40522         (Makefile.am): Substitute more items in replacement header.
40523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40524         <getopt.h>.
40525         * lib/getopt.in.h (includes): Use split inclusion guard, and
40526         prefer <getopt.h> over include <unistd.h> when one is present.
40527         (option): Also override name of 'struct option'.
40528
40529         same-inode: revert prior change; it is not yet ready
40530         * NEWS: Undo mention of this change.
40531         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40532         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40533         * lib/cycle-check.c (cycle_check): Likewise.
40534         * lib/same.c (same_name): Likewise.
40535         * lib/at-func2.c (at_func2): Likewise.
40536
40537 2009-09-23  Eric Blake  <ebb9@byu.net>
40538
40539         linkat: new module
40540         * modules/linkat: New file.
40541         * lib/at-func2.c (at_func2): Likewise.
40542         * lib/linkat.c (linkat): Likewise.
40543         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40544         * lib/openat-priv.h (at_func2): Add declaration.
40545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40546         * modules/unistd (Makefile.am): Substitute them.
40547         * lib/unistd.in.h (linkat): Declare it.
40548         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40549         * doc/posix-functions/linkat.texi (linkat): Likewise.
40550         * doc/posix-functions/link.texi (link): Tweak wording.
40551         * tests/test-link.c (main): Move guts...
40552         * tests/test-link.h (test_link): ...into new file.
40553         * modules/linkat-tests: New test.
40554         * tests/test-linkat.c: Likewise.
40555         * modules/link-tests (Files): Ship new file.
40556         (Depends-on): Add stdbool.
40557
40558         dirname: add library-safe mdir_name
40559         * lib/dirname.h (mdir_name): New prototype.
40560         * lib/dirname.c (dir_name): Move guts...
40561         (mdir_name): ...to new function that avoids xalloc_die.
40562
40563         fchdir: another mingw fix
40564         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40565         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40566         on mingw (where it has not yet been ported), and make it optional
40567         elsewhere.
40568         (_gl_register_fd): Use it.
40569
40570         same-inode: make SAME_INODE tri-state, to port to mingw
40571         * NEWS: Mention this change.
40572         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40573         st_ino always being 0.
40574         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40575         * lib/cycle-check.c (cycle_check): Likewise.
40576         * lib/same.c (same_name): Likewise.
40577
40578         lstat: avoid mingw compilation error
40579         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40580         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40581         lstat ourselves.
40582         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40583         was adequate.
40584         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40585         the checks for lstat.
40586         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40587
40588         link: fix test failure on Solaris 9
40589         * lib/link.c (rpl_link): Don't assume link will catch bogus
40590         trailing slash on source.
40591
40592         test-symlinkat: enhance test
40593         * tests/test-readlink.c (main): Move guts...
40594         * tests/test-readlink.h (test_readlink): ...into new file.
40595         * tests/test-symlink.c (main): Move guts...
40596         * tests/test-symlink.h (test_symlink): ...into new file.
40597         * tests/test-symlinkat.c (main): Use new files for further
40598         coverage.
40599         (do_symlink, do_readlink): New helper functions.
40600         * modules/symlink-tests (Files): Ship new file.
40601         (Depends-on): Add stdbool.
40602         * modules/readlink-tests (Files): Ship new file.
40603         (Depends-on): Add stdbool.
40604         * modules/symlinkat-tests (Files): Use new files.
40605
40606 2009-09-23  Eric Blake  <ebb9@byu.net>
40607
40608         readlink: document portability issue with symlink length
40609         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40610         systems have bogus st_size on symlinks, and mention the
40611         areadlink-with-size module.
40612         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40613         * doc/posix-functions/readlink.texi (readlink): Mention the
40614         areadlink module, and ERANGE failure.
40615         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40616         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40617
40618         readlink: fix Solaris 9 bug with trailing slash
40619         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40620         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40621         * doc/posix-functions/readlink.texi (readlink): Document this.
40622         * modules/readlink-tests: New test.
40623         * tests/test-readlink.c: Likewise.
40624
40625         readlink: fix cygwin 1.5.x bug with return type
40626         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40627         * lib/unistd.in.h (readlink): Use ssize_t.
40628         * lib/readlink.c (readlink): Likewise.
40629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40630         * modules/unistd (Makefile.am): Substitute it.
40631         * lib/unistd.in.h (readlink): Declare replacement.
40632         * doc/posix-functions/readlink.texi (readlink): Document this.
40633
40634         symlink: use throughout gnulib
40635         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40636         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40637         symlink is not used.
40638         * modules/symlinkat (Depends-on): Add symlink.
40639         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40640         * modules/canonicalize-tests (Depends-on): Likewise.
40641         * modules/lstat-tests (Depends-on): Likewise.
40642         * modules/openat-tests (Depends-on): Likewise.
40643         * modules/remove-tests (Depends-on): Likewise.
40644         * modules/rmdir-tests (Depends-on): Likewise.
40645         * modules/unlink-tests (Depends-on): Likewise.
40646         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40647         * tests/test-canonicalize.c (symlink): Likewise.
40648         * tests/test-fstatat.c (symlink): Likewise.
40649         * tests/test-lstat.c (symlink): Likewise.
40650         * tests/test-remove.c (symlink): Likewise.
40651         * tests/test-rmdir.c (symlink): Likewise.
40652         * tests/test-unlink.c (symlink): Likewise.
40653         * tests/test-unlinkat.c (symlink): Likewise.
40654
40655         symlink: new module, for Solaris 9 bug
40656         * modules/symlink: New file.
40657         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40658         * lib/symlink.c: Likewise.
40659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40660         * modules/unistd (Makefile.am): Substitute them.
40661         * lib/unistd.in.h (symlink): Declare replacement.
40662         * MODULES.html.sh (File system functions): Mention it.
40663         * doc/posix-functions/symlink.texi (symlink): Likewise.
40664         * modules/symlink-tests: New test.
40665         * tests/test-symlink.c: Likewise.
40666
40667 2009-09-23  Bruno Haible  <bruno@clisp.org>
40668
40669         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40670         when needed.
40671         Test case: gnulib-tool --import --with-tests atexit inttypes.
40672         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40673
40674 2009-09-23  Bruno Haible  <bruno@clisp.org>
40675
40676         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40677         subcommand, not in a subshell.
40678
40679 2009-09-22  Eric Blake  <ebb9@byu.net>
40680
40681         unistd: sort replacement declarations
40682         * lib/unistd.in.h: Sort declarations.
40683
40684         open, openat: minor optimization
40685         * lib/open.c (open): If open succeeded, len is non-zero.
40686         * lib/openat.c (rpl_openat): Likewise.
40687
40688         link-follow: ensure correct result
40689         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40690         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40691         distinguish between possible failures.
40692
40693 2009-09-21  Eric Blake  <ebb9@byu.net>
40694
40695         fts: avoid compiler warning
40696         * lib/fts.c (dirent_inode_sort_may_be_useful)
40697         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40698
40699 2009-09-19  Bruno Haible  <bruno@clisp.org>
40700
40701         * lib/progreloc.c (canonicalize_file_name): New declaration.
40702
40703 2009-09-19  Eric Blake  <ebb9@byu.net>
40704
40705         link: fix quoting
40706         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40707
40708         openat: fix openat bugs on Solaris 9
40709         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40710         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40711         * modules/openat (Depends-on): Add open.
40712         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40713         * modules/fcntl-h (Makefile.am): Substitute it.
40714         * lib/fcntl.in.h (openat): Declare replacement.
40715         * doc/posix-functions/openat.texi (openat): Document this.
40716
40717         openat: move fstatat and unlinkat into correct files
40718         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40719         compiled.
40720         * lib/openat.c (fstatat, unlinkat): Move...
40721         * lib/fstatat.c (fstatat): ...into correct files.
40722         * lib/unlinkat.c (unlinkat): Likewise.
40723
40724         openat: fix unlinkat bugs on Solaris 9
40725         * lib/unlinkat.c (unlinkat): New file.
40726         * modules/openat (Depends-on): Add unlink.
40727         (Files): Distribute it.
40728         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40729         trailing slash behavior is broken.
40730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40731         * modules/unistd (Makefile.am): Substitute it.
40732         * lib/unistd.in.h (unlinkat): Declare replacement.
40733         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40734
40735         openat: fix fstatat bugs on Solaris 9
40736         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40737         stat.
40738         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40739
40740         test-unlinkat: enhance test, to expose Solaris 9 bug
40741         * tests/test-unlink.c (main): Factor guts...
40742         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40743         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40744         * tests/test-rmdir.c (main): Adjust caller.
40745         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40746         (unlinker): New helper function.
40747         (rmdirat): Enhance check.
40748         * modules/rmdir-tests (Depends-on): Add stdbool.
40749         * modules/unlink-tests (Depends-on): Likewise.
40750         (Files): Add test-unlink.h.
40751         * modules/openat-tests (Files): Likewise.
40752         (Depends-on): Add unlinkdir.
40753
40754         test-fstatat: new test, to expose Solaris 9 bugs
40755         * tests/test-stat.c (main): Factor guts...
40756         * tests/test-stat.h (test_stat_func): ...into new file.
40757         * tests/test-lstat.c (main): Factor guts...
40758         * tests/test-lstat.h (test_lstat_func): ...into new file.
40759         * tests/test-fstatat.c: New file.
40760         * modules/stat-tests (Files): Add test-stat.h.
40761         * modules/lstat-tests (Files): Add test-lstat.h.
40762         (Depends-on): Add stdbool.
40763         * modules/openat-tests (Depends-on): Add pathmax.
40764         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40765         (Makefile.am): Run new test.
40766
40767         remove: new module, for mingw and Solaris 9 bugs
40768         * modules/remove: New file.
40769         * lib/remove.c: Likewise.
40770         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40772         * modules/stdio (Makefile.am): Use them.
40773         * lib/stdio.in.h (remove): Declare replacement.
40774         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40775         * doc/posix-functions/remove.texi (remove): Likewise.
40776         * modules/remove-tests: New test.
40777         * tests/test-remove.c: Likewise.
40778
40779         unlink: new module, for Solaris 9 bug
40780         * modules/unlink: New file.
40781         * lib/unlink.c: Likewise.
40782         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40784         * modules/unistd (Makefile.am): Use them.
40785         * lib/unistd.in.h (stat): Declare replacement.
40786         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40787         * doc/posix-functions/unlink.texi (unlink): Likewise.
40788         * modules/unlink-tests: New test.
40789         * tests/test-unlink.c: Likewise.
40790
40791         lstat: fix Solaris 9 bug
40792         * lib/lstat.c (lstat): Also check for trailing slash on
40793         non-symlink, non-directories.  Use stat module to simplify logic.
40794         * doc/posix-functions/lstat.texi (lstat): Document it.
40795         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40796         (configure.ac): Check for symlink.
40797         * tests/test-lstat.c (main): Add more tests.
40798
40799         stat: add as dependency to other modules
40800         * modules/chown (Depends-on): Add stat.
40801         * modules/euidaccess (Depends-on): Likewise.
40802         * modules/fchdir (Depends-on): Likewise.
40803         * modules/isdir (Depends-on): Likewise.
40804         * modules/link (Depends-on): Likewise.
40805         * modules/lstat (Depends-on): Likewise.
40806         * modules/mkdir-p (Depends-on): Likewise.
40807         * modules/modechange (Depends-on): Likewise.
40808         * modules/open (Depends-on): Likewise.
40809         * modules/readlink (Depends-on): Likewise.
40810         * modules/same (Depends-on): Likewise.
40811
40812         stat: fix Solaris 9 bug
40813         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40814         slash.
40815         * lib/stat.c (rpl_stat): Work around it.
40816         * doc/posix-functions/stat.texi (stat): Update documentation.
40817
40818         stat: new module, for mingw bug
40819         * modules/stat: New file.
40820         * lib/stat.c: Likewise.
40821         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40822         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40823         * modules/sys_stat (Makefile.am): Use them.
40824         * lib/sys_stat.in.h (stat): Declare replacement.
40825         * lib/openat.c (fstatat): Deal with lstat and stat being function
40826         macros.
40827         * modules/openat (Depends-on): Add inline.
40828         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40829         * doc/posix-functions/stat.texi (stat): Likewise.
40830         * modules/stat-tests: New test.
40831         * tests/test-stat.c: Likewise.
40832
40833 2009-09-19  Jim Meyering  <meyering@redhat.com>
40834
40835         syntax-check: detect unnecessary inclusion of canonicalize.h
40836         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40837
40838 2009-09-19  Eric Blake  <ebb9@byu.net>
40839
40840         canonicalize-lgpl: adjust clients to use correct header
40841         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40842         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40843         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40844         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40845         * lib/progreloc.c (includes): Likewise.
40846
40847 2009-09-19  Jim Meyering  <meyering@redhat.com>
40848
40849         test-posixtm.c: correct a comment
40850         * tests/test-posixtm.c: Correct first-line comment.
40851         Spotted by Eric Blake.
40852
40853 2009-09-16  Jim Meyering  <meyering@redhat.com>
40854
40855         posixtm-tests: make T const-correct; add a test case
40856         * tests/test-posixtm.c (T): Declare const.
40857         Add a test for -(2^31+1).
40858         Remove useless can-succeed-only-in-2002 test.
40859
40860         posixtm-tests: adjust the sole failing test
40861         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40862         expected output matches what mktime now produces.  Cross-checked via
40863         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40864
40865         posixtm: move #ifdef'd tests into a new module
40866         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40867         * tests/test-posixtm.c: ... this new file.
40868         * modules/posixtm-tests: New module.
40869
40870 2009-09-19  Eric Blake  <ebb9@byu.net>
40871
40872         openat: simplify use of at-func.c
40873         * lib/at-func.c (includes): Include prerequisites here, to
40874         simplify requirements on client files.
40875         * lib/openat-priv.h: Add double-inclusion guard.
40876         * lib/faccessat.c (includes): Simplify.
40877         * lib/fchmodat.c (includes): Likewise.
40878         * lib/fchownat.c (includes): Likewise.
40879         * lib/mkdirat.c (includes): Likewise.
40880         * lib/mkfifoat.c (includes): Likewise.
40881         * lib/symlinkat.c (includes): Likewise.
40882
40883         openat: allow return of fd 0
40884         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40885         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40886         unistd-safer.
40887         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40888         <fcntl.h>; this module does not leak fds.
40889         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40890         must be allowed to return 0, leaving openat_safer to add the
40891         safety.
40892         (openat_permissive): Avoid writing to just-opened fd 2 if
40893         restoring the current directory fails.
40894         * lib/openat-die.c (openat_restore_fail): Add comment.
40895         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40896         (save_cwd): Guarantee safe fd, but without use of open_safer.
40897         * tests/test-openat.c: New test.
40898         * modules/openat-tests (Files, Makefile.am): Distribute and build
40899         new file.
40900
40901         relocatable-prog-wrapper: fix build
40902         * modules/relocatable-prog-wrapper (Files): Update name of
40903         canonicalize m4 file, broken on 2009-09-17.
40904         Reported by emad hajjar <aleppos@hotmail.com>.
40905
40906 2009-09-19  Bruno Haible  <bruno@clisp.org>
40907
40908         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40909         * lib/safe-alloc.c: Likewise.
40910         Reported by Ian Beckwith <ianb@erislabs.net>.
40911
40912 2009-09-18  Bruno Haible  <bruno@clisp.org>
40913
40914         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40915         Reported by <erobles@sensacd.com.mx>.
40916
40917 2009-09-17  Eric Blake  <ebb9@byu.net>
40918
40919         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40920         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40921         slashes when checking if last component is missing.
40922         * tests/test-canonicalize.c (main): Test this.
40923
40924         canonicalize, canonicalize-lgpl: honor // if distinct from /
40925         * modules/canonicalize (Files): Add double-slash-root.m4.
40926         * modules/canonicalize-lgpl (Files): Likewise.
40927         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40928         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40929         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40930         fallback definition.
40931         (canonicalize_filename_mode): Use it to protect //.
40932         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40933         (__realpath): Likewise.
40934         * tests/test-canonicalize.c (main): Test this.
40935         * tests/test-canonicalize-lgpl.c (main): Likewise.
40936         * modules/canonicalize-tests (Depends-on): Add same-inode.
40937         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40938
40939         canonicalize-lgpl: fix glibc bug with trailing slash
40940         * m4/canonicalize-lgpl.m4: Move contents...
40941         * m4/canonicalize.m4: ...here.
40942         (gl_CANONICALIZE_LGPL): Factor realpath check...
40943         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40944         glibc 2.3.5 bug, fixed 2005-04-27.
40945         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40946         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40947         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40948         * modules/canonicalize-lgpl (Files): Manage file rename.
40949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40950         * modules/stdlib (Makefile.am): Substitute witness.
40951         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40952         is needed.
40953         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40954         replacement is required.
40955         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40956         * doc/glibc-functions/canonicalize_file_name.texi
40957         (canonicalize_file_name): Document this.
40958         * doc/posix-functions/realpath.texi (realpath): Likewise.
40959
40960         canonicalize-lgpl: reject non-directory with trailing slash
40961         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40962         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40963         catches failures in glibc 2.3.5.
40964         * tests/test-canonicalize.c (main): Likewise.
40965
40966         canonicalize-lgpl: use native realpath if it works
40967         * lib/canonicalize-lgpl.c (realpath): Guard with
40968         FUNC_REALPATH_WORKS.
40969         * lib/stdlib.in.h (realpath): Make declaration optional based on
40970         HAVE_REALPATH.
40971         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40972         native realpath works.
40973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40974         * modules/stdlib (Makefile.am): Substitute witness.
40975
40976         canonicalize, canonicalize-lgpl: use <stdlib.h>
40977         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40978         (Include): Mention <stdlib.h>.
40979         (configure.ac): Mention functions we provide.
40980         * modules/canonicalize (configure.ac): Likewise.
40981         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40982         realpath if canonicalize_file_name is missing.
40983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40984         * modules/stdlib (Makefile.am): Substitute witnesses.
40985         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40986         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40987         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40988         * NEWS: Document this.
40989         * doc/glibc-functions/canonicalize_file_name.texi
40990         (canonicalize_file_name): Likewise.
40991         * doc/posix-functions/realpath.texi (realpath): Likewise.
40992         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40993
40994         test-canonicalize: consolidate into single C program
40995         * tests/test-canonicalize.sh: Delete; move setup into...
40996         * tests/test-canonicalize.c (main): ...the program, making it
40997         easier to run in debugger.  Add some tests.
40998         * modules/canonicalize-tests (Files): Remove unused file.
40999         (Depends-on): Add progname.
41000         (configure.ac, Makefile.am): Simplify.
41001
41002         test-canonicalize-lgpl: consolidate into single C program
41003         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41004         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41005         easier to run in debugger.  Add some tests.
41006         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41007         (configure.ac, Makefile.am): Simplify.
41008
41009         canonicalize: avoid resolvepath
41010         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41011         unnecessary checks.
41012         * lib/canonicalize.c (includes): Simplify.
41013         (canonicalize_file_name): Drop resolvepath implementation.
41014         * modules/canonicalize (Depends-on): Drop filenamecat.
41015
41016         canonicalize: don't lose errno
41017         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41018         over calls to free.
41019
41020         canonicalize: simplify errno handling
41021         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41022         assignment.
41023
41024         canonicalize, canonicalize-lgpl: update module dependencies
41025         * modules/canonicalize (Depends-on): Add extensions, lstat,
41026         pathmax, stdlib.
41027         (Files): Drop pathmax.h.
41028         (configure.ac): Adjust macro name.
41029         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41030         lstat, stdlib, sys_stat.
41031         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41032         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41033         extensions.
41034         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41035         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41036         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41037         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41038         declaration, if available.
41039         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41040         we can rely on the readlink module.
41041         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41042         (includes): Use <unistd.h> unconditionally.
41043
41044 2009-09-17  Eric Blake  <ebb9@byu.net>
41045
41046         maint: make Include sections of modules consistent
41047         * modules/alloca: Use only header name; no need to list #include.
41048         * modules/alloca-opt: Likewise.
41049         * modules/arpa_inet: Likewise.
41050         * modules/canon-host: Likewise.
41051         * modules/configmake: Likewise.
41052         * modules/dirent: Likewise.
41053         * modules/eealloc: Likewise.
41054         * modules/environ: Likewise.
41055         * modules/fchdir: Likewise.
41056         * modules/fcntl: Likewise.
41057         * modules/fcntl-h: Likewise.
41058         * modules/gethrxtime: Likewise.
41059         * modules/gettime: Likewise.
41060         * modules/ignore-value: Likewise.
41061         * modules/inet_ntop: Likewise.
41062         * modules/inet_pton: Likewise.
41063         * modules/inttypes: Likewise.
41064         * modules/isnand-nolibm: Likewise.
41065         * modules/isnanf-nolibm: Likewise.
41066         * modules/mbchar: Likewise.
41067         * modules/mbfile: Likewise.
41068         * modules/mbiter: Likewise.
41069         * modules/mbuiter: Likewise.
41070         * modules/netdb: Likewise.
41071         * modules/netinet_in: Likewise.
41072         * modules/nproc: Likewise.
41073         * modules/pagealign_alloc: Likewise.
41074         * modules/poll: Likewise.
41075         * modules/printf-frexp: Likewise.
41076         * modules/pthread: Likewise.
41077         * modules/putenv: Likewise.
41078         * modules/random_r: Likewise.
41079         * modules/relocatable-prog: Likewise.
41080         * modules/search: Likewise.
41081         * modules/select: Likewise.
41082         * modules/selinux-h: Likewise.
41083         * modules/settime: Likewise.
41084         * modules/signal: Likewise.
41085         * modules/size_max: Likewise.
41086         * modules/socklen: Likewise.
41087         * modules/ssize_t: Likewise.
41088         * modules/stdarg: Likewise.
41089         * modules/stdbool: Likewise.
41090         * modules/stddef: Likewise.
41091         * modules/stdint: Likewise.
41092         * modules/stdio: Likewise.
41093         * modules/stdlib: Likewise.
41094         * modules/string: Likewise.
41095         * modules/strings: Likewise.
41096         * modules/sys_file: Likewise.
41097         * modules/sys_ioctl: Likewise.
41098         * modules/sys_select: Likewise.
41099         * modules/sys_socket: Likewise.
41100         * modules/sys_stat: Likewise.
41101         * modules/sys_time: Likewise.
41102         * modules/sys_times: Likewise.
41103         * modules/sys_utsname: Likewise.
41104         * modules/sys_wait: Likewise.
41105         * modules/sysexits: Likewise.
41106         * modules/time: Likewise.
41107         * modules/times: Likewise.
41108         * modules/tmpfile: Likewise.
41109         * modules/trim: Likewise.
41110         * modules/unistd: Likewise.
41111         * modules/wchar: Likewise.
41112         * modules/wctype: Likewise.
41113
41114 2009-09-17  Bruno Haible  <bruno@clisp.org>
41115
41116         Make getdate.y compile on QNX and NetBSD 5 / i386.
41117         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41118         TIME_T_FITS_IN_LONG_INT.
41119         * lib/getdate.y (long_time_t): New type.
41120         (relative_time): Change type of 'seconds' field to long_time_t.
41121         (get_date): Update types of local variables. Check against overflow
41122         during conversion from long_time_t to time_t.
41123         Reported by Matt Kraai <kraai@ftbfs.org>
41124         and Hasso Tepper <hasso@netbsd.org>.
41125
41126 2009-09-17  Bruno Haible  <bruno@clisp.org>
41127
41128         * modules/COPYING: Update copyright years.
41129         * modules/README: Likeiwse.
41130         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41131         Reported by Ian Beckwith <ianb@erislabs.net>.
41132
41133 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41134
41135         * users.txt: Update references for gnuit package.
41136
41137 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41138
41139         * m4/getdelim.m4: Fix typo in copyright line.
41140
41141 2009-09-17  Bruno Haible  <bruno@clisp.org>
41142
41143         * lib/atoll.c: Use the standard header with GPL copyright.
41144         * lib/argz.in.h: Likewise.
41145         * lib/glob.c: Likewise.
41146         * lib/glob-libc.h: Likewise.
41147         * lib/random_r.c: Likewise.
41148         * lib/siglist.h: Likewise.
41149         * lib/strsignal.c: Likewise.
41150         Reported by Ian Beckwith <ianb@erislabs.net>.
41151
41152 2009-09-17  Eric Blake  <ebb9@byu.net>
41153
41154         rmdir: ensure correct dependency order
41155         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41156
41157 2009-09-17  Bruno Haible  <bruno@clisp.org>
41158
41159         Disable assertion that fails on NetBSD 5 / i386.
41160         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41161         Reported by Sam Steingold <sds@gnu.org>
41162         and Hasso Tepper <hasso@netbsd.org>.
41163
41164 2009-09-16  Eric Blake  <ebb9@byu.net>
41165
41166         unlinkdir: port to mingw
41167         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41168         on which no one can unlink a directory.
41169
41170         stdlib: sort witness names
41171         * modules/stdlib (Makefile.am): Sort replacements.
41172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41173         * lib/stdlib.in.h: Likewise.
41174
41175         parse-duration-tests: avoid link failure
41176         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41177         LIBINTL.
41178         Reported by Tom G. Christensen.
41179
41180         openat-tests: ensure unlinkat behaves like rmdir
41181         * tests/test-rmdir.c (main): Factor guts...
41182         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41183         * modules/rmdir-tests (Files): Ship new file.
41184         * modules/openat-tests: New test.
41185         * tests/test-unlinkat.c: Likewise.
41186
41187         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41188         * modules/rmdir-errno (Status, Notice): Now obsolete.
41189
41190         rmdir: work around cygwin 1.5.x and mingw bugs
41191         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41192         * lib/rmdir.c (rmdir): Work around it.
41193         * modules/rmdir (Status, Notice): No longer obsolete.
41194         (Files): Add dos.m4.
41195         (Depends-on): Add unistd.
41196         (configure.ac): Set witnesses.
41197         (License): Relax to LGPLv2+.
41198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41199         * modules/unistd (Makefile.am): Substitute witnesses.
41200         * lib/unistd.in.h (rmdir): Declare replacement.
41201         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41202         * modules/rmdir-tests: New tests.
41203         * tests/test-rmdir.c: Likewise.
41204
41205 2009-09-15  Eric Blake  <ebb9@byu.net>
41206
41207         fchdir: improve use of replacement functions
41208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41209         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41210         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41211         REPLACE_CLOSEDIR.
41212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41213         * modules/sys_stat (Makefile.am): Substitute correct witness.
41214         * modules/dirent (Makefile.am): Likewise.
41215         * modules/unistd (Makefile.am): Likewise.
41216         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41217         * lib/unistd.in.h (dup): Likewise.
41218         * lib/sys_stat.in.h (fstat): Likewise.
41219
41220         maint: ignore gnulib-tool temp files
41221         * .gitignore: Ignore files created during gnulib-tool --test.
41222
41223 2009-09-13  Jim Meyering  <meyering@redhat.com>
41224
41225         posixtm: don't reject a time that specify "60" as the number of seconds
41226         * lib/posixtm.c (posixtime): The code to reject invalid dates
41227         would also reject a time specified with the .60 suffix.
41228         But POSIX allows that, in order to accommodate leap seconds.
41229         So don't reject it.
41230         (main): Adjust tests accordingly.
41231         * modules/posixtm (Depends-on): Add stpcpy.
41232
41233 2009-09-11  Jim Meyering  <meyering@redhat.com>
41234
41235         announce-gen: include [$release_type] in emitted Subject:
41236         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41237         e.g., [stable] in the emitted Subject: line.
41238
41239 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41240
41241         Remove obsolete macros from several modules.
41242         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41243         obsolete Autoconf macros with their modern counterparts.
41244         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41245         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41246         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41247         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41248         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41249         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41251         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41252         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41253         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41254         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41255         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41256         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41257         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41258         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41259         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41260         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41261         * m4/time_r.m4 (gl_TIME_R): Likewise.
41262         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41263         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41264         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41265
41266         Fix copyright header in build-aux scripts.
41267         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41268         recommendation.
41269         * build-aux/ncftpput-ftp: Likewise.
41270         * build-aux/update-copyright: Likewise.
41271
41272 2009-09-09  Eric Blake  <ebb9@byu.net>
41273
41274         test-link: allow Linux choice of errno
41275         * tests/test-link.c (main): Relax test for alternate error.
41276
41277         strndup: fix improper m4 caching
41278         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41279         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41280         (gl_PREREQ_STRNDUP): Delete.
41281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41282         * modules/string (Makefile.am): Substitute it.
41283         * lib/string.in.h (strndup): Modernize prototype.
41284
41285         getcwd: port to mingw
41286         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41287         different from the POSIX assumptions made throughout the getcwd
41288         module; fortunately, the mingw getcwd does not need replacement.
41289         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41290         * modules/getcwd-tests: New test.
41291         * tests/test-getcwd.c: Likewise.
41292
41293         link: fix platform bugs
41294         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41295         * lib/link.c (link): Work around them.  Fix related mingw bug.
41296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41297         * modules/unistd (Makefile.am): Substitute it.
41298         * lib/unistd.in.h (link): Declare replacement.
41299         * doc/posix-functions/link.texi (link): Document this.
41300         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41301
41302         test-link: consolidate into single C program, test more cases
41303         * tests/test-link.sh: Delete.
41304         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41305         at least Cygwin and Solaris.
41306         * modules/link-tests (Files): Remove unused file.
41307         (Depends-on): Add errno, sys_stat.
41308         (Makefile.am): Simplify.
41309
41310 2009-09-08  Bruno Haible  <bruno@clisp.org>
41311
41312         Work around towlower, towupper bug on mingw.
41313         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41314         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41315         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41316         * doc/posix-functions/towupper.texi: Likewise.
41317         Reported by Eric Blake.
41318
41319 2009-09-08  Jim Meyering  <meyering@redhat.com>
41320
41321         build: don't try to run autoheader if we don't use it
41322         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41323         is not used in configure.ac.
41324
41325 2009-09-08  Eric Blake  <ebb9@byu.net>
41326
41327         euidaccess: fix compilation error
41328         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41329
41330         rawmemchr: relax license
41331         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41332         okay.
41333         Reported by Jim Meyering.
41334
41335         mkfifoat: new module
41336         * modules/mkfifoat: New file.
41337         * lib/mkfifoat.c: Likewise.
41338         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41339         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41340         * modules/sys_stat (Makefile.am): Use them.
41341         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41342         * MODULES.html.sh (File system functions): Mention module.
41343         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41344         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41345         * modules/mkfifoat-tests: New test.
41346         * tests/test-mkfifoat.c: Likewise.
41347
41348         strchrnul: relax license
41349         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41350         okay.
41351         Reported by Jim Meyering.
41352
41353 2009-09-08  Eric Blake  <ebb9@byu.net>
41354
41355         fstatat: fix compilation on Solaris
41356         * lib/fstatat.c (includes): Add fcntl.h.
41357         Reported by Pádraig Brady.
41358
41359 2009-09-07  Eric Blake  <ebb9@byu.net>
41360
41361         rename: modernize replacement
41362         * modules/rename (Depends-on): Add stdio.
41363         (configure.ac): Declare witness.
41364         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41365         stdio take care of replacement.
41366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41367         * modules/stdio (Makefile.am): Substitute them.
41368         * lib/stdio.in.h (rename): Declare replacement.
41369         * lib/rename.c (includes): Allow cross-compilation to non-windows
41370         machines.
41371         * doc/posix-functions/rename.texi (rename): Improve
41372         documentation.
41373
41374         stdio: sort witness names
41375         * modules/stdio (Makefile.am): Sort replacements.
41376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41377         * lib/stdio.in.h: Likewise.
41378
41379         getcwd: minor cleanups
41380         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41381         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41382
41383         openat: provide more convenience names
41384         * modules/faccessat (configure.ac): Add C witness.
41385         * lib/unistd.in.h (readlinkat): Fix typo.
41386         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41387         convenience wrappers.
41388         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41389         wrappers in syntax checks.
41390
41391 2009-09-06  Eric Blake  <ebb9@byu.net>
41392
41393         doc: fix comments in recent patches
41394         * lib/faccessat.c: Mention correct function.
41395         * lib/fchmodat.c: Likewise.
41396         * lib/fchownat.c: Likewise.
41397         * lib/symlinkat.c: Likewise.
41398         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41399         constants.
41400
41401         faccessat, symlinkat: continue cleanup of previous patch
41402         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41403         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41404         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41406         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41407         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41408         set.
41409
41410 2009-09-06  Bruno Haible  <bruno@clisp.org>
41411
41412         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41413         (fstatat): Declare if GNULIB_FSTATAT is set.
41414         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41415         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41416         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41417         * modules/fcntl-h (Files): Remove m4/openat.m4.
41418         * modules/sys_stat (Files): Remove m4/openat.m4.
41419         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41420         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41421         * modules/unistd (Files): Remove m4/openat.m4.
41422         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41423         GNULIB_OPENAT.
41424         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41425         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41426         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41427         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41428         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41429         gl_OPENAT_DEFAULTS.
41430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41431         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41432         Don't require gl_OPENAT_DEFAULTS.
41433         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41434         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41435         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41436         (gl_OPENAT_DEFAULTS): Remove macro.
41437
41438 2009-09-06  Bruno Haible  <bruno@clisp.org>
41439
41440         * modules/openat (configure.ac): Remove unneeded witness.
41441
41442 2009-09-06  Bruno Haible  <bruno@clisp.org>
41443
41444         Set errno to ENOSYS when a function is entirely unsupported.
41445         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41446         EOPNOTSUPP.
41447         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41448         * modules/chown (Depends-on): Remove errno.
41449
41450 2009-09-06  Bruno Haible  <bruno@clisp.org>
41451
41452         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41453
41454 2009-09-06  Bruno Haible  <bruno@clisp.org>
41455
41456         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41457
41458 2009-09-06  Ben Pfaff  <blp@gnu.org>
41459             Bruno Haible  <bruno@clisp.org>
41460
41461         Work around a glibc bug in strtok_r.
41462         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41463         Undefine if UNDEFINE_STRTOK_R is set.
41464         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41466         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41467         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41468         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41469         UNDEFINE_STRTOK_R.
41470         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41471
41472 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41473
41474         exclude: minor fix
41475         * lib/exclude.c: Include wctype.h
41476
41477 2009-09-06  Akim Demaille  <demaille@gostai.com>
41478
41479         bootstrap: improve error message
41480         * build-aux/bootstrap (find_tool): Upon failure, report the list
41481         of candidates.
41482         Honor the initial value of the envvar.
41483
41484 2009-09-05  Eric Blake  <ebb9@byu.net>
41485
41486         symlinkat: new module
41487         * modules/symlinkat: New file.
41488         * lib/symlinkat.c: Likewise.
41489         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41491         * modules/unistd (Makefile.am): Use them.
41492         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41493         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41494         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41495         * MODULES.html.sh (File system functions): Mention module.
41496         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41497         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41498         * modules/symlinkat-tests: New test.
41499         * tests/test-symlinkat.c: Likewise.
41500
41501         test-openat-safer: add more checks
41502         * tests/test-openat-safer.c (main): Check more code paths.
41503
41504 2009-09-05  Jim Meyering  <meyering@redhat.com>
41505
41506         syntax-check: detect unnecessary inclusion of openat.h
41507         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41508
41509 2009-09-05  Bruno Haible  <bruno@clisp.org>
41510
41511         Support towlower, towupper.
41512         * doc/posix-functions/towlower.texi: Mention module wctype.
41513         * doc/posix-functions/towupper.texi: Likewise.
41514         * lib/wctype.in.h (towlower, towupper): New functions.
41515         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41516         (ASSERT): New macro.
41517         (e): New variable.
41518         (main): Test also towlower, towupper. Test WEOF argument.
41519         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41520
41521 2009-09-05  Bruno Haible  <bruno@clisp.org>
41522
41523         Fix conversion behaviour when the input is invalid.
41524         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41525         mark occurring in first pass of indirect conversion.
41526         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41527         input.
41528         Found by clang's static analyzer.
41529
41530 2009-09-05  Bruno Haible  <bruno@clisp.org>
41531
41532         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41533         where direct conversion is possible.
41534
41535 2009-09-04  Eric Blake  <ebb9@byu.net>
41536
41537         openat: fail with ENOENT on empty name
41538         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41539         buffer.
41540
41541         link-follow: fix logic bug in prior patch
41542         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41543         reversed sense of yes and no in prior patch.  Avoid confusing
41544         compilation failure with desired semantics.
41545
41546         link-follow: accomodate mingw and cross-compilation
41547         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41548         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41549         cross-compilation results to -1, to make linkat easier to
41550         implement when cross-compiling.  Trivially support mingw.
41551         * modules/link-follow (configure.ac): Call new name.
41552         * NEWS: Mention this.
41553
41554 2009-09-03  Eric Blake  <ebb9@byu.net>
41555
41556         faccessat: compile replacement
41557         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41558         needed.
41559
41560         fts: fix compilation error
41561         * lib/fts.c (includes): Re-add "openat.h", for
41562         openat_needs_fchdir.
41563
41564         faccessat: new module
41565         * modules/faccessat: New file.
41566         * lib/faccessat.c: Likewise.
41567         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41569         * modules/unistd (Makefile.am): Use it.
41570         * lib/unistd.in.h (faccessat): Declare it.
41571         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41572         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41573         * MODULES.html.sh (File system functions): Mention it.
41574         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41575         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41576
41577         euidaccess: prefer POSIX over non-standard implementation
41578         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41579         * lib/euidaccess.c (euidaccess): Use it if available.
41580
41581         openat: make template easier to use
41582         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41583         AT_FUNC_F2 to be undefined.
41584         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41585         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41586         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41587         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41588         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41589         Likewise.
41590         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41591         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41592         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41593         Likewise.
41594
41595         openat: declare in POSIX headers
41596         * NEWS: Mention this.
41597         * modules/openat (configure.ac): Declare witnesses.
41598         (Depends-on): Add fcntl-h, sys_stat, unistd.
41599         (Include): Mention correct headers.
41600         * modules/fcntl-h (Depends-on): Add link-warning.
41601         (Files): Add openat.m4.
41602         (Makefile.am): Substitute witnesses.
41603         * modules/sys_stat (Files, Makefile.am): Likewise.
41604         * modules/unistd (Files, Makefile.am): Likewise.
41605         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41606         (gl_OPENAT_DEFAULTS): New macro.
41607         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41609         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41610         (SYS_STAT_H): Remove unused variable.
41611         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41612         * lib/fcntl--.h (includes): Remove unneeded header.
41613         * lib/openat-safer.c (includes): Likewise.
41614         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41615         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41616         appropriate headers.
41617         (__OPENAT_PREFIX): Delete.
41618         * lib/fcntl.in.h (openat): Provide declaration.
41619         (AT_FDCWD): Fix Solaris bug.
41620         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41621         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41622         * lib/fchmodat.c (includes):  Adjust to find declaration.
41623         * lib/fchownat.c (includes): Likewise.
41624         * lib/mkdirat.c (includes): Likewise.
41625         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41626         still visible.
41627
41628 2009-09-02  Eric Blake  <ebb9@byu.net>
41629
41630         errno: use consistently
41631         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41632         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41633         * lib/canonicalize.c (ELOOP): Likewise.
41634         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41635         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41636         * lib/lchown.c (EOPNOTSUPP): Likewise.
41637         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41638         * lib/savewd.c (ESTALE): Likewise.
41639         * lib/settime.c (ENOSYS): Likewise.
41640         * lib/utimens.c (ENOSYS): Likewise.
41641         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41642         * lib/chdir-safer.c (ELOOP): Likewise.
41643         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41644         * modules/c-stack (Depends-on): Add errno.
41645         * modules/canonicalize (Depends-on): Likewise.
41646         * modules/chdir-safer (Depends-on): Likewise.
41647         * modules/fdopendir (Depends-on): Likewise.
41648         * modules/inet_ntop (Depends-on): Likewise.
41649         * modules/inet_pton (Depends-on): Likewise.
41650         * modules/lchown (Depends-on): Likewise.
41651         * modules/openat (Depends-on): Likewise.
41652         * modules/savewd (Depends-on): Likewise.
41653         * modules/settime (Depends-on): Likewise.
41654         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41655
41656         fts: avoid leaking fds
41657         * modules/fts (Depends-on): Add cloexec.
41658         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41659         flag.
41660
41661         fts: make directory fds more robust
41662         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41663         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41664
41665         backupfile, chdir-long, fts, savedir: make safer
41666         * lib/backupfile.c (includes): Use "dirent--.h", since
41667         numbered_backup can write to stderr during readdir.
41668         * lib/savedir.c (includes): Likewise.
41669         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41670         emulation can write to stderr on failure.
41671         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41672         * lib/getcwd.c: Document why opendir_safer is unused.
41673         * lib/glob.c: Likewise.
41674         * lib/scandir.c: Likewise.
41675         * lib/openat-proc.c: Likewise, for open_safer.
41676         * modules/backupfile (Depends-on): Add dirent-safer.
41677         * modules/savedir (Depends-on): Likewise.
41678         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41679         * modules/chdir-long (Depends-on): Add openat-safer.
41680
41681         openat-safer: new module
41682         * modules/openat-safer: New file.
41683         * lib/openat-safer.c: Likewise.
41684         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41685         * lib/fcntl-safer.h (openat_safer): Declare.
41686         * lib/fcntl--.h (openat): Override.
41687         * MODULES.html.sh (File descriptor based I/O): Mention it.
41688         * lib/openat.h: Add double-inclusion guards.
41689         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41690         "fcntl--.h", so we can implement openat.
41691         * modules/openat-safer-tests: New test.
41692         * tests/test-openat-safer.c: New file.
41693
41694         dirent-safer: new module
41695         * modules/dirent-safer: New file.
41696         * lib/dirent--.h: Likewise.
41697         * lib/dirent-safer.h: Likewise.
41698         * lib/opendir-safer.c: Likewise.
41699         * m4/dirent-safer.m4: Likewise.
41700         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41701         * modules/dirent-safer-tests: New test.
41702         * tests/test-dirent-safer.c: New file.
41703         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41704
41705         fdopendir: optimize on mingw
41706         * lib/unistd.in.h (_gl_directory_name): New prototype.
41707         * lib/fchdir.c (_gl_directory_name): Implement it.
41708         (fchdir): Use it to simplify implementation.
41709         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41710         fchdir, when available, to avoid calling [f]chdir().
41711
41712         fdopendir: split into its own module
41713         * lib/openat.c (fdopendir): Move...
41714         * lib/fdopendir.c: ...into new file.
41715         * modules/fdopendir: New module.
41716         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41717         * modules/openat (Depends-on): Add fdopendir.
41718         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41719         fdopendir here.
41720         * modules/savedir (Depends-on): Only need fdopendir, not full
41721         openat.
41722         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41723         * lib/openat.h (fdopendir): Drop prototype.
41724         * lib/dirent.in.h (fdopendir): Provide prototype.
41725         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41726         * modules/dirent (Makefile.am): Substitute them.
41727         * MODULES.html.sh (File system functions): Mention it.
41728         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41729         * modules/fdopendir-tests: New file.
41730         * tests/test-fdopendir.c: Likewise.
41731
41732         fchdir: use more consistent macro convention
41733         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41734         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41735         REPLACE_FCHDIR, rather than relying on config.h macros.
41736         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41737         inside a single make-time REPLACE_FCHDIR block, rather than using
41738         the config.h FCHDIR_REPLACEMENT.
41739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41740         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41741         Manage fstat replacement.
41742         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41743         REPLACE_FCHDIR.
41744         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41745         (Makefile.am): Substitute REPLACE_FCHDIR.
41746         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41747         FCHDIR_REPLACEMENT.
41748         * lib/dup-safer.c (dup_safer): Likewise.
41749         * lib/dup2.c (rpl_dup2): Likewise.
41750         * lib/dup3.c (rpl_dup3): Likewise.
41751         * lib/open.c (rpl_open): Likewise.
41752
41753         fchdir: simplify error handling, and support dup3
41754         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41755         stdbool, malloc-posix, realloc-posix.
41756         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41757         (ensure_dirs_slot): Return false on allocation failure.
41758         (rpl_dup2): Delete.
41759         (_gl_register_dup): New function.
41760         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41761         (_gl_register_fd): Close fd on allocation failure.
41762         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41763         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41764         prototype.
41765         (rpl_dup2_fchdir): Delete prototype.
41766         * lib/open.c (open): Update caller.
41767         * lib/dup2.c (dup2): Track fchdir metadata.
41768         * lib/dup3.c (dup3): Likewise.
41769         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41771
41772 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41773
41774         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41775         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41776         don't pass arguments to AC_OUTPUT.
41777
41778 2009-09-02  Bruno Haible  <bruno@clisp.org>
41779
41780         * modules/mkdtemp (License): Relicense under LGPLv2+.
41781         Reported by Paolo Bonzini.
41782
41783 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41784
41785         Replace uses of obsolete autoconf macros in Jim's modules.
41786         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41787         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41788         can evoke a warning from autoconf when run with -Wobsolete
41789         enabled.  They were declared obsolete for good reasons (see
41790         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41791         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41792         should not continue using the deprecated macros.
41793         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41794         obsolete Autoconf macros with modern counterparts.
41795         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41796         * m4/dos.m4 (gl_AC_DOS): Likewise.
41797         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41798         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41799         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41800         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41801         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41802         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41803         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41804         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41805         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41806         Likewise.
41807         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41808         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41809         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41810         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41811         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41812         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41813
41814 2009-09-01  Eric Blake  <ebb9@byu.net>
41815
41816         fchdir: fix off-by-one bug in previous patch
41817         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41818         (_gl_unregister_fd): Delete useless if.
41819
41820 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41821
41822         maint.mk: sort the list of syntax-check rules
41823         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41824         easier to get a sense of progress when the rules are run sequentially
41825         and take a long time.
41826
41827 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41828
41829         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41830         * modules/netinet_in: Likewise.
41831         * modules/sys_file: Likewise.
41832         * modules/sys_ioctl: Likewise.
41833         * modules/sys_select: Likewise.
41834         * modules/sys_socket: Likewise.
41835         * modules/sys_stat: Likewise.
41836         * modules/sys_time: Likewise.
41837         * modules/sys_times: Likewise.
41838         * modules/sys_utsname: Likewise.
41839         * modules/sys_wait: Likewise.
41840
41841 2009-09-01  Jim Meyering  <meyering@redhat.com>
41842
41843         fts: help ensure that return values are not ignored
41844         * lib/fts_.h (__GNUC_PREREQ): Define.
41845         (__attribute_warn_unused_result__): Define.
41846         (fts_children, fts_close, fts_open, fts_read): Declare with
41847         __attribute_warn_unused_result__.
41848
41849         fts: fts_close now fails also when closing a dir file descriptor fails
41850         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41851         and propagate to caller, along with errno.
41852
41853         announce-gen: correct formatting in --help output
41854         * build-aux/announce-gen (usage): Move the one-line description in
41855         --help output "up", to where it belongs, just after Usage:.
41856
41857 2009-08-31  Eric Blake  <ebb9@byu.net>
41858
41859         fchdir: port to mingw
41860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41861         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41862         opened, then use a substitute.
41863         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41864         replacement.
41865         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41866         (_gl_register_fd): No need to check stat if open already filters
41867         all directories.
41868         (fchdir): Fix error condition to match POSIX.
41869         * modules/fchdir (Depends-on): Add sys_stat.
41870         * doc/posix-functions/open.texi (open): Document the limitation.
41871         * modules/fchdir-tests: New file.
41872         * tests/test-fchdir.c: Likewise.
41873
41874         canonicalize: allow cross-testing from cygwin to mingw
41875         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41876         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41877         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41878         Likewise.
41879         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41880         target does not support symlinks.
41881         * tests/test-canonicalize-lgpl.sh: Likewise.
41882
41883         chown: avoid compilation warning on mingw
41884         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41885         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41886         mingw.
41887         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41888         * modules/chown (Depends-on): Add errno.
41889
41890 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41891
41892         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41893         command.
41894
41895 2009-08-31  Jim Meyering  <meyering@redhat.com>
41896
41897         canonicalize: remove useless initialization
41898         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41899         initialization of local, "end".
41900
41901 2009-08-30  Bruno Haible  <bruno@clisp.org>
41902
41903         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41904         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41905         ENOSYS.
41906
41907 2009-08-30  Bruno Haible  <bruno@clisp.org>
41908
41909         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41910         /usr/xpg4/bin/tr when it exists.
41911         * tests/test-pipe-filter-gi1.sh: Likewise.
41912
41913 2009-08-30  Bruno Haible  <bruno@clisp.org>
41914
41915         Work around deficient /usr/bin/id program on Solaris.
41916         * tests/test-file-has-acl.sh (ID): New variable.
41917         * tests/test-set-mode-acl.sh (ID): Likewise.
41918         * tests/test-copy-acl.sh (ID): Likewise.
41919         * tests/test-copy-file.sh (ID): Likewise.
41920
41921 2009-08-30  Bruno Haible  <bruno@clisp.org>
41922
41923         New module 'xstriconveh'.
41924         * lib/xstriconveh.h: New file.
41925         * lib/xstriconveh.c: New file.
41926         * modules/xstriconveh: New file.
41927
41928 2009-08-30  Bruno Haible  <bruno@clisp.org>
41929
41930         Make it easier to use mem_cd_iconveh.
41931         * lib/striconveh.h (iconveh_t): New type.
41932         (iconveh_open, iconveh_close): New declarations.
41933         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41934         with a single 'const iconveh_t *' argument.
41935         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41936         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41937         with a single 'const iconveh_t *' argument.
41938         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41939         * tests/test-striconveh.c (main): Update.
41940         * NEWS: Mention the change.
41941
41942 2009-08-30  Bruno Haible  <bruno@clisp.org>
41943
41944         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41945         problem.
41946
41947 2009-08-30  Bruno Haible  <bruno@clisp.org>
41948
41949         Work around iconv_open problem on Solaris.
41950         * lib/iconv_open-solaris.gperf: New file.
41951         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41952         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41953         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41954         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41955         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41956         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41957
41958 2009-08-29  Jim Meyering  <meyering@redhat.com>
41959
41960         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41961         * top/maint.mk (cvs-check): Remove target; it was just an alias
41962         to the better-named vc-diff-check.
41963         (maintainer-distcheck): Remove rule.  It was used only from
41964         the (alpha/beta/major) target, and all of its commands but one
41965         were coreutils-specific.
41966         (vc-dist): Remove rule.
41967         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41968         Run vc-diff-check, not vc-dist.
41969         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41970
41971 2009-08-27  Bruno Haible  <bruno@clisp.org>
41972
41973         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41974         of 0.
41975
41976 2009-08-27  Bruno Haible  <bruno@clisp.org>
41977
41978         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41979         compilers.
41980         * doc/func.texi: Document the SunPRO C bug.
41981
41982 2009-08-27  Bruno Haible  <bruno@clisp.org>
41983
41984         Fix link error on Solaris.
41985         * tests/test-parse-duration.c (xstrdup): Remove function.
41986
41987 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41988
41989         ignore-value: handle pointer types, too
41990         * lib/ignore-value.h (__attribute__): Remove definition.
41991         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41992         of a more concise and more-often effective "(void) i" statement.
41993         (ignore_ptr): New function to suppress warnings from functions that
41994         return pointers, and to make it explicit that one function doesn't
41995         handle all cases.
41996
41997 2009-08-25  Bruno Haible  <bruno@clisp.org>
41998
41999         dup2: work around a Linux bug.
42000         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42001         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42002         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42003         Reported by Simon Josefsson.
42004
42005 2009-08-25  Jim Meyering  <meyering@redhat.com>
42006
42007         libguestfs uses gnulib
42008         * users.txt: Add libguestfs.
42009
42010 2009-08-24  Eric Blake  <ebb9@byu.net>
42011
42012         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42013         * lib/pipe2.c (includes): Add binary-io.h.
42014         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42015
42016 2009-08-24  Bruno Haible  <bruno@clisp.org>
42017
42018         Tolerate declared but missing accept4 syscall.
42019         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42020         available.
42021         * lib/sys_socket.in.h (accept4): If the function is already present,
42022         override it.
42023         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42024         * modules/accept4 (Makefile.am): Compile accept4.c always.
42025         Reported by Paolo Bonzini and Eric Blake.
42026
42027 2009-08-23  Bruno Haible  <bruno@clisp.org>
42028
42029         New module 'accept4'.
42030         * lib/sys_socket.in.h (accept4): New declaration.
42031         * lib/accept4.c: New file.
42032         * m4/accept4.m4: New file.
42033         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42034         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42035         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42036         HAVE_ACCEPT4.
42037         * modules/accept4: New file.
42038         * doc/glibc-functions/accept4.texi: Mention the new module.
42039
42040 2009-08-24  Jim Meyering  <meyering@redhat.com>
42041
42042         progname: also set global program_invocation_name, when possible
42043         Before this change, a libtool-enabled program that calls glibc's
42044         error function would report the program name as
42045         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42046         * modules/progname (configure.ac): Check for a declaration of
42047         program_invocation_name.
42048         * lib/progname.c:  Include <errno.h>.
42049         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42050         Set program_invocation_name.
42051
42052 2009-08-23  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/dup3.c: Include <string.h>.
42055
42056 2009-08-23  Bruno Haible  <bruno@clisp.org>
42057
42058         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42059         * lib/pipe2.c (pipe2): Likewise.
42060         Suggested by Eric Blake.
42061
42062 2009-08-23  Bruno Haible  <bruno@clisp.org>
42063
42064         Tolerate declared but missing dup3 syscall.
42065         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42066         * lib/unistd.in.h (dup3): If the function is already present,
42067         override it.
42068         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42069         * modules/dup3 (Makefile.am): Compile dup3.c always.
42070         Reported by Paolo Bonzini.
42071
42072 2009-08-23  Bruno Haible  <bruno@clisp.org>
42073
42074         Tolerate declared but missing pipe2 syscall.
42075         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42076         available.
42077         * lib/unistd.in.h (pipe2): If the function is already present,
42078         override it.
42079         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42080         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42081         Reported by Paolo Bonzini.
42082
42083 2009-08-23  Bruno Haible  <bruno@clisp.org>
42084
42085         * lib/pipe2.c (pipe2): Move #ifs inside function.
42086
42087 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42088
42089         quotearg: document limitations of quote_these_too
42090         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42091         those limitations are created.
42092         * lib/quotearg.h (set_char_quoting): Document that digits and
42093         letters that are special after backslash are not permitted.
42094         (quotearg_char): Cross-reference set_char_quoting documentation.
42095
42096 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42097
42098         quotearg: implement custom_quoting_style
42099         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42100         right_quote fields.
42101         (set_custom_quoting): New public function.
42102         (quotearg_buffer_restyled): Add left_quote and right_quote
42103         arguments, handle them very much like locale quoting, and update
42104         all uses.
42105         (quotearg_n_custom): New public function.
42106         (quotearg_n_custom_mem): New public function.
42107         (quotearg_custom): New public function.
42108         (quotearg_custom_mem): New public function.
42109         * lib/quotearg.h: Prototype and document new public functions.
42110         (enum quoting_style): For escape_quoting_style and
42111         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42112         ignored even though they're otherwise like c_quoting_style.
42113         Add custom_quoting_style member and document with comparison to
42114         clocale_quoting_style.
42115         * tests/test-quotearg.c (custom_quotes): New array.
42116         (custom_results): New array.
42117         (main): Extend to test custom quoting.
42118
42119 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42120
42121         quotearg: fix right quote escaping when it's in quote_these_too
42122         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42123         quote, be sure to prepend only one backslash.
42124         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42125         (main): Test it.
42126
42127 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42128
42129         quotearg-tests: test escaping of embedded locale quotes
42130         * tests/test-quotearg.c (struct result_strings): Add member for
42131         new input.
42132         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42133         (inputs): Add new input.
42134         (results_g): Add expected results.
42135         (flag_results): Likewise.
42136         (locale_results): Likewise.
42137         (compare_strings): Check those.
42138
42139 2009-08-23  Bruno Haible  <bruno@clisp.org>
42140
42141         Tests for module 'dup3'.
42142         * modules/dup3-tests: New file.
42143         * tests/test-dup3.c: New file.
42144
42145         New module 'dup3'.
42146         * lib/unistd.in.h (dup3): New declaration.
42147         * lib/dup3.c: New file.
42148         * m4/dup3.m4: New file.
42149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42150         HAVE_DUP3.
42151         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42152         * modules/dup3: New file.
42153         * doc/glibc-functions/dup3.texi: Mention the new module.
42154
42155 2009-08-23  Bruno Haible  <bruno@clisp.org>
42156
42157         Tweak the dup2 test.
42158         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42159         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42160         the test file is still empty. Fix argument order of lseek.
42161
42162 2009-08-23  Bruno Haible  <bruno@clisp.org>
42163
42164         Avoid test link errors when the modules getopt-gnu, gettext are used.
42165         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42167
42168 2009-08-23  Bruno Haible  <bruno@clisp.org>
42169
42170         Fix getdtablesize() on mingw.
42171         * lib/getdtablesize.c (getdtablesize): Implement differently.
42172         * lib/unistd.in.h (getdtablesize): Improve comment.
42173
42174 2009-08-23  Bruno Haible  <bruno@clisp.org>
42175
42176         New module 'mkostemp'.
42177         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42178         * lib/stdlib.in.h (mksotemp): New declaration.
42179         * lib/mkostemp.c: New file, from glibc with modifications.
42180         * lib/tempname.h (GT_FILE): Remove outdated comment.
42181         (gen_tempname): Add flags argument.
42182         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42183         (__GT_FILE): Map to 1.
42184         (small_open, large_open): Remove macros.
42185         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42186         * lib/mkstemp.c (mkstemp): Update.
42187         * lib/mkdtemp.c (mkdtemp): Likewise.
42188         * m4/mkostemp.m4: New file.
42189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42190         HAVE_MKOSTEMP.
42191         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42192         HAVE_MKOSTEMP.
42193         * modules/mkostemp: New file, based on modules/mkstemp.
42194         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42195         * NEWS: Mention the change.
42196
42197 2009-08-23  Bruno Haible  <bruno@clisp.org>
42198
42199         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42200         Reported by Eric Blake.
42201
42202 2009-08-23  Bruno Haible  <bruno@clisp.org>
42203
42204         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42205         Reported by Eric Blake.
42206
42207 2009-08-23  Bruno Haible  <bruno@clisp.org>
42208
42209         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42210         * modules/pipe2 (Depends-on): Likewise.
42211
42212 2009-08-23  Eric Blake  <ebb9@byu.net>
42213
42214         fcntl-h: add O_TTY_INIT support
42215         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42216         * tests/test-fcntl-h.c (o): Test it.
42217         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42218
42219         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42220         * modules/fcntl: Move <fcntl.h> header replacement...
42221         * modules/fcntl-h: ...to new name, so as not to collide with
42222         like-named function.
42223         * tests/test-fcntl.c: Rename...
42224         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42225         * modules/fcntl-tests: Rename...
42226         * modules/fcntl-h-tests: ...to this.  Update test file name.
42227         * modules/chdir-long (Depends-on): Update clients.
42228         * modules/chdir-safer (Depends-on): Likewise.
42229         * modules/fcntl-safer (Depends-on): Likewise.
42230         * modules/fts (Depends-on): Likewise.
42231         * modules/mkancesdirs (Depends-on): Likewise.
42232         * modules/mkdir-p (Depends-on): Likewise.
42233         * modules/open (Depends-on): Likewise.
42234         * modules/savewd (Depends-on): Likewise.
42235         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42236         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42237
42238 2009-08-22  Bruno Haible  <bruno@clisp.org>
42239
42240         * modules/binary-io (License): Relicense under LGPL.
42241         * modules/pipe2 (License): Likewise.
42242
42243 2009-08-22  Bruno Haible  <bruno@clisp.org>
42244
42245         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42246         return value.
42247         * lib/pipe-filter-gi.c (filter_init): Likewise.
42248         Reported by Eric Blake.
42249
42250 2009-08-22  Bruno Haible  <bruno@clisp.org>
42251
42252         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42253         * modules/pipe (Depends-on): Add pipe2.
42254
42255 2009-08-22  Bruno Haible  <bruno@clisp.org>
42256
42257         Tests for module 'pipe2'.
42258         * modules/pipe2-tests: New file.
42259         * tests/test-pipe2.c: New file.
42260
42261         New module 'pipe2'.
42262         * lib/unistd.in.h (pipe2): New declaration.
42263         * lib/pipe2.c: New file.
42264         * m4/pipe2.m4: New file.
42265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42266         HAVE_PIPE2.
42267         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42268         * modules/pipe2: New file.
42269         * doc/glibc-functions/pipe2.texi: Mention the new module.
42270
42271 2009-08-22  Bruno Haible  <bruno@clisp.org>
42272
42273         Reference some new glibc functions.
42274         * doc/glibc-functions/accept4.texi: New file.
42275         * doc/glibc-functions/dup3.texi: New file.
42276         * doc/glibc-functions/mkostemp.texi: New file.
42277         * doc/glibc-functions/pipe2.texi: New file.
42278         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42279         (Glibc sys/socket.h): Refer to accept4.
42280         (Glibc unistd.h): Refer to dup3, pipe2.
42281         Reported by Eric Blake.
42282
42283 2009-08-22  Jim Meyering  <meyering@redhat.com>
42284             Bruno Haible  <bruno@clisp.org>
42285
42286         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42287         This makes it so packages using automake-1.11's silent-rules option
42288         can print e.g., a single "GEN    configmake.h" line, rather than
42289         the 30+ statements that perform the job.  If you want to see the
42290         actual commands, you can still run "make V=1".
42291         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42292         so that make output is abbreviated when those variables are defined
42293         appropriately.
42294         * modules/argz: Likewise.
42295         * modules/arpa_inet: Likewise.
42296         * modules/byteswap: Likewise.
42297         * modules/configmake: Likewise.
42298         * modules/dirent: Likewise.
42299         * modules/errno: Likewise.
42300         * modules/fcntl: Likewise.
42301         * modules/float: Likewise.
42302         * modules/fnmatch: Likewise.
42303         * modules/getopt-posix: Likewise.
42304         * modules/glob: Likewise.
42305         * modules/iconv_open: Likewise.
42306         * modules/inttypes: Likewise.
42307         * modules/localcharset: Likewise.
42308         * modules/locale: Likewise.
42309         * modules/math: Likewise.
42310         * modules/netdb: Likewise.
42311         * modules/netinet_in: Likewise.
42312         * modules/poll: Likewise.
42313         * modules/posix_spawnp-tests: Likewise.
42314         * modules/sched: Likewise.
42315         * modules/search: Likewise.
42316         * modules/selinux-h: Likewise.
42317         * modules/signal: Likewise.
42318         * modules/spawn: Likewise.
42319         * modules/stdarg: Likewise.
42320         * modules/stdbool: Likewise.
42321         * modules/stddef: Likewise.
42322         * modules/stdint: Likewise.
42323         * modules/stdio: Likewise.
42324         * modules/stdlib: Likewise.
42325         * modules/string: Likewise.
42326         * modules/strings: Likewise.
42327         * modules/sys_file: Likewise.
42328         * modules/sys_ioctl: Likewise.
42329         * modules/sys_select: Likewise.
42330         * modules/sys_socket: Likewise.
42331         * modules/sys_stat: Likewise.
42332         * modules/sys_time: Likewise.
42333         * modules/sys_times: Likewise.
42334         * modules/sys_utsname: Likewise.
42335         * modules/sys_wait: Likewise.
42336         * modules/sysexits: Likewise.
42337         * modules/time: Likewise.
42338         * modules/unistd: Likewise.
42339         * modules/wchar: Likewise.
42340         * modules/wctype: Likewise.
42341
42342 2009-08-22  Jim Meyering  <meyering@redhat.com>
42343
42344         announce-gen: detect write failure
42345         * build-aux/announce-gen: Add Coda at end.
42346         Remove equivalent-but-more-verbose block at top.
42347
42348 2009-08-19  Akim Demaille  <demaille@gostai.com>
42349
42350         bootstrap: --help to stdout.
42351         * bootstrap (usage): Don't send --help to stderr.
42352         Use a here doc instead of a long string.
42353
42354 2009-08-21  Eric Blake  <ebb9@byu.net>
42355
42356         test-popen-safer: split from test-popen
42357         * tests/test-popen.c (main): Move...
42358         * tests/test-popen.h: ...into new file.
42359         * tests/test-popen-safer2.c: New file.
42360         * modules/popen-tests (Files): Add test-popen.h.
42361         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42362         Suggested by Bruno Haible.
42363
42364         test-fcntl-safer: split from test-open
42365         * tests/test-open.c (main): Move...
42366         * tests/test-open.h: ...into new file.
42367         * tests/test-fcntl-safer.c: New file.
42368         * modules/open-tests (Files): Add test-open.h.
42369         * modules/fcntl-safer-tests: New file.
42370         Suggested by Bruno Haible.
42371
42372         test-fopen-safer: split from test-fopen
42373         * tests/test-fopen.c (main): Move...
42374         * tests/test-fopen.h: ...into new file.
42375         * tests/test-fopen-safer.c: New file.
42376         * modules/fopen-tests (Files): Add test-fopen.h.
42377         * modules/fopen-safer-tests: New file.
42378         Suggested by Bruno Haible.
42379
42380 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42381
42382         popen-safer: test O_CLOEXEC at run-time.
42383         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42384
42385 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42386
42387         fcntl: move more flags to the header
42388         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42389         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42390         * lib/fcntl.in.h: Do both things here.
42391
42392 2009-08-21  Jim Meyering  <meyering@redhat.com>
42393
42394         consistently remove $@-t before redirecting to it
42395         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42396         * modules/alloca-opt: Likewise.
42397         * modules/byteswap: Likewise.
42398         * modules/fnmatch: Likewise.
42399         * modules/getopt-posix: Likewise.
42400         * modules/glob: Likewise.
42401         * modules/poll: Likewise.
42402         * modules/posix_spawnp-tests: Likewise.
42403         * modules/sys_socket: Likewise.
42404         * modules/sysexits: Likewise.
42405
42406 2009-08-21  Eric Blake  <ebb9@byu.net>
42407
42408         popen: simplify access to original popen
42409         * lib/popen.c (rpl_popen): No need to worry about popen being a
42410         macro.
42411         Reported by Bruno Haible.
42412
42413 2009-08-20  Eric Blake  <ebb9@byu.net>
42414
42415         build: avoid some compiler warnings
42416         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42417         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42418         type.
42419         (new_exclude_segment, excluded_file_pattern_p)
42420         (excluded_file_name_p): Reduce scope.
42421         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42422         old-style declaration.
42423
42424 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42425
42426         * tests/test-exclude1.sh: Handle Windows EOL.
42427         * tests/test-exclude2.sh: Likewise.
42428         * tests/test-exclude3.sh: Likewise.
42429         * tests/test-exclude4.sh: Likewise.
42430         * tests/test-exclude5.sh: Likewise.
42431         * tests/test-exclude6.sh: Likewise.
42432         * tests/test-exclude7.sh: Likewise.
42433
42434 2009-08-19  Akim Demaille  <demaille@gostai.com>
42435
42436         bootstrap: find sha1sum when named gsha1sum.
42437         * bootstrap (find_tool): New.
42438         ($SHA1SUM): New.
42439         Use it.
42440
42441 2009-08-20  Jim Meyering  <meyering@redhat.com>
42442
42443         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42444         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42445         expression that converts "." in a file name to "\." in the resulting
42446         regexp.  Start with a dummy statement, so that prior shell variable
42447         definitions are expanded portably.  Reported by Simon Josefsson.
42448
42449 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42450
42451         Fix polling for writeability of a screen buffer.
42452         * lib/poll.c: Distinguish input and screen buffers for the
42453         Win32 implementation.
42454         * lib/select.c: Likewise.
42455
42456 2009-08-19  Eric Blake  <ebb9@byu.net>
42457
42458         popen-safer: prevent popen from clobbering std descriptors
42459         * modules/popen-safer: New file.
42460         * lib/popen-safer.c: Likewise.
42461         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42462         * lib/stdio--.h (popen): Provide override.
42463         * lib/stdio-safer.h (popen_safer): Provide declaration.
42464         * tests/test-popen.c (includes): Partially test this.
42465         * modules/popen-safer-tests: New file, for more tests.
42466         * tests/test-popen-safer.c: Likewise.
42467         * MODULES.html.sh (file stream based Input/Output): Mention it.
42468
42469         tests: test some of the *-safer modules
42470         * modules/fopen-safer (Depends-on): Add fopen.
42471         * modules/fcntl-safer (Depends-on): Add fcntl.
42472         * modules/stdlib-safer (Depends-on): Add stdlib.
42473         (configure.ac): Set indicator.
42474         * modules/unistd-safer (configure.ac): Likewise.
42475         * modules/tmpfile-safer (configure.ac): Likewise.
42476         (Depends-on): Add tmpfile.
42477         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42478         active.
42479         * tests/test-fopen.c (includes): Test safer versions when they are
42480         in use.
42481         * tests/test-open.c (includes): Likewise.
42482
42483         popen: fix cygwin 1.5 bug when stdin closed
42484         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42485         * modules/popen: New file.
42486         * modules/popen-tests: Likewise.
42487         * tests/test-popen.c: Likewise.
42488         * m4/popen.m4: Likewise.
42489         * lib/popen.c: Likewise.
42490         * lib/stdio.in.h (popen): New declaration.
42491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42492         * modules/stdio (Makefile.am): Likewise.
42493         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42494
42495 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42496
42497         maint.mk: give full control over update-copyright exclusions
42498         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42499         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42500         (update-copyright): Don't force inclusion of top-level
42501         ChangeLog.  Don't force exclusion of all COPYING files, but make
42502         them the default exclusion instead.
42503
42504 2009-08-16  Bruno Haible  <bruno@clisp.org>
42505
42506         Fix test failures on Solaris 10.
42507         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42508         tests when Solaris iconv() is used.
42509         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42510         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42511         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42512         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42513         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42514
42515 2009-08-16  Bruno Haible  <bruno@clisp.org>
42516
42517         Fix test failures on Solaris 10.
42518         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42519         'tr' program and pass it as first argument.
42520         * tests/test-pipe-filter-gi1.sh: Likewise.
42521         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42522         program as first argument.
42523         * tests/test-pipe-filter-gi1.c (main): Likewise.
42524
42525 2009-08-16  Eric Blake  <ebb9@byu.net>
42526
42527         fpurge: fix previous commits
42528         * modules/fpurge (Makefile.am): Make replacement conditional,
42529         partially reverting 2007-04-29 change; missed in previous
42530         attempt.
42531         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42532         is missing.
42533
42534 2009-08-16  Bruno Haible  <bruno@clisp.org>
42535
42536         Clarify fpurge's effect on the file position.
42537         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42538         * tests/test-fpurge.c (main): Make a second pass for checking the file
42539         position.
42540
42541 2009-08-16  Bruno Haible  <bruno@clisp.org>
42542
42543         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42544         declaration of fpurge is missing.
42545         * tests/test-fpurge.c (main): Check that the file has not more contents
42546         than expected. Close the file before removing it.
42547
42548 2009-08-15  Eric Blake  <ebb9@byu.net>
42549
42550         fpurge: don't wrap working cygwin implementation
42551         * lib/fpurge.c (fpurge): Fix comment typo.
42552         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42553         1.7 to avoid replacement.
42554         * tests/test-fpurge.c (main): Enhance test.
42555
42556 2009-08-15  Eric Blake  <ebb9@byu.net>
42557         and Jim Meyering  <meyering@redhat.com>
42558
42559         test-update-copyright: skip if perl is insufficient
42560         * tests/test-update-copyright.sh: Failure to run maintainer tool
42561         should not cause testsuite failure on cygwin 1.5.
42562
42563 2009-08-14  Eric Blake  <ebb9@byu.net>
42564
42565         doc: mention more functions added in cygwin 1.7.0
42566         * doc/posix-headers/limits.texi (limits.h): Update for recent
42567         cygwin additions.
42568         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42569         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42570         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42571         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42572         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42573
42574 2009-08-14  Eric Blake  <ebb9@byu.net>
42575
42576         maint.mk: simplify update-copyright rule
42577         * top/maint.mk (update-copyright-local): Delete, and document how
42578         to do it in cfg.mk instead.
42579         (update-copyright-exclude-regexp): Delete, and document how to do
42580         it in .x-update-copyright instead.
42581         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42582         exclude ChangeLog.
42583
42584 2009-08-14  Bruno Haible  <bruno@clisp.org>
42585
42586         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42587
42588 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42589
42590         maint.mk: support update-copyright-env
42591         * top/maint.mk (update-copyright-env): Define place-holder.
42592         (update-copyright): Expand $(update-copyright-env) before
42593         invoking update-copyright.
42594
42595 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42596
42597         update-copyright: implement forced reformatting
42598         * build-aux/update-copyright: Implement and document
42599         UPDATE_COPYRIGHT_FORCE.
42600         * tests/test-update-copyright.sh: Test it.
42601
42602 2009-08-14  Eric Blake  <ebb9@byu.net>
42603         and Bruno Haible  <bruno@clisp.org>
42604
42605         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42606         * tests/test-locale.c: Revert previous patch related to NULL.
42607         * tests/test-stdio.c: Likewise.
42608         * tests/test-stdlib.c: Likewise.
42609         * tests/test-string.c: Likewise.
42610         * tests/test-unistd.c: Likewise.
42611         * modules/time-tests (Depends-on): Add verify.
42612         * modules/wchar-tests (Depends-on): Likewise.
42613         * tests/test-time.c: Test for NULL compliance.
42614         * tests/test-wchar.c: Likewise.
42615         * modules/locale (Depends-on): Add stddef.
42616         * modules/stdio (Depends-on): Likewise.
42617         * modules/stdlib (Depends-on): Likewise.
42618         * modules/string (Depends-on): Likewise.
42619         * modules/time (Depends-on): Likewise.
42620         * modules/unistd (Depends-on): Likewise.
42621         * modules/wchar (Depends-on): Likewise.
42622         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42623         * lib/stdlib.in.h (includes): Likewise.
42624         * lib/string.in.h (includes): Likewise.
42625         * lib/time.in.h (includes): Likewise.
42626         * lib/unistd.in.h (includes): Likewise.
42627         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42628         replaced.
42629         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42630         * m4/stddef_h.m4: New file.
42631         * modules/stddef: Likewise.
42632         * lib/stddef.in.h: Likewise.
42633         * modules/stddef-tests: Likewise.
42634         * tests/test-stddef.c: Likewise.
42635         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42636         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42637         * doc/posix-headers/locale.texi (locale.h): Likewise.
42638         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42639         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42640         * doc/posix-headers/string.texi (string.h): Likewise.
42641         * doc/posix-headers/time.texi (time.h): Likewise.
42642         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42643         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42644
42645 2009-08-14  Eric Blake  <ebb9@byu.net>
42646
42647         doc: improve git diff of texinfo files
42648         * .gitattributes: Add rule for *.texi files, with hint on how to
42649         use it.
42650         Copied from m4, and based on a report by Bruno Haible.
42651
42652 2009-08-14  Bruno Haible  <bruno@clisp.org>
42653
42654         Disable multithread support by default on Cygwin 1.5.x for real.
42655         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42656
42657 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42658
42659         update-copyright: much ado about intervals
42660         * build-aux/update-copyright: Implement and document
42661         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42662         of copyright year intervals.
42663         Also, document UPDATE_COPYRIGHT_YEAR.
42664         * tests/test-update-copyright.sh: Test it.
42665
42666         update-copyright: convert 2-digit to 4-digit years
42667         * build-aux/update-copyright: Implement and document.
42668         * tests/test-update-copyright.sh: Update.
42669
42670 2009-08-14  Jim Meyering  <meyering@redhat.com>
42671
42672         test-exclude: avoid coreutils "make check" failure
42673         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42674         just as in test-argmatch.c.
42675
42676 2009-08-13  Eric Blake  <ebb9@byu.net>
42677
42678         test-dup2: fix bad assumption
42679         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42680         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42681
42682         test-version-etc: fix CRLF portability issue
42683         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42684         recognize \r.
42685         * tests/test-argp-version-etc-1.sh: Likewise.
42686
42687         getopt: update client modules
42688         * modules/argp (Depends-on): Use getopt-gnu.
42689         * modules/git-merge-changelog (Depends-on): Likewise.
42690         * modules/long-options (Depends-on): Likewise.
42691         * modules/xstrtol (Depends-on): Likewise.
42692
42693 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42694
42695         * tests/test-version-etc.sh: Don't fail on different
42696         project/version.  Don't fail on CRLF differences.  Rewrite to use
42697         multiple -e instead of multiple sed forks, suggested by Eric Blake
42698         <ebb9@byu.net>.
42699         * tests/test-argp-version-etc-1.sh: Likewise.
42700
42701 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42702
42703         * tests/test-version-etc.sh: Don't fail on different
42704         project/version.
42705
42706 2009-08-12  Bruno Haible  <bruno@clisp.org>
42707
42708         Tests for modules 'getopt-posix', 'getopt-gnu'.
42709         * modules/getopt-posix-tests: New file.
42710         * tests/test-getopt.c: New file.
42711         * tests/test-getopt.h: New file.
42712         * tests/test-getopt_long.h: New file.
42713
42714         New modules 'getopt-posix', 'getopt-gnu'.
42715         * modules/getopt-gnu: New file, renamed from modules/getopt.
42716         * modules/getopt-posix: New file.
42717         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42718         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42719         (gl_GETOPT): Remove macro.
42720         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42721         Disable the test against BSD systems that declare optreset. Test
42722         against mingw bug. Test against lack of support of optional arguments
42723         on many platforms.
42724         * doc/glibc-headers/getopt.texi: Update module name and list of
42725         relevant platforms.
42726         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42727         'getopt-gnu' and more portability problems.
42728         * NEWS: Mention the changes.
42729
42730 2009-08-12  Bruno Haible  <bruno@clisp.org>
42731
42732         Ensure that optarg etc. get declared by <unistd.h>.
42733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42734         AC_USE_SYSTEM_EXTENSIONS.
42735         * modules/getopt (Depends-on): Add 'extensions'.
42736
42737 2009-08-12  Bruno Haible  <bruno@clisp.org>
42738
42739         Avoid test link errors.
42740         * modules/pipe-filter-ii-tests (Makefile.am): Define
42741         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42742         * modules/pipe-filter-gi-tests (Makefile.am): Define
42743         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42745
42746 2009-08-12  Bruno Haible  <bruno@clisp.org>
42747
42748         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42749         gl_GETOPT_SUBSTITUTE before.
42750         (gl_GETOPT): Use it.
42751         * m4/argp.m4 (gl_ARGP): Update.
42752         Reported by Sergey Poznyakoff.
42753
42754         * m4/getopt.m4: Reorder macros.
42755         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42756         (gl_GETOPT_SUBSTITUTE): Remove macro.
42757
42758 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42759
42760         Minor improvement in gitlog-to-changelog
42761
42762         * build-aux/gitlog-to-changelog: New option `--format' makes
42763         output format string configurable.
42764
42765 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42766
42767         Optimize exclude: use hash tables for non-wildcard patterns.
42768
42769         * lib/exclude.c: Include hash.h and mbuiter.h
42770         (struct exclude_pattern, exclude_segment): New data types.
42771         (struct exclude): Rewrite.
42772         (fnmatch_pattern_has_wildcards): New function.
42773         (new_exclude_segment, free_exclude_segment): New functions.
42774         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42775         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42776         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42777         * modules/exclude: Depend on hash and mbuiter.
42778
42779         * modules/exclude-tests: New file.
42780         * tests/test-exclude.c: New file.
42781         * tests/test-exclude1.sh: New file.
42782         * tests/test-exclude2.sh: New file.
42783         * tests/test-exclude3.sh: New file.
42784         * tests/test-exclude4.sh: New file.
42785         * tests/test-exclude5.sh: New file.
42786         * tests/test-exclude6.sh: New file.
42787         * tests/test-exclude7.sh: New file.
42788
42789 2009-08-12  Bruno Haible  <bruno@clisp.org>
42790
42791         Ensure that getopt() gets declared by <unistd.h>.
42792         * lib/unistd.in.h: Conditionally include getopt.h.
42793         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42794         Set GNULIB_UNISTD_H_GETOPT.
42795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42796         GNULIB_UNISTD_H_GETOPT.
42797         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42798
42799 2009-08-12  Bruno Haible  <bruno@clisp.org>
42800
42801         Clarify logic.
42802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42803         gl_replace_getopt instead of GETOPT_H.
42804
42805 2009-08-12  Bruno Haible  <bruno@clisp.org>
42806
42807         * m4/getopt.m4: Add comments.
42808
42809 2009-08-12  Bruno Haible  <bruno@clisp.org>
42810
42811         Disable multithread support by default on Cygwin 1.5.x.
42812         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42813         set gl_use_threads=no if not specified otherwise.
42814
42815 2009-08-11  Bruno Haible  <bruno@clisp.org>
42816
42817         Avoid compilation error on NetBSD 5.0.
42818         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42819         * tests/test-stdio.c: Likewise.
42820         * tests/test-stdlib.c: Likewise.
42821         * tests/test-string.c: Likewise.
42822         * tests/test-unistd.c: Likewise.
42823         Reported by Greg Troxel <gdt@ir.bbn.com>
42824         at <https://savannah.gnu.org/support/?106973>.
42825
42826 2009-08-11  Bruno Haible  <bruno@clisp.org>
42827
42828         * modules/dup2-tests (Depends-on): Remove close.
42829
42830         Undo 2009-07-19 commit.
42831         * modules/acl-tests (Depends-on): Remove close.
42832         * modules/binary-io-tests (Depends-on): Likewise.
42833         * modules/closein-tests (Depends-on): Likewise.
42834         * modules/flock-tests (Depends-on): Likewise.
42835         * modules/fsync-tests (Depends-on): Likewise.
42836         * modules/lseek-tests (Depends-on): Likewise.
42837         * modules/pipe-tests (Depends-on): Likewise.
42838         * modules/posix_spawn-tests (Depends-on): Likewise.
42839         * modules/posix_spawnp-tests (Depends-on): Likewise.
42840         * modules/stat-time-tests (Depends-on): Likewise.
42841         * modules/yesno-tests (Depends-on): Likewise.
42842
42843 2009-08-10  Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42846
42847 2009-08-10  Bruno Haible  <bruno@clisp.org>
42848
42849         Fix a gcc warning.
42850         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42851
42852 2009-08-10  Bruno Haible  <bruno@clisp.org>
42853
42854         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42855         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42856         not only the first time.
42857         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42858         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42859         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42860         is 1, not only the the first time.
42861
42862 2009-08-10  Bruno Haible  <bruno@clisp.org>
42863
42864         Make it possible to use module 'gethostname' without module 'close'.
42865         * lib/unistd.in.h (close): Evoke a link error only if
42866         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42868         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42869         * modules/unistd (Makefile.am): Substitute
42870         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42871         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42872         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42873         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42874         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42875         * modules/sys_ioctl (Makefile.am): Substitute
42876         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42877         * modules/socket (configure.ac): On native Windows, set
42878         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42879         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42880         Reported by Sam Steingold <sds@gnu.org>.
42881
42882 2009-08-10  Bruno Haible  <bruno@clisp.org>
42883
42884         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42885         * modules/ioctl (configure.ac): Likewise.
42886
42887 2009-08-10  Bruno Haible  <bruno@clisp.org>
42888
42889         Avoid collision between gnulib wrapper and libintl wrapper.
42890         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42891         already defined in intl/printf.c.
42892         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42893         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42894
42895 2009-08-09  Bruno Haible  <bruno@clisp.org>
42896
42897         Make <sys/select.h> really self-contained, also on Solaris 10.
42898         * lib/sys_select.in.h: Include <string.h>.
42899         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42900         Solaris 10 problem.
42901         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42902         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42903         Reported by Jim Meyering.
42904
42905 2009-08-09  Bruno Haible  <bruno@clisp.org>
42906
42907         Avoid warnings from 'aclocal' that are due to a use of macro name
42908         AM_XGETTEXT_OPTION that is not defined in automake.
42909         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42910         automake.
42911         * modules/error (configure.ac): Likewise.
42912         * modules/propername (configure.ac): Likewise.
42913         * modules/vasprintf (configure.ac): Likewise.
42914         * modules/verror (configure.ac): Likewise.
42915         * modules/xprintf (configure.ac): Likewise.
42916         * modules/xvasprintf (configure.ac): Likewise.
42917
42918 2009-08-08  Bruno Haible  <bruno@clisp.org>
42919
42920         Avoid compilation error in C++ mode.
42921         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42922         Reported by Sam Steingold <sds@gnu.org>.
42923
42924 2009-08-08  Bruno Haible  <bruno@clisp.org>
42925
42926         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42927         for the various Unix platforms.
42928         * doc/posix-headers/limits.texi: Update platforms list regarding
42929         HOST_NAME_MAX.
42930         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42931
42932 2009-08-07  Jim Meyering  <meyering@redhat.com>
42933
42934         selinux-at: fix typo in a comment
42935         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42936         Spotted by Paolo Bonzini.
42937
42938         selinux-at: remove redundant m4 code, add documentation
42939         * modules/selinux-at (configure.ac): Remove redundant code.
42940         LIB_SELINUX is already set via the dependent module, selinux-h.
42941         (Include): Add quotes around selinux-at.h.
42942         * lib/selinux-at.h: Add documentation.
42943         Reported by Bruno Haible in
42944         http://marc.info/?l=gnulib-bug&m=124958988300749
42945
42946 2009-08-07  Bruno Haible  <bruno@clisp.org>
42947
42948         Avoid link error on MacOS X 10.3 and 10.4.
42949         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42950         on non-ELF systems.
42951         * lib/argp-pv.c (argp_program_version): Likewise.
42952         Reported by Simon Josefsson.
42953
42954 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42955
42956         * tests/test-version-etc.sh: Use $EXEEXT.
42957
42958 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42959
42960         update-copyright: update documentation to point to maint.mk
42961         * build-aux/update-copyright: Here.
42962
42963 2009-08-06  Jim Meyering  <meyering@redhat.com>
42964
42965         maint.mk: support update-copyright-local
42966         * top/maint.mk (update-copyright-local): Define place-holder.
42967         (update-copyright): Depend on $(update-copyright-local).
42968
42969 2009-08-06  Jim Meyering  <meyering@redhat.com>
42970
42971         selinux-at: new module
42972         Initially written for coreutils, this module will soon be
42973         used by findutils, too.
42974         * MODULES.html.sh [Misc]: Add selinux-at.
42975         * lib/selinux-at.h: New file, from coreutils.
42976         * lib/selinux-at.c: Likewise.
42977         * modules/selinux-at: Likewise.
42978         (License): Change from LGPL to GPL, since it depends
42979         on the GPL'd openat module.
42980
42981         doc: update README
42982         * README: Remove references to cogito.
42983         Remove cvs-repo-updating instructions from 2007.
42984         Don't imply that CVS is better if you have limited disk space.
42985
42986 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42987
42988         update-copyright: support C-style comments
42989         * build-aux/update-copyright: Implement and document.
42990         * tests/test-update-copyright.sh: Test.
42991
42992 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42993
42994         update-copyright: support omitted "(C)"
42995         * build-aux/update-copyright: Implement and document.  Also,
42996         allow variable whitespace before "(C)".
42997         * tests/test-update-copyright.sh: Test.
42998
42999 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43000
43001         update-copyright: don't trip on non-FSF copyright statements
43002         * build-aux/update-copyright: Fix so that the first correctly
43003         formatted FSF copyright statement is recognized no matter what
43004         appears before it.  Update documentation.
43005         * tests/test-update-copyright.sh: Test that.
43006
43007 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43008
43009         update-copyright: clean up code a little
43010         * build-aux/update-copyright: Append "_re" to the name of any
43011         variable holding a regular expression.
43012         Replace "old" and "new" with "stmt" in variable names.
43013         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43014         handled correctly.
43015         Format code more consistently.
43016
43017 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43018
43019         update-copyright-tests: improve portability
43020         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43021         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43022
43023 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43024
43025         update-copyright: support @copyright{} and &copy;
43026         * build-aux/update-copyright: Implement and document.
43027         * tests/test-update-copyright.sh: Test.
43028
43029 2009-08-04  Jim Meyering  <meyering@redhat.com>
43030
43031         update-copyright-tests: correctly test EOL=\r\n handling
43032         * tests/test-update-copyright.sh: Put \r at the end of some lines
43033         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43034
43035         maint.mk: make update-copyright exclusion list more configurable
43036         * top/maint.mk (update-copyright): Default to excluding COPYING,
43037         but allow an override, in case someone does want to update that file.
43038
43039         maint.mk: don't update copyright date in COPYING
43040         * top/maint.mk (update-copyright): Exclude COPYING.
43041
43042         maint.mk: add a copyright-updating rule
43043         * top/maint.mk (update-copyright): New rule.
43044         Derived from coreutils/Makefile.am.
43045
43046         update-copyright: rename some variables
43047         * build-aux/update-copyright: Rename a few variables for clarity.
43048         Tweak syntax.  List Joel E. Denny as coauthor.
43049
43050 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43051
43052         update-copyright: fix bug for 2-digit last year and add tests
43053         * build-aux/update-copyright: Fix bug.
43054         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43055         specified.
43056         * modules/update-copyright-tests: New
43057         * tests/test-update-copyright.sh: New.
43058
43059 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43060
43061         update-copyright: handle leading tabs in line prefix
43062         * build-aux/update-copyright: Count leading tabs as 8 spaces
43063         when computing margin.  This helps with the formatting of
43064         ChangeLogs, for example.
43065         Fix documentation a little.
43066
43067 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43068
43069         update-copyright: support EOL=\r\n
43070         * build-aux/update-copyright: Implement that.
43071
43072 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43073
43074         update-copyright: automatically format copyright statements
43075         * build-aux/update-copyright: Implement that.
43076         Also, be a little more predictable and safer by always failing
43077         when the full copyright format is not perfectly recognized as an
43078         unbroken whole.  Discussed at
43079         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43080         Rewrite documentation.
43081
43082 2009-08-03  Bruno Haible  <bruno@clisp.org>
43083
43084         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43085
43086 2009-08-02  Bruno Haible  <bruno@clisp.org>
43087
43088         Tests for module 'uname'.
43089         * modules/uname-tests: New file.
43090         * tests/test-uname.c: New file.
43091
43092         New module 'uname'.
43093         * lib/uname.c: New file.
43094         * m4/uname.m4: New file.
43095         * modules/uname: New file.
43096         * doc/posix-functions/uname.texi: Mention the new module.
43097
43098 2009-08-02  Bruno Haible  <bruno@clisp.org>
43099
43100         Tests for module 'sys_utsname'.
43101         * modules/sys_utsname-tests: New file.
43102         * tests/test-sys_utsname.c: New file.
43103
43104         New module 'sys_utsname'.
43105         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43106         * m4/sys_utsname_h.m4: New file.
43107         * modules/sys_utsname: New file.
43108         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43109
43110 2009-08-02  Bruno Haible  <bruno@clisp.org>
43111
43112         Implicitly initialize the sockets library.
43113         * lib/gethostname.c: Include sockets.h.
43114         (rpl_gethostname): Invoke gl_sockets_startup.
43115         * lib/socket.c: Include sockets.h.
43116         (rpl_socket): Invoke gl_sockets_startup.
43117         * modules/gethostname (Depends-on): Add sockets.
43118         * modules/socket (Depends-on): Likewise.
43119         * tests/test-poll.c: Don't include sockets.h.
43120         (main): Don't invoke gl_sockets_startup.
43121         * tests/test-select.c: Don't include sockets.h.
43122         (main): Don't invoke gl_sockets_startup.
43123
43124 2009-08-02  Bruno Haible  <bruno@clisp.org>
43125
43126         Allow multiple calls to gl_sockets_startup.
43127         * lib/sockets.c (initialized_sockets_version): New variable.
43128         (gl_sockets_startup): Do nothing if already called for this or a higher
43129         version.
43130         (gl_sockets_cleanup): Reset initialized_sockets_version.
43131
43132 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43133
43134         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43135         different project/version.
43136
43137 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43138             Bruno Haible  <bruno@clisp.org>
43139
43140         Tests for module 'pipe-filter-gi'.
43141         * modules/pipe-filter-gi-tests: New file.
43142         * tests/test-pipe-filter-gi1.sh: New file.
43143         * tests/test-pipe-filter-gi1.c: New file.
43144         * tests/test-pipe-filter-gi2.sh: New file.
43145         * tests/test-pipe-filter-gi2-main.c: New file.
43146         * tests/test-pipe-filter-gi2-child.c: New file.
43147
43148         New module 'pipe-filter-gi'.
43149         * lib/pipe-filter-gi.c: New file.
43150         * modules/pipe-filter-gi: New file.
43151
43152 2009-08-02  Bruno Haible  <bruno@clisp.org>
43153             Paolo Bonzini  <bonzini@gnu.org>
43154
43155         Tests for module 'pipe-filter-ii'.
43156         * modules/pipe-filter-ii-tests: New file.
43157         * tests/test-pipe-filter-ii1.sh: New file.
43158         * tests/test-pipe-filter-ii1.c: New file.
43159         * tests/test-pipe-filter-ii2.sh: New file.
43160         * tests/test-pipe-filter-ii2-main.c: New file.
43161         * tests/test-pipe-filter-ii2-child.c: New file.
43162
43163         New module 'pipe-filter-ii'.
43164         * lib/pipe-filter.h: New file.
43165         * lib/pipe-filter-ii.c: New file.
43166         * lib/pipe-filter-aux.h: New file.
43167         * modules/pipe-filter-ii: New file.
43168
43169 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43170
43171         * lib/gc-libgcrypt.c: Change copyright to FSF.
43172         * lib/gc-gnulib.c: Likewise.
43173
43174 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43175
43176         * lib/gethostname.c: Include limits.h.
43177
43178 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43179             Bruno Haible  <bruno@clisp.org>
43180
43181         Ensure HOST_NAME_MAX as part of the gethostname module.
43182         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43183         define also HOST_NAME_MAX.
43184         * tests/test-gethostname.c: Include <limits.h>.
43185         (main): Check also HOST_NAME_MAX.
43186         * doc/posix-headers/limits.texi: Document the mingw problem.
43187
43188 2009-08-02  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43191         Add comments.
43192
43193 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43194
43195         * lib/gethostname.c: Add Windows wrapper.
43196         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43197         * modules/gethostname: Depend on sys_socket & errno, for also
43198         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43199         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43200
43201 2009-07-31  Jim Meyering  <meyering@redhat.com>
43202
43203         getloadavg: fix symbol name in comment
43204         * lib/getloadavg.c: Correct a typo I introduced when adding
43205         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43206         Matt Kraai spotted the problem.
43207
43208 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43209
43210         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43211         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43212         code also if ! defined N_NAME_POINTER.
43213         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43214         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43215         but the n_name member is a 12-byte array.
43216
43217 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43218
43219         update-copyright: generalize comment handling
43220         * build-aux/update-copyright: Handle copyright statements
43221         within more comment styles.
43222         Document usage.
43223         Report any file with an external copyright holder or parse failure.
43224
43225 2009-07-29  Jim Meyering  <meyering@redhat.com>
43226
43227         mktime: correct setting of REPLACE_MKTIME
43228         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43229
43230         update-copyright: new module
43231         * modules/update-copyright: New file.
43232         * build-aux/update-copyright: New file.
43233         * MODULES.html.sh (maint+release support): Add update-copyright.
43234
43235 2009-07-27  Bruno Haible  <bruno@clisp.org>
43236
43237         Fix compilation error when <ctime> is used and mktime is replaced.
43238         * lib/time.in.h (mktime): New declaration.
43239         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43240         REPLACE_MKTIME instead of defining mktime in config.h.
43241         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43242         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43243         Reported by Ross McFarland <rwmcfa1@neces.com>.
43244
43245 2009-07-27  Bruno Haible  <bruno@clisp.org>
43246
43247         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43248         Reported by Matt Kraai <mkraai@beckman.com>.
43249
43250 2009-07-25  Jim Meyering  <meyering@redhat.com>
43251
43252         maint.mk: avoid warnings about missing files
43253         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43254         diagnostic when .prev-version does not exist.
43255         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43256         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43257         nonexistent cfg.mk.
43258         Suggestions from Simon Josefsson.
43259
43260 2009-07-25  Bruno Haible  <bruno@clisp.org>
43261
43262         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43263         defined as macros. Needed on QNX 6.4.1.
43264         Reported by Matt Kraai <mkraai@beckman.com>.
43265
43266 2009-07-23  Jim Meyering  <meyering@redhat.com>
43267
43268         maint.mk: invoke "make dist" with a working value of XZ_OPT
43269         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43270
43271 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43272
43273         Make fseeko.c compile on QNX.
43274         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43275
43276 2009-07-22  Peter Simons  <simons@cryp.to>
43277
43278         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43279         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43280         * lib/md4.h: Likewise.
43281         * lib/md5.h: Likewise.
43282         * lib/sha1.h: Likewise.
43283         * lib/sha256.h: Likewise.
43284         * lib/sha512.h: Likewise.
43285
43286         tests-sha1: don't assign literal string to 'char *' variable
43287         * tests/test-sha1.c (main): Declare locals with "const" to match
43288         attributes of the right hand side.
43289
43290 2009-07-21  Eric Blake  <ebb9@byu.net>
43291
43292         dup2: fix more mingw problems
43293         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43294         fd to itself.
43295         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43296         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43297         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43298         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43299         care of mingw bugs.
43300
43301 2009-07-21  Jim Meyering  <meyering@redhat.com>
43302
43303         vc-list-files: avoid failure when /bin/sh is dash
43304         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43305         On some Debian based systems, /bin/sh is a symlink to dash, and running
43306         this command would omit the "/" following each 'tests' prefix:
43307           dash -x build-aux/vc-list-files -C . tests
43308         That is because bash and dash work differently:
43309           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43310           bash ok
43311           dash odd
43312
43313 2009-07-21  Eric Blake  <ebb9@byu.net>
43314
43315         dup2-tests: test previous patch
43316         * modules/dup2-tests: New file.
43317         * tests/test-dup2.c: Likewise.
43318         * tests/test-open.c (main): Avoid unspecified behavior.
43319         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43320         test.
43321
43322         dup2: work around mingw and cygwin 1.5 bug
43323         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43325         * modules/unistd (Makefile.am): Substitute it.
43326         * lib/unistd.in.h (dup2): Declare the replacement.
43327         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43328         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43329         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43330         * modules/execute (Depends-on): Add dup2.
43331         * modules/fseterr (Depends-on): Likewise.
43332         * modules/pipe (Depends-on): Likewise.
43333         * modules/posix_spawn-internal (Depends-on): Likewise.
43334
43335 2009-07-21  Bruno Haible  <bruno@clisp.org>
43336
43337         * modules/.gitattributes: New file.
43338
43339 2009-07-20  Bruno Haible  <bruno@clisp.org>
43340
43341         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43342         (main): Use it.
43343
43344 2009-07-20  Eric Blake  <ebb9@byu.net>
43345
43346         test-pipe: make a bit more robust.
43347         * tests/test-pipe.c (myerr): Allow error messages regardless of
43348         what we do to stderr.
43349         (test_pipe): Rearrange to avoid deadlock.
43350         (child_main): Try a larger read, to ensure we avoided deadlock.
43351         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43352         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43353         if misused.
43354
43355 2009-07-19  Jim Meyering  <meyering@redhat.com>
43356
43357         fts: avoid false-positive cycle-detection
43358         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43359         for each new command line argument.
43360
43361 2009-07-19  Bruno Haible  <bruno@clisp.org>
43362
43363         Fix build error on mingw with the modules sys_select and unistd.
43364         * modules/acl-tests (Depends-on): Add close.
43365         * modules/binary-io-tests (Depends-on): Likewise.
43366         * modules/closein-tests (Depends-on): Likewise.
43367         * modules/flock-tests (Depends-on): Likewise.
43368         * modules/fsync-tests (Depends-on): Likewise.
43369         * modules/lseek-tests (Depends-on): Likewise.
43370         * modules/pipe-tests (Depends-on): Likewise.
43371         * modules/posix_spawn-tests (Depends-on): Likewise.
43372         * modules/posix_spawnp-tests (Depends-on): Likewise.
43373         * modules/stat-time-tests (Depends-on): Likewise.
43374         * modules/yesno-tests (Depends-on): Likewise.
43375
43376 2009-07-19  Bruno Haible  <bruno@clisp.org>
43377
43378         Unify conditionals.
43379         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43380         macros, not at the compiler macros.
43381         * lib/pipe.c: Likewise.
43382         * lib/execute.c: Likewise.
43383         * lib/spawni.c: Likewise.
43384
43385 2009-07-19  Bruno Haible  <bruno@clisp.org>
43386
43387         Fix handling of closed stdin/stdout/stderr on mingw.
43388         * lib/w32spawn.h: Include unistd.h.
43389         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43390         file descriptor with O_NOINHERIT flag.
43391         (fd_safer_noinherit): New function, based on fd-safer.c.
43392         (dup_safer_noinherit): New function, based on dup-safer.c.
43393         (undup_safer_noinherit): New function.
43394         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43395         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43396         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43397         instead of fd_safer.
43398         * tests/test-pipe.c: Include <windows.h>.
43399         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43400         result.
43401
43402         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43403         from main.
43404         (test_pipe): Pass an extra argument for disambiguation.
43405         (main): Invoke parent_main or child_main.
43406
43407         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43408         consistently.
43409
43410 2009-07-18  Eric Blake  <ebb9@byu.net>
43411
43412         test-pipe: fix mingw build
43413         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43414
43415 2009-07-18  Bruno Haible  <bruno@clisp.org>
43416
43417         * modules/pipe-tests (Makefile.am): Fix typo.
43418
43419 2009-07-18  Eric Blake  <ebb9@byu.net>
43420
43421         error: fix mingw build
43422         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43423         Reported by Bruno Haible.
43424
43425         error: avoid undefined use of stdout
43426         * lib/error.c (error, error_at_line): Check that fd 1 is open
43427         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43428         is handling faults and the close_stdout module wants to report the
43429         detection of closed stdout as an error.
43430
43431 2009-07-17  Eric Blake  <ebb9@byu.net>
43432
43433         pipe: be robust in face of closed fds
43434         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43435         should cause child to misbehave.
43436         * modules/pipe-tests: New module.
43437         * tests/test-pipe.c: New file.
43438         * tests/test-pipe.sh: New file.
43439         Reported by Akim Demaille.
43440
43441 2009-07-14  Bruno Haible  <bruno@clisp.org>
43442
43443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43444         Reported by anonymous kc.
43445
43446 2009-07-07  Jim Meyering  <meyering@redhat.com>
43447
43448         maint.mk: don't look for translatable strings in *.m4 or *.mk
43449         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43450         when searching for translatable strings.
43451
43452 2009-07-05  Jim Meyering  <meyering@redhat.com>
43453
43454         remove superfluous parentheses in STREQ definition
43455         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43456         * lib/getugroups.c (STREQ): Likewise.
43457         * lib/fnmatch.c (STREQ): Likewise.
43458         Spotted by Bruno Haible.
43459
43460 2009-07-04  Jim Meyering  <meyering@redhat.com>
43461
43462         argv-iter: new module
43463         * MODULES.html.sh: Add argv-iter.
43464         * lib/argv-iter.c, lib/argv-iter.h: New files.
43465         * modules/argv-iter: New file.
43466         * modules/argv-iter-tests: New file.
43467         * tests/test-argv-iter.c: Test it.
43468
43469 2009-07-04  Bruno Haible  <bruno@clisp.org>
43470
43471         Fix assertion.
43472         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43473         contains more exact copies of a given entry than file2, leave the extra
43474         copies unpaired rather than aborting.
43475         Reported by Eric Blake.
43476
43477 2009-07-02  Bruno Haible  <bruno@clisp.org>
43478
43479         Speedup git-merge-changelog for git cherry-pick.
43480         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43481         (entries_mapping_get): New function, extracted from compute_mapping.
43482         (entries_mapping_reverse_get): New function.
43483         (compute_mapping): Add a 'full' argument. Return the result in a
43484         'struct entries_mapping'.
43485         (main): Update. Access the mappings through entries_mapping_get.
43486         Reported by Eric Blake.
43487
43488 2009-07-02  Bruno Haible  <bruno@clisp.org>
43489
43490         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43491         best_i.
43492
43493 2009-07-02  Bruno Haible  <bruno@clisp.org>
43494
43495         Speed up approximate search for matching ChangeLog entries.
43496         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43497         argument. Call fstrcmp_bounded instead of fstrcmp.
43498         (compute_mapping, try_split_merged_entry, main): Update callers.
43499
43500 2009-07-02  Bruno Haible  <bruno@clisp.org>
43501
43502         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43503
43504 2009-06-30  Bruno Haible  <bruno@clisp.org>
43505
43506         Reduce the number of uc_is_cased calls.
43507         * lib/unicase.h (casing_suffix_context_t): Add
43508         'first_char_except_ignorable' field.
43509         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43510         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43511         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43512         Update initializer.
43513         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43514         case-ignorable characters.
43515         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43516         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43517         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43518         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43519         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43520
43521 2009-06-30  Bruno Haible  <bruno@clisp.org>
43522
43523         Tests for module 'unicase/ignorable'.
43524         * modules/unicase/ignorable-tests: New file.
43525         * tests/unicase/test-ignorable.c: New file, generated by
43526         gen-uni-tables.
43527
43528         Tests for module 'unicase/cased'.
43529         * modules/unicase/cased-tests: New file.
43530         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43531         * tests/unicase/test-predicate-part1.h: New file, derived from
43532         tests/unictype/test-predicate-part1.h.
43533         * tests/unicase/test-predicate-part2.h: New file, same as
43534         tests/unictype/test-predicate-part2.h.
43535
43536         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43537         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43538         (output_casing_properties): New function.
43539         (main): Call it.
43540         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43541         * lib/unicase/cased.c: Include unictype/bitmap.h.
43542         (uc_is_cased): Define through a bitmap lookup.
43543         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43544         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43545         (uc_is_case_ignorable): Define through a bitmap lookup.
43546         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43547         lib/unictype/bitmap.h.
43548         (Depends-on): Add inline. Clean up.
43549         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43550         lib/unictype/bitmap.h.
43551         (Depends-on): Add inline. Clean up.
43552         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43553         recognition.
43554         * tests/unicase/test-u16-tolower.c (main): Likewise.
43555         * tests/unicase/test-u32-tolower.c (main): Likewise.
43556
43557 2009-06-30  Bruno Haible  <bruno@clisp.org>
43558
43559         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43560         * lib/unicase/u16-casemap.c: Likewise.
43561         * lib/unicase/u32-casemap.c: Likewise.
43562
43563 2009-06-29  Bruno Haible  <bruno@clisp.org>
43564
43565         Define u32_casefold as a wrapper around u32_ct_casefold.
43566         * lib/unicase/u32-casefold.c: Update.
43567         * modules/unicase/u32-casefold (Depends-on): Add
43568         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43569         unicase/empty-suffix-context. Clean up.
43570
43571         Define u16_casefold as a wrapper around u16_ct_casefold.
43572         * lib/unicase/u16-casefold.c: Update.
43573         * modules/unicase/u16-casefold (Depends-on): Add
43574         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43575         unicase/empty-suffix-context. Clean up.
43576
43577         Define u8_casefold as a wrapper around u8_ct_casefold.
43578         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43579         * lib/unicase/u8-casefold.c: Update.
43580         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43581         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43582
43583         Define u32_totitle as a wrapper around u32_ct_totitle.
43584         * lib/unicase/u32-totitle.c: Update.
43585         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43586         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43587
43588         Define u16_totitle as a wrapper around u16_ct_totitle.
43589         * lib/unicase/u16-totitle.c: Update.
43590         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43591         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43592
43593         Define u8_totitle as a wrapper around u8_ct_totitle.
43594         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43595         functions.
43596         (FUNC): Delegate to U_CT_TOTITLE.
43597         * lib/unicase/u8-totitle.c: Update.
43598         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43599         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43600
43601         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43602         invocation.
43603         * modules/unicase/u32-tolower (Depends-on): Add
43604         unicase/empty-prefix-context, unicase/empty-suffix-context.
43605
43606         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43607         invocation.
43608         * modules/unicase/u16-tolower (Depends-on): Add
43609         unicase/empty-prefix-context, unicase/empty-suffix-context.
43610
43611         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43612         * modules/unicase/u8-tolower (Depends-on): Add
43613         unicase/empty-prefix-context, unicase/empty-suffix-context.
43614
43615         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43616         invocation.
43617         * modules/unicase/u32-toupper (Depends-on): Add
43618         unicase/empty-prefix-context, unicase/empty-suffix-context.
43619
43620         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43621         invocation.
43622         * modules/unicase/u16-toupper (Depends-on): Add
43623         unicase/empty-prefix-context, unicase/empty-suffix-context.
43624
43625         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43626         * modules/unicase/u8-toupper (Depends-on): Add
43627         unicase/empty-prefix-context, unicase/empty-suffix-context.
43628
43629         New module 'unicase/u32-ct-casefold'.
43630         * lib/unicase/u32-ct-casefold.c: New file.
43631         * modules/unicase/u32-ct-casefold: New file.
43632
43633         New module 'unicase/u16-ct-casefold'.
43634         * lib/unicase/u16-ct-casefold.c: New file.
43635         * modules/unicase/u16-ct-casefold: New file.
43636
43637         New module 'unicase/u8-ct-casefold'.
43638         * lib/unicase/u8-ct-casefold.c: New file.
43639         * lib/unicase/u-ct-casefold.h: New file, derived from
43640         lib/unicase/u-casefold.h.
43641         * modules/unicase/u8-ct-casefold: New file.
43642
43643         New module 'unicase/u32-ct-totitle'.
43644         * lib/unicase/u32-ct-totitle.c: New file.
43645         * modules/unicase/u32-ct-totitle: New file.
43646
43647         New module 'unicase/u16-ct-totitle'.
43648         * lib/unicase/u16-ct-totitle.c: New file.
43649         * modules/unicase/u16-ct-totitle: New file.
43650
43651         New module 'unicase/u8-ct-totitle'.
43652         * lib/unicase/u8-ct-totitle.c: New file.
43653         * lib/unicase/u-ct-totitle.h: New file, derived from
43654         lib/unicase/u-totitle.h.
43655         * modules/unicase/u8-ct-totitle: New file.
43656
43657         New module 'unicase/u32-ct-tolower'.
43658         * lib/unicase/u32-ct-tolower.c: New file.
43659         * modules/unicase/u32-ct-tolower: New file.
43660
43661         New module 'unicase/u16-ct-tolower'.
43662         * lib/unicase/u16-ct-tolower.c: New file.
43663         * modules/unicase/u16-ct-tolower: New file.
43664
43665         New module 'unicase/u8-ct-tolower'.
43666         * lib/unicase/u8-ct-tolower.c: New file.
43667         * modules/unicase/u8-ct-tolower: New file.
43668
43669         New module 'unicase/u32-ct-toupper'.
43670         * lib/unicase/u32-ct-toupper.c: New file.
43671         * modules/unicase/u32-ct-toupper: New file.
43672
43673         New module 'unicase/u16-ct-toupper'.
43674         * lib/unicase/u16-ct-toupper.c: New file.
43675         * modules/unicase/u16-ct-toupper: New file.
43676
43677         New module 'unicase/u8-ct-toupper'.
43678         * lib/unicase/u8-ct-toupper.c: New file.
43679         * modules/unicase/u8-ct-toupper: New file.
43680
43681         Add context arguments to u*_casemap functions.
43682         * lib/unicase/unicasemap.h: Include unicase.h.
43683         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43684         suffix_context arguments.
43685         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43686         functions.
43687         (FUNC): Add prefix_context and suffix_context arguments. Use
43688         uc_is_cased and uc_is_case_ignorable.
43689         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43690         * lib/unicase/u16-casemap.c: Likewise.
43691         * lib/unicase/u32-casemap.c: Likewise.
43692         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43693         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43694         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43695         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43696         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43697         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43698
43699         New module 'unicase/u32-suffix-context'.
43700         * lib/unicase/u32-suffix-context.c: New file.
43701         * modules/unicase/u32-suffix-context: New file.
43702
43703         New module 'unicase/u16-suffix-context'.
43704         * lib/unicase/u16-suffix-context.c: New file.
43705         * modules/unicase/u16-suffix-context: New file.
43706
43707         New module 'unicase/u8-suffix-context'.
43708         * lib/unicase/u8-suffix-context.c: New file.
43709         * lib/unicase/u-suffix-context.h: New file.
43710         * modules/unicase/u8-suffix-context: New file.
43711
43712         New module 'unicase/empty-suffix-context'.
43713         * lib/unicase/empty-suffix-context.c: New file.
43714         * modules/unicase/empty-suffix-context: New file.
43715
43716         New module 'unicase/u32-prefix-context'.
43717         * lib/unicase/u32-prefix-context.c: New file.
43718         * modules/unicase/u32-prefix-context: New file.
43719
43720         New module 'unicase/u16-prefix-context'.
43721         * lib/unicase/u16-prefix-context.c: New file.
43722         * modules/unicase/u16-prefix-context: New file.
43723
43724         New module 'unicase/u8-prefix-context'.
43725         * lib/unicase/u8-prefix-context.c: New file.
43726         * lib/unicase/u-prefix-context.h: New file.
43727         * lib/unicase/context.h: New file.
43728         * modules/unicase/u8-prefix-context: New file.
43729
43730         New module 'unicase/empty-prefix-context'.
43731         * lib/unicase/empty-prefix-context.c: New file.
43732         * modules/unicase/empty-prefix-context: New file.
43733
43734         New module 'unicase/ignorable'.
43735         * lib/unicase/ignorable.c: New file.
43736         * modules/unicase/ignorable: New file.
43737
43738         New module 'unicase/cased'.
43739         * lib/unicase/caseprop.h: New file.
43740         * lib/unicase/cased.c: New file.
43741         * modules/unicase/cased: New file.
43742
43743         New functions for case mapping of substrings.
43744         * lib/unicase.h (casing_prefix_context_t): New type.
43745         (unicase_empty_prefix_context): New variable.
43746         (u8_casing_prefix_context, u16_casing_prefix_context,
43747         u32_casing_prefix_context, u8_casing_prefixes_context,
43748         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43749         declarations.
43750         (casing_suffix_context_t): New type.
43751         (unicase_empty_suffix_context): New variable.
43752         (u8_casing_suffix_context, u16_casing_suffix_context,
43753         u32_casing_suffix_context, u8_casing_suffixes_context,
43754         u16_casing_suffixes_context, u32_casing_suffixes_context,
43755         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43756         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43757         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43758         declarations.
43759
43760 2009-06-28  Jim Meyering  <meyering@redhat.com>
43761
43762         boostrap: indent only with spaces
43763         * build-aux/bootstrap: Indent only with spaces, never TABs.
43764
43765         bootstrap: split long lines
43766         * build-aux/bootstrap: Keep line length < 80.
43767
43768         bootstrap: sync from coreutils
43769         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43770         just as autoreconf does.  Verify a list of prerequisite
43771         package-name,version-number pairs if defined in bootstrap.conf.
43772         Refer to README-prereq, if prerequisites are not satisfied.
43773
43774 2009-06-27  Eric Blake  <ebb9@byu.net>
43775
43776         tests: add test for bogus NULL definition
43777         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43778         * tests/test-stdlib.c: Likewise.
43779         * tests/test-string.c: Likewise.
43780         * tests/test-locale.c: Likewise.
43781         * tests/test-unistd.c: Likewise.
43782         * modules/stdio-tests (Depends-on): Add verify.
43783         * modules/stdlib-tests (Depends-on): Likewise.
43784         * modules/string-tests (Depends-on): Likewise.
43785         * modules/locale-tests (Depends-on): Likewise.
43786         * modules/unistd-tests (Depends-on): Likewise.
43787
43788 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43789
43790         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43791         self-explaining comment.
43792         * m4/selinux-selinux-h: Update serial.
43793         (gl_LIBSELINUX): New macro, adding a warning for missing development
43794         packages to code extracted from...
43795         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43796         Add warning for missing development packages here, too.
43797
43798 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43799
43800         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43801
43802 2009-06-25  Eric Blake  <ebb9@byu.net>
43803
43804         version-etc: fix regression
43805         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43806         gcc.
43807         (version_etc): Use it, to catch bugs with trailing NULL.
43808         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43809         (version_etc_va): Fix logic bug.
43810         * modules/version-etc-tests: Add test.
43811         * tests/test-version-etc.c: New file.
43812         * tests/test-version-etc.sh: Likewise.
43813
43814 2009-06-25  Sam Steingold  <sds@gnu.org>
43815
43816         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43817         mbtowc declaration.
43818
43819 2009-06-25  Eric Blake  <ebb9@byu.net>
43820
43821         fpurge: migrate into <stdio.h>
43822         * lib/fpurge.h: Delete...
43823         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43824         * lib/fpurge.c (fpurge): Change declaring header.
43825         * modules/fpurge (Files): Drop deleted file.
43826         (Depends-on): Add stdio.
43827         (configure.ac): Set witness.
43828         * modules/stdio (Makefile.am): Support fpurge macros.
43829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43830         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43831         * lib/fflush.c: Update client.
43832         * tests/test-fpurge.c: Likewise.
43833         * NEWS: Mention the change.
43834
43835 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43836
43837         * lib/argp-version-etc.c (program_authors): Add const
43838         qualifier.
43839         * lib/version-etc.c: Fix typos in the comments.
43840         * modules/argp-version-etc: Depends on version-etc.
43841
43842 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43843
43844         argp-version-etc: new module.
43845
43846         * lib/argp-version-etc.c: New file.
43847         * lib/argp-version-etc.h: New file.
43848         * modules/argp-version-etc: New file.
43849         * modules/argp-version-etc-tests: New file.
43850         * tests/test-argp-version-etc.c: New test.
43851         * tests/test-argp-version-etc-1.sh: New test.
43852
43853 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43854
43855         Provide additional interfaces and documentation for version-etc
43856         module.
43857
43858         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43859         interfaces.
43860         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43861         prototypes.
43862
43863 2009-06-24  Bruno Haible  <bruno@clisp.org>
43864
43865         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43866         HAVE_LIB${NAME} macro.
43867         Reported by Sam Steingold <sds@gnu.org>.
43868
43869 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43870
43871         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43872         needed.
43873
43874 2009-06-21  Bruno Haible  <bruno@clisp.org>
43875
43876         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43877         work.
43878         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43879         together with LIB${NAME}, LTLIB${NAME}.
43880         Reported by Sam Steingold <sds@gnu.org>.
43881
43882 2009-06-20  Jim Meyering  <meyering@redhat.com>
43883
43884         tests: make sc_require_test_exit_idiom more generic
43885         * top/maint.mk (Exit_witness_file): New overridable variable.
43886         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43887         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43888
43889 2009-06-19  Jim Meyering  <meyering@redhat.com>
43890
43891         hash: reverse order of src/dst parameters in an internal interface
43892         * lib/hash.c (transfer_entries): Reverse order of parameters to
43893         put DST before SRC.  Adjust callers.
43894
43895         tests: test-hash: avoid wholesale duplication
43896         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43897         Instead, use a loop and add a single conditional.
43898
43899         tests: test-hash: allow seed selection via a command line argument
43900         * tests/test-hash.c (get_seed): New function.
43901         (main): Use it.
43902
43903 2009-06-19  Eric Blake  <ebb9@byu.net>
43904
43905         hash: avoid memory leak on allocation failure
43906         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43907         failure.  Factor repeated algorithm...
43908         (transfer_entries): ...into new helper routine.
43909         (hash_delete): React to hash_rehash return value.
43910
43911         hash: reduce memory pressure in hash_rehash no-op case
43912         * lib/hash.c (next_prime): Avoid overflow.
43913         (hash_initialize): Factor bucket size computation...
43914         (compute_bucket_size): ...into new helper function.
43915         (hash_rehash): Use new function and open coding to reduce memory
43916         pressure, and avoid a memory leak in USE_OBSTACK code.
43917         Reported by Jim Meyering.
43918
43919 2009-06-18  Eric Blake  <ebb9@byu.net>
43920
43921         hash: make rotation more obvious
43922         * modules/hash (Depends-on): Add bitrotate and stdint.
43923         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43924         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43925         (SIZE_MAX): Rely on headers for definition.
43926         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43927         (raw_hasher): Use rotr_sz.
43928         Suggested by Jim Meyering.
43929
43930         hash: fix memory leak in last patch
43931         * lib/hash.c (hash_rehash): Avoid memory leak.
43932
43933         hash: avoid no-op rehashing
43934         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43935
43936         hash: provide default callback functions
43937         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43938         (hash_initialize): Use them as defaults.
43939         * tests/test-hash.c (main): Test this.
43940
43941         hash: minor optimization
43942         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43943         when possible.
43944         (hash_initialize): Document this promise.
43945         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43946         * tests/test-hash.c (hash_compare_strings): Test this.
43947
43948 2009-06-18  Bruno Haible  <bruno@clisp.org>
43949
43950         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43951         going to be replaced anyway.
43952
43953 2009-06-18  Bruno Haible  <bruno@clisp.org>
43954
43955         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43956         in one place.
43957         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43958         be replaced anyway.
43959
43960 2009-06-18  Eric Blake  <ebb9@byu.net>
43961
43962         hash: check for resize before insertion
43963         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43964         threshold before insertion, so that a pathological hash_rehash
43965         that fills every bucket can still trigger another rehash.
43966
43967 2009-06-18  Jim Meyering  <meyering@redhat.com>
43968
43969         hash-tests: add a loop around the small tests
43970         * tests/test-hash.c (main): Repeat small tests with selected
43971         small initial table sizes.
43972
43973 2009-06-17  Eric Blake  <ebb9@byu.net>
43974
43975         hash: minor cleanups
43976         * lib/hash.h (hash_entry): Make opaque, by moving...
43977         * lib/hash.c (hash_entry): ...here.
43978         (hash_insert): Clarify restrictions on what can be inserted.
43979         (hash_get_next): Clarify when it is safe to remove an element
43980         during traversal.
43981         (check_tuning): Skip verification when tuning is known safe.
43982         (hash_initialize): Clarify restrictions on tuning.
43983
43984 2009-06-17  Jim Meyering  <jim@meyering.net>
43985         and Eric Blake  <ebb9@byu.net>
43986
43987         hash-tests: new module
43988         * modules/hash-tests: New file.
43989         * tests/test-hash.c: New file.
43990
43991 2009-06-17  Eric Blake  <ebb9@byu.net>
43992
43993         strstr-simple: document new module
43994         * MODULES.html.sh: Document new module.
43995
43996         strstr, strcasestr: replace on platforms with broken memchr
43997         * modules/strstr: Split into...
43998         * modules/strstr-simple: ...new module that does not care about
43999         performance, but does care about glibc bug.
44000         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44001         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44002         if platform memchr is broken, per Debian bug 521737.
44003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44004         memchr.
44005         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44006         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44007         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44008         * modules/mountlist (Depends-on): Add strstr-simple.
44009         * modules/gen-uni-tables (Depends-on): Likewise.
44010         * modules/argz (Depends-on): Add strstr.
44011
44012 2009-06-17  Bruno Haible  <bruno@clisp.org>
44013
44014         * modules/posix_spawn-internal (Depends-on): Add errno.
44015
44016 2009-06-17  Bruno Haible  <bruno@clisp.org>
44017
44018         Define missing ESTALE on Interix 3.5.
44019         * lib/errno.in.h (ESTALE): Assign a value if missing.
44020         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44021         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44022         missing.
44023         * doc/posix-headers/errno.texi: Mention the Interix bug.
44024         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44025
44026 2009-06-15  Eric Blake  <ebb9@byu.net>
44027
44028         memchr, memchr2: add valgrind exception
44029         * lib/memchr.valgrind: New file.
44030         * lib/memchr2.valgrind: New file.
44031         * modules/memchr (Files): Distribute valgrind file.
44032         * modules/memchr2 (Files): Likewise.
44033
44034         docs: memchr is no longer obsolete
44035         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44036         * lib/string.in.h (memchr): Simplify logic.
44037
44038 2009-06-14  Jim Meyering  <meyering@redhat.com>
44039
44040         link-follow: fix the "checking..." message to not mention trailing slash
44041         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44042         never considered trailing slashes.
44043
44044 2009-06-14  Bruno Haible  <bruno@clisp.org>
44045
44046         * m4/memchr.m4: Mention also the bug on IA-64.
44047         * doc/posix-functions/memchr.texi: Likewise.
44048
44049 2009-06-12  Eric Blake  <ebb9@byu.net>
44050
44051         memchr: detect broken x86_64 and alpha implementations
44052         * modules/memchr-tests (Depends-on): Move mmap detection...
44053         * modules/memchr (Depends-on): ...here.
44054         (configure.ac): Set indicator.
44055         * lib/string.in.h (memchr): Declare replacement.
44056         * modules/string (Makefile.am): Trigger replacement.
44057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44058         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44059         bugs.
44060         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44061         * modules/getpagesize (License): Relax license.
44062
44063 2009-06-11  Bruno Haible  <bruno@clisp.org>
44064
44065         * lib/idpriv.h: Add more references.
44066
44067 2009-06-08  Bruno Haible  <bruno@clisp.org>
44068
44069         Tests for module 'idpriv-droptemp'.
44070         * modules/idpriv-droptemp-tests: New file.
44071         * tests/test-idpriv-droptemp.sh: New file.
44072         * tests/test-idpriv-droptemp.su.sh: New file.
44073         * tests/test-idpriv-droptemp.c: New file.
44074
44075         New module 'idpriv-droptemp'.
44076         * lib/idpriv-droptemp.c: New file.
44077         * modules/idpriv-droptemp: New file.
44078
44079 2009-06-08  Bruno Haible  <bruno@clisp.org>
44080
44081         Tests for module 'idpriv-drop'.
44082         * modules/idpriv-drop-tests: New file.
44083         * tests/test-idpriv-drop.sh: New file.
44084         * tests/test-idpriv-drop.su.sh: New file.
44085         * tests/test-idpriv-drop.c: New file.
44086
44087         New module 'idpriv-drop'.
44088         * lib/idpriv.h: New file.
44089         * lib-idpriv-drop.c: New file.
44090         * m4/idpriv.m4: New file.
44091         * modules/idpriv-drop: New file.
44092
44093 2009-06-08  Bruno Haible  <bruno@clisp.org>
44094
44095         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44096         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44097         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44098         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44099         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44100         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44101         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44102
44103 2009-06-08  Eric Blake  <ebb9@byu.net>
44104
44105         test-strstr: use memory fence, when possible
44106         * tests/test-strstr.c (main): Use memory fence, in order to be
44107         more likely to trigger Debian bug 521737.
44108         * modules/strstr-tests (Files): Pull in additional files.
44109
44110         memchr: no longer obsolete, for wider field testing
44111         * modules/memchr (Status, Notice): Delete, this module is no
44112         longer obsolete.
44113         * modules/vasnprintf (Depends-on): Add memchr.
44114
44115 2009-06-07  Jim Meyering  <meyering@redhat.com>
44116
44117         hash: declare some functions with the warn_unused_result attribute
44118         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44119
44120 2009-06-07  Bruno Haible  <bruno@clisp.org>
44121
44122         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44123         Reported by Eric Blake.
44124
44125 2009-06-06  Eric Blake  <ebb9@byu.net>
44126
44127         test-alignof: fix typo with long double
44128         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44129         compiler error.
44130
44131 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44132
44133         Escape non-texinfo { and }s.
44134         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44135         markup error.
44136
44137 2009-06-04  Jim Meyering  <meyering@redhat.com>
44138
44139         gitlog-to-changelog: don't infloop on an empty commit log
44140         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44141         Reported by Boris Petersen <transacid@centerim.org>.
44142
44143 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44144
44145         version-etc: extend for packagers
44146         Add three new configure options, intended for packagers:
44147           --with-packager="packager name"
44148           --with-packager-version="packager-specific version"
44149           --with-packager-bug-reports="packager bug reporting"
44150         An example with coreutils:
44151           $ ./configure \
44152             --with-packager=Gentoo \
44153             --with-packager-bug-report=http://bugs.gentoo.org/ \
44154             --with-packager-version="patchset 1.6"
44155           $ ./src/ls --version | head -n2
44156           ls (GNU coreutils) 7.1-dirty
44157           Packaged by Gentoo (patchset 1.6)
44158         Note that the bug reporting info via --help doesn't show up because
44159         coreutils uses its own custom emit_bug_reporting_address() implementation
44160         in src/system.h.  If it didn't, it'd look like:
44161           $ ./src/ls --help | tail -n4
44162           Report bugs to <bug-coreutils@gnu.org>.
44163           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44164           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44165           General help using GNU software: <http://www.gnu.org/gethelp/>.
44166         * lib/version-etc.c: Print new information, if provided.
44167         * m4/version-etc.m4: New file.
44168         * modules/version-etc (Files): Add m4/version-etc.m4.
44169         (configure.ac): Add gl_VERSION_ETC.
44170
44171 2009-05-31  Bruno Haible  <bruno@clisp.org>
44172
44173         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44174         and 'int64_t'.
44175         * modules/alignof-tests (Dependencies): Add stdint.
44176         Reported by Eric Blake.
44177
44178 2009-05-31  Bruno Haible  <bruno@clisp.org>
44179
44180         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44181         restriction due to compiler bugs.
44182         Reported by Eric Blake.
44183
44184 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44185             Bruno Haible  <bruno@clisp.org>
44186
44187         Fix test-alignof failure.
44188         * lib/alignof.h (alignof_slot): New macro.
44189         (alignof_type): New macro, with the same semantics as the previous
44190         'alignof'.
44191         (alignof): Alias to alignof_slot.
44192         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44193         check that the results are usable as constant expressions.
44194
44195 2009-05-31  Bruno Haible  <bruno@clisp.org>
44196
44197         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44198         * tests/test-memchr.c (main): Check that memchr does not read past the
44199         first occurrence of the byte.
44200         * tests/test-strstr.c (main): Update comment.
44201         Suggested by Eric Blake.
44202
44203 2009-05-30  Bruno Haible  <bruno@clisp.org>
44204
44205         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44206         detail how to use dumpbin.
44207         Reported by David Byron <dbyron@dbyron.com>.
44208
44209 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44210
44211         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44212
44213 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44214
44215         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44216
44217 2009-05-28  Bruno Haible  <bruno@clisp.org>
44218
44219         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44220         build-aux/ files.
44221
44222 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44223
44224         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44225
44226 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44227
44228         * gnulib-tool (sed_transform_main_lib_file)
44229         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44230         regexps.
44231
44232 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44233
44234         * tests/test-strstr.c: Add another self-test.
44235         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44236         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44237
44238 2009-05-23  Bruno Haible  <bruno@clisp.org>
44239
44240         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44241         change.
44242
44243 2009-05-21  Bruno Haible  <bruno@clisp.org>
44244
44245         Simplify use of mode_t varargs.
44246         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44247         uses 'mode_t' or 'int'.
44248         * lib/openat.c (openat): Likewise.
44249         * lib/open-safer.c (open_safer): Likewise.
44250         * m4/mode_t.m4: New file.
44251         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44252         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44253         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44254         * modules/open (Files): Add m4/mode_t.m4.
44255         * modules/openat (Files): Likewise.
44256         * modules/fcntl-safer (Files): Likewise.
44257         Suggested by Eric Blake.
44258
44259 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44260
44261         * doc/glibc-functions/fallocate.texi: New file.
44262         * doc/gnulib.texi: Include it.
44263
44264 2009-05-21  Eric Blake  <ebb9@byu.net>
44265             Bruno Haible  <bruno@clisp.org>
44266
44267         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44268         invocations.
44269         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44270
44271 2009-05-21  Eric Blake  <ebb9@byu.net>
44272             Bruno Haible  <bruno@clisp.org>
44273
44274         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44275         include_next. Fix of 2008-11-20 commit.
44276         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44277         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44278         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44279         NEXT_MATH_H.
44280         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44281         instead of NEXT_MATH_H.
44282
44283 2009-05-21  Bruno Haible  <bruno@clisp.org>
44284
44285         Avoid redefinition warnings for SIZE_MAX.
44286         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44287         Reported by Simon Josefsson.
44288
44289 2009-05-21  Bruno Haible  <bruno@clisp.org>
44290
44291         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44292         AC_CACHE_VAL.
44293
44294 2009-05-20  Bruno Haible  <bruno@clisp.org>
44295
44296         Make zeroptr.h work on mingw.
44297         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44298         mprotect.
44299         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44300         * modules/memchr2-tests (configure.ac): Likewise.
44301         * modules/memcmp-tests (configure.ac): Likewise.
44302         * modules/memmem-tests (configure.ac): Likewise.
44303         * modules/memrchr-tests (configure.ac): Likewise.
44304         Reported by Simon Josefsson.
44305
44306 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44307
44308         * tests/test-glob.c: Include string.h for strcmp prototype.
44309
44310 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44311
44312         * modules/getdelim (Depends-on): Add explicit stdint, although it
44313         was implicitly already pulled in via realloc-posix.
44314         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44315
44316 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44317
44318         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44319         G. Christensen" <tgc@jupiterrise.com>.
44320         * m4/sys_socket_h.m4: Check for sa_family_t.
44321         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44322         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44323         * tests/test-sys_socket.c: Check that sa_family_t works.
44324
44325 2009-05-18  Eric Blake  <ebb9@byu.net>
44326
44327         maint.mk: allow gnulib_dir in VPATH build
44328         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44329
44330 2009-05-15  Jim Meyering  <meyering@redhat.com>
44331
44332         maint.mk: Give gnulib_dir a default definition.
44333         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44334         Thus, most packages no longer need to specify this variable in cfg.mk
44335
44336 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44337
44338         rename.m4: fix typos that would make non-mingw cross-configure fail
44339         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44340
44341 2009-05-13  Eric Blake  <ebb9@byu.net>
44342
44343         mmap-anon: avoid out-of-order autoconf expansion
44344         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44345         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44346         * modules/memchr-tests (Depends-on): Add extensions.
44347         * modules/memchr2-tests (Depends-on): Add extensions.
44348         * modules/memcmp-tests (Depends-on): Add extensions.
44349         * modules/memmem-tests (Depends-on): Add extensions.
44350         * modules/memrchr-tests (Depends-on): Add extensions.
44351
44352 2009-05-13  Bruno Haible  <bruno@clisp.org>
44353
44354         Make some tests ISO C 99 compliant.
44355         * tests/zerosize-ptr.h: New file.
44356         * tests/test-memchr.c: Include zerosize-ptr.h.
44357         (main): Use a zero-size object pointer instead of NULL.
44358         * tests/test-memchr2.c: Include zerosize-ptr.h.
44359         (main): Use a zero-size object pointer instead of NULL.
44360         * tests/test-memcmp.c: Include zerosize-ptr.h.
44361         (main): Use a zero-size object pointer instead of NULL.
44362         * tests/test-memmem.c: Include zerosize-ptr.h.
44363         (main): Use a zero-size object pointer instead of NULL.
44364         * tests/test-memrchr.c: Include zerosize-ptr.h.
44365         (main): Use a zero-size object pointer instead of NULL.
44366         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44367         m4/mmap-anon.m4.
44368         (Depends-on): Add getpagesize.
44369         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44370         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44371         m4/mmap-anon.m4.
44372         (Depends-on): Add getpagesize.
44373         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44374         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44375         m4/mmap-anon.m4.
44376         (Depends-on): Add getpagesize.
44377         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44378         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44379         m4/mmap-anon.m4.
44380         (Depends-on): Add getpagesize.
44381         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44382         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44383         m4/mmap-anon.m4.
44384         (Depends-on): Add getpagesize.
44385         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44386
44387 2009-05-12  Bruno Haible  <bruno@clisp.org>
44388
44389         Tests for module 'alignof'.
44390         * modules/alignof-tests: New file.
44391         * tests/test-alignof.c: New file.
44392
44393 2009-05-12  Bruno Haible  <bruno@clisp.org>
44394
44395         Fix alignof macro.
44396         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44397         vendor compilers that are always correct.
44398
44399 2009-05-12  Bruno Haible  <bruno@clisp.org>
44400
44401         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44402         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44403         not whether its fully works.
44404
44405 2009-05-12  Bruno Haible  <bruno@clisp.org>
44406
44407         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44408
44409 2009-05-12  Jim Meyering  <meyering@redhat.com>
44410
44411         * top/maint.mk: Adjust backslash alignment.
44412
44413 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44414
44415         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44416
44417 2009-05-11  Eric Blake  <ebb9@byu.net>
44418
44419         argp: avoid undefined behavior
44420         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44421         macros.
44422
44423 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44424
44425         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44426         user.name to prevent git commit from complaining.
44427
44428 2009-05-10  Bruno Haible  <bruno@clisp.org>
44429
44430         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44431         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44432         it rewrites every file name only once.
44433         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44434
44435 2009-05-08  Bruno Haible  <bruno@clisp.org>
44436
44437         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44438         instead of 'max'.
44439
44440 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44441
44442         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44443         sockaddr_storage test.
44444
44445 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44446
44447         * modules/sys_socket (Makefile.am): Substitute
44448         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44449         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44450         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44451         * tests/test-sys_socket.c: Check sockaddr_storage.
44452
44453 2009-05-08  Bruno Haible  <bruno@clisp.org>
44454
44455         New module 'alignof'.
44456         * lib/alignof.h: New file.
44457         * modules/alignof: New file.
44458
44459 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44460             Bruno Haible  <bruno@clisp.org>
44461
44462         Fix test-file-has-acl on FreeBSD.
44463         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44464         mask is implicitly added.
44465         * tests/test-file-has-acl.c: Include <signal.h>.
44466         (main): Terminate the test after 5 seconds.
44467         * modules/acl-tests (configure.ac): Check for alarm function.
44468
44469 2009-05-04  Bruno Haible  <bruno@clisp.org>
44470
44471         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44472         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44473         * modules/errno (configure.ac): Drop AC_REQUIRE.
44474         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44475         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44476
44477 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44478
44479         * modules/glob-tests: New module.
44480         * tests/test-glob.c: Add.
44481
44482 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44483
44484         * modules/fnmatch-tests: New module.
44485         * tests/test-fnmatch.c: Add.
44486
44487 2009-05-04  Eric Blake  <ebb9@byu.net>
44488
44489         maint: make the new no-submodule-changes rule VPATH-safe
44490         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44491
44492 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44493             Bruno Haible  <bruno@clisp.org>
44494
44495         acl: Fix infinite loop on FreeBSD.
44496         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44497         of return value from acl_get_entry.
44498         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44499         Likewise.
44500
44501 2009-05-03  Bruno Haible  <bruno@clisp.org>
44502
44503         * lib/acl-internal.h (acl_entries): Clarify return value.
44504         * lib/acl_entries.c (acl_entries): Likewise.
44505
44506 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44507
44508         Bug fix in acl module.
44509         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44510
44511 2009-05-03  Bruno Haible  <bruno@clisp.org>
44512
44513         Create gperf-generated file in the source dir, not in the build dir.
44514         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44515         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44516         * modules/unicase/locale-language (unicase/locale-languages.h):
44517         Likewise.
44518         * modules/unicase/special-casing (unicase/special-casing-table.h):
44519         Likewise.
44520         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44521         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44522         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44523         Reported by Ralf Wildenhues.
44524
44525 2009-05-03  Bruno Haible  <bruno@clisp.org>
44526
44527         * modules/fnmatch (Description, configure.ac): Taken from
44528         fnmatch-posix.
44529         * modules/fnmatch-posix: Turn into a symbolic reference to the
44530         'fnmatch' module, and deprecate.
44531         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44532
44533 2009-05-03  Bruno Haible  <bruno@clisp.org>
44534
44535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44536         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44537         Reported by Ralf Wildenhues.
44538
44539 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44540
44541         * m4/fnmatch.m4: Fix fnmatch re-define.
44542
44543 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44544
44545         priv-set: new module and tests; adapt write-any-file
44546         * lib/priv-set.c: New file.
44547         * lib/priv-set.h: New file.
44548         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44549         * lib/write-any-file.c: Simplify by using priv-set module.
44550         * m4/priv-set.m4: New file.
44551         * modules/priv-set: New file.
44552         * modules/unlinkdir: Add dependency on priv-set module.
44553         * modules/write-any-file: Likewise.
44554
44555         Tests for module 'priv-set'.
44556         * modules/priv-set-tests: New file.
44557         * tests/test-priv-set.c: New file.
44558
44559 2009-05-03  Jim Meyering  <meyering@redhat.com>
44560             Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44563         use the converted UTF-8 variant of the name instead.
44564
44565 2009-05-03  Jim Meyering  <meyering@redhat.com>
44566
44567         tests: tighten some getdate tests
44568         * tests/test-getdate.c (main): Tighten tests: require equality,
44569         not just greater than.  Set TZ envvar to UTC0.
44570
44571 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44572
44573         getdate: correctly interpret "next monday" when run on a Monday
44574         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44575         that e.g., "next tues" (when run on a tuesday) results in a date
44576         that is one week in the future, and not today's date.
44577         I.e., add a week when the wday is the same as the current one.
44578         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44579         and earlier by Martin Bernreuther and Jan Minář.
44580         * tests/test-getdate.c (main): Check that "next DAY" is always in
44581         the future and that "last DAY" is always in the past.
44582
44583 2009-05-02  Jim Meyering  <meyering@redhat.com>
44584
44585         build: ensure that a release build fails when a submodule is unclean
44586         * top/maint.mk (no-submodule-changes): New rule.
44587         (alpha beta major): Depend on it.
44588
44589 2009-05-02  Bruno Haible  <bruno@clisp.org>
44590
44591         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44592         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44593         shell variable gl_fnmatch_required to detect which variant is
44594         requested.
44595         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44596         gl_FUNC_FNMATCH_POSIX.
44597         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44598         exclude fnmatch-posix.
44599
44600 2009-05-02  Bruno Haible  <bruno@clisp.org>
44601
44602         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44603         * modules/mbsrtowcs (License): Change to LGPLv2+.
44604         * modules/strnlen1 (License): Likewise.
44605         Reported by Simon Josefsson.
44606
44607 2009-05-02  Bruno Haible  <bruno@clisp.org>
44608
44609         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44610         "cross".
44611         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44612         gnulib-tool was called with option --source-base=lib.
44613
44614 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44615
44616         Use automake *-local hooks without commands, for extensibility.
44617         * modules/localcharset (Makefile.am): Rename install-exec-local
44618         rule to install-exec-localcharset, and make it a prerequisite of
44619         install-exec-local.  Likewise, rename the uninstall-local rule to
44620         uninstall-localcharset, and make it a prerequisite of the former.
44621
44622 2009-05-01  Bruno Haible  <bruno@clisp.org>
44623
44624         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44625         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44626         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44627         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44628         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44629         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44630         m4/locale-zh.m4, m4/codeset.m4.
44631
44632         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44633         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44634         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44635         m4/locale-zh.m4.
44636
44637         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44638         REPLACE_WCRTOMB if mbstate_t must be replaced.
44639         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44640         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44641
44642 2009-05-01  Bruno Haible  <bruno@clisp.org>
44643
44644         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44645         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44646         dngettext, dcngettext, textdomain, bindtextdomain,
44647         bind_textdomain_codeset): Undefine before redefining.
44648
44649 2009-04-30  Bruno Haible  <bruno@clisp.org>
44650
44651         Fix bug introduced on 2009-04-25.
44652         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44653         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44654         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44655         is defined.
44656         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44657         is defined.
44658         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44659         is defined.
44660         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44661
44662 2009-04-28  Bruno Haible  <bruno@clisp.org>
44663
44664         Comment tweaks.
44665         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44666         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44667         * lib/unicase.h (u*_casexfrm): Likewise.
44668         Reported by Paolo Bonzini.
44669
44670 2009-04-28  Bruno Haible  <bruno@clisp.org>
44671
44672         Fix a compilation error.
44673         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44674         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44675         Reported by Jim Meyering.
44676
44677 2009-04-27  Bruno Haible  <bruno@clisp.org>
44678
44679         New module 'libunistring'.
44680         * modules/libunistring: New file.
44681         * m4/libunistring.m4: New file.
44682         * MODULES.html.sh (Unicode string functions): Add it.
44683
44684 2009-04-27  Eric Blake  <ebb9@byu.net>
44685
44686         maint.mk: allow package-specific header to provide <config.h>
44687         * top/maint.mk (sc_require_config_h): New variable.
44688         (sc_require_config_h, sc_require_config_h_first): Use it.
44689
44690 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44691
44692         * top/maint.mk (sc_avoid_if_before_free): Except
44693         useless-if-before-free script.
44694
44695 2009-04-27  Eric Blake  <ebb9@byu.net>
44696
44697         maintainer-makefile: depend on all required helper scripts
44698         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44699         useless-if-before-free.
44700         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44701         version, rather than assuming gnulib checkout is available.
44702         Reported by Simen Josefsson.
44703
44704 2009-04-26  Bruno Haible  <bruno@clisp.org>
44705
44706         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44707         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44708         "../" or "..".
44709
44710 2009-04-26  Bruno Haible  <bruno@clisp.org>
44711
44712         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44713         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44714         AC_LIB_HAVE_LINKFLAGS.
44715
44716 2009-04-26  Bruno Haible  <bruno@clisp.org>
44717
44718         Simplify calling convention of u*_conv_from_encoding.
44719         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44720         u32_conv_from_encoding): Expect a resultbuf argument and return the
44721         result directly as a pointer.
44722         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44723         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44724         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44725         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44726         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44727         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44728         Update.
44729         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44730         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44731         * lib/vasnprintf.c (VASNPRINTF): Update.
44732         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44733         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44734         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44735         * NEWS: Mention the change.
44736
44737 2009-04-26  Bruno Haible  <bruno@clisp.org>
44738
44739         Simplify calling convention of u*_conv_to_encoding.
44740         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44741         u32_conv_to_encoding): Expect a resultbuf argument and return the
44742         result directly as a pointer.
44743         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44744         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44745         freeing scaled_offsets if mem_iconveha failed.
44746         * lib/unicase/u-casexfrm.h (FUNC): Update.
44747         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44748         * lib/vasnprintf.c (VASNPRINTF): Update.
44749         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44750         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44751         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44752         * NEWS: Mention the change.
44753
44754 2009-04-26  Bruno Haible  <bruno@clisp.org>
44755
44756         Avoid test failures on AIX and OSF/1.
44757         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44758         malloc(0).
44759         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44760         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44761         Likewise.
44762         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44763         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44764         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44765         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44766         * doc/posix-functions/malloc.texi: Document the portability problem
44767         related to malloc(0).
44768
44769 2009-04-26  Bruno Haible  <bruno@clisp.org>
44770
44771         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44772         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44773         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44774
44775 2009-04-25  Bruno Haible  <bruno@clisp.org>
44776
44777         Avoid link error when creating a namespace clean library.
44778         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44779         as macro with arguments if already defined as an alias.
44780         * lib/signbitf.c (gl_signbitf): Don't undefine.
44781         * lib/signbitd.c (gl_signbitd): Don't undefine.
44782         * lib/signbitl.c (gl_signbitl): Don't undefine.
44783
44784 2009-04-25  Jim Meyering  <meyering@redhat.com>
44785
44786         vc-list-files: fix another quoting bug
44787         * build-aux/vc-list-files: Avoid sed backslash expansion
44788         of pathological directory names.
44789
44790 2009-04-25  Eric Blake  <ebb9@byu.net>
44791
44792         vc-list-files: fix shell quoting error
44793         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44794         timestamp.
44795
44796 2009-04-25  Jim Meyering  <meyering@redhat.com>
44797
44798         vc-list-files: restore lost functionality with subdir argument
44799         * build-aux/vc-list-files: When given a non-"." sub-directory
44800         argument, substitute the $dir/ prefix back onto each resulting name.
44801         Otherwise, coreutils' root_tests check would fail.
44802
44803 2009-04-24  Eric Blake  <ebb9@byu.net>
44804
44805         vc-list-files: ignore git symlinks
44806         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44807         than ls-files, to ignore git symlinks.
44808
44809         maint.mk: import improvements from m4
44810         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44811         (move_if_change): Delete unused macro.
44812         (news-date-check, vc-diff-check): Support VPATH builds.
44813         (announcement): Likewise.  Split --bootstrap-tools list...
44814         (boostrap-tools): ...into separate list, which can be overridden
44815         in cfg.mk.
44816         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44817         requiring dependency on useless-if-before-free module.
44818         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44819         Support VPATH builds.
44820
44821 2009-04-24  Jim Meyering  <meyering@redhat.com>
44822
44823         maint.mk: remove coreutils-specific rules and variables
44824         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44825         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44826         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44827
44828         maint.mk: remove obsolete rule
44829         * top/maint.mk (rel-check): Remove rule.
44830         (WGET, WGETFLAGS): Remove now-unused variables.
44831
44832 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44833
44834         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44835         consistency.
44836
44837         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44838         '$(PATH_SEPARATOR)' instead of ':'.
44839
44840 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44841
44842         * lib/getopt1.c (main): Use 'const' for static array.
44843
44844 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44845
44846         * top/maint.mk: Sync with coreutils.
44847         * NEWS: Explain incompatibilities.
44848
44849 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44850             Bruno Haible  <bruno@clisp.org>
44851
44852         Fix cross-compilation results.
44853         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44854         statement, as third argument of AC_TRY_RUN.
44855         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44856         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44857         Likewise.
44858         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44859         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44860         Likewise.
44861         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44862         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44863         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44864
44865 2009-04-20  Bruno Haible  <bruno@clisp.org>
44866
44867         Avoid test failure on mingw.
44868         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44869
44870 2009-04-20  Bruno Haible  <bruno@clisp.org>
44871
44872         Avoid compilation error on mingw.
44873         * modules/localename-tests (Depends-on): Add locale.
44874
44875 2009-04-19  Bruno Haible  <bruno@clisp.org>
44876
44877         Support for building a shared library on Windows platforms.
44878         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44879         (main): Test the presence of UNINORM_NFC here.
44880         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44881         (main): Test the presence of UNINORM_NFD here.
44882         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44883         (main): Test the presence of UNINORM_NFKC here.
44884         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44885         (main): Test the presence of UNINORM_NFKD here.
44886
44887 2009-04-19  Bruno Haible  <bruno@clisp.org>
44888
44889         Avoid a compiler warning.
44890         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44891         Change type of variable 'sequence'.
44892
44893 2009-04-19  Bruno Haible  <bruno@clisp.org>
44894
44895         * modules/configmake (Makefile.am): When the contents of configmake.h
44896         does not change, arrange to preserve its modification time.
44897
44898 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44899
44900         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44901         gettext domain.
44902
44903 2009-04-16  Jim Meyering  <meyering@redhat.com>
44904
44905         useless-if-before-free: improve conversion code
44906         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44907         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44908
44909 2009-04-14  Bruno Haible  <bruno@clisp.org>
44910
44911         * modules/fcntl (Depends-on): Add extensions.
44912         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44913
44914 2009-04-12  Ben Pfaff  <blp@gnu.org>
44915
44916         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44917         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44918
44919 2009-03-20  Ben Pfaff  <blp@gnu.org>
44920
44921         Make rename replace existing destinations on Windows.
44922         * m4/rename.m4: Add test for Mingw.
44923         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44924         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44925         * doc/posix-functions/rename.texi: Document.
44926
44927 2009-04-10  Bruno Haible  <bruno@clisp.org>
44928
44929         New include file "iconveh.h".
44930         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44931         * lib/striconveh.h: Include it.
44932         (enum iconv_ilseq_handler): Remove definition.
44933         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44934         striconveh.h.
44935         * lib/striconveha.c: Include striconveh.h.
44936         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44937         * modules/striconveh (Files): Add lib/iconveh.h.
44938         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44939         lib/striconveh.h.
44940
44941 2009-04-10  Bruno Haible  <bruno@clisp.org>
44942
44943         * lib/uniconv.h: Update comment.
44944
44945 2009-04-10  Bruno Haible  <bruno@clisp.org>
44946
44947         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44948         always.
44949         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44950         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44951         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44952         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44953         "unistring-notinline.h", so that the function gets defined always.
44954         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44955         * lib/unistr/u8-uctomb.c: Likewise.
44956         * lib/unistr/u16-mbtouc.c: Likewise.
44957         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44958         * lib/unistr/u16-uctomb.c: Likewise.
44959         * lib/unistr/u32-mbtouc.c: Likewise.
44960         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44961         * lib/unistr/u32-uctomb.c: Likewise.
44962
44963 2009-04-10  Bruno Haible  <bruno@clisp.org>
44964
44965         Mark 'utime' obsolete.
44966         * modules/utime (Status, Notice): New sections.
44967         Suggested by Jim Meyering.
44968
44969         Fix cross-compile guess for utime test.
44970         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44971         autoconf.
44972         * doc/posix-functions/utime.texi: Give more precisions.
44973         Reported by Jan <ipif@ymail.com>.
44974
44975 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44976
44977         filevercmp: correct today's change
44978         * lib/filevercmp.c: Also handle coreutils' test inputs.
44979         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44980
44981         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44982         for reporting it.
44983         * lib/filevercmp.c: Special handle for "", "." and "..".
44984         * tests/test-filevercmp.c: Enlarge the set suite.
44985
44986 2009-04-07  Jim Meyering  <meyering@redhat.com>
44987
44988         useless-if-before-free: show how to remove braced useless free, too
44989         * build-aux/useless-if-before-free: still only in a comment, though.
44990
44991 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44992
44993         maint.mk: import changes to syntax-check macros from coreutils
44994         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44995         Use them in the relevant macros.
44996
44997 2009-04-06  Bruno Haible  <bruno@clisp.org>
44998
44999         Fix unportable use of bit-fields.
45000         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45001         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45002         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45003
45004 2009-04-06  Bruno Haible  <bruno@clisp.org>
45005
45006         Avoid test failures on AIX and OSF/1.
45007         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45008         that malloc(0) = NULL.
45009         * tests/unicase/test-u8-tolower.c (check): Likewise.
45010         * tests/unicase/test-u8-totitle.c (check): Likewise.
45011         * tests/unicase/test-u8-toupper.c (check): Likewise.
45012         * tests/unicase/test-u16-casefold.c (check): Likewise.
45013         * tests/unicase/test-u16-tolower.c (check): Likewise.
45014         * tests/unicase/test-u16-totitle.c (check): Likewise.
45015         * tests/unicase/test-u16-toupper.c (check): Likewise.
45016         * tests/unicase/test-u32-casefold.c (check): Likewise.
45017         * tests/unicase/test-u32-tolower.c (check): Likewise.
45018         * tests/unicase/test-u32-totitle.c (check): Likewise.
45019         * tests/unicase/test-u32-toupper.c (check): Likewise.
45020         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45021         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45022         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45023         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45024         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45025         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45026         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45027         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45028         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45029         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45030         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45031         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45032
45033 2009-04-05  Bruno Haible  <bruno@clisp.org>
45034
45035         Work around an autoconf limitation.
45036         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45037         comment line if it would be longer than 3 KB.
45038
45039 2009-04-05  Bruno Haible  <bruno@clisp.org>
45040
45041         Avoid test failure with libiconv-1.13.
45042         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45043         of the expected test results.
45044
45045 2009-04-05  Bruno Haible  <bruno@clisp.org>
45046
45047         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45048         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45049         that it should be installed.
45050
45051 2009-04-05  Bruno Haible  <bruno@clisp.org>
45052
45053         * gnulib-tool: New option --copy-file.
45054         (func_usage): Document it.
45055         (func_dest_tmpfilename): Moved out of func_import.
45056         (func_add_file, func_update_file): New functions, extracted from
45057         func_import.
45058         (func_import): Update.
45059
45060 2009-04-05  Karl Berry  <karl@gnu.org>
45061
45062         * README: prominently mention gnulib-tool.
45063         Rearrange sections so getting the code is near the top.
45064
45065 2009-04-05  Bruno Haible  <bruno@clisp.org>
45066
45067         * lib/unicase.h: Mention u*_cmp2.
45068         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45069         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45070         * lib/unicase/ulc-casecmp.c: Likewise.
45071         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45072         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45073         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45074         unistr/u8-cmp.
45075         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45076         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45077         unistr/u16-cmp.
45078         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45079         unistr/u32-cmp.
45080
45081         * lib/uninorm.h: Mention u*_cmp2.
45082         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45083         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45084         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45085         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45086         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45087         unistr/u8-cmp.
45088         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45089         unistr/u16-cmp.
45090         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45091         unistr/u32-cmp.
45092
45093         New module 'unistr/u32-cmp2'.
45094         * lib/unistr/u32-cmp2.c: New file.
45095         * modules/unistr/u32-cmp2: New file.
45096
45097         New module 'unistr/u16-cmp2'.
45098         * lib/unistr/u16-cmp2.c: New file.
45099         * modules/unistr/u16-cmp2: New file.
45100
45101         New module 'unistr/u8-cmp2'.
45102         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45103         * lib/unistr/u8-cmp2.c: New file.
45104         * lib/unistr/u-cmp2.h: New file.
45105         * modules/unistr/u8-cmp2: New file.
45106
45107 2009-04-05  Bruno Haible  <bruno@clisp.org>
45108
45109         * lib/unictype.h (uc_property_is_valid): New macro.
45110         * tests/unictype/test-pr_byname.c (main): Use it.
45111
45112         * lib/unistr.h: Doc fixes.
45113         * lib/uniconv.h: Doc fixes.
45114         * lib/unictype.h: Doc fixes.
45115
45116 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45117
45118         Port coreutils 7.2 to Solaris 8.
45119
45120         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45121         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45122         for Solaris 8.  This is a bit of a hack, as it means it's the
45123         caller's responsibility to add -lnsl if needed, but most likely it
45124         won't be needed since only getaddrinfo uses this and getaddrinfo
45125         isn't needed on Solaris 8.
45126
45127         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45128         problem to Solaris 8 encountered with coreutils 7.2, which
45129         resulted in a message "fnmatch.c:292: warning: passing argument 4
45130         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45131         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45132
45133 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45134
45135         * m4/ld-version-script.m4: Add FIXME comment.
45136
45137 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45138
45139         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45140         SOVERSION variable.
45141
45142 2009-04-02  Bruno Haible  <bruno@clisp.org>
45143
45144         * Makefile (info, html, dvi, pdf): Combine the rules.
45145         Suggested by Jim Meyering.
45146
45147 2009-04-01  Bruno Haible  <bruno@clisp.org>
45148
45149         * Makefile (info, html, dvi, pdf): New targets.
45150         Reported by Reuben Thomas <rrt@sc3d.org>.
45151
45152 2009-04-01  Bruno Haible  <bruno@clisp.org>
45153
45154         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45155         can be put into PATH.
45156         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45157
45158 2009-04-01  Bruno Haible  <bruno@clisp.org>
45159
45160         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45161
45162 2009-04-01  Bruno Haible  <bruno@clisp.org>
45163
45164         Rename module 'visibility'.
45165         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45166         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45167         * doc/gnulib.texi: Update.
45168         * MODULES.html.sh (Misc): Update.
45169         * NEWS: Mention the change.
45170
45171 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45172
45173         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45174         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45175         Eric Blake <ebb9@byu.net> for review.
45176         * MODULES.html.sh: Add lib-msvc-compat.
45177         * doc/gnulib.texi: Link to new section.
45178         * m4/ld-output-def.m4: New file.
45179         * doc/ld-output-def.texi: New file.
45180
45181 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45182
45183         Rename ld-version-script to lib-symbol-versions.  Suggested by
45184         Bruno Haible <bruno@clisp.org>.
45185         * modules/ld-version-script: Renamed to lib-symbol-versions.
45186         * doc/ld-version-script.texi: Fix module name.
45187         * MODULES.html.sh: Add lib-symbol-versions.
45188
45189 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45190
45191         * modules/u64-tests: New file.
45192         * tests/test-u64.c: New file.
45193
45194 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45195
45196         * MODULES.html.sh: Mention u64.
45197         * modules/u64: New module.
45198         * modules/crypto/sha512: Depend on u64 module instead of providing
45199         u64.h.
45200
45201 2009-03-27  Eric Blake  <ebb9@byu.net>
45202
45203         test-strerror: make debugging EAI_SYSTEM easier
45204         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45205         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45206         failure was EAI_SYSTEM.
45207
45208 2009-03-25  Bruno Haible  <bruno@clisp.org>
45209
45210         Fix a problem with --enable-relocatable on Solaris 7.
45211         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45212         since 2008-02-24.
45213
45214 2009-03-25  Eric Blake  <ebb9@byu.net>
45215
45216         test-sockets: avoid gcc warning
45217         * tests/test-sockets.c (main): Silence compiler warning.
45218
45219 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45220
45221         New modules nproc, pthread, contributed by Glen Lenker.
45222
45223         * MODULES.html.sh: Add pthread, nproc.
45224         * lib/nproc.c: New file.
45225         * lib/nproc.h: New file.
45226         * lib/pthread.in.h: New file.
45227         * m4/pthread.m4: New file.
45228         * modules/nproc: New file.
45229         * modules/pthread: New file.
45230
45231 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45232
45233         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45234         New variable.
45235
45236 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45237
45238         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45239         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45240         * tests/test-filevercmp.c: Add tests for backup suffixes.
45241
45242 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45243
45244         * modules/stdlib (Depends-on): Add stdint, needed when defining
45245         struct random_data on, for example, HP-UX 10.20.  Reported by
45246         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45247
45248 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45249
45250         * lib/readline.c (readline): Call fflush on stdout after printing
45251         prompt.
45252
45253 2009-03-20  Bruno Haible  <bruno@clisp.org>
45254
45255         Remove dependency from 'close' module to -lws2_32 on native Windows.
45256         * lib/close-hook.h: New file.
45257         * lib/close-hook.c: New file.
45258         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45259         w32sock.h.
45260         (_gl_close_fd_maybe_socket): Remove function.
45261         (rpl_close): Invoke execute_all_close_hooks instead of
45262         _gl_close_fd_maybe_socket.
45263         * lib/sockets.c: Include close-hook.h, w32sock.h.
45264         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45265         (close_sockets_hook): New variable.
45266         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45267         (gl_sockets_cleanup): Unregister it.
45268         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45269         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45270         * modules/close-hook: New file.
45271         * modules/close (Files): Remove lib/w32sock.h.
45272         (Depends-on): Add close-hook.
45273         (Link): Remove section.
45274         * modules/sockets (Files): Add lib/w32sock.h.
45275         (Depends-on): Add close-hook.
45276         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45277         invocation.
45278         * NEWS: Mention that LIB_CLOSE is gone.
45279
45280 2009-03-23  Eric Blake  <ebb9@byu.net>
45281
45282         signal-tests: test previous patch
45283         * tests/test-signal.c: New file.
45284         * modules/signal-tests: Likewise.
45285
45286         signal.h: always support 'volatile sig_atomic_t'
45287         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45288         (gl_SIGNAL_H_DEFAULTS): Add a default.
45289         * modules/signal (Makefile.am): Substitute if needed.
45290         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45291         users can blindly add volatile.
45292         * doc/posix-headers/signal.texi (signal.h): Document it.
45293         Reported by Matthew Woehlke.
45294
45295 2009-03-23  Jim Meyering  <meyering@redhat.com>
45296
45297         pathmax: PATH_MAX: use pathconf only when available
45298         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45299         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45300         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45301         This avoids a link failure in a PSP cross-compilation environment
45302         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45303
45304         * lib/vasnprintf.c (divide): Fix typo in comment.
45305
45306 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45307
45308         * gnulib-tool (func_filter_filelist): Fix comment.
45309
45310 2009-03-20  Bruno Haible  <bruno@clisp.org>
45311
45312         Make sockets.h self-contained.
45313         * lib/sockets.c: Include sockets.h first.
45314         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45315
45316 2009-03-19  Eric Blake  <ebb9@byu.net>
45317
45318         doc: mention more functions added in cygwin 1.7.0
45319         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45320         addition.
45321         * doc/posix-functions/log2f.texi: Likewise.
45322
45323 2009-03-19  Jim Meyering  <meyering@redhat.com>
45324
45325         fsusage: avoid syntax error due to statement-before-declaration
45326         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45327         after all declarations.  Reported by Matthew Woehlke in
45328         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45329
45330 2009-03-18  Eric Blake  <ebb9@byu.net>
45331
45332         build-aux/compile: sync from automake
45333         * build-aux/compile: New file, from automake.
45334         * config/srclist.txt: Mention build-aux/compile.
45335
45336 2009-03-17  Bruno Haible  <bruno@clisp.org>
45337
45338         * lib/git-merge-changelog.c: Fix typo in comment.
45339         Reported by Reuben Thomas <rrt@sc3d.org>.
45340
45341 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45342
45343         * m4/regex.m4: update and improve help for
45344         --without-included-regex.
45345
45346 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45347
45348         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45349         failure on missing include files.
45350
45351 2009-03-17  Eric Blake  <ebb9@byu.net>
45352
45353         doc: mention more functions added in cygwin 1.7.0
45354         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45355         addition.
45356         * doc/posix-functions/fwscanf.texi: Likewise.
45357         * doc/posix-functions/swprintf.texi: Likewise.
45358         * doc/posix-functions/swscanf.texi: Likewise.
45359         * doc/posix-functions/vfwprintf.texi: Likewise.
45360         * doc/posix-functions/vfwscanf.texi: Likewise.
45361         * doc/posix-functions/vswprintf.texi: Likewise.
45362         * doc/posix-functions/vswscanf.texi: Likewise.
45363         * doc/posix-functions/vwprintf.texi: Likewise.
45364         * doc/posix-functions/vwscanf.texi: Likewise.
45365         * doc/posix-functions/wcscasecmp.texi: Likewise.
45366         * doc/posix-functions/wcsdup.texi: Likewise.
45367         * doc/posix-functions/wcsftime.texi: Likewise.
45368         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45369         * doc/posix-functions/wprintf.texi: Likewise.
45370         * doc/posix-functions/wscanf.texi: Likewise.
45371         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45372
45373 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45374
45375         maint.mk: really add $(AM_MAKEFLAGS)
45376         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45377         was inadvertently omitted in the last commit.
45378         Spotted by Bruno Haible.
45379
45380         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45381         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45382         $(AM_MAKEFLAGS)' rather than plain `make'.
45383
45384         gnulib-tool: execute $MAKE not make
45385         * gnulib-tool: Default $MAKE to 'make'.
45386         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45387         than make.  Initialize $MAKE in the do-autobuild script.
45388
45389         gnulib-tool: use $MAKE not make in generated files
45390         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45391         make, in generated files.  Initialize $MAKE in the do-autobuild
45392         script.
45393
45394         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45395
45396         GNUmakefile: disable parallelism only for multiple, recursive targets
45397         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45398         additions in the Makefile.
45399         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45400         by Automake.
45401         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45402         are listed on the command line and at least one of them is
45403         listed in $(ALL_RECURSIVE_TARGETS).
45404
45405 2009-03-14  Bruno Haible  <bruno@clisp.org>
45406
45407         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45408         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45409         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45410         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45411         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45412         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45413         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45414         unistr/u8-uctomb.
45415         * modules/unistr/u8-strchr (Depends-on): Likewise.
45416         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45417         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45418         unistr/u16-uctomb.
45419         * modules/unistr/u16-strchr (Depends-on): Likewise.
45420         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45421
45422 2009-03-12  Bruno Haible  <bruno@clisp.org>
45423
45424         Work around select() bug on Interix 3.5.
45425         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45426         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45427         * m4/select.m4: New file.
45428         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45429         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45430         * modules/select (Files): Add m4/select.m4.
45431         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45432         * modules/nanosleep (Depends-on): Add select.
45433         * modules/poll (Depends-on): Likewise.
45434         * doc/posix-functions/select.texi: Mention the Interix bug.
45435         Reported by Markus Duft <mduft@gentoo.org>.
45436
45437         * lib/select.c: Renamed from lib/winsock-select.c.
45438         * modules/select (Files): Add lib/select.c, remove
45439         lib/winsock-select.c.
45440         (configure.ac): Update.
45441
45442 2009-03-12  Jim Meyering  <meyering@redhat.com>
45443
45444         avoid gcc warnings about unused macro definitions
45445         * lib/readtokens.c (STREQ): Remove unused definition.
45446         * lib/xmalloc.c (SIZE_MAX): Likewise.
45447         * lib/openat-die.c (N_): Likewise.
45448         * lib/mountlist.c (SIZE_MAX): Remove definition.
45449         Instead, include <stdint.h>.
45450         * lib/readutmp.c: Likewise.
45451         * modules/readutmp (Depends-on): Add stdint.
45452         * modules/mountlist (Depends-on): Add stdint.
45453         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45454
45455 2009-03-10  Bruno Haible  <bruno@clisp.org>
45456
45457         Tests for module 'mbmemcasecoll'.
45458         * modules/mbmemcasecoll-tests: New file.
45459         * tests/test-mbmemcasecoll1.sh: New file.
45460         * tests/test-mbmemcasecoll2.sh: New file.
45461         * tests/test-mbmemcasecoll3.sh: New file.
45462         * tests/test-mbmemcasecoll.c: New file.
45463
45464         New module 'mbmemcasecoll'.
45465         * lib/mbmemcasecoll.h: New file.
45466         * lib/mbmemcasecoll.c: New file.
45467         * modules/mbmemcasecoll: New file.
45468
45469         * tests/test-mbmemcasecmp.h: New file, extracted from
45470         tests/test-mbmemcasecmp.c.
45471         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45472         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45473         (main): Update.
45474         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45475
45476 2009-03-09  Bruno Haible  <bruno@clisp.org>
45477
45478         Tests for module 'mbmemcasecmp'.
45479         * modules/mbmemcasecmp-tests: New file.
45480         * tests/test-mbmemcasecmp1.sh: New file.
45481         * tests/test-mbmemcasecmp2.sh: New file.
45482         * tests/test-mbmemcasecmp3.sh: New file.
45483         * tests/test-mbmemcasecmp.c: New file.
45484
45485         New module 'mbmemcasecmp'.
45486         * lib/mbmemcasecmp.h: New file.
45487         * lib/mbmemcasecmp.c: New file.
45488         * modules/mbmemcasecmp: New file.
45489
45490 2009-03-09  Bruno Haible  <bruno@clisp.org>
45491
45492         Tests for module 'unicase/ulc-casecoll'.
45493         * modules/unicase/ulc-casecoll-tests: New file.
45494         * tests/unicase/test-ulc-casecoll1.sh: New file.
45495         * tests/unicase/test-ulc-casecoll2.sh: New file.
45496         * tests/unicase/test-ulc-casecoll.c: New file.
45497
45498         New module 'unicase/ulc-casecoll'.
45499         * lib/unicase.h (ulc_casecoll): New declaration.
45500         * lib/unicase/ulc-casecoll.c: New file.
45501         * modules/unicase/ulc-casecoll: New file.
45502
45503         New module 'unicase/ulc-casexfrm'.
45504         * lib/unicase.h (ulc_casexfrm): New declaration.
45505         * lib/unicase/ulc-casexfrm.c: New file.
45506         * modules/unicase/ulc-casexfrm: New file.
45507
45508 2009-03-09  Bruno Haible  <bruno@clisp.org>
45509
45510         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45511         invocations.
45512
45513         * m4/mbscasecmp.m4: Remove file.
45514         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45515         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45516
45517         * m4/mbscasestr.m4: Remove file.
45518         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45519         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45520
45521         * m4/mbschr.m4: Remove file.
45522         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45523         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45524
45525         * m4/mbscspn.m4: Remove file.
45526         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45527         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45528
45529         * m4/mbslen.m4: Remove file.
45530         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45531         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45532
45533         * m4/mbsncasecmp.m4: Remove file.
45534         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45535         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45536
45537         * m4/mbsnlen.m4: Remove file.
45538         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45539         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45540
45541         * m4/mbspbrk.m4: Remove file.
45542         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45543         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45544
45545         * m4/mbspcasecmp.m4: Remove file.
45546         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45547         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45548
45549         * m4/mbsrchr.m4: Remove file.
45550         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45551         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45552
45553         * m4/mbssep.m4: Remove file.
45554         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45555         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45556
45557         * m4/mbsspn.m4: Remove file.
45558         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45559         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45560
45561         * m4/mbsstr.m4: Remove file.
45562         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45563         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45564
45565         * m4/mbstok_r.m4: Remove file.
45566         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45567         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45568
45569         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45570
45571         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45572         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45573
45574         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45575
45576 2009-03-08  Bruno Haible  <bruno@clisp.org>
45577
45578         Tests for module 'unicase/ulc-casecmp'.
45579         * modules/unicase/ulc-casecmp-tests: New file.
45580         * tests/unicase/test-ulc-casecmp1.sh: New file.
45581         * tests/unicase/test-ulc-casecmp2.sh: New file.
45582         * tests/unicase/test-ulc-casecmp.c: New file.
45583
45584         New module 'unicase/ulc-casecmp'.
45585         * lib/unicase.h (ulc_casecmp): New declaration.
45586         * lib/unicase/ulc-casecmp.c: New file.
45587         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45588         'const SRC_UNIT *'.
45589         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45590         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45591         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45592         * modules/unicase/ulc-casecmp: New file.
45593
45594         Tests for module 'unicase/u32-is-cased'.
45595         * modules/unicase/u32-is-cased-tests: New file.
45596         * tests/unicase/test-u32-is-cased.c: New file.
45597
45598         Tests for module 'unicase/u16-is-cased'.
45599         * modules/unicase/u16-is-cased-tests: New file.
45600         * tests/unicase/test-u16-is-cased.c: New file.
45601
45602         Tests for module 'unicase/u8-is-cased'.
45603         * modules/unicase/u8-is-cased-tests: New file.
45604         * tests/unicase/test-u8-is-cased.c: New file.
45605         * tests/unicase/test-is-cased.h: New file.
45606
45607         New module 'unicase/u32-is-cased'.
45608         * lib/unicase/u32-is-cased.c: New file.
45609         * modules/unicase/u32-is-cased: New file.
45610
45611         New module 'unicase/u16-is-cased'.
45612         * lib/unicase/u16-is-cased.c: New file.
45613         * modules/unicase/u16-is-cased: New file.
45614
45615         New module 'unicase/u8-is-cased'.
45616         * lib/unicase/u8-is-cased.c: New file.
45617         * lib/unicase/u-is-cased.h: New file.
45618         * modules/unicase/u8-is-cased: New file.
45619
45620         Tests for module 'unicase/u32-is-casefolded'.
45621         * modules/unicase/u32-is-casefolded-tests: New file.
45622         * tests/unicase/test-u32-is-casefolded.c: New file.
45623
45624         Tests for module 'unicase/u16-is-casefolded'.
45625         * modules/unicase/u16-is-casefolded-tests: New file.
45626         * tests/unicase/test-u16-is-casefolded.c: New file.
45627
45628         Tests for module 'unicase/u8-is-casefolded'.
45629         * modules/unicase/u8-is-casefolded-tests: New file.
45630         * tests/unicase/test-u8-is-casefolded.c: New file.
45631         * tests/unicase/test-is-casefolded.h: New file.
45632
45633         New module 'unicase/u32-is-casefolded'.
45634         * lib/unicase/u32-is-casefolded.c: New file.
45635         * modules/unicase/u32-is-casefolded: New file.
45636
45637         New module 'unicase/u16-is-casefolded'.
45638         * lib/unicase/u16-is-casefolded.c: New file.
45639         * modules/unicase/u16-is-casefolded: New file.
45640
45641         New module 'unicase/u8-is-casefolded'.
45642         * lib/unicase/u8-is-casefolded.c: New file.
45643         * modules/unicase/u8-is-casefolded: New file.
45644
45645         Tests for module 'unicase/u32-is-titlecase'.
45646         * modules/unicase/u32-is-titlecase-tests: New file.
45647         * tests/unicase/test-u32-is-titlecase.c: New file.
45648
45649         Tests for module 'unicase/u16-is-titlecase'.
45650         * modules/unicase/u16-is-titlecase-tests: New file.
45651         * tests/unicase/test-u16-is-titlecase.c: New file.
45652
45653         Tests for module 'unicase/u8-is-titlecase'.
45654         * modules/unicase/u8-is-titlecase-tests: New file.
45655         * tests/unicase/test-u8-is-titlecase.c: New file.
45656         * tests/unicase/test-is-titlecase.h: New file.
45657
45658         New module 'unicase/u32-is-titlecase'.
45659         * lib/unicase/u32-is-titlecase.c: New file.
45660         * modules/unicase/u32-is-titlecase: New file.
45661
45662         New module 'unicase/u16-is-titlecase'.
45663         * lib/unicase/u16-is-titlecase.c: New file.
45664         * modules/unicase/u16-is-titlecase: New file.
45665
45666         New module 'unicase/u8-is-titlecase'.
45667         * lib/unicase/u8-is-titlecase.c: New file.
45668         * modules/unicase/u8-is-titlecase: New file.
45669
45670         Tests for module 'unicase/u32-is-lowercase'.
45671         * modules/unicase/u32-is-lowercase-tests: New file.
45672         * tests/unicase/test-u32-is-lowercase.c: New file.
45673
45674         Tests for module 'unicase/u16-is-lowercase'.
45675         * modules/unicase/u16-is-lowercase-tests: New file.
45676         * tests/unicase/test-u16-is-lowercase.c: New file.
45677
45678         Tests for module 'unicase/u8-is-lowercase'.
45679         * modules/unicase/u8-is-lowercase-tests: New file.
45680         * tests/unicase/test-u8-is-lowercase.c: New file.
45681         * tests/unicase/test-is-lowercase.h: New file.
45682
45683         New module 'unicase/u32-is-lowercase'.
45684         * lib/unicase/u32-is-lowercase.c: New file.
45685         * modules/unicase/u32-is-lowercase: New file.
45686
45687         New module 'unicase/u16-is-lowercase'.
45688         * lib/unicase/u16-is-lowercase.c: New file.
45689         * modules/unicase/u16-is-lowercase: New file.
45690
45691         New module 'unicase/u8-is-lowercase'.
45692         * lib/unicase/u8-is-lowercase.c: New file.
45693         * modules/unicase/u8-is-lowercase: New file.
45694
45695         Tests for module 'unicase/u32-is-uppercase'.
45696         * modules/unicase/u32-is-uppercase-tests: New file.
45697         * tests/unicase/test-u32-is-uppercase.c: New file.
45698
45699         Tests for module 'unicase/u16-is-uppercase'.
45700         * modules/unicase/u16-is-uppercase-tests: New file.
45701         * tests/unicase/test-u16-is-uppercase.c: New file.
45702
45703         Tests for module 'unicase/u8-is-uppercase'.
45704         * modules/unicase/u8-is-uppercase-tests: New file.
45705         * tests/unicase/test-u8-is-uppercase.c: New file.
45706         * tests/unicase/test-is-uppercase.h: New file.
45707
45708         New module 'unicase/u32-is-uppercase'.
45709         * lib/unicase/u32-is-uppercase.c: New file.
45710         * modules/unicase/u32-is-uppercase: New file.
45711
45712         New module 'unicase/u16-is-uppercase'.
45713         * lib/unicase/u16-is-uppercase.c: New file.
45714         * modules/unicase/u16-is-uppercase: New file.
45715
45716         New module 'unicase/u8-is-uppercase'.
45717         * lib/unicase/u8-is-uppercase.c: New file.
45718         * modules/unicase/u8-is-uppercase: New file.
45719
45720         New module 'unicase/u32-is-invariant'.
45721         * lib/unicase/u32-is-invariant.c: New file.
45722         * modules/unicase/u32-is-invariant: New file.
45723
45724         New module 'unicase/u16-is-invariant'.
45725         * lib/unicase/u16-is-invariant.c: New file.
45726         * modules/unicase/u16-is-invariant: New file.
45727
45728         New module 'unicase/u8-is-invariant'.
45729         * lib/unicase/u8-is-invariant.c: New file.
45730         * lib/unicase/invariant.h: New file.
45731         * lib/unicase/u-is-invariant.h: New file.
45732         * modules/unicase/u8-is-invariant: New file.
45733
45734         Tests for module 'unicase/u32-casecoll'.
45735         * modules/unicase/u32-casecoll-tests: New file.
45736         * tests/unicase/test-u32-casecoll.c: New file.
45737
45738         Tests for module 'unicase/u16-casecoll'.
45739         * modules/unicase/u16-casecoll-tests: New file.
45740         * tests/unicase/test-u16-casecoll.c: New file.
45741
45742         Tests for module 'unicase/u8-casecoll'.
45743         * modules/unicase/u8-casecoll-tests: New file.
45744         * tests/unicase/test-u8-casecoll.c: New file.
45745
45746         New module 'unicase/u32-casecoll'.
45747         * lib/unicase/u32-casecoll.c: New file.
45748         * modules/unicase/u32-casecoll: New file.
45749
45750         New module 'unicase/u16-casecoll'.
45751         * lib/unicase/u16-casecoll.c: New file.
45752         * modules/unicase/u16-casecoll: New file.
45753
45754         New module 'unicase/u8-casecoll'.
45755         * lib/unicase/u8-casecoll.c: New file.
45756         * lib/unicase/u-casecoll.h: New file.
45757         * modules/unicase/u8-casecoll: New file.
45758
45759         New module 'unicase/u32-casexfrm'.
45760         * lib/unicase/u32-casexfrm.c: New file.
45761         * modules/unicase/u32-casexfrm: New file.
45762
45763         New module 'unicase/u16-casexfrm'.
45764         * lib/unicase/u16-casexfrm.c: New file.
45765         * modules/unicase/u16-casexfrm: New file.
45766
45767         New module 'unicase/u8-casexfrm'.
45768         * lib/unicase/u8-casexfrm.c: New file.
45769         * lib/unicase/u-casexfrm.h: New file.
45770         * modules/unicase/u8-casexfrm: New file.
45771
45772         Tests for module 'unicase/u32-casecmp'.
45773         * modules/unicase/u32-casecmp-tests: New file.
45774         * tests/unicase/test-u32-casecmp.c: New file.
45775
45776         Tests for module 'unicase/u16-casecmp'.
45777         * modules/unicase/u16-casecmp-tests: New file.
45778         * tests/unicase/test-u16-casecmp.c: New file.
45779
45780         Tests for module 'unicase/u8-casecmp'.
45781         * modules/unicase/u8-casecmp-tests: New file.
45782         * tests/unicase/test-u8-casecmp.c: New file.
45783         * tests/unicase/test-casecmp.h: New file.
45784
45785         New module 'unicase/u32-casecmp'.
45786         * lib/unicase/u32-casecmp.c: New file.
45787         * modules/unicase/u32-casecmp: New file.
45788
45789         New module 'unicase/u16-casecmp'.
45790         * lib/unicase/u16-casecmp.c: New file.
45791         * modules/unicase/u16-casecmp: New file.
45792
45793         New module 'unicase/u8-casecmp'.
45794         * lib/unicase/u8-casecmp.c: New file.
45795         * lib/unicase/u-casecmp.h: New file.
45796         * modules/unicase/u8-casecmp: New file.
45797
45798         Tests for module 'unicase/u32-casefold'.
45799         * modules/unicase/u32-casefold-tests: New file.
45800         * tests/unicase/test-u32-casefold.c: New file.
45801
45802         Tests for module 'unicase/u16-casefold'.
45803         * modules/unicase/u16-casefold-tests: New file.
45804         * tests/unicase/test-u16-casefold.c: New file.
45805
45806         Tests for module 'unicase/u8-casefold'.
45807         * modules/unicase/u8-casefold-tests: New file.
45808         * tests/unicase/test-u8-casefold.c: New file.
45809
45810         New module 'unicase/u32-casefold'.
45811         * lib/unicase/u32-casefold.c: New file.
45812         * modules/unicase/u32-casefold: New file.
45813
45814         New module 'unicase/u16-casefold'.
45815         * lib/unicase/u16-casefold.c: New file.
45816         * modules/unicase/u16-casefold: New file.
45817
45818         New module 'unicase/u8-casefold'.
45819         * lib/unicase/u8-casefold.c: New file.
45820         * lib/unicase/u-casefold.h: New file.
45821         * modules/unicase/u8-casefold: New file.
45822
45823         New module 'unicase/tocasefold'.
45824         * lib/unicase/casefold.h: New file.
45825         * lib/unicase/tocasefold.c: New file.
45826         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45827         * modules/unicase/tocasefold: New file.
45828
45829         Tests for module 'unicase/u32-totitle'.
45830         * modules/unicase/u32-totitle-tests: New file.
45831         * tests/unicase/test-u32-totitle.c: New file.
45832
45833         Tests for module 'unicase/u16-totitle'.
45834         * modules/unicase/u16-totitle-tests: New file.
45835         * tests/unicase/test-u16-totitle.c: New file.
45836
45837         Tests for module 'unicase/u8-totitle'.
45838         * modules/unicase/u8-totitle-tests: New file.
45839         * tests/unicase/test-u8-totitle.c: New file.
45840
45841         New module 'unicase/u32-totitle'.
45842         * lib/unicase/u32-totitle.c: New file.
45843         * modules/unicase/u32-totitle: New file.
45844
45845         New module 'unicase/u16-totitle'.
45846         * lib/unicase/u16-totitle.c: New file.
45847         * modules/unicase/u16-totitle: New file.
45848
45849         New module 'unicase/u8-totitle'.
45850         * lib/unicase/u8-totitle.c: New file.
45851         * lib/unicase/u-totitle.h: New file.
45852         * modules/unicase/u8-totitle: New file.
45853
45854         Tests for module 'unicase/u32-tolower'.
45855         * modules/unicase/u32-tolower-tests: New file.
45856         * tests/unicase/test-u32-tolower.c: New file.
45857
45858         Tests for module 'unicase/u16-tolower'.
45859         * modules/unicase/u16-tolower-tests: New file.
45860         * tests/unicase/test-u16-tolower.c: New file.
45861
45862         Tests for module 'unicase/u8-tolower'.
45863         * modules/unicase/u8-tolower-tests: New file.
45864         * tests/unicase/test-u8-tolower.c: New file.
45865
45866         New module 'unicase/u32-tolower'.
45867         * lib/unicase/u32-tolower.c: New file.
45868         * modules/unicase/u32-tolower: New file.
45869
45870         New module 'unicase/u16-tolower'.
45871         * lib/unicase/u16-tolower.c: New file.
45872         * modules/unicase/u16-tolower: New file.
45873
45874         New module 'unicase/u8-tolower'.
45875         * lib/unicase/u8-tolower.c: New file.
45876         * modules/unicase/u8-tolower: New file.
45877
45878         Tests for module 'unicase/u32-toupper'.
45879         * modules/unicase/u32-toupper-tests: New file.
45880         * tests/unicase/test-u32-toupper.c: New file.
45881
45882         Tests for module 'unicase/u16-toupper'.
45883         * modules/unicase/u16-toupper-tests: New file.
45884         * tests/unicase/test-u16-toupper.c: New file.
45885
45886         Tests for module 'unicase/u8-toupper'.
45887         * modules/unicase/u8-toupper-tests: New file.
45888         * tests/unicase/test-u8-toupper.c: New file.
45889
45890         New module 'unicase/u32-toupper'.
45891         * lib/unicase/u32-toupper.c: New file.
45892         * modules/unicase/u32-toupper: New file.
45893
45894         New module 'unicase/u16-toupper'.
45895         * lib/unicase/u16-toupper.c: New file.
45896         * modules/unicase/u16-toupper: New file.
45897
45898         New module 'unicase/u8-toupper'.
45899         * lib/unicase/u8-toupper.c: New file.
45900         * modules/unicase/u8-toupper: New file.
45901
45902         New module 'unicase/u32-casemap'.
45903         * lib/unicase/u32-casemap.c: New file.
45904         * modules/unicase/u32-casemap: New file.
45905
45906         New module 'unicase/u16-casemap'.
45907         * lib/unicase/u16-casemap.c: New file.
45908         * modules/unicase/u16-casemap: New file.
45909
45910         New module 'unicase/u8-casemap'.
45911         * lib/unicase/unicasemap.h: New file.
45912         * lib/unicase/u8-casemap.c: New file.
45913         * lib/unicase/u-casemap.h: New file.
45914         * modules/unicase/u8-casemap: New file.
45915
45916         New module 'unicase/special-casing'.
45917         * lib/unicase/special-casing.h: New file.
45918         * lib/unicase/special-casing.c: New file.
45919         * lib/unicase/special-casing-table.gperf: New file, generated by
45920         gen-uni-tables.c.
45921         * modules/unicase/special-casing: New file.
45922
45923         Tests for module 'unicase/locale-language'.
45924         * modules/unicase/locale-language-tests: New file.
45925         * tests/unicase/test-locale-language.sh: New file.
45926         * tests/unicase/test-locale-language.c: New file.
45927
45928         New module 'unicase/locale-language'.
45929         * lib/unicase/locale-language.c: New file.
45930         * lib/unicase/locale-languages.gperf: New file.
45931         * modules/unicase/locale-language: New file.
45932
45933         Generate more tables for case conversion and case folding.
45934         * lib/gen-uni-tables.c (SCC_*): New enum items.
45935         (struct special_casing_rule): New type.
45936         (casing_rules, num_casing_rules, allocated_casing_rules): New
45937         variables.
45938         (add_casing_rule, fill_casing_rules): New functions.
45939         (struct casefold_rule): New type.
45940         (casefolding_rules, num_casefolding_rules,
45941         allocated_casefolding_rules): New variables.
45942         (fill_casefolding_rules): New function.
45943         (unicode_casefold): New variable.
45944         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45945         sort_casing_rules, output_casing_rules): New functions.
45946         (main): Accept to more arguments: SpecialCasing.txt and
45947         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45948         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45949         Output mapping for casefolding.
45950
45951         * lib/unicase.h: Include stdbool.h, uninorm.h.
45952         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45953         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45954         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45955         arguments.
45956         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45957         resultp arguments.
45958         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45959         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45960         resultp arguments.
45961         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45962         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45963         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45964         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45965         declarations.
45966         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45967
45968 2009-03-08  Bruno Haible  <bruno@clisp.org>
45969
45970         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45971         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45972         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45973         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45974
45975 2009-03-07  Bruno Haible  <bruno@clisp.org>
45976
45977         Adjust u*_normcmp, u*_normcoll API.
45978         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45979         u16_normcoll, u32_normcoll): Change failure conventions.
45980         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45981         errno and return -1.
45982         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45983
45984 2009-03-07  Bruno Haible  <bruno@clisp.org>
45985
45986         Tests for module 'uninorm/u32-normcoll'.
45987         * modules/uninorm/u32-normcoll-tests: New file.
45988         * tests/uninorm/test-u32-normcoll.c: New file.
45989
45990         Tests for module 'uninorm/u16-normcoll'.
45991         * modules/uninorm/u16-normcoll-tests: New file.
45992         * tests/uninorm/test-u16-normcoll.c: New file.
45993
45994         Tests for module 'uninorm/u8-normcoll'.
45995         * modules/uninorm/u8-normcoll-tests: New file.
45996         * tests/uninorm/test-u8-normcoll.c: New file.
45997
45998 2009-03-07  Bruno Haible  <bruno@clisp.org>
45999
46000         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46001         tests/uninorm/test-u32-normcmp.c.
46002         * tests/uninorm/test-u32-normcmp.c: Include it.
46003         (test_nonascii): New function, extracted from main. Add some more
46004         tests.
46005         (main): Invoke test_ascii and test_nonascii.
46006         * modules/uninorm/u32-normcmp-tests (Files): Add
46007         tests/uninorm/test-u32-normcmp.h.
46008         (Depends-on): Remove uninorm/u32-normcmp.
46009
46010         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46011         tests/uninorm/test-u16-normcmp.c.
46012         * tests/uninorm/test-u16-normcmp.c: Include it.
46013         (test_nonascii): New function, extracted from main. Add some more
46014         tests.
46015         (main): Invoke test_ascii and test_nonascii.
46016         * modules/uninorm/u16-normcmp-tests (Files): Add
46017         tests/uninorm/test-u16-normcmp.h.
46018         (Depends-on): Remove uninorm/u16-normcmp.
46019
46020         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46021         tests/uninorm/test-u8-normcmp.c.
46022         * tests/uninorm/test-u8-normcmp.c: Include it.
46023         (test_nonascii): New function, extracted from main. Add some more
46024         tests.
46025         (main): Invoke test_ascii and test_nonascii.
46026         * modules/uninorm/u8-normcmp-tests (Files): Add
46027         tests/uninorm/test-u8-normcmp.h.
46028         (Depends-on): Remove uninorm/u8-normcmp.
46029
46030 2009-03-07  Bruno Haible  <bruno@clisp.org>
46031
46032         New module 'uninorm/u32-normcoll'.
46033         * lib/uninorm/u32-normcoll.c: New file.
46034         * modules/uninorm/u32-normcoll: New file.
46035
46036         New module 'uninorm/u16-normcoll'.
46037         * lib/uninorm/u16-normcoll.c: New file.
46038         * modules/uninorm/u16-normcoll: New file.
46039
46040         New module 'uninorm/u8-normcoll'.
46041         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46042         declarations.
46043         * lib/uninorm/u8-normcoll.c: New file.
46044         * lib/uninorm/u-normcoll.h: New file.
46045         * modules/uninorm/u8-normcoll: New file.
46046
46047         New module 'uninorm/u32-normxfrm'.
46048         * lib/uninorm/u32-normxfrm.c: New file.
46049         * modules/uninorm/u32-normxfrm: New file.
46050
46051         New module 'uninorm/u16-normxfrm'.
46052         * lib/uninorm/u16-normxfrm.c: New file.
46053         * modules/uninorm/u16-normxfrm: New file.
46054
46055         New module 'uninorm/u8-normxfrm'.
46056         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46057         declarations.
46058         * lib/uninorm/u8-normxfrm.c: New file.
46059         * lib/uninorm/u-normxfrm.h: New file.
46060         * modules/uninorm/u8-normxfrm: New file.
46061
46062 2009-03-07  Bruno Haible  <bruno@clisp.org>
46063
46064         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46065         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46066         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46067
46068 2009-03-07  Bruno Haible  <bruno@clisp.org>
46069
46070         New module 'memxfrm'.
46071         * lib/memxfrm.h: New file.
46072         * lib/memxfrm.c: New file.
46073         * modules/memxfrm: New file.
46074
46075 2009-03-07  Bruno Haible  <bruno@clisp.org>
46076
46077         New module 'memcmp2'.
46078         * lib/memcmp2.h: New file.
46079         * lib/memcmp2.c: New file.
46080         * modules/memcmp2: New file.
46081
46082 2009-03-07  Bruno Haible  <bruno@clisp.org>
46083
46084         Tests for module 'uninorm/decomposing-form'.
46085         * modules/uninorm/decomposing-form-tests: New file.
46086         * tests/uninorm/test-decomposing-form.c: New file.
46087
46088         New module 'uninorm/decomposing-form'.
46089         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46090         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46091         Add 'decomposing_variant' field.
46092         * lib/uninorm/decomposing-form.c: New file.
46093         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46094         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46095         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46096         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46097         * modules/uninorm/decomposing-form: New file.
46098         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46099         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46100
46101 2009-03-07  Bruno Haible  <bruno@clisp.org>
46102
46103         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46104         strings.
46105
46106 2009-03-06  Bruno Haible  <bruno@clisp.org>
46107
46108         Tests for module 'uninorm/u32-normcmp'.
46109         * tests/uninorm/test-u32-normcmp.c: New file.
46110         * modules/uninorm/u32-normcmp-tests: New file.
46111
46112         Tests for module 'uninorm/u16-normcmp'.
46113         * tests/uninorm/test-u16-normcmp.c: New file.
46114         * modules/uninorm/u16-normcmp-tests: New file.
46115
46116         Tests for module 'uninorm/u8-normcmp'.
46117         * tests/uninorm/test-u8-normcmp.c: New file.
46118         * modules/uninorm/u8-normcmp-tests: New file.
46119
46120         New module 'uninorm/u32-normcmp'.
46121         * lib/uninorm/u32-normcmp.c: New file.
46122         * modules/uninorm/u32-normcmp: New file.
46123
46124         New module 'uninorm/u16-normcmp'.
46125         * lib/uninorm/u16-normcmp.c: New file.
46126         * modules/uninorm/u16-normcmp: New file.
46127
46128         New module 'uninorm/u8-normcmp'.
46129         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46130         declarations.
46131         * lib/uninorm/u8-normcmp.c: New file.
46132         * lib/uninorm/u-normcmp.h: New file.
46133         * modules/uninorm/u8-normcmp: New file.
46134
46135 2009-03-06  Bruno Haible  <bruno@clisp.org>
46136
46137         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46138         Reported by Eric Blake.
46139
46140 2009-03-06  Eric Blake  <ebb9@byu.net>
46141             Bruno Haible  <bruno@clisp.org>
46142
46143         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46144         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46145         condition.
46146         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46147         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46148         condition.
46149         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46150
46151 2009-03-06  Eric Blake  <ebb9@byu.net>
46152
46153         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46154         to avoid compiler warnings.
46155         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46156
46157 2009-03-05  Bruno Haible  <bruno@clisp.org>
46158
46159         * tests/test-ftell.c (main): Disable test beyond end of file on
46160         FreeMiNT.
46161         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46162
46163 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46164
46165         * lib/filevercmp.c: Move hidden files up in ordering.
46166         * tests/test-filevercmp.c: Add tests for hidden files.
46167
46168 2009-03-04  Bruno Haible  <bruno@clisp.org>
46169
46170         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46171         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46172         AM_CFLAGS.
46173         Reported by Simon Josefsson.
46174
46175 2009-03-03  Bruno Haible  <bruno@clisp.org>
46176
46177         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46178         Reported by Simon Josefsson.
46179
46180         * doc/ld-version-script.texi: Update node reference.
46181
46182 2009-03-03  Bruno Haible  <bruno@clisp.org>
46183
46184         * modules/visibility (License): Change to 'unlimited'.
46185         Suggested by Simon Josefsson.
46186
46187 2009-03-03  Jim Meyering  <meyering@redhat.com>
46188
46189         unlinkdir: cannot_unlink_dir may modify process state
46190         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46191         it's neither thread-safe nor appropriate for use in a library.
46192
46193 2009-03-03  Eric Blake  <ebb9@byu.net>
46194
46195         test-closein: silence test under Darwin
46196         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46197         care if it dies from EPIPE or EBADF.
46198
46199 2009-03-03  Bruno Haible  <bruno@clisp.org>
46200
46201         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46202         earlier.
46203         * doc/visibility.texi: Fix @node and @section.
46204
46205 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46206
46207         * doc/gnulib.texi: Link to sections for ld version script and
46208         visibility.
46209         * doc/visibility.texi: Add @node and @section.
46210         * modules/ld-version-script: New module.
46211         * m4/ld-version-script.m4: New file.
46212         * doc/ld-version-script.texi: New file.
46213
46214 2009-03-02  David Lutterkort  <lutter@redhat.com>
46215
46216         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46218
46219 2009-03-02  Bruno Haible  <bruno@clisp.org>
46220
46221         * doc/visibility.texi: Mention libtool's -export-symbols option.
46222
46223 2009-03-02  Jim Meyering  <meyering@redhat.com>
46224
46225         announce-gen: new option: --no-print-checksums
46226         * build-aux/announce-gen (usage): Describe it.
46227         (print_checksums): Print a newline here, not in the [*] footnote.
46228         (main): Honor it.
46229
46230 2009-03-01  Bruno Haible  <bruno@clisp.org>
46231
46232         Use socklen_t in the native Windows replacements prototypes.
46233         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46234         instead of 'int'.
46235         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46236         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46237         * modules/getsockopt (Depends-on): Add socklen.
46238         * modules/setsockopt (Depends-on): Add socklen.
46239
46240 2009-03-01  Bruno Haible  <bruno@clisp.org>
46241
46242         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46243         least 4.2.
46244
46245 2009-03-01  Eric Blake  <ebb9@byu.net>
46246             Bruno Haible  <bruno@clisp.org>
46247
46248         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46249         error messages.
46250         * lib/wait-process.c (wait_subprocess): Omit error message about
46251         deadly signal sent to the child of termsigp != NULL.
46252
46253 2009-03-01  Eric Blake  <ebb9@byu.net>
46254
46255         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46256
46257 2009-03-01  Bruno Haible  <bruno@clisp.org>
46258
46259         Avoid a gcc warning.
46260         * tests/test-sched.c (b): Make global.
46261         Reported by Eric Blake.
46262
46263 2009-01-19  Martin Lambers  <marlam@marlam.de>
46264
46265         Provide POSIX semantics for socket timeout options on W32.
46266         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46267         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46268         * modules/setsockopt: Depend on sys_time module for struct timeval.
46269         * modules/getsockopt: Depend on sys_time module for struct timeval.
46270
46271 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46272
46273         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46274         __USE_GNU, for consistency with netdb.in.h.
46275         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46276
46277 2009-03-01  Bruno Haible  <bruno@clisp.org>
46278
46279         More support for FreeMiNT.
46280         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46281         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46282
46283 2009-03-01  Bruno Haible  <bruno@clisp.org>
46284
46285         More support for FreeMiNT.
46286         * lib/fpurge.c (fpurge): Correct last commit.
46287         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46288
46289 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46290
46291         Fix unportable awk script in vc-list-files.
46292         * build-aux/vc-list-files: In the replacement awk script, use
46293         substr with a second argument of 1, not zero.
46294         Report by Simon Josefsson.
46295
46296 2009-02-28  Bruno Haible  <bruno@clisp.org>
46297
46298         More support for FreeMiNT.
46299         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46300         to FreeMiNT today.
46301         * lib/fwriting.c (fwriting): Likewise.
46302         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46303
46304 2009-02-28  Bruno Haible  <bruno@clisp.org>
46305
46306         * tests/test-freadseek.c (main): Disable test beyond end of file on
46307         FreeMiNT.
46308         * tests/test-ftello.c (main): Likewise.
46309         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46310
46311 2009-02-28  Bruno Haible  <bruno@clisp.org>
46312
46313         Add tentative support for FreeMiNT.
46314         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46315         * lib/fpurge.c (fpurge): Likewise.
46316         * lib/freadable.c (freadable): Likewise.
46317         * lib/freading.c (freading): Likewise.
46318         * lib/freadptr.c (freadptr): Likewise.
46319         * lib/freadseek.c (freadptrinc): Likewise.
46320         * lib/fseeko.c (rpl_fseeko): Likewise.
46321         * lib/fseterr.c (fseterr): Likewise.
46322         * lib/fwritable.c (fwritable): Likewise.
46323         * lib/fwriting.c (fwriting): Likewise.
46324         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46325         Hourihane.
46326         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46327
46328 2009-02-28  Bruno Haible  <bruno@clisp.org>
46329
46330         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46331         SIGCHLD.
46332         Reported by Jim Meyering.
46333
46334 2009-02-28  Bruno Haible  <bruno@clisp.org>
46335
46336         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46337         Mention the results of these tests on various platforms.
46338         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46339         order.
46340         * doc/posix-functions/printf.texi: Likewise.
46341         * doc/posix-functions/snprintf.texi: Likewise.
46342         * doc/posix-functions/sprintf.texi: Likewise.
46343         * doc/posix-functions/vfprintf.texi: Likewise.
46344         * doc/posix-functions/vprintf.texi: Likewise.
46345         * doc/posix-functions/vsnprintf.texi: Likewise.
46346         * doc/posix-functions/vsprintf.texi: Likewise.
46347         * doc/glibc-functions/obstack_printf.texi: Likewise.
46348         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46349
46350 2009-02-28  Bruno Haible  <bruno@clisp.org>
46351
46352         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46353         Reported by Loïc Minier <lool@dooz.org>.
46354
46355 2009-02-27  Bruno Haible  <bruno@clisp.org>
46356
46357         * gnulib-tool (func_import): Make the sed expression used to create the
46358         sed script for updating the .gitignore file POSIX compliant.
46359         Reported by Eric Blake.
46360
46361 2009-02-27  Bruno Haible  <bruno@clisp.org>
46362
46363         * gnulib-tool (sed): Don't alias as "sed --posix".
46364         Reported by Eric Blake.
46365
46366 2009-02-27  Bruno Haible  <bruno@clisp.org>
46367
46368         Avoid test link errors.
46369         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46370         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46371         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46372         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46373         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46374
46375 2009-02-27  Bruno Haible  <bruno@clisp.org>
46376
46377         Avoid spurious "(cached)" in configure output.
46378         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46379         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46380         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46381         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46382         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46383         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46384         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46385         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46386         Reported by Eric Blake.
46387
46388 2009-02-27  Eric Blake  <ebb9@byu.net>
46389
46390         printf: fix regression in previous patch
46391         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46392
46393 2009-02-27  Bruno Haible  <bruno@clisp.org>
46394
46395         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46396         value.
46397         * lib/stdint.in.h: Likewise.
46398         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46399
46400 2009-02-27  Eric Blake  <ebb9@byu.net>
46401
46402         doc: mention more functions added in cygwin 1.7.0
46403         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46404         addition.
46405         * doc/posix-functions/open_wmemstream.texi: Likewise.
46406         * doc/posix-functions/wcsnlen.texi: Likewise.
46407         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46408         * doc/posix-functions/wcstod.texi: Likewise.
46409         * doc/posix-functions/wcstof.texi: Likewise.
46410         * doc/posix-functions/wcstoimax.texi: Likewise.
46411         * doc/posix-functions/wcstok.texi: Likewise.
46412         * doc/posix-functions/wcstoumax.texi: Likewise.
46413
46414         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46415         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46416         * doc/posix-functions/fprintf.texi: Update.
46417         * doc/posix-functions/printf.texi: Update.
46418         * doc/posix-functions/snprintf.texi: Update.
46419         * doc/posix-functions/sprintf.texi: Update.
46420         * doc/posix-functions/vfprintf.texi: Update.
46421         * doc/posix-functions/vprintf.texi: Update.
46422         * doc/posix-functions/vsnprintf.texi: Update.
46423         * doc/posix-functions/vsprintf.texi: Update.
46424         * doc/glibc-functions/obstack_printf.texi: Update.
46425         * doc/glibc-functions/obstack_vprintf.texi: Update.
46426
46427 2009-02-26  Eric Blake  <ebb9@byu.net>
46428
46429         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46430         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46431         compilation bug by using runtime conversion.
46432         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46433         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46434         * modules/ceill-tests (Files): Use nan.h.
46435         * modules/floorl-tests (Files): Likewise.
46436         * modules/frexpl-tests (Files): Likewise.
46437         * modules/isnanl-tests (Files): Likewise.
46438         * modules/ldexpl-tests (Files): Likewise.
46439         * modules/roundl-tests (Files): Likewise.
46440         * modules/truncl-tests (Files): Likewise.
46441         * tests/test-ceill.c (main): Use a working NaN.
46442         * tests/test-floorl.c (main): Likewise.
46443         * tests/test-frexpl.c (main): Likewise.
46444         * tests/test-isnan.c (test_long_double): Likewise.
46445         * tests/test-isnanl.h (main): Likewise.
46446         * tests/test-ldexpl.h (main): Likewise.
46447         * tests/test-roundl.h (main): Likewise.
46448         * tests/test-truncl.h (main): Likewise.
46449         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46450
46451 2009-02-26  Eric Blake  <ebb9@byu.net>
46452             Bruno Haible  <bruno@clisp.org>
46453
46454         Work around a *printf bug with %ls on Solaris.
46455         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46456         precision is specified, sprintf stops converting the wide string
46457         argument when the number of bytes that have been produced by this
46458         conversion equals or exceeds the precision.
46459         * doc/posix-functions/fprintf.texi: Update.
46460         * doc/posix-functions/printf.texi: Update.
46461         * doc/posix-functions/snprintf.texi: Update.
46462         * doc/posix-functions/sprintf.texi: Update.
46463         * doc/posix-functions/vfprintf.texi: Update.
46464         * doc/posix-functions/vprintf.texi: Update.
46465         * doc/posix-functions/vsnprintf.texi: Update.
46466         * doc/posix-functions/vsprintf.texi: Update.
46467         * doc/glibc-functions/obstack_printf.texi: Update.
46468         * doc/glibc-functions/obstack_vprintf.texi: Update.
46469
46470 2009-02-26  Eric Blake  <ebb9@byu.net>
46471
46472         stdlib: favor compiler check of random.h
46473         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46474         to avoid an ObjC random.h installed by Swarm.
46475
46476 2009-02-26  Bruno Haible  <bruno@clisp.org>
46477
46478         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46479         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46480         Reported by Gary V. Vaughan <gary@gnu.org>.
46481
46482 2009-02-26  Bruno Haible  <bruno@clisp.org>
46483
46484         Fix *printf behaviour regarding the %ls directive.
46485         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46486         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46487         NEED_PRINTF_DIRECTIVE_LS.
46488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46489         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46490         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46491         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46492         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46493         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46494         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46495         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46496         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46497         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46498         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46499         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46500         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46502         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46503         * doc/posix-functions/fprintf.texi: Update.
46504         * doc/posix-functions/printf.texi: Update.
46505         * doc/posix-functions/snprintf.texi: Update.
46506         * doc/posix-functions/sprintf.texi: Update.
46507         * doc/posix-functions/vfprintf.texi: Update.
46508         * doc/posix-functions/vprintf.texi: Update.
46509         * doc/posix-functions/vsnprintf.texi: Update.
46510         * doc/posix-functions/vsprintf.texi: Update.
46511         * doc/glibc-functions/obstack_printf.texi: Update.
46512         * doc/glibc-functions/obstack_vprintf.texi: Update.
46513         Reported by Eric Blake.
46514
46515 2009-02-25  Bruno Haible  <bruno@clisp.org>
46516
46517         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46518         with known value.
46519         Reported by Gary V. Vaughan <gary@gnu.org>.
46520
46521 2009-02-25  Bruno Haible  <bruno@clisp.org>
46522
46523         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46524         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46525         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46526         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46527         Reported by Gary V. Vaughan <gary@gnu.org>.
46528
46529 2009-02-25  Bruno Haible  <bruno@clisp.org>
46530
46531         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46532         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46533         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46534         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46535         Reported by Gary V. Vaughan <gary@gnu.org>.
46536
46537 2009-02-25  Eric Blake  <ebb9@byu.net>
46538
46539         tests: skip fseek/ftell tests if ungetc is broken
46540         * m4/ungetc.m4: New file.
46541         * modules/fseek-tests: Split test, so ungetc dependency is
46542         separate from rest of test.
46543         * modules/fseeko-tests: Likewise.
46544         * modules/ftell-tests: Likewise.
46545         * modules/ftello-tests: Likewise.
46546         * tests/test-fseek.c (main): Isolate ungetc dependency.
46547         * tests/test-fseeko.c (main): Likewise.
46548         * tests/test-ftell.c (main): Likewise.
46549         * tests/test-ftello.c (main): Likewise.
46550         * tests/test-fseek2.sh: New file.
46551         * tests/test-fseeko2.sh: Likewise.
46552         * tests/test-ftell2.sh: Likewise.
46553         * tests/test-ftello2.sh: Likewise.
46554
46555 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46556
46557         test-getaddrinfo: fix usage of skip return code 77
46558         * tests/test-gettaddrinfo.c: Return skip code 77 only
46559         for first occurance of skip (4x77 is not 77)
46560
46561 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46562
46563         strtod: avoid C99 decl-after-statement
46564         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46565
46566 2009-02-24  Eric Blake  <ebb9@byu.net>
46567
46568         strtod: detect HP-UX 11.31 bug
46569         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46570         Reported by Gary V. Vaughan.
46571
46572 2009-02-23  Bruno Haible  <bruno@clisp.org>
46573
46574         Fix invalid read past end of memory block.
46575         * lib/vasnprintf.c (DCHAR_SET): Define.
46576         (local_wcslen): Define only when needed.
46577         (local_strnlen, local_wcsnlen): New functions.
46578         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46579         directives that involve a conversion ourselves.
46580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46581         wcsnlen, mbrtowc, wcrtomb.
46582         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46583         * tests/test-vasprintf-posix.c (test_function): Likewise.
46584         * tests/test-snprintf-posix.h (test_function): Likewise.
46585         * tests/test-sprintf-posix.h (test_function): Likewise.
46586         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46587
46588 2009-02-22  Bruno Haible  <bruno@clisp.org>
46589
46590         Implement new clarified decomposition of Hangul syllables.
46591         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46592         of type LTV, return only a pairwise decomposition.
46593         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46594         Likewise.
46595         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46596         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46597         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46598
46599 2009-02-22  Bruno Haible  <bruno@clisp.org>
46600
46601         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46602         zero-length results and shrink excess allocated memory.
46603         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46604         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46605         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46606         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46607         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46608         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46609         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46610         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46611         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46612         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46613         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46614         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46615
46616 2009-02-21  Bruno Haible  <bruno@clisp.org>
46617
46618         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46619         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46620         spaces after a period. Put a space between a macro name and its
46621         argument list. Trivial rewordings.
46622         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46623         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46624         (main): Return 0 explicitly.
46625
46626 2009-02-21  Bruno Haible  <bruno@clisp.org>
46627
46628         Tests for module 'uninorm/filter'.
46629         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46630         * modules/uninorm/filter-tests: New file.
46631
46632         New module 'uninorm/filter'.
46633         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46634         uninorm_filter_flush, uninorm_filter_free): New declarations.
46635         * lib/uninorm/uninorm-filter.c: New file.
46636         * modules/uninorm/filter: New file.
46637
46638 2009-02-21  Bruno Haible  <bruno@clisp.org>
46639
46640         Tests for module 'uninorm/nfkc'.
46641         * tests/uninorm/test-nfkc.c: New file.
46642         * tests/uninorm/test-u8-nfkc.c: New file.
46643         * tests/uninorm/test-u16-nfkc.c: New file.
46644         * tests/uninorm/test-u32-nfkc.c: New file.
46645         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46646         * tests/uninorm/test-u32-nfkc-big.c: New file.
46647         * modules/uninorm/nfkc-tests: New file.
46648
46649         New module 'uninorm/nfkc'.
46650         * lib/uninorm/nfkc.c: New file.
46651         * modules/uninorm/nfkc: New file.
46652
46653         Tests for module 'uninorm/nfkd'.
46654         * tests/uninorm/test-nfkd.c: New file.
46655         * tests/uninorm/test-u8-nfkd.c: New file.
46656         * tests/uninorm/test-u16-nfkd.c: New file.
46657         * tests/uninorm/test-u32-nfkd.c: New file.
46658         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46659         * tests/uninorm/test-u32-nfkd-big.c: New file.
46660         * modules/uninorm/nfkd-tests: New file.
46661
46662         New module 'uninorm/nfkd'.
46663         * lib/uninorm/nfkd.c: New file.
46664         * modules/uninorm/nfkd: New file.
46665
46666         Tests for module 'uninorm/nfc'.
46667         * tests/uninorm/test-nfc.c: New file.
46668         * tests/uninorm/test-u8-nfc.c: New file.
46669         * tests/uninorm/test-u16-nfc.c: New file.
46670         * tests/uninorm/test-u32-nfc.c: New file.
46671         * tests/uninorm/test-u32-nfc-big.sh: New file.
46672         * tests/uninorm/test-u32-nfc-big.c: New file.
46673         * modules/uninorm/nfc-tests: New file.
46674
46675         New module 'uninorm/nfc'.
46676         * lib/uninorm/nfc.c: New file.
46677         * modules/uninorm/nfc: New file.
46678
46679         Tests for module 'uninorm/nfd'.
46680         * tests/uninorm/test-nfd.c: New file.
46681         * tests/uninorm/test-u8-nfd.c: New file.
46682         * tests/uninorm/test-u16-nfd.c: New file.
46683         * tests/uninorm/test-u32-nfd.c: New file.
46684         * tests/uninorm/test-u32-nfd-big.sh: New file.
46685         * tests/uninorm/test-u32-nfd-big.c: New file.
46686         * tests/uninorm/test-u32-normalize-big.h: New file.
46687         * tests/uninorm/test-u32-normalize-big.c: New file.
46688         * tests/uninorm/NormalizationTest.txt: New file, created from
46689         Unicode 5.1.0 NormalizationTest.txt.
46690         * modules/uninorm/nfd-tests: New file.
46691
46692         New module 'uninorm/nfd'.
46693         * lib/uninorm/nfd.c: New file.
46694         * modules/uninorm/nfd: New file.
46695
46696         New module 'uninorm/u32-normalize'.
46697         * lib/uninorm/u32-normalize.c: New file.
46698         * modules/uninorm/u32-normalize: New file.
46699
46700         New module 'uninorm/u16-normalize'.
46701         * lib/uninorm/u16-normalize.c: New file.
46702         * modules/uninorm/u16-normalize: New file.
46703
46704         New module 'uninorm/u8-normalize'.
46705         * lib/uninorm/u8-normalize.c: New file.
46706         * lib/uninorm/normalize-internal.h: New file.
46707         * lib/uninorm/u-normalize-internal.h: New file.
46708         * modules/uninorm/u8-normalize: New file.
46709
46710         New module 'uninorm/decompose-internal'.
46711         * lib/uninorm/decompose-internal.c: New file.
46712         * modules/uninorm/decompose-internal: New file.
46713
46714         Tests for module 'uninorm/composition'.
46715         * tests/uninorm/test-composition.c: New file.
46716         * modules/uninorm/composition-tests: New file.
46717
46718         New module 'uninorm/composition'.
46719         * lib/uninorm/composition.c: New file.
46720         * lib/uninorm/composition-table.gperf: New file, generated by
46721         gen-uni-tables.
46722         * modules/uninorm/composition: New file.
46723
46724         Tests for module 'uninorm/compat-decomposition'.
46725         * tests/uninorm/test-compat-decomposition.c: New file.
46726         * modules/uninorm/compat-decomposition-tests: New file.
46727
46728         New module 'uninorm/compat-decomposition'.
46729         * lib/uninorm/decompose-internal.h: New file.
46730         * lib/uninorm/compat-decomposition.c: New file.
46731         * modules/uninorm/compat-decomposition: New file.
46732
46733         Tests for module 'uninorm/canonical-decomposition'.
46734         * tests/uninorm/test-canonical-decomposition.c: New file.
46735         * modules/uninorm/canonical-decomposition-tests: New file.
46736
46737         New module 'uninorm/canonical-decomposition'.
46738         * lib/uninorm/canonical-decomposition.c: New file.
46739         * modules/uninorm/canonical-decomposition: New file.
46740
46741         Tests for module 'uninorm/decomposition'.
46742         * tests/uninorm/test-decomposition.c: New file.
46743         * modules/uninorm/decomposition-tests: New file.
46744
46745         New module 'uninorm/decomposition'.
46746         * lib/uninorm/decomposition.c: New file.
46747         * modules/uninorm/decomposition: New file.
46748
46749         New module 'uninorm/decomposition-table'.
46750         * lib/uninorm/decomposition-table.h: New file.
46751         * lib/uninorm/decomposition-table.c: New file.
46752         * lib/uninorm/decomposition-table1.h: New file, generated by
46753         gen-uni-tables.
46754         * lib/uninorm/decomposition-table2.h: New file, generated by
46755         gen-uni-tables.
46756         * modules/uninorm/decomposition-table: New file.
46757
46758         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46759         (UC_DECOMP_*): New enumeration items.
46760         (get_decomposition): New function.
46761         (struct decomp_table): New type.
46762         (output_decomposition, output_decomposition_tables): New functions.
46763         (unicode_composition_exclusions): New variable.
46764         (fill_composition_exclusions, debug_output_composition_tables): New
46765         functions.
46766         (main): Accept one more argument. Invoke fill_composition_exclusions.
46767         Output decomposition and composition tables.
46768
46769         New module 'uninorm/base'.
46770         * lib/uninorm.h: New file.
46771         * lib/unictype.h: Update comment.
46772         * modules/uninorm/base: New file.
46773
46774 2009-02-21  David Lutterkort  <lutter@redhat.com>
46775
46776         Tests for module 'safe-alloc'.
46777         * tests/test-safe-alloc.c: New file.
46778         * modules/safe-alloc-tests: New file.
46779
46780         New module 'safe-alloc'.
46781         * lib/safe-alloc.h: New file.
46782         * lib/safe-alloc.c: New file.
46783         * m4/safe-alloc.m4: New file.
46784         * modules/safe-alloc: New file.
46785         * doc/safe-alloc.texi: New file.
46786         * doc/gnulib.texi: Include it.
46787         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46788         safe-alloc.
46789
46790 2009-02-18  Bruno Haible  <bruno@clisp.org>
46791
46792         Fix link error on non-glibc systems.
46793         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46794         variable.
46795         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46796
46797 2009-02-18  Jim Meyering  <meyering@redhat.com>
46798
46799         fts: avoid used-uninitialized error due to recent change
46800         * lib/fts.c (fts_read): Guard uses of the new member,
46801         parent->fts_n_dirs_remaining, since it's not relevant for
46802         the parent of a directory specified on the command-line.
46803
46804 2009-02-17  James Youngman  <jay@gnu.org>
46805             Bruno Haible  <bruno@clisp.org>
46806
46807         * m4/include_next.m4: Reformulate comment.
46808
46809 2009-02-16  Jim Meyering  <meyering@redhat.com>
46810
46811         fts: add #if guards so that the fts_lgpl module still builds
46812         * lib/fts.c: Guard just-added hash-table-using parts with
46813         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46814         Reported by Simon Josefsson.
46815
46816 2009-02-15  Bruno Haible  <bruno@clisp.org>
46817
46818         * modules/array-mergesort-tests: New file.
46819         * tests/test-array-mergesort.c: New file.
46820
46821         New module 'array-mergesort'.
46822         * modules/array-mergesort: New file.
46823         * lib/array-mergesort.h: New file.
46824
46825 2009-02-15  Bruno Haible  <bruno@clisp.org>
46826
46827         Fix 2009-02-07 commit.
46828         * lib/gen-uni-tables.c (output_predicate, output_category,
46829         output_combclass, output_bidi_category, output_decimal_digit,
46830         output_digit, output_numeric, output_mirror, output_scripts,
46831         output_ident_category, output_simple_mapping): Fix format directives.
46832         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46833
46834 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46835
46836         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46837         fixes are available from IBM.
46838
46839 2009-02-13  Jim Meyering  <meyering@redhat.com>
46840
46841         fts: arrange not to stat non-directories in more cases
46842         This makes GNU find (when it doesn't need to stat each file)
46843         *much* more efficient at traversing reiserfs file systems.
46844         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46845         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46846         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46847         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46848         (leaf_optimization_applies): New function.
46849         (LCO_hash, LCO_compare): New helper functions.
46850         (link_count_optimize_ok): New function.
46851         (fts_stat): Initialize new member (if dir).
46852         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46853         we've just stat'ed a directory.  Skip the stat call when possible.
46854         ---
46855         Note this AFS-related exchange:
46856         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46857         and note find's pioctl call in find/fstype.c.
46858         But that is necessary only if you want to enable the
46859         optimization for AFS, and for now, I don't.
46860
46861         fts: move a function definition "up" (no semantic change)
46862         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46863         "up" to precede upcoming use of a related function.
46864
46865 2009-02-11  Jim Meyering  <meyering@redhat.com>
46866
46867         fts: correct internal computation of nlinks (optimization-related)
46868         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46869         whether the current entry is a directory, so don't test it.
46870
46871 2009-02-10  Bruno Haible  <bruno@clisp.org>
46872
46873         Tests for module 'uniwbrk/ulc-wordbreaks'.
46874         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46875         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46876         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46877
46878         Tests for module 'uniwbrk/u32-wordbreaks'.
46879         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46880         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46881
46882         Tests for module 'uniwbrk/u16-wordbreaks'.
46883         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46884         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46885
46886         Tests for module 'uniwbrk/u8-wordbreaks'.
46887         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46888         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46889
46890 2009-02-10  Bruno Haible  <bruno@clisp.org>
46891
46892         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46893         property.
46894         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46895         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46896         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46897
46898 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46899
46900         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46901         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46902
46903 2009-02-10  Bruno Haible  <bruno@clisp.org>
46904
46905         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46906         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46907         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46908         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46909         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46910         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46911
46912 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46913
46914         * lib/sockets.h (gl_fd_to_handle): New function.
46915
46916         * tests/test-sockets.c: Call gl_fd_to_handle.
46917
46918 2009-02-09  Bruno Haible  <bruno@clisp.org>
46919
46920         * doc/havelib.texi: Document the conventions on bi-arch systems.
46921
46922 2009-02-08  Bruno Haible  <bruno@clisp.org>
46923
46924         Document the AC_LIB_LINKFLAGS macro.
46925         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46926         * doc/gnulib.texi: Include it.
46927
46928 2009-02-08  Bruno Haible  <bruno@clisp.org>
46929
46930         Fix wrong order of sections, compared to TOC.
46931         * doc/gnulib.texi: Include relocatable-maint.texi after the
46932         "Regular expressions" node, not before.
46933
46934 2009-02-08  Bruno Haible  <bruno@clisp.org>
46935
46936         Tests for module 'unicase/totitle'.
46937         * modules/unicase/totitle-tests: New file.
46938
46939         Tests for module 'unicase/tolower'.
46940         * modules/unicase/tolower-tests: New file.
46941
46942         Tests for module 'unicase/toupper'.
46943         * modules/unicase/toupper-tests: New file.
46944         * tests/unicase/test-mapping-part1.h: New file.
46945         * tests/unicase/test-mapping-part2.h: New file.
46946
46947         New module 'unicase/totitle'.
46948         * modules/unicase/totitle: New file.
46949         * lib/unicase/totitle.c: New file.
46950
46951         New module 'unicase/tolower'.
46952         * modules/unicase/tolower: New file.
46953         * lib/unicase/tolower.c: New file.
46954
46955         New module 'unicase/toupper'.
46956         * modules/unicase/toupper: New file.
46957         * lib/unicase/toupper.c: New file.
46958         * lib/unicase/simple-mapping.h: New file.
46959
46960         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46961         (mapping_table): New structure.
46962         (output_simple_mapping): New function.
46963         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46964         * modules/gen-uni-tables (Description): Update.
46965         * lib/unicase/toupper.h: New file, automatically generated by
46966         gen-uni-tables.
46967         * lib/unicase/tolower.h: New file, automatically generated by
46968         gen-uni-tables.
46969         * lib/unicase/totitle.h: New file, automatically generated by
46970         gen-uni-tables.
46971         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46972         gen-uni-tables.
46973         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46974         gen-uni-tables.
46975         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46976         gen-uni-tables.
46977
46978         New module 'unicase/base'.
46979         * modules/unicase/base: New file.
46980         * lib/unicase.h: New file.
46981
46982 2009-02-08  Bruno Haible  <bruno@clisp.org>
46983
46984         New module 'uniwbrk/ulc-wordbreaks'.
46985         * modules/uniwbrk/ulc-wordbreaks: New file.
46986         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46987
46988         New module 'uniwbrk/u32-wordbreaks'.
46989         * modules/uniwbrk/u32-wordbreaks: New file.
46990         * lib/uniwbrk/u32-wordbreaks.c: New file.
46991
46992         New module 'uniwbrk/u16-wordbreaks'.
46993         * modules/uniwbrk/u16-wordbreaks: New file.
46994         * lib/uniwbrk/u16-wordbreaks.c: New file.
46995
46996         New module 'uniwbrk/u8-wordbreaks'.
46997         * modules/uniwbrk/u8-wordbreaks: New file.
46998         * lib/uniwbrk/u8-wordbreaks.c: New file.
46999         * lib/uniwbrk/u-wordbreaks.h: New file.
47000
47001         New module 'uniwbrk/table'.
47002         * modules/uniwbrk/table: New file.
47003         * lib/uniwbrk/wbrktable.h: New file.
47004         * lib/uniwbrk/wbrktable.c: New file.
47005
47006         New module 'uniwbrk/wordbreak-property'.
47007         * modules/uniwbrk/wordbreak-property: New file.
47008         * lib/uniwbrk/wordbreak-property.c: New file.
47009
47010         * lib/gen-uni-tables.c (WBP_*): New enum items.
47011         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47012         (unicode_org_wbp): New variable.
47013         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47014         New functions.
47015         (wbp_table): New structure.
47016         (output_wbp, output_wbrk_tables): New functions.
47017         (main): Accept additional argument. Invoke fill_org_wbp,
47018         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47019         output_wbrk_tables.
47020         * modules/gen-uni-tables (Description): Update.
47021         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47022         gen-uni-tables.
47023
47024         New module 'uniwbrk/base'.
47025         * modules/uniwbrk/base: New file.
47026         * lib/uniwbrk.h: New file.
47027
47028 2009-02-08  Bruno Haible  <bruno@clisp.org>
47029
47030         Update to Unicode 5.1.0.
47031         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47032         U+2185..U+2188.
47033         (is_property_default_ignorable_code_point): Don't include characters
47034         of category Cc or Cs and not-a-characters.
47035         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47036         U+0D79, U+109E, U+109F, U+A60C.
47037         * lib/unictype/bidi_of.h: Regenerated.
47038         * lib/unictype/blocks.h: Regenerated.
47039         * lib/unictype/categ_C.h: Regenerated.
47040         * lib/unictype/categ_Cf.h: Regenerated.
47041         * lib/unictype/categ_Cn.h: Regenerated.
47042         * lib/unictype/categ_L.h: Regenerated.
47043         * lib/unictype/categ_Ll.h: Regenerated.
47044         * lib/unictype/categ_Lm.h: Regenerated.
47045         * lib/unictype/categ_Lo.h: Regenerated.
47046         * lib/unictype/categ_Lu.h: Regenerated.
47047         * lib/unictype/categ_M.h: Regenerated.
47048         * lib/unictype/categ_Mc.h: Regenerated.
47049         * lib/unictype/categ_Me.h: Regenerated.
47050         * lib/unictype/categ_Mn.h: Regenerated.
47051         * lib/unictype/categ_N.h: Regenerated.
47052         * lib/unictype/categ_Nd.h: Regenerated.
47053         * lib/unictype/categ_Nl.h: Regenerated.
47054         * lib/unictype/categ_No.h: Regenerated.
47055         * lib/unictype/categ_P.h: Regenerated.
47056         * lib/unictype/categ_Pd.h: Regenerated.
47057         * lib/unictype/categ_Pe.h: Regenerated.
47058         * lib/unictype/categ_Pf.h: Regenerated.
47059         * lib/unictype/categ_Pi.h: Regenerated.
47060         * lib/unictype/categ_Po.h: Regenerated.
47061         * lib/unictype/categ_Ps.h: Regenerated.
47062         * lib/unictype/categ_S.h: Regenerated.
47063         * lib/unictype/categ_Sk.h: Regenerated.
47064         * lib/unictype/categ_Sm.h: Regenerated.
47065         * lib/unictype/categ_So.h: Regenerated.
47066         * lib/unictype/categ_of.h: Regenerated.
47067         * lib/unictype/combining.h: Regenerated.
47068         * lib/unictype/ctype_alnum.h: Regenerated.
47069         * lib/unictype/ctype_alpha.h: Regenerated.
47070         * lib/unictype/ctype_graph.h: Regenerated.
47071         * lib/unictype/ctype_lower.h: Regenerated.
47072         * lib/unictype/ctype_print.h: Regenerated.
47073         * lib/unictype/ctype_punct.h: Regenerated.
47074         * lib/unictype/ctype_upper.h: Regenerated.
47075         * lib/unictype/decdigit.h: Regenerated.
47076         * lib/unictype/digit.h: Regenerated.
47077         * lib/unictype/mirror.h: Regenerated.
47078         * lib/unictype/numeric.h: Regenerated.
47079         * lib/unictype/pr_alphabetic.h: Regenerated.
47080         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47081         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47082         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47083         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47084         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47085         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47086         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47087         * lib/unictype/pr_combining.h: Regenerated.
47088         * lib/unictype/pr_dash.h: Regenerated.
47089         * lib/unictype/pr_decimal_digit.h: Regenerated.
47090         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47091         * lib/unictype/pr_deprecated.h: Regenerated.
47092         * lib/unictype/pr_diacritic.h: Regenerated.
47093         * lib/unictype/pr_extender.h: Regenerated.
47094         * lib/unictype/pr_format_control.h: Regenerated.
47095         * lib/unictype/pr_grapheme_base.h: Regenerated.
47096         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47097         * lib/unictype/pr_grapheme_link.h: Regenerated.
47098         * lib/unictype/pr_id_continue.h: Regenerated.
47099         * lib/unictype/pr_id_start.h: Regenerated.
47100         * lib/unictype/pr_ideographic.h: Regenerated.
47101         * lib/unictype/pr_ignorable_control.h: Regenerated.
47102         * lib/unictype/pr_lowercase.h: Regenerated.
47103         * lib/unictype/pr_math.h: Regenerated.
47104         * lib/unictype/pr_numeric.h: Regenerated.
47105         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47106         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47107         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47108         * lib/unictype/pr_other_id_continue.h: Regenerated.
47109         * lib/unictype/pr_other_lowercase.h: Regenerated.
47110         * lib/unictype/pr_other_math.h: Regenerated.
47111         * lib/unictype/pr_punctuation.h: Regenerated.
47112         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47113         * lib/unictype/pr_soft_dotted.h: Regenerated.
47114         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47115         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47116         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47117         * lib/unictype/pr_uppercase.h: Regenerated.
47118         * lib/unictype/pr_xid_continue.h: Regenerated.
47119         * lib/unictype/pr_xid_start.h: Regenerated.
47120         * lib/unictype/pr_zero_width.h: Regenerated.
47121         * lib/unictype/scripts.h: Regenerated.
47122         * lib/unictype/scripts_byname.gperf: Regenerated.
47123         * lib/unictype/sy_java_ident.h: Regenerated.
47124         * lib/unilbrk/lbrkprop1.h: Regenerated.
47125         * lib/unilbrk/lbrkprop2.h: Regenerated.
47126         * tests/unictype/test-categ_C.c: Regenerated.
47127         * tests/unictype/test-categ_Cf.c: Regenerated.
47128         * tests/unictype/test-categ_Cn.c: Regenerated.
47129         * tests/unictype/test-categ_L.c: Regenerated.
47130         * tests/unictype/test-categ_Ll.c: Regenerated.
47131         * tests/unictype/test-categ_Lm.c: Regenerated.
47132         * tests/unictype/test-categ_Lo.c: Regenerated.
47133         * tests/unictype/test-categ_Lu.c: Regenerated.
47134         * tests/unictype/test-categ_M.c: Regenerated.
47135         * tests/unictype/test-categ_Mc.c: Regenerated.
47136         * tests/unictype/test-categ_Me.c: Regenerated.
47137         * tests/unictype/test-categ_Mn.c: Regenerated.
47138         * tests/unictype/test-categ_N.c: Regenerated.
47139         * tests/unictype/test-categ_Nd.c: Regenerated.
47140         * tests/unictype/test-categ_Nl.c: Regenerated.
47141         * tests/unictype/test-categ_No.c: Regenerated.
47142         * tests/unictype/test-categ_P.c: Regenerated.
47143         * tests/unictype/test-categ_Pd.c: Regenerated.
47144         * tests/unictype/test-categ_Pe.c: Regenerated.
47145         * tests/unictype/test-categ_Pf.c: Regenerated.
47146         * tests/unictype/test-categ_Pi.c: Regenerated.
47147         * tests/unictype/test-categ_Po.c: Regenerated.
47148         * tests/unictype/test-categ_Ps.c: Regenerated.
47149         * tests/unictype/test-categ_S.c: Regenerated.
47150         * tests/unictype/test-categ_Sk.c: Regenerated.
47151         * tests/unictype/test-categ_Sm.c: Regenerated.
47152         * tests/unictype/test-categ_So.c: Regenerated.
47153         * tests/unictype/test-ctype_alnum.c: Regenerated.
47154         * tests/unictype/test-ctype_alpha.c: Regenerated.
47155         * tests/unictype/test-ctype_graph.c: Regenerated.
47156         * tests/unictype/test-ctype_lower.c: Regenerated.
47157         * tests/unictype/test-ctype_print.c: Regenerated.
47158         * tests/unictype/test-ctype_punct.c: Regenerated.
47159         * tests/unictype/test-ctype_upper.c: Regenerated.
47160         * tests/unictype/test-decdigit.h: Regenerated.
47161         * tests/unictype/test-digit.h: Regenerated.
47162         * tests/unictype/test-numeric.h: Regenerated.
47163         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47164         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47165         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47166         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47167         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47168         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47169         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47170         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47171         * tests/unictype/test-pr_combining.c: Regenerated.
47172         * tests/unictype/test-pr_dash.c: Regenerated.
47173         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47174         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47175         * tests/unictype/test-pr_deprecated.c: Regenerated.
47176         * tests/unictype/test-pr_diacritic.c: Regenerated.
47177         * tests/unictype/test-pr_extender.c: Regenerated.
47178         * tests/unictype/test-pr_format_control.c: Regenerated.
47179         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47180         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47181         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47182         * tests/unictype/test-pr_id_continue.c: Regenerated.
47183         * tests/unictype/test-pr_id_start.c: Regenerated.
47184         * tests/unictype/test-pr_ideographic.c: Regenerated.
47185         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47186         * tests/unictype/test-pr_lowercase.c: Regenerated.
47187         * tests/unictype/test-pr_math.c: Regenerated.
47188         * tests/unictype/test-pr_numeric.c: Regenerated.
47189         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47190         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47191         Regenerated.
47192         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47193         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47194         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47195         * tests/unictype/test-pr_other_math.c: Regenerated.
47196         * tests/unictype/test-pr_punctuation.c: Regenerated.
47197         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47198         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47199         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47200         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47201         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47202         * tests/unictype/test-pr_uppercase.c: Regenerated.
47203         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47204         * tests/unictype/test-pr_xid_start.c: Regenerated.
47205         * tests/unictype/test-pr_zero_width.c: Regenerated.
47206
47207         Update to Unicode 5.1.0.
47208         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47209         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47210         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47211         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47212         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47213         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47214         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47215         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47216         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47217         (nonspacing_table_ind): Update.
47218         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47219
47220         Update to Unicode 5.1.0.
47221         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47222         code transform.
47223         * lib/uniname/uniname.c (unicode_character_name,
47224         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47225         * lib/uniname/uninames.h: Regenerated.
47226         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47227
47228 2009-02-07  Bruno Haible  <bruno@clisp.org>
47229
47230         Merge gen-ctype and gen-lbrk into a single program.
47231         * lib/gen-uni-tables.c: New file, incorporating
47232         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47233         Add directory prefixes to the names of the generated files.
47234         * lib/unictype/gen-ctype.c: Remove file.
47235         * lib/unilbrk/gen-lbrk.c: Remove file.
47236         * modules/gen-uni-tables: New file.
47237         * modules/unictype/gen-ctype: Remove file.
47238         * modules/unilbrk/gen-lbrk: Remove file.
47239
47240 2009-02-07  Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47243
47244         New module 'unistr/u32-strcoll'.
47245         * modules/unistr/u32-strcoll: New file.
47246         * lib/unistr/u32-strcoll.c: New file.
47247
47248         New module 'unistr/u16-strcoll'.
47249         * modules/unistr/u16-strcoll: New file.
47250         * lib/unistr/u16-strcoll.c: New file.
47251
47252         New module 'unistr/u8-strcoll'.
47253         * modules/unistr/u8-strcoll: New file.
47254         * lib/unistr/u8-strcoll.c: New file.
47255         * lib/unistr/u-strcoll.h: New file.
47256
47257 2009-02-07  Bruno Haible  <bruno@clisp.org>
47258
47259         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47260         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47261         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47262         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47263         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47264         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47265
47266 2009-02-07  Bruno Haible  <bruno@clisp.org>
47267
47268         Make 64-bit clean.
47269         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47270         output_combclass, output_bidi_category, output_decimal_digit,
47271         output_digit, output_numeric, output_mirror, output_scripts,
47272         output_ident_category): Use proper width specifier in format strings.
47273
47274 2009-02-07  Bruno Haible  <bruno@clisp.org>
47275
47276         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47277         failure behaviour.
47278
47279 2009-02-07  Jim Meyering  <meyering@redhat.com>
47280
47281         regex: avoid compilation failure with upcoming gcc-4.4
47282         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47283         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47284         "... error: integer overflow in preprocessor expression".
47285
47286 2009-02-05  Ben Pfaff  <blp@gnu.org>
47287
47288         Fix link errors on Windows when close module is used.
47289         * modules/close: Add $(LIB_CLOSE) to Link section.
47290         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47291         $(LIB_CLOSE) on Windows.
47292
47293 2009-02-05  Jim Meyering  <meyering@redhat.com>
47294
47295         still avoid unused-parameter warnings, but do it cleanly
47296         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47297         (get_fs_usage): Cast to void instead.
47298         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47299         (dev_from_mount_options, read_file_system_list): Cast to void.
47300         Prompted by Bruno Haible.
47301
47302 2009-02-04  Jim Meyering  <meyering@redhat.com>
47303
47304         fsusage.c: correct copyright year
47305         * lib/fsusage.c: Reflect year in which the change is pushed into
47306
47307         avoid misc. warnings
47308         * lib/fsusage.c (UNUSED_PARAM): Define.
47309         (get_fs_usage): Mark parameter "disk" as unused.
47310         * lib/getugroups.c (getgrent): Use "void" in prototype.
47311         * lib/mountlist.c: Mark unused parameters.
47312         (read_file_system_list): Declare a local with "const".
47313         * lib/nanosleep.c (getnow): Declare static.
47314         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47315
47316         dirfd: set errno upon failure
47317         * lib/dirfd.c: Include <errno.h>.
47318         Set errno to ENOTSUP when returning -1.
47319         * modules/dirfd (Depends-on): Add errno.
47320         Suggested by John Kodis <kodis@comcast.net>.
47321
47322 2009-02-01  Bruno Haible  <bruno@clisp.org>
47323
47324         Don't assume sizeof (long) >= sizeof (void *).
47325         * lib/memcmp.c: Include stdint.h.
47326         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47327         srcp2 to 'const byte *'.
47328         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47329         types to uintptr_t.
47330         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47331         * modules/memcmp (Depends-on): Add stdint.
47332         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47333
47334 2009-01-30  Eric Blake  <ebb9@byu.net>
47335
47336         fix more require-before-expand issues
47337         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47338         expand, AC_PROG_AWK.
47339         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47340
47341 2009-01-28  Eric Blake  <ebb9@byu.net>
47342
47343         version-etc: use consistent URL formatting
47344         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47345         Improve formatting.  Use fputs for string without %.
47346
47347 2009-01-28  Jim Meyering  <meyering@redhat.com>
47348
47349         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47350         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47351         "underquoted definition of NAME" from autoconf-2.59.
47352
47353 2009-01-28  Bruno Haible  <bruno@clisp.org>
47354
47355         * doc/gnulib.texi: Add "Obsolete modules" to index.
47356
47357 2009-01-28  Jim Meyering  <meyering@redhat.com>
47358
47359         useless-if-before-free: recognize more variants
47360         * build-aux/useless-if-before-free: Also recognize e.g.,
47361         if (NULL != p) free (p);
47362
47363 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47364
47365         test-getaddrinfo: skip (don't fail) this test when there's no network
47366         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47367         on the presumption that it means you lack network access.
47368
47369 2009-01-26  Jim Meyering  <meyering@redhat.com>
47370
47371         fflush: avoid warnings on modern systems
47372         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47373         pos and result, into scopes where they're used.
47374
47375 2009-01-26  Eric Blake  <ebb9@byu.net>
47376
47377         Silence warning reintroduced by recent extensions patch.
47378         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47379         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47380         autoconf.
47381
47382         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47383         * m4/00gnulib.m4: New file.
47384         * gnulib-tool (func_get_filelist): Always use it.
47385         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47386         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47387
47388 2009-01-25  Bruno Haible  <bruno@clisp.org>
47389
47390         Make test-quotearg work on MacOS X and AIX.
47391         * tests/test-quotearg.sh: New file.
47392         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47393         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47394         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47395         include <libintl.h>.
47396         (fake_locale): Remove variable.
47397         (gettext, dgettext, dcgettext): Remove functions.
47398         (main): Instead of setting a fake locale, set a real locale. Call
47399         textdomain and bindtextdomain.
47400         * modules/quotearg-tests (Files): Add the new files.
47401         (Depends-on): Add gettext, setenv, unsetenv.
47402         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47403         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47404         Augment TESTS_ENVIRONMENT.
47405
47406 2009-01-25  Bruno Haible  <bruno@clisp.org>
47407
47408         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47409         fr_FR.ISO8859-1 locale on MacOS X.
47410         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47411         ja_JP.eucJP locale on MacOS X.
47412         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47413         zh_CN.GB18030 locale on MacOS X.
47414
47415 2009-01-25  Bruno Haible  <bruno@clisp.org>
47416
47417         Avoid link errors on MacOS X 10.3.
47418         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47419         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47420
47421 2009-01-25  Bruno Haible  <bruno@clisp.org>
47422
47423         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47424         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47425         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47426         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47427         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47428         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47429         posix_spawnattr_init, posix_spawnattr_setsigmask,
47430         posix_spawnattr_setflags, posix_spawnattr_destroy.
47431
47432         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47433         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47434         * modules/execute (Files): Remove m4/posix_spawn.m4.
47435         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47436         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47437         posix_spawnattr_init, posix_spawnattr_setsigmask,
47438         posix_spawnattr_setflags, posix_spawnattr_destroy.
47439
47440 2009-01-25  Bruno Haible  <bruno@clisp.org>
47441
47442         * lib/glthread/threadlib.c: Include <stdlib.h>.
47443
47444 2009-01-25  Bruno Haible  <bruno@clisp.org>
47445
47446         * lib/glthread/threadlib.c (dummy): New declaration.
47447
47448 2009-01-25  Bruno Haible  <bruno@clisp.org>
47449
47450         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47451         multibyte characters also for the GB18030 encoding. Don't crash when
47452         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47453
47454 2009-01-25  Bruno Haible  <bruno@clisp.org>
47455
47456         Avoid redefining 'struct random_data' on OSF/1 5.1.
47457         * lib/stdlib.in.h: Include <random.h> if it exists.
47458         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47459         HAVE_RANDOM_H. Include <random.h> when testing whether
47460         'struct random_data' exists.
47461         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47462
47463 2009-01-25  Bruno Haible  <bruno@clisp.org>
47464
47465         Don't install charset.alias on MacOS X >= 10.3.
47466         * lib/localcharset.c (DARWIN7): New macro.
47467         (get_charset_aliases): Hardcode the result for Darwin7.
47468         * modules/localcharset (install-exec-local): Don't install
47469         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47470
47471 2009-01-25  Bruno Haible  <bruno@clisp.org>
47472
47473         Don't install charset.alias on mingw and Cygwin.
47474         * modules/localcharset (install-exec-local): Don't install
47475         charset.alias on mingw and Cygwin, if the file does not yet exist.
47476         The result for these platforms is hardcoded in localcharset.c.
47477
47478 2009-01-25  Bruno Haible  <bruno@clisp.org>
47479
47480         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47481         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47482         before requiring AC_USE_SYSTEM_EXTENSIONS.
47483
47484 2009-01-25  Jim Meyering  <meyering@redhat.com>
47485
47486         c-strtod: avoid warnings
47487         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47488         "assignment discards qualifiers from pointer target type" warnings.
47489
47490 2009-01-24  Bruno Haible  <bruno@clisp.org>
47491
47492         Add support for non-UTF-8 locales on MacOS X.
47493         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47494         canonical encodings. For Darwin 7 and newer, don't map traditional
47495         encodings to UTF-8.
47496         Reported by Vincent Lefevre <vincent@vinc17.org>
47497         at <http://savannah.gnu.org/bugs/?25235>.
47498
47499 2009-01-24  Bruno Haible  <bruno@clisp.org>
47500
47501         * doc/gnulib.texi (Obsolete modules): New section.
47502         Reported by Mike Frysinger <vapier@gentoo.org>.
47503
47504 2009-01-24  Bruno Haible  <bruno@clisp.org>
47505
47506         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47507         (%.dvi): New rule.
47508
47509 2009-01-24  Bruno Haible  <bruno@clisp.org>
47510
47511         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47512         Reported by Eric Blake.
47513
47514 2009-01-24  Bruno Haible  <bruno@clisp.org>
47515
47516         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47517         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47518         Reported by Gary V. Vaughan <gary@gnu.org>.
47519
47520 2009-01-24  Bruno Haible  <bruno@clisp.org>
47521
47522         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47523
47524 2009-01-23  Bruno Haible  <bruno@clisp.org>
47525
47526         Make c-strtod, c-strtold usable in libraries.
47527         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47528         (C_STRTOD): Call strdup instead of xstrdup.
47529         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47530         * modules/c-strtold (Depends-on): Likewise.
47531         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47532         * NEWS: Mention the change.
47533         Reported by Michael Gold <mgold@ncf.ca>.
47534
47535 2009-01-23  Jim Meyering  <meyering@redhat.com>
47536
47537         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47538         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47539         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47540
47541 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47542
47543         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47544         GNU CoreUtils.
47545         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47546         * modules/version-etc (Description): Update.
47547
47548 2009-01-22  Bruno Haible  <bruno@clisp.org>
47549
47550         Cache the C locale object.
47551         * lib/c-strtod.c (c_locale_cache): New variable.
47552         (c_locale): New function.
47553         (C_STRTOD): Use it, and don't call freelocale.
47554         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47555         Suggested by Paolo Bonzini.
47556
47557 2009-01-21  Bruno Haible  <bruno@clisp.org>
47558
47559         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47560         conditions other than overflow.
47561
47562 2009-01-21  Bruno Haible  <bruno@clisp.org>
47563
47564         * lib/c-strtod.c: Include errno.h.
47565         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47566         value from STRTOD_L and STRTOD.
47567
47568 2009-01-21  Bruno Haible  <bruno@clisp.org>
47569         and Jim Meyering  <meyering@redhat.com>
47570
47571         nanosleep: skip configure test (fail it) for apple universal builds
47572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47573         universal builds, assume that nanosleep does not work.
47574         * modules/nanosleep (Depends-on): Add multiarch.
47575
47576         mktime: skip configure test (fail it) for apple universal builds
47577         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47578         universal builds, assume that mktime does not work.
47579         * modules/mktime (Depends-on): Add multiarch.
47580
47581 2009-01-21  Eric Blake  <ebb9@byu.net>
47582
47583         multiarch: avoid expand-before-require warning
47584         * modules/multiarch (configure.ac): Require, rather than expand,
47585         gl_MULTIARCH.
47586         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47587         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47588         enforce that all clients require it.  Partial reversion of
47589         2008-12-29 patch.
47590
47591         error: avoid expand-before-require warning
47592         * modules/errno (configure.ac): Require, rather than expand,
47593         gl_HEADER_ERRNO_H.
47594         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47595         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47596         enforce that all clients require it.
47597
47598         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47599         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47600         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47601         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47602
47603 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47604
47605         Revert:
47606         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47607
47608         regex: do not depend on obsolete modules.
47609         * modules/regex: Remove memcmp and memmove.
47610
47611 2009-01-20  Bruno Haible  <bruno@clisp.org>
47612
47613         Make the 'link' module link on Windows NT 4.
47614         * lib/link.c (_WIN32_WINNT): Don't define.
47615         (CreateHardLinkFuncType): New type.
47616         (CreateHardLinkFunc, initialized): New variables.
47617         (initialize): New function.
47618         (link): Invoke CreateHardLink indirectly through the function pointer.
47619
47620 2009-01-20  Bruno Haible  <bruno@clisp.org>
47621
47622         Fix compilation failure on mingw.
47623         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47624
47625 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47626
47627         * doc/c-strtod.texi: Mention a couple of restrictions.
47628
47629 2009-01-20  Jim Meyering  <meyering@redhat.com>
47630
47631         gettimeofday: move more declarations out of functions
47632         * lib/gettimeofday.c: Move extern declarations of tzset and
47633         gmtime out of containing functions.  Prompted by Bruno Haible.
47634
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-19  Bruno Haible  <bruno@clisp.org>
47641
47642         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47643         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47644         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47645         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47646         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47647
47648 2009-01-19  Bruno Haible  <bruno@clisp.org>
47649
47650         * tests/test-link.c: Include <errno.h>.
47651         (main): Exit with code 77 when a hard link cannot be created due to
47652         the file system.
47653         * tests/test-link.sh: Skip test when a hard link cannot be created due
47654         to the file system.
47655         Suggested by Eric Blake.
47656
47657 2009-01-19  Martin Lambers  <marlam@marlam.de>
47658
47659         * modules/link-tests: New file.
47660         * tests/test-link.sh: New file.
47661         * tests/test-link.c: New file.
47662
47663 2009-01-19  Eric Blake  <ebb9@byu.net>
47664
47665         doc: mention another function added in cygwin 1.7.0
47666         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47667         Another new function in cygwin 1.7.
47668
47669 2009-01-19  Bruno Haible  <bruno@clisp.org>
47670
47671         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47672         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47673         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47674         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47675         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47676         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47677         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47678         * m4/md4.m4 (gl_MD4): Likewise.
47679         * m4/md5.m4 (gl_MD5): Likewise.
47680         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47681         * m4/sha1.m4 (gl_SHA1): Likewise.
47682         * m4/sha256.m4 (gl_SHA256): Likewise.
47683         * m4/sha512.m4 (gl_SHA512): Likewise.
47684
47685 2009-01-19  Bruno Haible  <bruno@clisp.org>
47686
47687         * modules/uniname/uniname-tests (Depends-on): Add progname.
47688         * tests/uniname/test-uninames.c: Include progname.h.
47689         (main): Call set_program_name.
47690
47691         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47692         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47693         (main): Call set_program_name.
47694
47695         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47696         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47697         (main): Call set_program_name.
47698
47699         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47700         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47701         (main): Call set_program_name.
47702
47703         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47704         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47705         (main): Call set_program_name.
47706
47707         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47708         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47709         (main): Call set_program_name.
47710
47711         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47712         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47713         (main): Call set_program_name.
47714
47715         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47716         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47717         (main): Call set_program_name.
47718
47719         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47720         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47721         (main): Call set_program_name.
47722
47723 2009-01-19  Eric Blake  <ebb9@byu.net>
47724
47725         test-unistd: test previous patch
47726         * tests/test-unistd.c: Test *_FILENO macros.
47727
47728         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47729         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47730         Guarantee a definition.
47731         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47732         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47733         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47734         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47735         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47736         Likewise.
47737         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47738         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47739         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47740         Likewise.
47741         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47742         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47743         (STDERR_FILENO): Likewise.
47744         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47745         (STDERR_FILENO): Likewise.
47746         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47747         (STDERR_FILENO): Likewise.
47748         Reported by Elbert Pol.
47749
47750 2009-01-19  Eric Blake  <ebb9@byu.net>
47751
47752         doc: mention more functions added in cygwin 1.7.0
47753         * doc/posix-functions/abort.texi (abort): Update wording related
47754         to cygwin.
47755         * doc/posix-functions/daylight.texi (daylight): Likewise.
47756         * doc/posix-functions/optarg.texi (optarg): Likewise.
47757         * doc/posix-functions/optarg.texi (opterr): Likewise.
47758         * doc/posix-functions/optarg.texi (optind): Likewise.
47759         * doc/posix-functions/optarg.texi (optopt): Likewise.
47760         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47761         worked in 1.5.x, and was withdrawn in 1.7.
47762         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47763         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47764         cygwin versions.
47765         * doc/posix-functions/perror.texi (perror): Likewise.
47766         * doc/posix-functions/printf.texi (printf): Likewise.
47767         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47768         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47769         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47770         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47771         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47772         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47773         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47774         Likewise.
47775         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47776         Likewise.
47777         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47778         this function.
47779         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47780         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47781         Likewise.
47782         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47783         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47784         * doc/posix-functions/confstr.texi (confstr): Likewise.
47785         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47786         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47787         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47788         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47789         * doc/posix-functions/fputws.texi (fputws): Likewise.
47790         * doc/posix-functions/fwide.texi (fwide): Likewise.
47791         * doc/posix-functions/getwc.texi (getwc): Likewise.
47792         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47793         * doc/posix-functions/putwc.texi (putwc): Likewise.
47794         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47795         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47796         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47797         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47798         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47799         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47800         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47801         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47802         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47803         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47804         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47805
47806 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47807
47808         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47809         * lib/ioctl.c: Include <sys/ioctl.h>.
47810
47811 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47812
47813         * modules/getdate-tests (Depends-on): Add progname.
47814         * tests/test-getdate.c: Use progname module, to avoid link errors
47815         on non-glibc systems.
47816
47817 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47818
47819         * modules/filenamecat-tests (Depends-on): Add progname.
47820         * modules/fstrcmp-tests (Depends-on): Likewise.
47821
47822         * tests/test-filenamecat.c: Use progname module, to avoid link
47823         errors on non-glibc systems.
47824         * tests/test-fstrcmp.c: Likewise.
47825
47826 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47827
47828         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47829         * lib/gettimeofday.c: Move extern declaration out of function.
47830
47831 2009-01-18  Bruno Haible  <bruno@clisp.org>
47832
47833         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47834         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47835         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47836
47837 2009-01-18  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/strftime.c (MEMPCPY): Remove unused macro.
47840         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47841
47842 2009-01-18  Martin Lambers  <marlam@marlam.de>
47843
47844         New module 'link'.
47845         * lib/unistd.in.h (link): New declaration.
47846         * lib/link.c: New file.
47847         * m4/link.m4: New file.
47848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47849         HAVE_LINK.
47850         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47851         * modules/link: New file.
47852         * doc/posix-functions/link.texi: Mention the new module.
47853
47854 2009-01-18  Bruno Haible  <bruno@clisp.org>
47855
47856         * tests/test-avltree_list.c (main): Call set_program_name.
47857         * tests/test-avltree_oset.c (main): Likewise.
47858         * tests/test-obstack-printf.c: Include progname.h.
47859         (main): Call set_program_name.
47860         * tests/test-quotearg.c: Include progname.h.
47861         (main): Call set_program_name.
47862         * tests/test-xmemdup0.c: Include progname.h.
47863         (main): Call set_program_name.
47864
47865 2009-01-18  Bruno Haible  <bruno@clisp.org>
47866
47867         New module 'alphasort'.
47868         * lib/dirent.in.h (alphasort): New declaration.
47869         * lib/alphasort.c: New file, from glibc with modifications.
47870         * m4/alphasort.m4: New file.
47871         * modules/alphasort: New file.
47872         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47873         HAVE_ALPHASORT.
47874         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47875         HAVE_ALPHASORT.
47876         * doc/posix-functions/alphasort.texi: Mention the new module and the
47877         portability problems.
47878
47879 2009-01-18  Bruno Haible  <bruno@clisp.org>
47880
47881         New module 'scandir'.
47882         * lib/dirent.in.h (scandir): New declaration.
47883         * lib/scandir.c: New file, from glibc with modifications.
47884         * m4/scandir.m4: New file.
47885         * modules/scandir: New file.
47886         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47887         HAVE_SCANDIR.
47888         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47889         HAVE_SCANDIR.
47890         * doc/posix-functions/scandir.texi: Mention the new module and the
47891         portability problems.
47892
47893 2009-01-17  Bruno Haible  <bruno@clisp.org>
47894
47895         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47896         Update documentation.
47897         (func_remove_suffix): Escape all dots in the suffix. Update
47898         documentation.
47899         (func_filter_filelist): Update documentation.
47900         Reported by Ralf Wildenhues.
47901
47902 2009-01-17  Bruno Haible  <bruno@clisp.org>
47903
47904         * modules/dprintf-posix-tests: New file.
47905         * tests/test-dprintf-posix.sh: New file.
47906         * tests/test-dprintf-posix.c: New file.
47907
47908         New modules 'dprintf', 'dprintf-posix'.
47909         * lib/stdio.in.h (dprintf): New declaration.
47910         * lib/dprintf.c: New file.
47911         * m4/dprintf.m4: New file.
47912         * m4/dprintf-posix.m4: New file.
47913         * modules/dprintf: New file.
47914         * modules/dprintf-posix: New file.
47915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47916         HAVE_DPRINTF, REPLACE_DPRINTF.
47917         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47918         HAVE_DPRINTF, REPLACE_DPRINTF.
47919         * doc/posix-functions/dprintf.texi: Mention the new modules.
47920
47921 2009-01-17  Bruno Haible  <bruno@clisp.org>
47922
47923         * modules/vdprintf-posix-tests: New file.
47924         * tests/test-vdprintf-posix.sh: New file.
47925         * tests/test-vdprintf-posix.c: New file.
47926
47927         New modules 'vdprintf', 'vdprintf-posix'.
47928         * lib/stdio.in.h (vdprintf): New declaration.
47929         * lib/vdprintf.c: New file.
47930         * m4/vdprintf.m4: New file.
47931         * m4/vdprintf-posix.m4: New file.
47932         * modules/vdprintf: New file.
47933         * modules/vdprintf-posix: New file.
47934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47935         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47936         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47937         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47938         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47939
47940 2009-01-17  Bruno Haible  <bruno@clisp.org>
47941
47942         Fix replacement of fopen on mingw.
47943         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47944         mingw.
47945
47946 2009-01-17  Bruno Haible  <bruno@clisp.org>
47947
47948         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47949         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47950
47951 2009-01-17  Bruno Haible  <bruno@clisp.org>
47952
47953         Avoid test-fflush2.sh failure on mingw.
47954         * tests/test-fflush2.c: Include binary-io.h.
47955         (main): Put standard input into binary mode.
47956         * modules/fflush-tests (Depends-on): Add binary-io.
47957
47958 2009-01-17  Bruno Haible  <bruno@clisp.org>
47959
47960         * lib/wchar.in.h: In another particular situation, include only the
47961         system's <wchar.h> file.
47962         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47963         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47964         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47965
47966 2009-01-17  Bruno Haible  <bruno@clisp.org>
47967
47968         Support for stripping executables in --enable-relocatable.
47969         * build-aux/install-reloc: Expect one more argument, or an environment
47970         variable RELOC_STRIP_PROG. If set, strip the destination program and
47971         its wrapper.
47972         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47973         RELOC_STRIP_PROG.
47974         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47975         to set RELOCATABLE_STRIP.
47976         * NEWS: Mention the new Makefile requirement.
47977
47978 2009-01-17  Bruno Haible  <bruno@clisp.org>
47979
47980         * build-aux/install-reloc: Remove debugging information left over by
47981         C compiler on MacOS X.
47982
47983 2009-01-17  Bruno Haible  <bruno@clisp.org>
47984
47985         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47986         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47987         _NSGetExecutablePath.
47988
47989 2009-01-16  Jim Meyering  <meyering@redhat.com>
47990
47991         strerror: avoid warnings about discarding "const"
47992         * lib/strerror.c (rpl_strerror): Instead of returning a const
47993         string from each and every "case", use a variable, and add a single
47994         cast after the switch.
47995
47996 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47997
47998         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47999
48000 2009-01-16  Bruno Haible  <bruno@clisp.org>
48001
48002         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48003         array initializer syntax that also works in C++ mode.
48004         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48005
48006 2009-01-16  Jim Meyering  <meyering@redhat.com>
48007
48008         poll: suppress a warning
48009         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48010         to ignore "...unsigned expression < 0 is always false" warnings.
48011
48012 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48013
48014         poll: remove declarations of unused variables
48015         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48016         sockbuf and optlen.
48017
48018 2009-01-15  Bruno Haible  <bruno@clisp.org>
48019
48020         Make fflush-after-ungetc POSIX compliant on BSD systems.
48021         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48022         (clear_ungetc_buffer): Implement also for other systems.
48023         (rpl_fflush): On glibc systems, invoke
48024         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48025         clear_ungetc_buffer after fetching the stream's position, not before.
48026
48027 2009-01-15  Bruno Haible  <bruno@clisp.org>
48028
48029         Make fflush-after-ungetc POSIX compliant on glibc systems.
48030         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48031         after ungetc.
48032         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48033         (rpl_fflush): On glibc systems, simply call the system's fflush
48034         function after clearing the ungetc buffer.
48035         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48036         Instead, lseek only to the end of file, then use the system's fseeko
48037         for the rest. On glibc systems, reset the EOF indicator bit.
48038
48039 2009-01-15  Jim Meyering  <meyering@redhat.com>
48040
48041         openmp.m4: revert quote-adding change, for portability to older autoconf
48042         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48043         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48044         Simon Josefsson noticed the problem when using autoconf-2.61.
48045
48046 2009-01-15  Bruno Haible  <bruno@clisp.org>
48047
48048         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48049         * tests/test-fflush2.c (ASSERT): Always fail.
48050         (main): Add two tests for fflush() after ungetc(), taking into account
48051         the Austin Group's clarification.
48052         Suggested by Eric Blake.
48053
48054 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48055
48056         mktime.m4: remove K&R-style function prototypes
48057         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48058         for the Sun C++ compiler.
48059
48060 2009-01-14  Bruno Haible  <bruno@clisp.org>
48061
48062         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48063         while including <wchar.h>.
48064         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48065         the system's <wchar.h> file.
48066         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48067
48068 2009-01-14  Bruno Haible  <bruno@clisp.org>
48069
48070         * m4/csharp.m4: Don't mention gettext on the serial number line.
48071         * m4/csharpexec.m4: Likewise.
48072         * m4/eaccess.m4: Likewise.
48073         * m4/javaexec.m4: Likewise.
48074         * m4/sig_atomic_t.m4: Likewise.
48075         * m4/tmpdir.m4: Likewise.
48076         * m4/intldir.m4: Bump gettext version.
48077         * m4/lib-ld.m4: Likewise.
48078
48079 2009-01-14  Bruno Haible  <bruno@clisp.org>
48080
48081         * lib/progname.c (set_program_name): Add more comments.
48082         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48083
48084 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48085
48086         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48087         were sys/stat.h does not define it.
48088
48089 2009-01-14  Jim Meyering  <meyering@redhat.com>
48090
48091         many *.m4 files: improve m4 quoting
48092         99% of this change was performed by running the following commands:
48093         git ls-files | grep '\.m4$' | xargs perl -pi \
48094           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48095           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48096           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48097           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48098         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48099         The remainder were to add Copyright dates, increment serial numbers,
48100         undo some changes in comments, exclude m4/intl.m4, and add quotes
48101         around the "1" in ",1" where the unusual spacing prohibited the
48102         above regexps from doing the job.  For more details, see
48103         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48104         * m4/acl.m4: Modified.
48105         * m4/afs.m4: Likewise.
48106         * m4/alloca.m4: Likewise.
48107         * m4/argp.m4: Likewise.
48108         * m4/argz.m4: Likewise.
48109         * m4/atexit.m4: Likewise.
48110         * m4/bison-i18n.m4: Likewise.
48111         * m4/bison.m4: Likewise.
48112         * m4/byteswap.m4: Likewise.
48113         * m4/c-stack.m4: Likewise.
48114         * m4/c-strtod.m4: Likewise.
48115         * m4/calloc.m4: Likewise.
48116         * m4/canonicalize-lgpl.m4: Likewise.
48117         * m4/chown.m4: Likewise.
48118         * m4/clock_time.m4: Likewise.
48119         * m4/codeset.m4: Likewise.
48120         * m4/copy-file.m4: Likewise.
48121         * m4/csharp.m4: Likewise.
48122         * m4/csharpcomp.m4: Likewise.
48123         * m4/csharpexec.m4: Likewise.
48124         * m4/d-ino.m4: Likewise.
48125         * m4/d-type.m4: Likewise.
48126         * m4/dirfd.m4: Likewise.
48127         * m4/double-slash-root.m4: Likewise.
48128         * m4/eaccess.m4: Likewise.
48129         * m4/eealloc.m4: Likewise.
48130         * m4/environ.m4: Likewise.
48131         * m4/errno_h.m4: Likewise.
48132         * m4/euidaccess.m4: Likewise.
48133         * m4/execute.m4: Likewise.
48134         * m4/fatal-signal.m4: Likewise.
48135         * m4/fchdir.m4: Likewise.
48136         * m4/fcntl_h.m4: Likewise.
48137         * m4/fileblocks.m4: Likewise.
48138         * m4/filenamecat.m4: Likewise.
48139         * m4/findprog.m4: Likewise.
48140         * m4/flexmember.m4: Likewise.
48141         * m4/fnmatch.m4: Likewise.
48142         * m4/fopen.m4: Likewise.
48143         * m4/fpending.m4: Likewise.
48144         * m4/fprintf-posix.m4: Likewise.
48145         * m4/free.m4: Likewise.
48146         * m4/frexp.m4: Likewise.
48147         * m4/frexpl.m4: Likewise.
48148         * m4/fsusage.m4: Likewise.
48149         * m4/ftruncate.m4: Likewise.
48150         * m4/gc-camellia.m4: Likewise.
48151         * m4/gc-random.m4: Likewise.
48152         * m4/gc.m4: Likewise.
48153         * m4/getaddrinfo.m4: Likewise.
48154         * m4/getcwd-abort-bug.m4: Likewise.
48155         * m4/getcwd-path-max.m4: Likewise.
48156         * m4/getdate.m4: Likewise.
48157         * m4/getdomainname.m4: Likewise.
48158         * m4/getgroups.m4: Likewise.
48159         * m4/gethostname.m4: Likewise.
48160         * m4/gethrxtime.m4: Likewise.
48161         * m4/getline.m4: Likewise.
48162         * m4/getloadavg.m4: Likewise.
48163         * m4/getndelim2.m4: Likewise.
48164         * m4/getpass.m4: Likewise.
48165         * m4/gettext.m4: Likewise.
48166         * m4/gettime.m4: Likewise.
48167         * m4/gettimeofday.m4: Likewise.
48168         * m4/gnulib-common.m4: Likewise.
48169         * m4/group-member.m4: Likewise.
48170         * m4/host-os.m4: Likewise.
48171         * m4/iconv.m4: Likewise.
48172         * m4/iconv_open.m4: Likewise.
48173         * m4/inet_ntop.m4: Likewise.
48174         * m4/inet_pton.m4: Likewise.
48175         * m4/inline.m4: Likewise.
48176         * m4/intldir.m4: Likewise.
48177         * m4/intlmacosx.m4: Likewise.
48178         * m4/intmax.m4: Likewise.
48179         * m4/intmax_t.m4: Likewise.
48180         * m4/inttypes.m4: Likewise.
48181         * m4/inttypes_h.m4: Likewise.
48182         * m4/inttypes-pri.m4: Likewise.
48183         * m4/isapipe.m4: Likewise.
48184         * m4/isnand.m4: Likewise.
48185         * m4/isnanf.m4: Likewise.
48186         * m4/isnanl.m4: Likewise.
48187         * m4/javacomp.m4: Likewise.
48188         * m4/javaexec.m4: Likewise.
48189         * m4/jm-winsz1.m4: Likewise.
48190         * m4/jm-winsz2.m4: Likewise.
48191         * m4/lchown.m4: Likewise.
48192         * m4/lcmessage.m4: Likewise.
48193         * m4/ldexpl.m4: Likewise.
48194         * m4/lib-ld.m4: Likewise.
48195         * m4/lib-link.m4: Likewise.
48196         * m4/libsigsegv.m4: Likewise.
48197         * m4/link-follow.m4: Likewise.
48198         * m4/localcharset.m4: Likewise.
48199         * m4/locale-fr.m4: Likewise.
48200         * m4/locale-ja.m4: Likewise.
48201         * m4/locale-tr.m4: Likewise.
48202         * m4/locale-zh.m4: Likewise.
48203         * m4/lock.m4: Likewise.
48204         * m4/longlong.m4: Likewise.
48205         * m4/ls-mntd-fs.m4: Likewise.
48206         * m4/lstat.m4: Likewise.
48207         * m4/malloc.m4: Likewise.
48208         * m4/mathl.m4: Likewise.
48209         * m4/mbrtowc.m4: Likewise.
48210         * m4/mbstate_t.m4: Likewise.
48211         * m4/mbswidth.m4: Likewise.
48212         * m4/memchr.m4: Likewise.
48213         * m4/memcmp.m4: Likewise.
48214         * m4/memcpy.m4: Likewise.
48215         * m4/memmem.m4: Likewise.
48216         * m4/memmove.m4: Likewise.
48217         * m4/mempcpy.m4: Likewise.
48218         * m4/memrchr.m4: Likewise.
48219         * m4/memset.m4: Likewise.
48220         * m4/minmax.m4: Likewise.
48221         * m4/mkdir-slash.m4: Likewise.
48222         * m4/mkdtemp.m4: Likewise.
48223         * m4/mktime.m4: Likewise.
48224         * m4/mmap-anon.m4: Likewise.
48225         * m4/mountlist.m4: Likewise.
48226         * m4/nanosleep.m4: Likewise.
48227         * m4/nls.m4: Likewise.
48228         * m4/nocrash.m4: Likewise.
48229         * m4/open.m4: Likewise.
48230         * m4/openat.m4: Likewise.
48231         * m4/openmp.m4: Likewise.
48232         * m4/pathmax.m4: Likewise.
48233         * m4/perl.m4: Likewise.
48234         * m4/physmem.m4: Likewise.
48235         * m4/pipe.m4: Likewise.
48236         * m4/po.m4: Likewise.
48237         * m4/poll.m4: Likewise.
48238         * m4/posixtm.m4: Likewise.
48239         * m4/posixver.m4: Likewise.
48240         * m4/printf-frexp.m4: Likewise.
48241         * m4/printf-frexpl.m4: Likewise.
48242         * m4/printf-posix.m4: Likewise.
48243         * m4/printf-posix-rpl.m4: Likewise.
48244         * m4/printf.m4: Likewise.
48245         * m4/progtest.m4: Likewise.
48246         * m4/putenv.m4: Likewise.
48247         * m4/readline.m4: Likewise.
48248         * m4/readlink.m4: Likewise.
48249         * m4/readutmp.m4: Likewise.
48250         * m4/realloc.m4: Likewise.
48251         * m4/regex.m4: Likewise.
48252         * m4/relocatable.m4: Likewise.
48253         * m4/relocatable-lib.m4: Likewise.
48254         * m4/rename-dest-slash.m4: Likewise.
48255         * m4/rename.m4: Likewise.
48256         * m4/rmdir-errno.m4: Likewise.
48257         * m4/rmdir.m4: Likewise.
48258         * m4/roundf.m4: Likewise.
48259         * m4/roundl.m4: Likewise.
48260         * m4/rpmatch.m4: Likewise.
48261         * m4/save-cwd.m4: Likewise.
48262         * m4/selinux-selinux-h.m4: Likewise.
48263         * m4/setenv.m4: Likewise.
48264         * m4/settime.m4: Likewise.
48265         * m4/sig2str.m4: Likewise.
48266         * m4/sig_atomic_t.m4: Likewise.
48267         * m4/signalblocking.m4: Likewise.
48268         * m4/signbit.m4: Likewise.
48269         * m4/sigpipe.m4: Likewise.
48270         * m4/sockets.m4: Likewise.
48271         * m4/sockpfaf.m4: Likewise.
48272         * m4/st_dm_mode.m4: Likewise.
48273         * m4/stat-time.m4: Likewise.
48274         * m4/stdbool.m4: Likewise.
48275         * m4/stdint.m4: Likewise.
48276         * m4/stdint_h.m4: Likewise.
48277         * m4/stpcpy.m4: Likewise.
48278         * m4/stpncpy.m4: Likewise.
48279         * m4/strcase.m4: Likewise.
48280         * m4/strchrnul.m4: Likewise.
48281         * m4/strcspn.m4: Likewise.
48282         * m4/strdup.m4: Likewise.
48283         * m4/strftime.m4: Likewise.
48284         * m4/strndup.m4: Likewise.
48285         * m4/strnlen.m4: Likewise.
48286         * m4/strpbrk.m4: Likewise.
48287         * m4/strptime.m4: Likewise.
48288         * m4/strsep.m4: Likewise.
48289         * m4/strtod.m4: Likewise.
48290         * m4/strtoimax.m4: Likewise.
48291         * m4/strtok_r.m4: Likewise.
48292         * m4/strtol.m4: Likewise.
48293         * m4/strtoll.m4: Likewise.
48294         * m4/strtoul.m4: Likewise.
48295         * m4/strtoull.m4: Likewise.
48296         * m4/strtoumax.m4: Likewise.
48297         * m4/strverscmp.m4: Likewise.
48298         * m4/threadlib.m4: Likewise.
48299         * m4/timegm.m4: Likewise.
48300         * m4/tm_gmtoff.m4: Likewise.
48301         * m4/tmpdir.m4: Likewise.
48302         * m4/tmpfile.m4: Likewise.
48303         * m4/tzset.m4: Likewise.
48304         * m4/uintmax_t.m4: Likewise.
48305         * m4/unlinkdir.m4: Likewise.
48306         * m4/unlocked-io.m4: Likewise.
48307         * m4/uptime.m4: Likewise.
48308         * m4/userspec.m4: Likewise.
48309         * m4/utimbuf.m4: Likewise.
48310         * m4/utime.m4: Likewise.
48311         * m4/utimes-null.m4: Likewise.
48312         * m4/utimes.m4: Likewise.
48313         * m4/vararrays.m4: Likewise.
48314         * m4/vasnprintf.m4: Likewise.
48315         * m4/vfprintf-posix.m4: Likewise.
48316         * m4/vprintf-posix.m4: Likewise.
48317         * m4/wait-process.m4: Likewise.
48318         * m4/wchar_t.m4: Likewise.
48319         * m4/wint_t.m4: Likewise.
48320         * m4/write-any-file.m4: Likewise.
48321         * m4/yield.m4: Likewise.
48322
48323 2009-01-13  Bruno Haible  <bruno@clisp.org>
48324
48325         Avoid test-copy-file.sh failures when ACL support insufficient.
48326         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48327         TESTS_ENVIRONMENT.
48328         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48329         Reported by Jim Meyering.
48330
48331 2009-01-13  Bruno Haible  <bruno@clisp.org>
48332
48333         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48334         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48335         * modules/unistdio/u8-printf-parse (Files): Likewise.
48336         * modules/unistdio/u32-printf-parse (Files): Likewise.
48337         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48338
48339 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48340
48341         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48342         and m4/inttypes_h.m4 too.
48343
48344 2009-01-12  Eric Blake  <ebb9@byu.net>
48345
48346         tests: IRIX 6.2 cc can't compile -0.0 into .data
48347         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48348         rather than at compile-time.
48349         * tests/test-floorl.c (minus_zero): Likewise.
48350         * tests/test-frexpl.c (minus_zero): Likewise.
48351         * tests/test-isnan.c (minus_zerol): Likewise.
48352         * tests/test-isnanl.h (minus_zero): Likewise.
48353         * tests/test-ldexpl.c (minus_zero): Likewise.
48354         * tests/test-roundl.c (minus_zero): Likewise.
48355         * tests/test-signbit.c (minus_zerol): Likewise.
48356         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48357         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48358         * tests/test-truncl.c (minus_zero): Likewise.
48359         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48360         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48361         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48362
48363 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48364
48365         regex: fix glibc bug 9697
48366         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48367         handling.
48368
48369 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48370
48371         regex: fix glibc bug 697
48372         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48373         being NULL also if there are no backreferences.
48374
48375 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48376
48377         regex: merge glibc changes
48378         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48379         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48380         re_string_skip_chars, re_string_reconstruct): Likewise.
48381         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48382
48383 2009-01-07  Jim Meyering  <meyering@redhat.com>
48384
48385         poll: filter through cppi
48386         * lib/poll.c: Indent cpp directives to reflect nesting.
48387
48388 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48389
48390         poll: don't return uninitialized
48391         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48392
48393 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48394
48395         avoid compile failure on AIX 6.1
48396         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48397         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48398
48399 2009-01-04  Jim Meyering  <meyering@redhat.com>
48400
48401         remove duplicate inclusion of <stdio.h>
48402         * tests/test-fprintf-posix.c: Likewise.
48403         * tests/test-printf-posix.c: Likewise.
48404         * tests/test-snprintf-posix.c: Likewise.
48405         * tests/test-sprintf-posix.c: Likewise.
48406         * tests/test-vasprintf-posix.c: Likewise.
48407         * tests/test-vfprintf-posix.c: Likewise.
48408         * tests/test-vprintf-posix.c: Likewise.
48409         * tests/test-vsnprintf-posix.c: Likewise.
48410         * tests/test-vsprintf-posix.c: Likewise.
48411
48412 2009-01-03  Jim Meyering  <meyering@redhat.com>
48413
48414         gnulib-tool: fix sed-based filtering
48415         * gnulib-tool (func_filter_filelist): Remove extra backslash
48416         in sed_fff_filter definition.
48417
48418 2009-01-02  Jim Meyering  <meyering@redhat.com>
48419
48420         strftime: avoid compilation failure on Solaris 2.6
48421         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48422         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48423         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48424         be available.  Reported by Tom G. Christensen.  Details in
48425         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48426
48427 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48428             Bruno Haible  <bruno@clisp.org>
48429
48430         Speed up gnulib-tool by doing more string processing through shell
48431         built-ins.
48432         * gnulib-tool (fast_func_append): New variable.
48433         (func_remove_prefix, func_remove_suffix): New functions.
48434         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48435         (func_filter_filelist): New function.
48436         (func_get_dependencies): Use func_remove_suffix instead of sed.
48437         (func_get_automake_snippet): Use func_filter_filelist instead of a
48438         subshell and sed invocation.
48439
48440 2009-01-01  Bruno Haible  <bruno@clisp.org>
48441
48442         Fix a security bug.
48443         * gnulib-tool (func_import, import, update): Don't allow the characters
48444         '"', '$', '`', '\' in macro arguments that become part of commands that
48445         are evaluated.
48446
48447 2009-01-01  Bruno Haible  <bruno@clisp.org>
48448
48449         * gnulib-tool (func_reset_sigpipe): Add more comments.
48450
48451 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48452
48453         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48454         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48455         already know the answer.
48456
48457 2009-01-01  Jim Meyering  <meyering@redhat.com>
48458
48459         * lib/version-etc.c (version_etc_va): Update copyright year.
48460
48461 2008-12-30  Bruno Haible  <bruno@clisp.org>
48462
48463         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48464         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48465         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48466
48467 2008-12-29  Eric Blake  <ebb9@byu.net>
48468
48469         multiarch: avoid autoconf AC_REQUIRE bug
48470         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48471         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48472         2.63 and older.
48473         Reported by Bruno Haible, and analyzed in
48474         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48475
48476 2008-12-29  Bruno Haible  <bruno@clisp.org>
48477
48478         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48479         files in subdirectories correctly.
48480         Reported by Ralf Wildenhues.
48481
48482 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48483
48484         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48485         rather than 'join FILE -', for Solaris join.
48486
48487 2008-12-29  Bruno Haible  <bruno@clisp.org>
48488
48489         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48490         quoting.
48491         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48492         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48493         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48494         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48495         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48496         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48497         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48498         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48499         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48500         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48501         * m4/nls.m4 (AM_NLS): Likewise.
48502         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48503         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48504         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48505         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48506         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48507         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48508         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48509         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48510         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48511         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48512         * m4/xsize.m4 (gl_XSIZE): Likewise.
48513         Suggested by Jim Meyering.
48514
48515 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48516
48517         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48518         * lib/parse-duration.c: use a switch instead of cascading if's.
48519
48520 2008-12-29  Eric Blake  <ebb9@byu.net>
48521
48522         wchar.h: supply WEOF on Irix 5.3
48523         * lib/wchar.in.h (wint_t): Also supply WEOF.
48524         * lib/wctype.in.h (wint_t): Likewise.
48525         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48526         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48527         Reported by Tom G. Christensen.
48528
48529 2008-12-26  Bruno Haible  <bruno@clisp.org>
48530
48531         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48532         i486, i586, i686.
48533
48534 2008-12-26  Bruno Haible  <bruno@clisp.org>
48535
48536         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48537
48538 2008-12-26  Bruno Haible  <bruno@clisp.org>
48539
48540         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48541         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48542         not __STDC_CONSTANT_MACROS.
48543         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48544
48545 2008-12-25  Bruno Haible  <bruno@clisp.org>
48546
48547         Add support for universal builds to vasnprintf.
48548         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48549         universal builds, guess no.
48550         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48551         * modules/vasprintf-posix (Depends-on): Likewise.
48552         * modules/fprintf-posix (Depends-on): Likewise.
48553         * modules/vfprintf-posix (Depends-on): Likewise.
48554         * modules/snprintf-posix (Depends-on): Likewise.
48555         * modules/vsnprintf-posix (Depends-on): Likewise.
48556         * modules/sprintf-posix (Depends-on): Likewise.
48557         * modules/vsprintf-posix (Depends-on): Likewise.
48558         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48559         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48560         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48561         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48562         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48563         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48564         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48565
48566         Add support for universal builds to <inttypes.h>.
48567         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48568         _SCNu64_PREFIX): In Apple
48569         universal builds, define directly, using _LP64.
48570         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48571         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48572         * modules/inttypes (Depends-on): Add multiarch.
48573         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48574
48575         Add support for universal builds to <stdint.h>.
48576         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48577         universal builds, define directly, using _LP64.
48578         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48579         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48580         and size_t.
48581         * modules/stdint (Depends-on): Add multiarch.
48582         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48583
48584         New module 'multiarch'.
48585         * modules/multiarch: New file.
48586         * m4/multiarch.m4: New file.
48587
48588 2008-12-25  Bruno Haible  <bruno@clisp.org>
48589
48590         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48591
48592 2008-12-25  Bruno Haible  <bruno@clisp.org>
48593
48594         * modules/btowc (License): Relicense under LGPLv2+.
48595         * modules/mbsinit (License): Likewise.
48596         * modules/mbrtowc (License): Likewise.
48597         * modules/wcrtomb (License): Likewise.
48598         * modules/streq (License): Likewise.
48599         Reported by David Lutterkort <lutter@redhat.com>.
48600
48601 2008-12-23  Bruno Haible  <bruno@clisp.org>
48602
48603         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48604
48605 2008-12-23  Bruno Haible  <bruno@clisp.org>
48606
48607         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48608         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48609         GETADDRINFO_LIB, not in LIBS.
48610         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48611         * modules/canon-host (Link): Likewise.
48612         * NEWS: Mention the change.
48613         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48614         GETADDRINFO_LIB.
48615
48616 2008-12-22  Bruno Haible  <bruno@clisp.org>
48617
48618         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48619         * doc/posix-functions/iswalpha_l.texi: Likewise.
48620         * doc/posix-functions/iswblank_l.texi: Likewise.
48621         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48622         * doc/posix-functions/iswctype_l.texi: Likewise.
48623         * doc/posix-functions/iswdigit_l.texi: Likewise.
48624         * doc/posix-functions/iswgraph_l.texi: Likewise.
48625         * doc/posix-functions/iswlower_l.texi: Likewise.
48626         * doc/posix-functions/iswprint_l.texi: Likewise.
48627         * doc/posix-functions/iswpunct_l.texi: Likewise.
48628         * doc/posix-functions/iswspace_l.texi: Likewise.
48629         * doc/posix-functions/iswupper_l.texi: Likewise.
48630         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48631         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48632         * doc/posix-functions/open_wmemstream.texi: Likewise.
48633         * doc/posix-functions/swscanf.texi: Likewise.
48634         * doc/posix-functions/towctrans_l.texi: Likewise.
48635         * doc/posix-functions/towlower.texi: Likewise.
48636         * doc/posix-functions/towlower_l.texi: Likewise.
48637         * doc/posix-functions/towupper.texi: Likewise.
48638         * doc/posix-functions/towupper_l.texi: Likewise.
48639         * doc/posix-functions/vfwprintf.texi: Likewise.
48640         * doc/posix-functions/vfwscanf.texi: Likewise.
48641         * doc/posix-functions/vswscanf.texi: Likewise.
48642         * doc/posix-functions/vwprintf.texi: Likewise.
48643         * doc/posix-functions/vwscanf.texi: Likewise.
48644         * doc/posix-functions/wcpcpy.texi: Likewise.
48645         * doc/posix-functions/wcpncpy.texi: Likewise.
48646         * doc/posix-functions/wcscasecmp.texi: Likewise.
48647         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48648         * doc/posix-functions/wcscoll_l.texi: Likewise.
48649         * doc/posix-functions/wcsdup.texi: Likewise.
48650         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48651         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48652         * doc/posix-functions/wcsnlen.texi: Likewise.
48653         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48654         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48655         * doc/posix-functions/wctrans_l.texi: Likewise.
48656         * doc/posix-functions/wctype_l.texi: Likewise.
48657         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48658         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48659         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48660         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48661         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48662         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48663         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48664         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48665         * doc/glibc-functions/wcschrnul.texi: Likewise.
48666         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48667         * doc/glibc-functions/wcstod_l.texi: Likewise.
48668         * doc/glibc-functions/wcstof_l.texi: Likewise.
48669         * doc/glibc-functions/wcstol_l.texi: Likewise.
48670         * doc/glibc-functions/wcstold_l.texi: Likewise.
48671         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48672         * doc/glibc-functions/wcstoq.texi: Likewise.
48673         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48674         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48675         * doc/glibc-functions/wcstouq.texi: Likewise.
48676         * doc/glibc-functions/wmempcpy.texi: Likewise.
48677
48678 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48679             Eric Blake  <ebb9@byu.net>
48680             Paolo Bonzini  <bonzini@gnu.org>
48681             Bruno Haible  <bruno@clisp.org>
48682
48683         Make c-stack work on Haiku.
48684         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48685         (c_stack_action): Use SA_ONSTACK flag.
48686
48687 2008-12-22  Bruno Haible  <bruno@clisp.org>
48688
48689         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48690
48691 2008-12-22  Bruno Haible  <bruno@clisp.org>
48692
48693         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48694         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48695         being overridden.
48696         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48697         New macros.
48698         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48700         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48701         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48702
48703 2008-12-22  Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48706         from test code.
48707
48708 2008-12-22  Eric Blake  <ebb9@byu.net>
48709
48710         Avoid gcc warnings on cygwin.
48711         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48712         Avoid unused variable.
48713         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48714         Likewise.
48715
48716 2008-12-22  Bruno Haible  <bruno@clisp.org>
48717
48718         Remove HAVE_MBRTOWC conditionals.
48719         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48720         (mbscasecmp): Assume mbrtowc function.
48721         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48722         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48723         * lib/mbschr.c: Include mbuiter.h unconditionally.
48724         (mbschr): Assume mbrtowc function.
48725         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48726         (mbscspn): Assume mbrtowc function.
48727         * lib/mbslen.c: Include mbuiter.h unconditionally.
48728         (mbslen): Assume mbrtowc function.
48729         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48730         (mbsncasecmp): Assume mbrtowc function.
48731         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48732         (mbsnlen): Assume mbrtowc function.
48733         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48734         (mbspbrk): Assume mbrtowc function.
48735         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48736         (mbspcasecmp): Assume mbrtowc function.
48737         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48738         (mbsrchr): Assume mbrtowc function.
48739         * lib/mbssep.c: Include mbuiter.h unconditionally.
48740         (mbssep): Assume mbrtowc function.
48741         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48742         (mbsspn): Assume mbrtowc function.
48743         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48744         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48745         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48746         (mbstok_r): Assume mbrtowc function.
48747         * lib/propername.c: Include mbuiter.h unconditionally.
48748         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48749         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48750         (trim2): Assume mbrtowc function.
48751         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48752         (mbsnwidth): Assume mbrtowc function.
48753         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48754         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48755         fallback definitions.
48756         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48757
48758 2008-12-22  Bruno Haible  <bruno@clisp.org>
48759
48760         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48761
48762 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48763
48764         * modules/regex: Request emulations for the mb*/wc* functions we need.
48765         * m4/regex.m4: Don't look for those functions here.
48766         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48767
48768 2008-12-22  Bruno Haible  <bruno@clisp.org>
48769
48770         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48771
48772 2008-12-21  Bruno Haible  <bruno@clisp.org>
48773
48774         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48775         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48776         (Include): Remove conditionalization.
48777         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48778         (Include): Remove conditionalization.
48779         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48780         (Include): Remove conditionalization.
48781         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48782         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48783         * NEWS: Mention the change.
48784         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48785         via Sergey Poznyakoff <gray@gnu.org.ua>.
48786
48787 2008-12-21  Bruno Haible  <bruno@clisp.org>
48788
48789         * MODULES.html.sh (Extended multibyte and wide character utilities
48790         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48791         wcrtomb, wcsrtombs.
48792         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48793         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48794         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48795         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48796
48797 2008-12-21  Bruno Haible  <bruno@clisp.org>
48798
48799         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48800
48801 2008-12-21  Bruno Haible  <bruno@clisp.org>
48802
48803         * modules/wcsnrtombs-tests: New file.
48804         * tests/test-wcsnrtombs1.sh: New file.
48805         * tests/test-wcsnrtombs2.sh: New file.
48806         * tests/test-wcsnrtombs3.sh: New file.
48807         * tests/test-wcsnrtombs4.sh: New file.
48808         * tests/test-wcsnrtombs.c: New file.
48809
48810         New module 'wcsnrtombs'.
48811         * lib/wchar.in.h (wcsnrtombs): New declaration.
48812         * lib/wcsnrtombs.c: New file.
48813         * lib/wcsrtombs-state.c: New file.
48814         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48815         (internal_state): Remove variable.
48816         * m4/wcsnrtombs.m4: New file.
48817         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48818         compilation units.
48819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48820         HAVE_WCSNRTOMBS.
48821         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48822         HAVE_WCSNRTOMBS.
48823         * modules/wcsnrtombs: New file.
48824         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48825         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48826
48827 2008-12-21  Bruno Haible  <bruno@clisp.org>
48828
48829         * modules/wcsrtombs-tests: New file.
48830         * tests/test-wcsrtombs1.sh: New file.
48831         * tests/test-wcsrtombs2.sh: New file.
48832         * tests/test-wcsrtombs3.sh: New file.
48833         * tests/test-wcsrtombs4.sh: New file.
48834         * tests/test-wcsrtombs.c: New file.
48835
48836         New module 'wcsrtombs'.
48837         * lib/wchar.in.h (wcsrtombs): New declaration.
48838         * lib/wcsrtombs.c: New file.
48839         * m4/wcsrtombs.m4: New file.
48840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48841         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48843         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48844         * modules/wcsrtombs: New file.
48845         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48846         bugs.
48847
48848 2008-12-21  Bruno Haible  <bruno@clisp.org>
48849
48850         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48851         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48852         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48853         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48854         if not correct.
48855         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48856         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48857         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48858         m4/locale-zh.m4, m4/codeset.m4.
48859         * doc/posix-functions/wcrtomb.texi: Document the bug.
48860
48861 2008-12-21  Bruno Haible  <bruno@clisp.org>
48862
48863         Work around a btowc() bug on IRIX 6.5.
48864         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48865         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48866         REPLACE_WTOBC if not.
48867         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48868         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48869         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48870
48871 2008-12-21  Bruno Haible  <bruno@clisp.org>
48872
48873         * modules/wcrtomb-tests: New file.
48874         * tests/test-wcrtomb.sh: New file.
48875         * tests/test-wcrtomb.c: New file.
48876
48877         New module 'wcrtomb'.
48878         * lib/wchar.in.h (wcrtomb): New declaration.
48879         * lib/wcrtomb.c: New file.
48880         * m4/wcrtomb.m4: New file.
48881         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48882         HAVE_WCRTOMB.
48883         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48884         HAVE_WCRTOMB.
48885         * modules/wcrtomb: New file.
48886         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48887
48888 2008-12-21  Bruno Haible  <bruno@clisp.org>
48889
48890         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48891         * modules/mbsrtowcs (Files): Likewise.
48892         * modules/wctob (Files): Likewise.
48893         * modules/c-strcase-tests (Files): Likewise.
48894         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48895         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48896         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48897         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48898         * modules/vasnprintf-posix-tests (Files): Likewise.
48899
48900 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48901
48902         gitlog-to-changelog: pass all command-line arguments to git-log
48903         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48904         it is sometimes convenient to filter the commits in various ways.
48905         gitlog-to-changelog only allows --since to specify a start date,
48906         but git-log itself supports many other filtering mechanisms.
48907         At the moment, I want to filter by branch name.  Rather than
48908         adding a --branch option to gitlog-to-changelog, it seems more
48909         flexible to simply pass all options directly to git-log and let
48910         git do the work.  Notice that this effectively makes --since a
48911         redundant option for gitlog-to-changelog, but removing it would
48912         require current usage to change since calls would then require
48913         an additional '--'.
48914
48915 2008-12-21  Bruno Haible  <bruno@clisp.org>
48916
48917         * modules/mbsnrtowcs-tests: New file.
48918         * tests/test-mbsnrtowcs1.sh: New file.
48919         * tests/test-mbsnrtowcs2.sh: New file.
48920         * tests/test-mbsnrtowcs3.sh: New file.
48921         * tests/test-mbsnrtowcs4.sh: New file.
48922         * tests/test-mbsnrtowcs.c: New file.
48923
48924         New module 'mbsnrtowcs'.
48925         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48926         * lib/mbsnrtowcs.c: New file.
48927         * lib/mbsrtowcs-state.c: New file.
48928         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48929         (internal_state): Remove variable.
48930         * m4/mbsnrtowcs.m4: New file.
48931         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48932         compilation units.
48933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48934         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48935         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48936         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48937         * modules/mbsnrtowcs: New file.
48938         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48939         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48940         portability problem.
48941
48942 2008-12-21  Bruno Haible  <bruno@clisp.org>
48943
48944         Work around mbsrtowcs bug.
48945         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48946         (gl_FUNC_MBSRTOWCS): Invoke it.
48947         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48948         m4/locale-zh.m4.
48949         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48950
48951 2008-12-21  Bruno Haible  <bruno@clisp.org>
48952
48953         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48954
48955 2008-12-21  Bruno Haible  <bruno@clisp.org>
48956
48957         Update doc for AIX.
48958         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48959         16-bit wchar_t type.
48960         * doc/posix-functions/btowc.texi: Likewise.
48961         * doc/posix-functions/fgetwc.texi: Likewise.
48962         * doc/posix-functions/fgetws.texi: Likewise.
48963         * doc/posix-functions/fputwc.texi: Likewise.
48964         * doc/posix-functions/fputws.texi: Likewise.
48965         * doc/posix-functions/fwide.texi: Likewise.
48966         * doc/posix-functions/fwprintf.texi: Likewise.
48967         * doc/posix-functions/fwscanf.texi: Likewise.
48968         * doc/posix-functions/getwchar.texi: Likewise.
48969         * doc/posix-functions/getwc.texi: Likewise.
48970         * doc/posix-functions/iswalnum.texi: Likewise.
48971         * doc/posix-functions/iswalpha.texi: Likewise.
48972         * doc/posix-functions/iswblank.texi: Likewise.
48973         * doc/posix-functions/iswcntrl.texi: Likewise.
48974         * doc/posix-functions/iswctype.texi: Likewise.
48975         * doc/posix-functions/iswdigit.texi: Likewise.
48976         * doc/posix-functions/iswgraph.texi: Likewise.
48977         * doc/posix-functions/iswlower.texi: Likewise.
48978         * doc/posix-functions/iswprint.texi: Likewise.
48979         * doc/posix-functions/iswpunct.texi: Likewise.
48980         * doc/posix-functions/iswspace.texi: Likewise.
48981         * doc/posix-functions/iswupper.texi: Likewise.
48982         * doc/posix-functions/iswxdigit.texi: Likewise.
48983         * doc/posix-functions/mbrtowc.texi: Likewise.
48984         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48985         * doc/posix-functions/mbstowcs.texi: Likewise.
48986         * doc/posix-functions/mbtowc.texi: Likewise.
48987         * doc/posix-functions/putwchar.texi: Likewise.
48988         * doc/posix-functions/putwc.texi: Likewise.
48989         * doc/posix-functions/swprintf.texi: Likewise.
48990         * doc/posix-functions/tolower.texi: Likewise.
48991         * doc/posix-functions/toupper.texi: Likewise.
48992         * doc/posix-functions/towctrans.texi: Likewise.
48993         * doc/posix-functions/ungetwc.texi: Likewise.
48994         * doc/posix-functions/vswprintf.texi: Likewise.
48995         * doc/posix-functions/wcrtomb.texi: Likewise.
48996         * doc/posix-functions/wcscat.texi: Likewise.
48997         * doc/posix-functions/wcschr.texi: Likewise.
48998         * doc/posix-functions/wcscmp.texi: Likewise.
48999         * doc/posix-functions/wcscoll.texi: Likewise.
49000         * doc/posix-functions/wcscpy.texi: Likewise.
49001         * doc/posix-functions/wcscspn.texi: Likewise.
49002         * doc/posix-functions/wcsftime.texi: Likewise.
49003         * doc/posix-functions/wcslen.texi: Likewise.
49004         * doc/posix-functions/wcsncat.texi: Likewise.
49005         * doc/posix-functions/wcsncmp.texi: Likewise.
49006         * doc/posix-functions/wcsncpy.texi: Likewise.
49007         * doc/posix-functions/wcspbrk.texi: Likewise.
49008         * doc/posix-functions/wcsrchr.texi: Likewise.
49009         * doc/posix-functions/wcsrtombs.texi: Likewise.
49010         * doc/posix-functions/wcsspn.texi: Likewise.
49011         * doc/posix-functions/wcsstr.texi: Likewise.
49012         * doc/posix-functions/wcstod.texi: Likewise.
49013         * doc/posix-functions/wcstof.texi: Likewise.
49014         * doc/posix-functions/wcstoimax.texi: Likewise.
49015         * doc/posix-functions/wcstok.texi: Likewise.
49016         * doc/posix-functions/wcstold.texi: Likewise.
49017         * doc/posix-functions/wcstoll.texi: Likewise.
49018         * doc/posix-functions/wcstol.texi: Likewise.
49019         * doc/posix-functions/wcstombs.texi: Likewise.
49020         * doc/posix-functions/wcstoull.texi: Likewise.
49021         * doc/posix-functions/wcstoul.texi: Likewise.
49022         * doc/posix-functions/wcstoumax.texi: Likewise.
49023         * doc/posix-functions/wcswidth.texi: Likewise.
49024         * doc/posix-functions/wcsxfrm.texi: Likewise.
49025         * doc/posix-functions/wctob.texi: Likewise.
49026         * doc/posix-functions/wctomb.texi: Likewise.
49027         * doc/posix-functions/wctrans.texi: Likewise.
49028         * doc/posix-functions/wctype.texi: Likewise.
49029         * doc/posix-functions/wcwidth.texi: Likewise.
49030         * doc/posix-functions/wmemchr.texi: Likewise.
49031         * doc/posix-functions/wmemcmp.texi: Likewise.
49032         * doc/posix-functions/wmemcpy.texi: Likewise.
49033         * doc/posix-functions/wmemmove.texi: Likewise.
49034         * doc/posix-functions/wmemset.texi: Likewise.
49035         * doc/posix-functions/wprintf.texi: Likewise.
49036         * doc/posix-functions/wscanf.texi: Likewise.
49037
49038 2008-12-21  Bruno Haible  <bruno@clisp.org>
49039
49040         Update doc for HP-UX 11.11.
49041         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49042         in HP-UX version 11.00, not in all versions of HP-UX 11.
49043         * doc/posix-functions/fwide.texi: Likewise.
49044         * doc/posix-functions/fwprintf.texi: Likewise.
49045         * doc/posix-functions/fwscanf.texi: Likewise.
49046         * doc/posix-functions/inet_ntop.texi: Likewise.
49047         * doc/posix-functions/inet_pton.texi: Likewise.
49048         * doc/posix-functions/mbrlen.texi: Likewise.
49049         * doc/posix-functions/mbrtowc.texi: Likewise.
49050         * doc/posix-functions/mbsinit.texi: Likewise.
49051         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49052         * doc/posix-functions/swprintf.texi: Likewise.
49053         * doc/posix-functions/swscanf.texi: Likewise.
49054         * doc/posix-functions/towctrans.texi: Likewise.
49055         * doc/posix-functions/vfwprintf.texi: Likewise.
49056         * doc/posix-functions/vswprintf.texi: Likewise.
49057         * doc/posix-functions/vwprintf.texi: Likewise.
49058         * doc/posix-functions/wcrtomb.texi: Likewise.
49059         * doc/posix-functions/wcsrtombs.texi: Likewise.
49060         * doc/posix-functions/wcsstr.texi: Likewise.
49061         * doc/posix-functions/wctob.texi: Likewise.
49062         * doc/posix-functions/wctrans.texi: Likewise.
49063         * doc/posix-functions/wmemchr.texi: Likewise.
49064         * doc/posix-functions/wmemcmp.texi: Likewise.
49065         * doc/posix-functions/wmemcpy.texi: Likewise.
49066         * doc/posix-functions/wmemmove.texi: Likewise.
49067         * doc/posix-functions/wmemset.texi: Likewise.
49068         * doc/posix-functions/wprintf.texi: Likewise.
49069         * doc/posix-functions/wscanf.texi: Likewise.
49070
49071 2008-12-21  Bruno Haible  <bruno@clisp.org>
49072
49073         Work around a portability problem.
49074         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49075         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49076
49077 2008-12-20  Bruno Haible  <bruno@clisp.org>
49078
49079         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49080         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49081         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49082         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49083         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49084
49085         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49086         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49087         set.
49088         (GNULIB_defined_mbstate_t): New macro.
49089         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49090         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49091         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49092         reuses the system's mbrtowc function but works around the bugs.
49093         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49094         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49095         macros.
49096         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49097         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49098         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49099         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49100         REPLACE_MBSINIT if mbsinit needs to be overridden.
49101         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49102         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49103         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49104         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49105         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49106         m4/locale-zh.m4.
49107         (Depends): Add mbsinit.
49108         * modules/mbsinit (Depends): Add mbrtowc.
49109         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49110
49111 2008-12-20  Bruno Haible  <bruno@clisp.org>
49112
49113         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49114         so that there are no conversion errors on AIX.
49115         * tests/test-mbsrtowcs.c (main): LIkewise.
49116
49117 2008-12-20  Bruno Haible  <bruno@clisp.org>
49118
49119         Work around wctob bug on Solaris <= 9.
49120         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49121         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49123         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49124         * modules/wctob (Files): Add m4/locale-fr.m4.
49125         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49126
49127 2008-12-20  Bruno Haible  <bruno@clisp.org>
49128
49129         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49130         /dev/null.
49131         * tests/test-select-in.sh: Likewise.
49132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49133
49134 2008-12-20  Bruno Haible  <bruno@clisp.org>
49135
49136         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49137         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49138         Cygwin 1.5.x.
49139
49140 2008-12-20  Bruno Haible  <bruno@clisp.org>
49141
49142         Ensure mbstate_t is defined on HP-UX 11.11.
49143         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49144         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49145         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49146         AC_USE_SYSTEM_EXTENSIONS.
49147         * modules/fnmatch (Depends-on): Add extensions.
49148         * modules/mbrlen (Depends-on): Likewise.
49149         * modules/mbrtowc (Depends-on): Likewise.
49150         * modules/mbsinit (Depends-on): Likewise.
49151         * modules/mbsrtowcs (Depends-on): Likewise.
49152         * modules/mbswidth (Depends-on): Likewise.
49153         * modules/quotearg (Depends-on): Likewise.
49154         * modules/strftime (Depends-on): Likewise.
49155
49156 2008-12-20  Bruno Haible  <bruno@clisp.org>
49157
49158         Ensure wctob is declared on IRIX 6.5.
49159         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49160         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49161         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49163         of HAVE_WCTOB.
49164         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49165         HAVE_WCTOB.
49166         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49167
49168 2008-12-19  Bruno Haible  <bruno@clisp.org>
49169
49170         * modules/mbsrtowcs-tests: New file.
49171         * tests/test-mbsrtowcs1.sh: New file.
49172         * tests/test-mbsrtowcs2.sh: New file.
49173         * tests/test-mbsrtowcs3.sh: New file.
49174         * tests/test-mbsrtowcs4.sh: New file.
49175         * tests/test-mbsrtowcs.c: New file.
49176
49177         New module 'mbsrtowcs'.
49178         * lib/wchar.in.h (mbsrtowcs): New declaration.
49179         * lib/mbsrtowcs.c: New file.
49180         * m4/mbsrtowcs.m4: New file.
49181         * modules/mbsrtowcs: New file.
49182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49183         HAVE_MBSRTOWCS.
49184         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49185         HAVE_MBSRTOWCS.
49186         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49187
49188 2008-12-19  Bruno Haible  <bruno@clisp.org>
49189
49190         New module 'mbrlen'.
49191         * lib/wchar.in.h (mbrlen): New declaration.
49192         * lib/mbrlen.c: New file.
49193         * m4/mbrlen.m4: New file.
49194         * modules/mbrlen: New file.
49195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49196         HAVE_MBRLEN.
49197         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49198         HAVE_MBRLEN.
49199         * doc/posix-functions/mbrlen.texi: Document the new module.
49200
49201 2008-12-19  Bruno Haible  <bruno@clisp.org>
49202
49203         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49204         * modules/mbrtowc (Depends-on): Add verify.
49205         Suggested by Paul Eggert.
49206
49207 2008-12-18  Bruno Haible  <bruno@clisp.org>
49208
49209         * modules/mbsinit-tests: New file.
49210         * tests/test-mbsinit.sh: New file.
49211         * tests/test-mbsinit.c: New file.
49212
49213 2008-12-18  Bruno Haible  <bruno@clisp.org>
49214
49215         * modules/mbrtowc-tests: New file.
49216         * tests/test-mbrtowc1.sh: New file.
49217         * tests/test-mbrtowc2.sh: New file.
49218         * tests/test-mbrtowc3.sh: New file.
49219         * tests/test-mbrtowc4.sh: New file.
49220         * tests/test-mbrtowc.c: New file.
49221
49222         New module 'mbrtowc'.
49223         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49224         mbsinit and mbrtowc.
49225         (mbrtowc): New declaration.
49226         * lib/mbrtowc.c: New file.
49227         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49228         * modules/mbrtowc: New file.
49229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49230         HAVE_MBRTOWC.
49231         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49232         HAVE_MBRTOWC.
49233         * doc/posix-functions/mbrtowc.texi: Document the new module.
49234
49235 2008-12-18  Bruno Haible  <bruno@clisp.org>
49236
49237         New module 'wctob'.
49238         * lib/wchar.in.h (wctob): New declaration.
49239         * lib/wctob.c: New file.
49240         * m4/wctob.m4: New file.
49241         * modules/wctob: New file.
49242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49243         HAVE_WCTOB.
49244         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49245         * doc/posix-functions/wctob.texi: Document the new module.
49246
49247 2008-12-18  Bruno Haible  <bruno@clisp.org>
49248
49249         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49250         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49251
49252 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49253
49254         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49255         G. Christensen" <tgc@jupiterrise.com>.
49256
49257         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49258         G. Christensen" <tgc@jupiterrise.com>.
49259
49260         * lib/flock.c: Need to include string.h.  Reported by "Tom
49261         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49262         <ebb9@byu.net>.
49263
49264 2008-12-18  Bruno Haible  <bruno@clisp.org>
49265
49266         * m4/locale-ja.m4: New file, from GNU gettext.
49267
49268 2008-12-17  Bruno Haible  <bruno@clisp.org>
49269
49270         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49271         Suggested by Eric Blake.
49272
49273 2008-12-17  Bruno Haible  <bruno@clisp.org>
49274
49275         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49276
49277 2008-12-17  Bruno Haible  <bruno@clisp.org>
49278
49279         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49280         * modules/mbsinit (Depends-on): Add verify.
49281         Suggested by Paul Eggert.
49282
49283 2008-12-17  Bruno Haible  <bruno@clisp.org>
49284
49285         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49286         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49287         gl_FUNC_MBRTOWC.
49288         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49289         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49290         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49291         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49292         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49293         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49294         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49295         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49296         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49297         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49298         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49299         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49300         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49301         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49302         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49303         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49304         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49305         * modules/trim (configure.ac): Likewise.
49306
49307 2008-12-17  Bruno Haible  <bruno@clisp.org>
49308
49309         * modules/btowc-tests: New file.
49310         * tests/test-btowc1.sh: New file.
49311         * tests/test-btowc2.sh: New file.
49312         * tests/test-btowc.c: New file.
49313
49314         New module 'btowc'.
49315         * lib/wchar.in.h (btowc): New declaration.
49316         * lib/btowc.c: New file.
49317         * m4/btowc.m4: New file.
49318         * modules/btowc: New file.
49319         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49320         HAVE_BTOWC.
49321         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49322         * doc/posix-functions/btowc.texi: Document the new module.
49323
49324 2008-12-17  Bruno Haible  <bruno@clisp.org>
49325
49326         New module 'mbsinit'.
49327         * lib/wchar.in.h (mbsinit): New declaration.
49328         * lib/mbsinit.c: New file.
49329         * m4/mbsinit.m4: New file.
49330         * modules/mbsinit: New file.
49331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49332         HAVE_MBSINIT.
49333         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49334         HAVE_MBSINIT.
49335         * doc/posix-functions/mbsinit.texi: Document the new module.
49336
49337 2008-12-16  Bruno Haible  <bruno@clisp.org>
49338
49339         * lib/unistd.in.h: Add comment.
49340         * tests/test-environ.c: Don't include <stdlib.h>.
49341
49342 2008-12-16  Bruno Haible  <bruno@clisp.org>
49343
49344         * lib/parse-duration.h (parse_duration): Document return value
49345         convention.
49346         * lib/parse-duration.c: Include specification header first. Add
49347         comments.
49348         (_): Remove macro.
49349         (parse_year_month_day, parse_hour_minute_second): Move side effects
49350         outside of strchr call.
49351         (parse_non_iso8601): Move side effects outside of isspace call.
49352         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49353         call.
49354
49355 2008-12-16  Bruno Haible  <bruno@clisp.org>
49356
49357         * tests/test-parse-duration.sh: Produce no output when the test
49358         succeeds.
49359
49360 2008-12-16  Bruno Haible  <bruno@clisp.org>
49361
49362         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49363         expressions.
49364
49365 2008-12-15  Bruno Haible  <bruno@clisp.org>
49366
49367         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49368         * doc/glibc-functions/flistxattr.texi: Likewise.
49369         * doc/glibc-functions/fopencookie.texi: Likewise.
49370         * doc/glibc-functions/fremovexattr.texi: Likewise.
49371         * doc/glibc-functions/fsetxattr.texi: Likewise.
49372         * doc/glibc-functions/getxattr.texi: Likewise.
49373         * doc/glibc-functions/lgetxattr.texi: Likewise.
49374         * doc/glibc-functions/listxattr.texi: Likewise.
49375         * doc/glibc-functions/llistxattr.texi: Likewise.
49376         * doc/glibc-functions/lremovexattr.texi: Likewise.
49377         * doc/glibc-functions/lsetxattr.texi: Likewise.
49378         * doc/glibc-functions/removexattr.texi: Likewise.
49379         * doc/glibc-functions/setxattr.texi: Likewise.
49380         * doc/posix-functions/open_memstream.texi: Likewise.
49381
49382 2008-12-15  Eric Blake  <ebb9@byu.net>
49383
49384         Update doc for cygwin 1.7.
49385         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49386         functions.
49387         * doc/posix-functions/fchmodat.texi: Likewise.
49388         * doc/posix-functions/fchownat.texi: Likewise.
49389         * doc/posix-functions/fdopendir.texi: Likewise.
49390         * doc/posix-functions/fmemopen.texi: Likewise.
49391         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49392         * doc/posix-functions/fstatat.texi: Likewise.
49393         * doc/posix-functions/futimens.texi: Likewise.
49394         * doc/posix-functions/gai_strerror.texi: Likewise.
49395         * doc/posix-functions/getaddrinfo.texi: Likewise.
49396         * doc/posix-functions/getnameinfo.texi: Likewise.
49397         * doc/posix-functions/if_freenameindex.texi: Likewise.
49398         * doc/posix-functions/if_indextoname.texi: Likewise.
49399         * doc/posix-functions/if_nameindex.texi: Likewise.
49400         * doc/posix-functions/if_nametoindex.texi: Likewise.
49401         * doc/posix-functions/insque.texi: Likewise.
49402         * doc/posix-functions/linkat.texi: Likewise.
49403         * doc/posix-functions/llrint.texi: Likewise.
49404         * doc/posix-functions/llrintf.texi: Likewise.
49405         * doc/posix-functions/llrintl.texi: Likewise.
49406         * doc/posix-functions/lockf.texi: Likewise.
49407         * doc/posix-functions/lrintl.texi: Likewise.
49408         * doc/posix-functions/mkdirat.texi: Likewise.
49409         * doc/posix-functions/mkfifoat.texi: Likewise.
49410         * doc/posix-functions/mknodat.texi: Likewise.
49411         * doc/posix-functions/mq_close.texi: Likewise.
49412         * doc/posix-functions/mq_getattr.texi: Likewise.
49413         * doc/posix-functions/mq_notify.texi: Likewise.
49414         * doc/posix-functions/mq_open.texi: Likewise.
49415         * doc/posix-functions/mq_receive.texi: Likewise.
49416         * doc/posix-functions/mq_send.texi: Likewise.
49417         * doc/posix-functions/mq_setattr.texi: Likewise.
49418         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49419         * doc/posix-functions/mq_timedsend.texi: Likewise.
49420         * doc/posix-functions/mq_unlink.texi: Likewise.
49421         * doc/posix-functions/open_memstream.texi: Likewise.
49422         * doc/posix-functions/openat.texi: Likewise.
49423         * doc/posix-functions/posix_fadvise.texi: Likewise.
49424         * doc/posix-functions/posix_fallocate.texi: Likewise.
49425         * doc/posix-functions/posix_madvise.texi: Likewise.
49426         * doc/posix-functions/posix_memalign.texi: Likewise.
49427         * doc/posix-functions/posix_openpt.texi: Likewise.
49428         * doc/posix-functions/readlinkat.texi: Likewise.
49429         * doc/posix-functions/remque.texi: Likewise.
49430         * doc/posix-functions/renameat.texi: Likewise.
49431         * doc/posix-functions/rintl.texi: Likewise.
49432         * doc/posix-functions/sem_unlink.texi: Likewise.
49433         * doc/posix-functions/shm_open.texi: Likewise.
49434         * doc/posix-functions/shm_unlink.texi: Likewise.
49435         * doc/posix-functions/signgam.texi: Likewise.
49436         * doc/posix-functions/sigset.texi: Likewise.
49437         * doc/posix-functions/stpcpy.texi: Likewise.
49438         * doc/posix-functions/stpncpy.texi: Likewise.
49439         * doc/posix-functions/strerror.texi: Likewise.
49440         * doc/posix-functions/strtod.texi: Likewise.
49441         * doc/posix-functions/symlinkat.texi: Likewise.
49442         * doc/posix-functions/unlinkat.texi: Likewise.
49443         * doc/posix-functions/utimensat.texi: Likewise.
49444         * doc/glibc-functions/bindresvport.texi: Likewise.
49445         * doc/glibc-functions/dn_expand.texi: Likewise.
49446         * doc/glibc-functions/exp10.texi: Likewise.
49447         * doc/glibc-functions/exp10f.texi: Likewise.
49448         * doc/glibc-functions/fgetxattr.texi: Likewise.
49449         * doc/glibc-functions/flistxattr.texi: Likewise.
49450         * doc/glibc-functions/fopencookie.texi: Likewise.
49451         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49452         * doc/glibc-functions/fremovexattr.texi: Likewise.
49453         * doc/glibc-functions/fsetxattr.texi: Likewise.
49454         * doc/glibc-functions/getifaddrs.texi: Likewise.
49455         * doc/glibc-functions/getxattr.texi: Likewise.
49456         * doc/glibc-functions/lgetxattr.texi: Likewise.
49457         * doc/glibc-functions/listxattr.texi: Likewise.
49458         * doc/glibc-functions/llistxattr.texi: Likewise.
49459         * doc/glibc-functions/lremovexattr.texi: Likewise.
49460         * doc/glibc-functions/lsetxattr.texi: Likewise.
49461         * doc/glibc-functions/pow10.texi: Likewise.
49462         * doc/glibc-functions/pow10f.texi: Likewise.
49463         * doc/glibc-functions/rcmd_af.texi: Likewise.
49464         * doc/glibc-functions/removexattr.texi: Likewise.
49465         * doc/glibc-functions/res_init.texi: Likewise.
49466         * doc/glibc-functions/res_mkquery.texi: Likewise.
49467         * doc/glibc-functions/res_query.texi: Likewise.
49468         * doc/glibc-functions/res_querydomain.texi: Likewise.
49469         * doc/glibc-functions/res_send.texi: Likewise.
49470         * doc/glibc-functions/rresvport_af.texi: Likewise.
49471         * doc/glibc-functions/setxattr.texi: Likewise.
49472         * doc/glibc-functions/strcasestr.texi: Likewise.
49473
49474 2008-12-15  Bruno Haible  <bruno@clisp.org>
49475
49476         Fix compilation error on OSF/1 4.0.
49477         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49478         <sys/time.h>, simply delegate to the system header.
49479         Reported by Daniel Richard G. <oss@teragram.com>.
49480
49481 2008-12-15  Bruno Haible  <bruno@clisp.org>
49482
49483         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49484         * doc/posix-functions/fchmodat.texi: Likewise.
49485         * doc/posix-functions/fchownat.texi: Likewise.
49486         * doc/posix-functions/fdopendir.texi: Likewise.
49487         * doc/posix-functions/fstatat.texi: Likewise.
49488         * doc/posix-functions/mkdirat.texi: Likewise.
49489         * doc/posix-functions/unlinkat.texi: Likewise.
49490
49491 2008-12-14  Bruno Haible  <bruno@clisp.org>
49492
49493         Update doc for POSIX:2008.
49494         * doc/posix-functions/faccessat.texi: New file.
49495         * doc/posix-functions/fchmodat.texi: New file.
49496         * doc/posix-functions/fchownat.texi: New file.
49497         * doc/posix-functions/fdopendir.texi: New file.
49498         * doc/posix-functions/fstatat.texi: New file.
49499         * doc/posix-functions/futimens.texi: New file.
49500         * doc/posix-functions/linkat.texi: New file.
49501         * doc/posix-functions/mkdirat.texi: New file.
49502         * doc/posix-functions/mkfifoat.texi: New file.
49503         * doc/posix-functions/mknodat.texi: New file.
49504         * doc/posix-functions/open_wmemstream.texi: New file.
49505         * doc/posix-functions/openat.texi: New file.
49506         * doc/posix-functions/psiginfo.texi: New file.
49507         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49508         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49509         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49510         * doc/posix-functions/readlinkat.texi: New file.
49511         * doc/posix-functions/renameat.texi: New file.
49512         * doc/posix-functions/strerror_l.texi: New file.
49513         * doc/posix-functions/symlinkat.texi: New file.
49514         * doc/posix-functions/unlinkat.texi: New file.
49515         * doc/posix-functions/utimensat.texi: New file.
49516         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49517
49518 2008-12-14  Bruno Haible  <bruno@clisp.org>
49519
49520         Update doc for POSIX:2008.
49521         * doc/posix-functions/alphasort.texi: Renamed from
49522         doc/glibc-functions/alphasort.texi.
49523         * doc/posix-functions/dirfd.texi: Renamed from
49524         doc/glibc-functions/dirfd.texi.
49525         * doc/posix-functions/dprintf.texi: Renamed from
49526         doc/glibc-functions/dprintf.texi.
49527         * doc/posix-functions/duplocale.texi: Renamed from
49528         doc/glibc-functions/duplocale.texi.
49529         * doc/posix-functions/fexecve.texi: Renamed from
49530         doc/glibc-functions/fexecve.texi.
49531         * doc/posix-functions/fmemopen.texi: Renamed from
49532         doc/glibc-functions/fmemopen.texi.
49533         * doc/posix-functions/freelocale.texi: Renamed from
49534         doc/glibc-functions/freelocale.texi.
49535         * doc/posix-functions/getdate_err.texi: Renamed from
49536         doc/glibc-functions/getdate_err.texi.
49537         * doc/posix-functions/isalnum_l.texi: Renamed from
49538         doc/glibc-functions/isalnum_l.texi.
49539         * doc/posix-functions/isalpha_l.texi: Renamed from
49540         doc/glibc-functions/isalpha_l.texi.
49541         * doc/posix-functions/isblank_l.texi: Renamed from
49542         doc/glibc-functions/isblank_l.texi.
49543         * doc/posix-functions/iscntrl_l.texi: Renamed from
49544         doc/glibc-functions/iscntrl_l.texi.
49545         * doc/posix-functions/isdigit_l.texi: Renamed from
49546         doc/glibc-functions/isdigit_l.texi.
49547         * doc/posix-functions/isgraph_l.texi: Renamed from
49548         doc/glibc-functions/isgraph_l.texi.
49549         * doc/posix-functions/islower_l.texi: Renamed from
49550         doc/glibc-functions/islower_l.texi.
49551         * doc/posix-functions/isprint_l.texi: Renamed from
49552         doc/glibc-functions/isprint_l.texi.
49553         * doc/posix-functions/ispunct_l.texi: Renamed from
49554         doc/glibc-functions/ispunct_l.texi.
49555         * doc/posix-functions/isspace_l.texi: Renamed from
49556         doc/glibc-functions/isspace_l.texi.
49557         * doc/posix-functions/isupper_l.texi: Renamed from
49558         doc/glibc-functions/isupper_l.texi.
49559         * doc/posix-functions/iswalnum_l.texi: Renamed from
49560         doc/glibc-functions/iswalnum_l.texi.
49561         * doc/posix-functions/iswalpha_l.texi: Renamed from
49562         doc/glibc-functions/iswalpha_l.texi.
49563         * doc/posix-functions/iswblank_l.texi: Renamed from
49564         doc/glibc-functions/iswblank_l.texi.
49565         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49566         doc/glibc-functions/iswcntrl_l.texi.
49567         * doc/posix-functions/iswctype_l.texi: Renamed from
49568         doc/glibc-functions/iswctype_l.texi.
49569         * doc/posix-functions/iswdigit_l.texi: Renamed from
49570         doc/glibc-functions/iswdigit_l.texi.
49571         * doc/posix-functions/iswgraph_l.texi: Renamed from
49572         doc/glibc-functions/iswgraph_l.texi.
49573         * doc/posix-functions/iswlower_l.texi: Renamed from
49574         doc/glibc-functions/iswlower_l.texi.
49575         * doc/posix-functions/iswprint_l.texi: Renamed from
49576         doc/glibc-functions/iswprint_l.texi.
49577         * doc/posix-functions/iswpunct_l.texi: Renamed from
49578         doc/glibc-functions/iswpunct_l.texi.
49579         * doc/posix-functions/iswspace_l.texi: Renamed from
49580         doc/glibc-functions/iswspace_l.texi.
49581         * doc/posix-functions/iswupper_l.texi: Renamed from
49582         doc/glibc-functions/iswupper_l.texi.
49583         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49584         doc/glibc-functions/iswxdigit_l.texi.
49585         * doc/posix-functions/isxdigit_l.texi: Renamed from
49586         doc/glibc-functions/isxdigit_l.texi.
49587         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49588         doc/glibc-functions/mbsnrtowcs.texi.
49589         * doc/posix-functions/mkdtemp.texi: Renamed from
49590         doc/glibc-functions/mkdtemp.texi.
49591         * doc/posix-functions/newlocale.texi: Renamed from
49592         doc/glibc-functions/newlocale.texi.
49593         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49594         doc/glibc-functions/nl_langinfo_l.texi.
49595         * doc/posix-functions/open_memstream.texi: Renamed from
49596         doc/glibc-functions/open_memstream.texi.
49597         * doc/posix-functions/opterr.texi: Renamed from
49598         doc/glibc-functions/opterr.texi.
49599         * doc/posix-functions/optind.texi: Renamed from
49600         doc/glibc-functions/optind.texi.
49601         * doc/posix-functions/optopt.texi: Renamed from
49602         doc/glibc-functions/optopt.texi.
49603         * doc/posix-functions/psignal.texi: Renamed from
49604         doc/glibc-functions/psignal.texi.
49605         * doc/posix-functions/scandir.texi: Renamed from
49606         doc/glibc-functions/scandir.texi.
49607         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49608         doc/glibc-functions/sched_get_priority_min.texi.
49609         * doc/posix-functions/signgam.texi: Renamed from
49610         doc/glibc-functions/signgam.texi.
49611         * doc/posix-functions/stpcpy.texi: Renamed from
49612         doc/glibc-functions/stpcpy.texi.
49613         * doc/posix-functions/stpncpy.texi: Renamed from
49614         doc/glibc-functions/stpncpy.texi.
49615         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49616         doc/glibc-functions/strcasecmp_l.texi.
49617         * doc/posix-functions/strcoll_l.texi: Renamed from
49618         doc/glibc-functions/strcoll_l.texi.
49619         * doc/posix-functions/strfmon_l.texi: Renamed from
49620         doc/glibc-functions/strfmon_l.texi.
49621         * doc/posix-functions/strftime_l.texi: Renamed from
49622         doc/glibc-functions/strftime_l.texi.
49623         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49624         doc/glibc-functions/strncasecmp_l.texi.
49625         * doc/posix-functions/strndup.texi: Renamed from
49626         doc/glibc-functions/strndup.texi.
49627         * doc/posix-functions/strnlen.texi: Renamed from
49628         doc/glibc-functions/strnlen.texi.
49629         * doc/posix-functions/strsignal.texi: Renamed from
49630         doc/glibc-functions/strsignal.texi.
49631         * doc/posix-functions/strxfrm_l.texi: Renamed from
49632         doc/glibc-functions/strxfrm_l.texi.
49633         * doc/posix-functions/timer_gettime.texi: Renamed from
49634         doc/glibc-functions/timer_gettime.texi.
49635         * doc/posix-functions/tolower_l.texi: Renamed from
49636         doc/glibc-functions/tolower_l.texi.
49637         * doc/posix-functions/toupper_l.texi: Renamed from
49638         doc/glibc-functions/toupper_l.texi.
49639         * doc/posix-functions/towctrans_l.texi: Renamed from
49640         doc/glibc-functions/towctrans_l.texi.
49641         * doc/posix-functions/towlower_l.texi: Renamed from
49642         doc/glibc-functions/towlower_l.texi.
49643         * doc/posix-functions/towupper_l.texi: Renamed from
49644         doc/glibc-functions/towupper_l.texi.
49645         * doc/posix-functions/uselocale.texi: Renamed from
49646         doc/glibc-functions/uselocale.texi.
49647         * doc/posix-functions/vdprintf.texi: Renamed from
49648         doc/glibc-functions/vdprintf.texi.
49649         * doc/posix-functions/wcpcpy.texi:
49650         Renamed from doc/glibc-functions/wcpcpy.texi.
49651         * doc/posix-functions/wcpncpy.texi: Renamed from
49652         doc/glibc-functions/wcpncpy.texi.
49653         * doc/posix-functions/wcscasecmp.texi: Renamed from
49654         doc/glibc-functions/wcscasecmp.texi.
49655         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49656         doc/glibc-functions/wcscasecmp_l.texi.
49657         * doc/posix-functions/wcscoll_l.texi: Renamed from
49658         doc/glibc-functions/wcscoll_l.texi.
49659         * doc/posix-functions/wcsdup.texi: Renamed from
49660         doc/glibc-functions/wcsdup.texi.
49661         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49662         doc/glibc-functions/wcsncasecmp.texi.
49663         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49664         doc/glibc-functions/wcsncasecmp_l.texi.
49665         * doc/posix-functions/wcsnlen.texi: Renamed from
49666         doc/glibc-functions/wcsnlen.texi.
49667         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49668         doc/glibc-functions/wcsnrtombs.texi.
49669         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49670         doc/glibc-functions/wcsxfrm_l.texi.
49671         * doc/posix-functions/wctrans_l.texi: Renamed from
49672         doc/glibc-functions/wctrans_l.texi.
49673         * doc/posix-functions/wctype_l.texi: Renamed from
49674         doc/glibc-functions/wctype_l.texi.
49675         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49676         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49677         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49678         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49679         these subsections.
49680         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49681         Remove sections.
49682
49683 2008-12-14  Bruno Haible  <bruno@clisp.org>
49684
49685         Update doc for POSIX:2008.
49686         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49687
49688 2008-12-14  Bruno Haible  <bruno@clisp.org>
49689
49690         Update doc for POSIX:2008.
49691         * doc/pastposix-functions/bcmp.texi: Renamed from
49692         doc/posix-functions/bcmp.texi.
49693         * doc/pastposix-functions/bcopy.texi: Renamed from
49694         doc/posix-functions/bcopy.texi.
49695         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49696         doc/posix-functions/bsd_signal.texi.
49697         * doc/pastposix-functions/bzero.texi: Renamed from
49698         doc/posix-functions/bzero.texi.
49699         * doc/pastposix-functions/ecvt.texi: Renamed from
49700         doc/posix-functions/ecvt.texi.
49701         * doc/pastposix-functions/fcvt.texi: Renamed from
49702         doc/posix-functions/fcvt.texi.
49703         * doc/pastposix-functions/ftime.texi: Renamed from
49704         doc/posix-functions/ftime.texi.
49705         * doc/pastposix-functions/gcvt.texi: Renamed from
49706         doc/posix-functions/gcvt.texi.
49707         * doc/pastposix-functions/getcontext.texi: Renamed from
49708         doc/posix-functions/getcontext.texi.
49709         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49710         doc/posix-functions/gethostbyaddr.texi.
49711         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49712         doc/posix-functions/gethostbyname.texi.
49713         * doc/pastposix-functions/getwd.texi: Renamed from
49714         doc/posix-functions/getwd.texi.
49715         * doc/pastposix-functions/h_errno.texi: Renamed from
49716         doc/posix-functions/h_errno.texi.
49717         * doc/pastposix-functions/index.texi: Renamed from
49718         doc/posix-functions/index.texi.
49719         * doc/pastposix-functions/makecontext.texi: Renamed from
49720         doc/posix-functions/makecontext.texi.
49721         * doc/pastposix-functions/mktemp.texi: Renamed from
49722         doc/posix-functions/mktemp.texi.
49723         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49724         doc/posix-functions/pthread_attr_getstackaddr.texi.
49725         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49726         doc/posix-functions/pthread_attr_setstackaddr.texi.
49727         * doc/pastposix-functions/rindex.texi: Renamed from
49728         doc/posix-functions/rindex.texi.
49729         * doc/pastposix-functions/scalb.texi: Renamed from
49730         doc/posix-functions/scalb.texi.
49731         * doc/pastposix-functions/setcontext.texi: Renamed from
49732         doc/posix-functions/setcontext.texi.
49733         * doc/pastposix-functions/swapcontext.texi: Renamed from
49734         doc/posix-functions/swapcontext.texi.
49735         * doc/pastposix-functions/ualarm.texi: Renamed from
49736         doc/posix-functions/ualarm.texi.
49737         * doc/pastposix-functions/usleep.texi: Renamed from
49738         doc/posix-functions/usleep.texi.
49739         * doc/pastposix-functions/vfork.texi: Renamed from
49740         doc/posix-functions/vfork.texi.
49741         * doc/pastposix-functions/wcswcs.texi: Renamed from
49742         doc/posix-functions/wcswcs.texi.
49743         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49744         (Function Substitutes): Update.
49745
49746 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49747
49748         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49749         m4/strerror.m4.
49750
49751 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49752             Bruno Haible  <bruno@clisp.org>
49753
49754         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49755
49756 2008-12-13  Bruno Haible  <bruno@clisp.org>
49757
49758         * modules/strtoull (Depends-on): Remove unistd.
49759
49760 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49761
49762         * modules/strtoull (Depends-on): Add stdlib.
49763
49764 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49765
49766         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49767
49768 2008-12-10  Jim Meyering  <meyering@redhat.com>
49769
49770         gl_ASSERT: don't say assertions are disabled when they're not
49771         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49772         "checking whether to enable assertions... no", when they are in
49773         fact enabled.  This is solely a bug in the output of configure.
49774         In spite of saying "no", NDEBUG was not defined in that case.
49775         Also, as noted by Eric Blake, leave assertions enabled upon
49776         --enable-assert=INVALID.
49777
49778 2008-12-10  Bruno Haible  <bruno@clisp.org>
49779
49780         Change MODULES.html to refer to POSIX:2008 where possible.
49781         * MODULES.html.sh (POSIX2008_URL): New variable.
49782         (posix_headers): Remove sys/timeb, ucontext.
49783         (posix2001_headers): New variable.
49784         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49785         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49786         index, makecontext, mktemp, pthread_attr_getstackaddr,
49787         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49788         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49789         (posix2001_functions): New variable.
49790         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49791         otherwise.
49792
49793 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49794
49795         add missing include to parse-duration.c
49796         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49797         * modules/parse-duration (Depends-on): Add xalloc.
49798
49799         fix sed script reading maint.mk
49800         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49801         (syntax-check-rules): Use it.
49802
49803 2008-12-09  Bruno Haible  <bruno@clisp.org>
49804
49805         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49806         MacOS X 10.4/PowerPC.
49807         Reported by Simon Josefsson.
49808
49809 2008-12-08  Jim Meyering  <meyering@redhat.com>
49810
49811         work around mingw's lack of some S_IF definitions
49812         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49813         Reported by Simon Josefsson.
49814
49815 2008-12-08  Bruno Haible  <bruno@clisp.org>
49816
49817         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49818         applied to variables. Needed on MacOS X 10.4/PowerPC.
49819         Reported by Simon Josefsson.
49820
49821 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49822         and Eric Blake  <ebb9@byu.net>
49823
49824         assert: honor --enable-assert
49825         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49826         order to honor --enable-assert, rather than treating it as a
49827         synonym for --disable-assert.
49828
49829 2008-12-08  Jim Meyering  <meyering@redhat.com>
49830
49831         * lib/posixtm.c: Remove now-useless declaration of mktime.
49832
49833         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49834
49835 2008-12-07  Bruno Haible  <bruno@clisp.org>
49836
49837         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49838         test_once): Mark functions as static.
49839         * tests/test-tls.c (test_tls): Likewise.
49840
49841 2008-12-07  Bruno Haible  <bruno@clisp.org>
49842
49843         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49844         iconv_register_autodetect.
49845
49846 2008-12-07  Jim Meyering  <meyering@redhat.com>
49847
49848         posixtm.c: avoid a warning
49849         * lib/posixtm.c (posixtime): Don't initialize tm0.
49850         It's no longer needed to placate gcc4's -Wuninitialized,
49851         and the attempt to placate would elicit a new warning.
49852
49853         unicodeio.c: mark unused parameters
49854         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49855         (fallback_failure_callback): Likewise.
49856
49857 2008-12-07  Bruno Haible  <bruno@clisp.org>
49858
49859         * gnulib-tool (func_create_testdir): When building the tests
49860         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49861         Reported by Simon Josefsson.
49862
49863 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49864
49865         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49866
49867 2008-12-06  Bruno Haible  <bruno@clisp.org>
49868
49869         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49870         Suggested by Eric Blake.
49871
49872 2008-12-06  Bruno Haible  <bruno@clisp.org>
49873
49874         Fix a c-stack test failure on MacOS X.
49875         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49876         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49877         handler for SIGBUS as well.
49878         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49879         install a signal handler for SIGBUS as well.
49880         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49881
49882 2008-12-06  Bruno Haible  <bruno@clisp.org>
49883
49884         Advocacy documentation.
49885         * doc/gnulib-intro.texi (Benefits): New section.
49886         * doc/gnulib.texi: Update.
49887
49888 2008-12-06  Bruno Haible  <bruno@clisp.org>
49889
49890         Document the 'manywarnings' module.
49891         * doc/manywarnings.texi: New file.
49892         * doc/gnulib.texi: Include it.
49893
49894 2008-12-05  Eric Blake  <ebb9@byu.net>
49895
49896         tests: silence some gcc warnings
49897         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49898         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49899         type mismatches.
49900
49901 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49902             Bruno Haible  <bruno@clisp.org>
49903
49904         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49905
49906 2008-11-29  Jim Meyering  <meyering@redhat.com>
49907
49908         unicodeio.c: mark unused parameters
49909         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49910         (fallback_failure_callback): Likewise.
49911
49912         fts: fix a thinko
49913         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49914         (set_stat_type): Return S_IF*-valued "type" directly.
49915         Prompted by James Youngman's spotting a related bug.
49916         Confirmed by further testing through find.
49917
49918         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49919         * lib/fts.c (D_TYPE): Define.
49920         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49921         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49922         (s_ifmt_shift_bits): New function.
49923         (set_stat_type): New function.
49924         (fts_build): When not calling fts_stat, call set_stat_type
49925         to propagate dirent.d_type info to fts_read caller.
49926         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49927         fts_statp->st_mode type information may be valid.
49928
49929 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49930
49931         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49932         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49933         <sds@gnu.org>.
49934
49935 2008-11-20  Bruno Haible  <bruno@clisp.org>
49936
49937         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49938         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49939         INCLUDE_NEXT.
49940         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49941         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49942         * modules/math (Makefile.am): Substitute
49943         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49944         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49945
49946 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49947             Bruno Haible  <bruno@clisp.org>
49948
49949         * lib/stdint.in.h: Define all type macros so that their expansion is
49950         a single typedef'ed token. Fixes a compilation failure in Boost which
49951         does "using ::int8_t;".
49952
49953 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49954
49955         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49956         gl_MANYWARN_ALL_GCC.
49957         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49958         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49959         * modules/manywarnings: New file.
49960         * MODULES.html.sh: Mention manywarnings module.
49961
49962 2008-11-18  Bruno Haible  <bruno@clisp.org>
49963
49964         * doc/gnulib-tool.texi (Unit tests): New section.
49965
49966 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49967
49968         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49969         paths like 'lib/po/foo.po'.
49970
49971 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49972
49973         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49974         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49975
49976 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49977
49978         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49979         parameter works.
49980
49981 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49982
49983         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49984
49985 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49986
49987         * modules/parse-duration-tests: New file.
49988         * tests/test-parse-duration.sh: New file.
49989         * tests/test-parse-duration.c: New file.
49990
49991         New module 'parse-duration'.
49992         * lib/parse-duration.h: New file.
49993         * lib/parse-duration.c: New file.
49994         * modules/parse-duration: New file.
49995
49996 2008-11-17  Bruno Haible  <bruno@clisp.org>
49997
49998         * tests/test-select-out.sh: Comment out the first pipe test.
49999         Reported by Simon Josefsson.
50000
50001 2008-11-17  Bruno Haible  <bruno@clisp.org>
50002
50003         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50004         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50005         gl_HOSTENT.
50006
50007 2008-11-17  Bruno Haible  <bruno@clisp.org>
50008
50009         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50010         -lnetwork and -lnet. Needed for Haiku and BeOS.
50011
50012 2008-11-16  Bruno Haible  <bruno@clisp.org>
50013
50014         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50015
50016 2008-11-16  Bruno Haible  <bruno@clisp.org>
50017
50018         Avoid test failure on Haiku.
50019         * tests/test-fsync.c: Include <errno.h>.
50020         (main): Don't require that fsync (0) fails.
50021
50022 2008-11-15  Bruno Haible  <bruno@clisp.org>
50023
50024         New module 'hostent'.
50025         * modules/hostent: New file.
50026         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50027
50028 2008-11-15  Bruno Haible  <bruno@clisp.org>
50029
50030         New module 'servent'.
50031         * modules/servent: New file.
50032         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50033
50034 2008-11-15  Bruno Haible  <bruno@clisp.org>
50035
50036         Avoid generating same test program with two different rules.
50037         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50038         test-frexp to test-frexp-nolibm.
50039         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50040         test-frexpl to test-frexpl-nolibm.
50041
50042 2008-11-15  Bruno Haible  <bruno@clisp.org>
50043
50044         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50045         $(FREXPL_LIBM).
50046
50047 2008-11-15  Bruno Haible  <bruno@clisp.org>
50048
50049         * lib/netdb.in.h: Activate the definitions also when the system's
50050         <netdb.h> has 'struct addrinfo'.
50051         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50052         EAI_OVERFLOW or AI_NUMERICSERV.
50053         * doc/posix-headers/netdb.texi: Document the problem.
50054
50055 2008-11-15  Bruno Haible  <bruno@clisp.org>
50056
50057         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50058
50059         Make the 'sched' module work on platforms where <sched.h> exists but
50060         is incomplete (such as Haiku).
50061         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50062         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50063         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50064         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50065         HAVE_STRUCT_SCHED_PARAM.
50066         * modules/sched (Depends-on): Add include_next.
50067         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50068         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50069         * doc/posix-headers/sched.texi: Document the issue.
50070
50071 2008-11-13  Jim Meyering  <meyering@redhat.com>
50072
50073         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50074         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50075         test would fail due to the difference in the Report bugs to ...
50076         line.  The expected address is empty, "<>", while the actual
50077         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50078
50079 2008-11-12  Bruno Haible  <bruno@clisp.org>
50080
50081         lstat: don't compile lstat.c on systems lacking lstat
50082         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50083         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50084         Reported by Daniel P. Berrange via Jim Meyering.
50085
50086 2008-11-12  Jim Meyering  <meyering@redhat.com>
50087
50088         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50089
50090 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50091
50092         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50093         instead.
50094
50095 2008-11-12  Bruno Haible  <bruno@clisp.org>
50096
50097         * lib/unicodeio.c: Include unistr.h.
50098         (utf8_wctomb): Remove function.
50099         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50100
50101 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50102
50103         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50104         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50105         <bruno@clisp.org>.
50106         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50107
50108 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50109
50110         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50111         * doc/gnulib.texi: Add section for warnings.
50112
50113 2008-11-11  Bruno Haible  <bruno@clisp.org>
50114
50115         * lib/sockets.h: Add a comment.
50116
50117 2008-11-11  Karl Berry  <karl@gnu.org>
50118
50119         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50120
50121 2008-11-11  Eric Blake  <ebb9@byu.net>
50122
50123         fdl.texi: avoid git symlinks
50124         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50125
50126 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50127
50128         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50129
50130 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50131
50132         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50133         (gl_WARN_ADD): Substitute $2 if literal.
50134
50135 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50136
50137         * m4/warning.m4: Remove.
50138
50139 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50140
50141         * m4/warnings.m4: Almost complete rewrite. :-)
50142
50143 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50144
50145         * modules/warnings: New module.
50146         * m4/warnings.m4: New file.
50147         * MODULES.html.sh: Mention warnings module.
50148         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50149         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50150
50151 2008-11-10  Eric Blake  <ebb9@byu.net>
50152
50153         fdl.texi: make a symlink to the latest version
50154         * doc/standards.texi: Revert today's earlier change.
50155         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50156         * doc/fdl.texi: ...and replace this with a symlink to the newer
50157         fdl-1.3.texi.
50158
50159 2008-11-10  Bruno Haible  <bruno@clisp.org>
50160
50161         * tests/test-select-fd.c (main): Accept the result file name as fourth
50162         argument.
50163         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50164         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50165
50166 2008-11-10  Bruno Haible  <bruno@clisp.org>
50167
50168         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50169         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50170         as autoconf-substituted macros.
50171         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50172         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50173         gl_NETDB_H_DEFAULTS. Set these variables.
50174         * modules/netdb (Makefile.am): Substitute these variables.
50175
50176 2008-11-10  Eric Blake  <ebb9@byu.net>
50177
50178         standards.texi: include correct file for FDL 1.3
50179         * doc/standards.texi (GNU Free Documentation License): Change
50180         include file to pull in FDL 1.3, not 1.2.
50181
50182         fdl.texi: revert accidental change to license
50183         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50184
50185 2008-11-10  Bruno Haible  <bruno@clisp.org>
50186
50187         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50188         cross-compiling guesses also when the native compile gives no result.
50189
50190 2008-11-10  Bruno Haible  <bruno@clisp.org>
50191
50192         * lib/spawni.c (__spawni): Force variable into the stack.
50193
50194 2008-11-10  Bruno Haible  <bruno@clisp.org>
50195
50196         Add support for Haiku.
50197         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50198         glibc and BeOS, but also on Haiku.
50199         * lib/fpurge.c (fpurge): Likewise.
50200         * lib/freadable.c (freadable): Likewise.
50201         * lib/freadahead.c (freadahead): Likewise.
50202         * lib/freading.c (freading): Likewise.
50203         * lib/freadptr.c (freadptr): Likewise.
50204         * lib/freadseek.c (freadptrinc): Likewise.
50205         * lib/fseeko.c (rpl_fseeko): Likewise.
50206         * lib/fseterr.c (fseterr): Likewise.
50207         * lib/fwritable.c (fwritable): Likewise.
50208         * lib/fwriting.c (fwriting): Likewise.
50209         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50210
50211 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50212
50213         * lib/config.charset: Treat Haiku like BeOS.
50214
50215 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50216
50217         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50218         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50219
50220 2008-11-08  Bruno Haible  <bruno@clisp.org>
50221
50222         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50223         AC_CACHE_CHECK.
50224
50225 2008-11-08  Bruno Haible  <bruno@clisp.org>
50226
50227         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50228
50229 2008-11-08  Bruno Haible  <bruno@clisp.org>
50230
50231         * tests/test-select-fd.c: New file.
50232         * tests/test-select-in.sh: New file.
50233         * tests/test-select-out.sh: New file.
50234         * tests/test-select-stdin.c: New file.
50235         * modules/select-tests (Files): Add the new files.
50236         (Depends-on): Add gettimeofday.
50237         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50238         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50239         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50240
50241 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50242             Bruno Haible  <bruno@clisp.org>
50243
50244         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50245
50246 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50247
50248         * build-aux/pmccabe2html: Added support for C++ source files.
50249
50250 2008-11-05  Ben Pfaff  <blp@gnu.org>
50251
50252         Fix lib/close.c build on Windows.
50253         * modules/close (Files): Add lib/w32sock.h.
50254
50255 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50256
50257         Accept Bison's NEWS format.
50258         * build-aux/announce-gen (print_news_deltas): Tweak
50259         $re_prefix.
50260
50261 2008-11-04  Bruno Haible  <bruno@clisp.org>
50262
50263         * modules/random_r (Maintainer): Add glibc.
50264
50265 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50266
50267         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50268         by karl@freefriends.org (Karl Berry).
50269         * doc/alloca.texi: Likewise.
50270         * doc/c-ctype.texi: Likewise.
50271         * doc/c-strcase.texi: Likewise.
50272         * doc/c-strcaseeq.texi: Likewise.
50273         * doc/c-strcasestr.texi: Likewise.
50274         * doc/c-strstr.texi: Likewise.
50275         * doc/c-strtod.texi: Likewise.
50276         * doc/c-strtold.texi: Likewise.
50277         * doc/ctime.texi: Likewise.
50278         * doc/error.texi: Likewise.
50279         * doc/fdl.texi: Likewise.
50280         * doc/gcd.texi: Likewise.
50281         * doc/getdate.texi: Likewise.
50282         * doc/gnulib-intro.texi: Likewise.
50283         * doc/gnulib-tool.texi: Likewise.
50284         * doc/gnulib.texi: Likewise.
50285         * doc/inet_ntoa.texi: Likewise.
50286         * doc/maintain.texi: Likewise.
50287         * doc/make-stds.texi: Likewise.
50288         * doc/quote.texi: Likewise.
50289         * doc/regexprops-generic.texi: Likewise.
50290         * doc/standards.texi: Likewise.
50291         * doc/verify.texi: Likewise.
50292         * doc/visibility.texi: Likewise.
50293         * doc/gnulib.texi (GNU Free Documentation License): Include
50294         fdl-1.3.texi instead of fdl.texi.
50295
50296 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50297
50298         * doc/fdl-1.3.texi: New file, from
50299         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50300         * modules/fdl-1.3: Add.
50301         * MODULES.html.sh: Add fdl-1.3.
50302
50303 2008-11-03  Bruno Haible  <bruno@clisp.org>
50304
50305         Make determination of absolute name of header file work with AIX xlc.
50306         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50307         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50308         preprocessing.
50309         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50310         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50311
50312 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50313
50314         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50315         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50316         <ludo@gnu.org>.
50317
50318 2008-11-02  Bruno Haible  <bruno@clisp.org>
50319
50320         Mark 'strpbrk' obsolete.
50321         * modules/strpbrk (Status, Notice): New sections.
50322         * modules/strtok_r (Depends-on): Add strpbrk.
50323
50324 2008-11-02  Bruno Haible  <bruno@clisp.org>
50325
50326         Mark 'strdup' obsolete.
50327         * modules/strdup (Status, Notice): New sections.
50328         * modules/findprog (Depends-on): Add strdup.
50329         * modules/getaddrinfo (Depends-on): Likewise.
50330         * modules/localename (Depends-on): Likewise.
50331         * modules/relocatable-lib (Depends-on): Likewise.
50332         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50333         * modules/relocatable-prog (Depends-on): Likewise.
50334         * modules/trim (Depends-on): Likewise.
50335         * modules/unictype/gen-ctype (Depends-on): Likewise.
50336         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50337
50338 2008-11-02  Bruno Haible  <bruno@clisp.org>
50339
50340         Mark 'strcspn' obsolete.
50341         * modules/strcspn (Status, Notice): New sections.
50342
50343 2008-11-02  Bruno Haible  <bruno@clisp.org>
50344
50345         Mark 'rmdir' obsolete.
50346         * modules/rmdir (Status, Notice): New sections.
50347         * modules/clean-temp (Depends-on): Add rmdir.
50348         * modules/openat (Depends-on): Likewise.
50349
50350 2008-11-02  Bruno Haible  <bruno@clisp.org>
50351
50352         Mark 'raise' obsolete.
50353         * modules/raise (Status, Notice): New sections.
50354         (Include): Specify <signal.h>.
50355         * modules/stdio (Depends-on): Add raise.
50356         * modules/write (Depends-on): Likewise.
50357
50358 2008-11-02  Bruno Haible  <bruno@clisp.org>
50359
50360         Mark 'memset' obsolete.
50361         * modules/memset (Status, Notice): New sections.
50362
50363 2008-11-02  Bruno Haible  <bruno@clisp.org>
50364
50365         Mark 'memmove' obsolete.
50366         * modules/memmove (Status, Notice): New sections.
50367         * modules/argp (Depends-on): Add memmove.
50368         * modules/argz (Depends-on): Likewise.
50369         * modules/canonicalize (Depends-on): Likewise.
50370         * modules/canonicalize-lgpl (Depends-on): Likewise.
50371         * modules/fts (Depends-on): Likewise.
50372         * modules/getcwd (Depends-on): Likewise.
50373         * modules/human (Depends-on): Likewise.
50374         * modules/regex (Depends-on): Likewise.
50375         * modules/striconveh (Depends-on): Likewise.
50376         * modules/trim (Depends-on): Likewise.
50377         * modules/unistr/u8-move (Depends-on): Likewise.
50378         * modules/unistr/u16-move (Depends-on): Likewise.
50379         * modules/unistr/u32-move (Depends-on): Likewise.
50380
50381 2008-11-02  Bruno Haible  <bruno@clisp.org>
50382
50383         Mark 'memcpy' obsolete.
50384         * modules/memcpy (Status, Notice): New sections.
50385
50386 2008-11-02  Bruno Haible  <bruno@clisp.org>
50387
50388         Mark 'memcmp' obsolete.
50389         * modules/memcmp (Status, Notice): New sections.
50390         * modules/argmatch (Depends-on): Add memchr.
50391         * modules/backupfile (Depends-on): Likewise.
50392         * modules/c-strcasestr (Depends-on): Likewise.
50393         * modules/crypto/des (Depends-on): Likewise.
50394         * modules/csharpcomp (Depends-on): Likewise.
50395         * modules/fnmatch (Depends-on): Likewise.
50396         * modules/git-merge-changelog (Depends-on): Likewise.
50397         * modules/isnand (Depends-on): Likewise.
50398         * modules/isnand-nolibm (Depends-on): Likewise.
50399         * modules/isnanf (Depends-on): Likewise.
50400         * modules/isnanf-nolibm (Depends-on): Likewise.
50401         * modules/isnanl (Depends-on): Likewise.
50402         * modules/isnanl-nolibm (Depends-on): Likewise.
50403         * modules/mbchar (Depends-on): Likewise.
50404         * modules/memcoll (Depends-on): Likewise.
50405         * modules/quotearg (Depends-on): Likewise.
50406         * modules/regex (Depends-on): Likewise.
50407         * modules/relocatable-prog (Depends-on): Likewise.
50408         * modules/same (Depends-on): Likewise.
50409         * modules/signbit (Depends-on): Likewise.
50410         * modules/strcasestr-simple (Depends-on): Likewise.
50411         * modules/unictype/gen-ctype (Depends-on): Likewise.
50412         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50413         * modules/uniname/uniname (Depends-on): Likewise.
50414         * modules/unistr/u8-cmp (Depends-on): Likewise.
50415
50416 2008-11-02  Bruno Haible  <bruno@clisp.org>
50417
50418         Mark 'memchr' obsolete.
50419         * modules/memchr (Status, Notice): New sections.
50420         * modules/argp (Depends-on): Add memchr.
50421         * modules/base64 (Depends-on): Likewise.
50422         * modules/c-strcasestr (Depends-on): Likewise.
50423         * modules/chdir-long (Depends-on): Likewise.
50424         * modules/fnmatch (Depends-on): Likewise.
50425         * modules/getsubopt (Depends-on): Likewise.
50426         * modules/git-merge-changelog (Depends-on): Likewise.
50427         * modules/glob (Depends-on): Likewise.
50428         * modules/strcasestr-simple (Depends-on): Likewise.
50429         * modules/strnlen (Depends-on): Likewise.
50430
50431 2008-11-02  Bruno Haible  <bruno@clisp.org>
50432
50433         Mark 'atexit' obsolete.
50434         * modules/atexit (Status, Notice): New sections.
50435         * modules/chdir-long (Depends-on): Add atexit.
50436         * modules/wait-process (Depends-on): Likewise.
50437
50438 2008-11-02  Bruno Haible  <bruno@clisp.org>
50439
50440         * gnulib-tool: New option --with-obsolete.
50441         (func_usage): Document it.
50442         (func_modules_transitive_closure): Drop obsolete dependencies if
50443         incobsolete is not true.
50444         (func_import): Read and save the incobsolete variable to the cache.
50445
50446 2008-11-02  Bruno Haible  <bruno@clisp.org>
50447
50448         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50449         * gnulib-tool: New option --extract-status.
50450         (func_usage): Document it.
50451         (sed_extract_prog): Recognize it.
50452         (func_get_status): New function.
50453
50454 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50455
50456         * modules/sockets (License): Change from LGPL to LGPLv2+.
50457
50458 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50459
50460         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50461
50462 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50463
50464         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50465         Mention times and sys_times.
50466         * modules/sys_times, modules/sys_times-tests: New modules.
50467         * modules/times, modules/times-tests: Likewise
50468         * m4/sys_times_h.m4: New file.
50469         * lib/sys_times.in.h: Likewise
50470         * lib/times.c: Likewise.
50471         * tests/test-sys_times.c: Likewise.
50472         * tests/test-times.c: Likewise.
50473         * doc/posix-headers/sys_times.texi: Update.
50474         * doc/posix-functions/times.texi: Update.
50475
50476 2008-10-28  Jim Meyering  <meyering@redhat.com>
50477
50478         * modules/tempname (Depends-on): Add lstat.
50479
50480         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50481
50482 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50483
50484         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50485         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50486         using idiom used elsewhere in gnulib.
50487
50488 2008-10-27  Jim Meyering  <meyering@redhat.com>
50489
50490         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50491
50492 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50493
50494         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50495         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50496         programs.
50497         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50498
50499 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50500
50501         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50502
50503 2008-10-27  Bruno Haible  <bruno@clisp.org>
50504
50505         * tests/test-lstat.c: Include <stdio.h>.
50506
50507 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50508
50509         * modules/lstat-tests: New module.
50510         * tests/test-lstat.c: New file.
50511
50512 2008-10-26  Jim Meyering  <meyering@redhat.com>
50513
50514         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50515
50516 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50517             Bruno Haible  <bruno@clisp.org>
50518
50519         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50520         * modules/configmake (Include): Add a note that the include must come
50521         after all system headers.
50522         * lib/javaversion.c: Include configmake.h after all other includes.
50523
50524 2008-10-26  Bruno Haible  <bruno@clisp.org>
50525
50526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50527         HAVE_STRUCT_RANDOM_DATA to 1.
50528         (gl_STDLIB_H): Simplify.
50529
50530 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50531
50532         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50533         substitute HAVE_STRUCT_RANDOM_DATA.
50534         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50535         random_data.
50536         * modules/stdlib (Makefile.am): Substitute
50537         HAVE_STRUCT_RANDOM_DATA.
50538
50539 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50540
50541         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50542         * doc/gnulib-intro.texi (Copyright): Likewise.
50543
50544 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50545
50546         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50547         findings.
50548
50549 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50550             Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/unistd.in.h: Include <winsock2.h>.
50553         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50554         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50555         Provide dummy declarations.
50556         (gethostname): Override.
50557         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50558         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50559         gl_PREREQ_SYS_H_WINSOCK2.
50560         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50561         * doc/posix-functions/gethostname.texi: More details.
50562
50563 2008-10-25  Bruno Haible  <bruno@clisp.org>
50564
50565         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50566         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50567         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50568
50569         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50570         here ...
50571         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50572         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50573         gl_UNISTD_H_DEFAULTS.
50574
50575 2008-10-25  Eric Blake  <ebb9@byu.net>
50576
50577         signbit: avoid spurious compiler failure
50578         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50579         declarations inside function.
50580
50581 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50582             Bruno Haible  <bruno@clisp.org>
50583
50584         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50585         * modules/random_r (Depends-on): Add stdint.
50586
50587 2008-10-24  Bruno Haible  <bruno@clisp.org>
50588
50589         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50590         Eggert.
50591         * modules/strerror (License): Likewise.
50592
50593 2008-10-24  Jim Meyering  <meyering@redhat.com>
50594
50595         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50596         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50597
50598 2008-10-24  Eric Blake  <ebb9@byu.net>
50599
50600         getgroups: fix compilation when getgroups is available
50601         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50602         but with <config.h> override of getgroups disabled.
50603
50604 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50605
50606         * doc/gnulib.texi (Header files): Add note about C++ problems.
50607         Explained by Bruno Haible <bruno@clisp.org>.
50608
50609 2008-10-23  Bruno Haible  <bruno@clisp.org>
50610
50611         Define a dummy SA_NODEFER macro on Interix.
50612         * lib/signal.in.h (SA_NODEFER): Define fallback.
50613         Reported by Aleksey Cheusov <cheusov@tut.by> via
50614         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50615
50616 2008-10-23  Bruno Haible  <bruno@clisp.org>
50617
50618         * modules/freadahead (License): Change to LGPLv2+.
50619         Suggested by Simon Josefsson.
50620
50621 2008-10-23  Jim Meyering  <meyering@redhat.com>
50622
50623         random_r: new module
50624         * modules/random_r: New file.
50625         * m4/random_r.m4: New file.
50626         * lib/random_r.c: New file, from glibc.
50627         * modules/random_r-tests: New file.
50628         * tests/test-random_r.c: New file.
50629         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50630          Declare.
50631         (RAND_MAX): Define.
50632         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50633         * modules/stdlib: Substitute them, too.
50634         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50635         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50636         * doc/glibc-functions/random_r.texi: Likewise.
50637         * doc/glibc-functions/setstate_r.texi: Likewise.
50638         * doc/glibc-functions/srandom_r.texi: Likewise.
50639         * config/srclist.txt: Mention it.
50640
50641 2008-10-23  David Lutterkort  <lutter@redhat.com>
50642
50643         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50644         link requirement
50645
50646 2008-10-23  Jim Meyering  <meyering@redhat.com>
50647
50648         selinux-h: mark parameters of stub functions as intentionally unused
50649         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50650         * lib/se-context.in.h: Likewise.
50651
50652 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50653
50654         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50655
50656 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50657
50658         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50659
50660 2008-10-22  Eric Blake  <ebb9@byu.net>
50661
50662         glthread/thread: avoid compiler warning
50663         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50664         Add unreachable abort to silence compiler.
50665
50666 2008-10-22  Eric Blake  <ebb9@byu.net>
50667
50668         netdb: also supply struct addrinfo for cygwin 1.5.x
50669         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50670         older cygwin.
50671         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50672         cygwin.
50673         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50674
50675 2008-10-22  Bruno Haible  <bruno@clisp.org>
50676
50677         * users.txt: Update entry about pspp.
50678
50679 2008-10-21  Bruno Haible  <bruno@clisp.org>
50680
50681         Simplification.
50682         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50683         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50684
50685         Simplification.
50686         * lib/ioctl.c (ioctl): Don't undefine.
50687         * lib/socket.c (socket): Don't undefine.
50688
50689         Remove unused module indicator macros.
50690         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50691         GNULIB_$1 as a C macro.
50692
50693         * doc/posix-functions/close.texi: Undo last change.
50694         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50695         Windows platforms.
50696
50697 2008-10-21  Bruno Haible  <bruno@clisp.org>
50698
50699         Add gethostname() declaration to <unistd.h>.
50700         * lib/unistd.in.h (gethostname): New declaration.
50701         * lib/gethostname.c: Include <unistd.h>.
50702         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50703         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50705         and HAVE_GETHOSTNAME.
50706         * modules/gethostname (Depends-on): Add unistd.
50707         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50708         (Include): Specify <unistd.h>.
50709         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50710         HAVE_GETHOSTNAME.
50711         * tests/test-gethostname.c: Include <unistd.h> first.
50712
50713 2008-10-21  Bruno Haible  <bruno@clisp.org>
50714
50715         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50716         * modules/select-tests (Depends-on): Likewise.
50717         Reported by Simon Josefsson.
50718
50719 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50720
50721         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50722         * lib/accept.c: New file, based on winsock.c.
50723         * lib/bind.c: New file, based on winsock.c.
50724         * lib/connect.c: New file, based on winsock.c.
50725         * lib/getpeername.c: New file, based on winsock.c.
50726         * lib/getsockname.c: New file, based on winsock.c.
50727         * lib/getsockopt.c: New file, based on winsock.c.
50728         * lib/ioctl.c: New file, based on winsock.c.
50729         * lib/listen.c: New file, based on winsock.c.
50730         * lib/recv.c: New file, based on winsock.c.
50731         * lib/recvfrom.c: New file, based on winsock.c.
50732         * lib/send.c: New file, based on winsock.c.
50733         * lib/sendto.c: New file, based on winsock.c.
50734         * lib/setsockopt.c: New file, based on winsock.c.
50735         * lib/shutdown.c: New file, based on winsock.c.
50736         * lib/socket.c: New file, based on winsock.c.
50737         * lib/w32sock.h: New file, based on winsock.c.
50738         * lib/winsock.c: Remove file.
50739         * modules/accept: Likewise.
50740         * modules/bind: Likewise.
50741         * modules/connect: Likewise.
50742         * modules/getpeername: Likewise.
50743         * modules/getsockname: Likewise.
50744         * modules/getsockopt: Likewise.
50745         * modules/ioctl: Likewise.
50746         * modules/listen: Likewise.
50747         * modules/recv: Likewise.
50748         * modules/recvfrom: Likewise.
50749         * modules/send: Likewise.
50750         * modules/sendto: Likewise.
50751         * modules/setsockopt: Likewise.
50752         * modules/shutdown: Likewise.
50753         * modules/socket: Use socket.c instead of winsock.c.
50754         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50755         * doc/posix-functions/accept.texi: Doc fix.
50756         * doc/posix-functions/bind.texi: Doc fix.
50757         * doc/posix-functions/close.texi: Doc fix.
50758         * doc/posix-functions/connect.texi: Doc fix.
50759         * doc/posix-functions/getpeername.texi: Doc fix.
50760         * doc/posix-functions/getsockname.texi: Doc fix.
50761         * doc/posix-functions/getsockopt.texi: Doc fix.
50762         * doc/posix-functions/ioctl.texi: Doc fix.
50763         * doc/posix-functions/listen.texi: Doc fix.
50764         * doc/posix-functions/recv.texi: Doc fix.
50765         * doc/posix-functions/recvfrom.texi: Doc fix.
50766         * doc/posix-functions/send.texi: Doc fix.
50767         * doc/posix-functions/sendto.texi: Doc fix.
50768         * doc/posix-functions/setsockopt.texi: Doc fix.
50769         * doc/posix-functions/shutdown.texi: Doc fix.
50770         * doc/posix-functions/socket.texi: Doc fix.
50771
50772 2008-10-20  Bruno Haible  <bruno@clisp.org>
50773
50774         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50775         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50776         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50777         as an alias for SIGABRT.
50778         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50779         (sigaction): Map it to SIGABRT.
50780         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50781
50782 2008-10-20  Bruno Haible  <bruno@clisp.org>
50783
50784         * lib/fts.c: Don't include lstat.h.
50785         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50786
50787         Move the lstat() declaration to <sys/stat.h>.
50788         * lib/lstat.h: Remove file.
50789         * lib/sys_stat.in.h: Add special invocation convention.
50790         (lstat): New declaration.
50791         * lib/lstat.c (orig_lstat): New function.
50792         (rpl_lstat): Use orig_lstat instead of lstat.
50793         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50794         AC_C_INLINE. Set REPLACE_LSTAT.
50795         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50796         and REPLACE_LSTAT.
50797         * modules/lstat (Files): Remove lib/lstat.h.
50798         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50799         (Include): Specify <sys/stat.h> instead of lstat.h.
50800         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50801         REPLACE_LSTAT.
50802         * NEWS: Mention the change.
50803
50804 2008-10-20  Bruno Haible  <bruno@clisp.org>
50805
50806         * modules/posix_spawn-tests: New file.
50807         * tests/test-posix_spawn3.c: New file.
50808
50809 2008-10-20  Bruno Haible  <bruno@clisp.org>
50810
50811         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50812         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50813         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50814         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50815         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50816
50817 2008-10-20  Bruno Haible  <bruno@clisp.org>
50818
50819         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50820         of posix_spawn on AIX 5.3.
50821
50822 2008-10-20  Bruno Haible  <bruno@clisp.org>
50823
50824         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50825
50826 2008-10-20  Bruno Haible  <bruno@clisp.org>
50827
50828         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50829         of AC_LANG_PROGRAM.
50830
50831 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50832
50833         * lib/netdb.in.h: Don't define GNU specific constants until they
50834         are supported or needed.  Reported by Bruno Haible
50835         <bruno@clisp.org>.
50836
50837 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50838
50839         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50840
50841 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50842
50843         * lib/getaddrinfo.h: Remove file.
50844         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50845         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50846         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50847         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50848         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50849         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50850         * tests/test-getaddrinfo.c: Likewise.
50851         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50852         * NEWS: Mention change.
50853
50854 2008-10-19  Bruno Haible  <bruno@clisp.org>
50855
50856         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50857
50858 2008-10-19  Bruno Haible  <bruno@clisp.org>
50859
50860         * lib/wait-process.c: Include simply <sys/wait.h>.
50861         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50862         WIFSTOPPED): Remove fallback definitions.
50863         * modules/wait-process (Depends-on): Add sys_wait.
50864
50865         New module 'sys_wait'.
50866         * modules/sys_wait: New file.
50867         * lib/sys_wait.in.h: New file, partially copied from
50868         lib/wait-process.c.
50869         * m4/sys_wait_h.m4: New file.
50870         * doc/posix-headers/sys_wait.texi: Mention the new module.
50871
50872 2008-10-19  Bruno Haible  <bruno@clisp.org>
50873
50874         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50875
50876 2008-10-19  Bruno Haible  <bruno@clisp.org>
50877
50878         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50879         * lib/wait-process.c (WAIT_T): Remove type.
50880         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50881         (wait_subprocess): Update.
50882
50883 2008-10-19  Bruno Haible  <bruno@clisp.org>
50884
50885         New module 'atoll'.
50886         * modules/atoll: New file.
50887         * lib/stdlib.in.h (atoll): New declaration.
50888         * lib/atoll.c: New file, from glibc with modifications.
50889         * m4/atoll.m4: New file.
50890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50891         HAVE_ATOLL.
50892         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50893         * doc/posix-functions/atoll.texi: Mention the new module.
50894
50895 2008-10-19  Bruno Haible  <bruno@clisp.org>
50896
50897         Add strtoull() declaration to <stdlib.h>.
50898         * lib/stdlib.in.h (strtoull): New declaration.
50899         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50900         Set HAVE_STRTOULL.
50901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50902         HAVE_STRTOULL.
50903         * modules/strtoull (Depends-on): Add stdlib.
50904         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50905         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50906         HAVE_STRTOULL.
50907
50908 2008-10-19  Bruno Haible  <bruno@clisp.org>
50909
50910         Add strtoll() declaration to <stdlib.h>.
50911         * lib/stdlib.in.h (strtoll): New declaration.
50912         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50913         Set HAVE_STRTOLL.
50914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50915         HAVE_STRTOLL.
50916         * modules/strtoll (Depends-on): Add stdlib.
50917         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50918         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50919
50920 2008-10-19  Bruno Haible  <bruno@clisp.org>
50921
50922         * modules/bcopy (Depends-on): Add strings.
50923         (Include): Specify <strings.h>.
50924
50925 2008-10-19  Bruno Haible  <bruno@clisp.org>
50926
50927         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50928
50929 2008-10-19  Bruno Haible  <bruno@clisp.org>
50930
50931         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50932         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50933         mingw.
50934
50935 2008-10-19  Bruno Haible  <bruno@clisp.org>
50936
50937         * lib/atanl.c: Don't include isnanl.h.
50938         * lib/cosl.c: Likewise.
50939         * lib/ldexpl.c: Likewise.
50940         * lib/logl.c: Likewise.
50941         * lib/sinl.c: Likewise.
50942         * lib/sqrtl.c: Likewise.
50943         * lib/tanl.c: Likewise.
50944
50945         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50946         * lib/isnanf.h: Remove file.
50947         * lib/isnand.h: Remove file.
50948         * lib/isnanl.h: Remove file.
50949         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50950         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50951         macros.
50952         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50953         HAVE_ISNANF, don't define it as a C macro.
50954         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50955         HAVE_ISNAND, don't define it as a C macro.
50956         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50957         HAVE_ISNANL, don't define it as a C macro.
50958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50959         HAVE_ISNAN[FDL].
50960         * modules/isnanf (Files): Remove lib/isnanf.h.
50961         (Depends-on): Add math.
50962         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50963         (Include): Specify <math.h> instead of isnanf.h.
50964         * modules/isnand (Files): Remove lib/isnand.h.
50965         (Depends-on): Add math.
50966         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50967         (Include): Specify <math.h> instead of isnand.h.
50968         * modules/isnanl (Files): Remove lib/isnanl.h.
50969         (Depends-on): Add math.
50970         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50971         (Include): Specify <math.h> instead of isnanl.h.
50972         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50973         HAVE_ISNAN[FDL].
50974         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50975         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50976         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50977         * NEWS: Mention the change.
50978
50979 2008-10-18  Bruno Haible  <bruno@clisp.org>
50980
50981         Add getusershell(), setusershell(), endusershell() declarations to
50982         <unistd.h>.
50983         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50984         declarations.
50985         * lib/getusershell.c: Include unistd.h.
50986         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50987         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50988         HAVE_GETUSERSHELL.
50989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50990         and HAVE_GETUSERSHELL.
50991         * modules/getusershell (Depends-on): Add unistd, extensions.
50992         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50993         (Include): Specify <unistd.h>.
50994         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50995         HAVE_GETUSERSHELL.
50996
50997 2008-10-18  Bruno Haible  <bruno@clisp.org>
50998
50999         Add a getloadavg() declaration to <stdlib.h>.
51000         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51001         getloadavg declaration.
51002         (getloadavg): New declaration.
51003         * lib/getloadavg.c: Include <stdlib.h> first.
51004         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51005         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51006         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51008         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51009         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51010         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51011         (Include): Specify <stdlib.h>.
51012         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51013         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51014
51015 2008-10-18  Bruno Haible  <bruno@clisp.org>
51016
51017         * lib/dirchownmod.c: Don't include lchmod.h.
51018
51019         Move the lchmod() declaration to <sys/stat.h>.
51020         * lib/lchmod.h: Remove file.
51021         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51022         (lchmod): New declaration, moved here from lib/lchown.h.
51023         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51024         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51026         and HAVE_LCHMOD.
51027         * modules/lchmod (Files): Remove lib/lchmod.h.
51028         (Depends-on): Add sys_stat, extensions.
51029         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51030         (Include): Specify <sys/stat.h> instead of lchmod.h.
51031         * modules/sys_stat (Depends-on): Add link-warning.
51032         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51033         definition of GL_LINK_WARNING.
51034         * NEWS: Mention the change.
51035
51036 2008-10-18  Bruno Haible  <bruno@clisp.org>
51037
51038         * lib/fchdir.c: Don't include dirfd.h.
51039         * lib/fts.c: Likewise.
51040         * lib/getcwd.c: Likewise.
51041         * lib/glob.c: Likewise.
51042
51043         Move the dirfd() declaration to <dirent.h>.
51044         * lib/dirfd.h: Remove file.
51045         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51046         (dirfd): New declaration.
51047         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51048         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51049         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51050         HAVE_DECL_DIRFD.
51051         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51052         HAVE_DECL_DIRFD.
51053         * modules/dirfd (Files): Remove lib/dirfd.h.
51054         (Depends-on): Add dirent, extensions.
51055         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51056         (Include): Specify <dirent.h> instead of dirfd.h.
51057         * modules/dirent (Depends-on): Add link-warning.
51058         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51059         definition of GL_LINK_WARNING.
51060         * NEWS: Mention the change.
51061
51062 2008-10-18  Bruno Haible  <bruno@clisp.org>
51063
51064         Move the euidaccess() declaration to <unistd.h>.
51065         * lib/euidaccess.h: Remove file.
51066         * lib/unistd.in.h (euidaccess): New declaration.
51067         * lib/euidaccess.c: Don't include euidaccess.h.
51068         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51069         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51071         and HAVE_EUIDACCESS.
51072         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51073         (Depends-on): Add unistd.
51074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51075         (Include): Specify <unistd.h> instead of euidaccess.h.
51076         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51077         HAVE_EUIDACCESS.
51078         * NEWS: Mention the change.
51079
51080 2008-10-18  Bruno Haible  <bruno@clisp.org>
51081
51082         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51083
51084         Move the getdomainname() declaration to <unistd.h>.
51085         * lib/getdomainname.h: Remove file.
51086         * lib/unistd.in.h (getdomainname): New declaration.
51087         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51088         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51089         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51090         HAVE_GETDOMAINNAME.
51091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51092         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51093         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51094         (Depends-on): Add unistd, extensions.
51095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51096         (Includes): Specify <unistd.h> instead of getdomainname.h.
51097         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51098         HAVE_GETDOMAINNAME.
51099         * NEWS: Mention the change.
51100
51101 2008-10-18  Bruno Haible  <bruno@clisp.org>
51102
51103         * modules/dirent: New file.
51104         * m4/dirent_h.m4: New file.
51105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51106         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51107         * modules/fchdir (Files): Remove lib/dirent.in.h.
51108         (Depends-on): Add dirent.
51109         (Makefile.am): Move rules to modules/dirent.
51110         * doc/posix-headers/dirent.texi: Mention the new module.
51111
51112 2008-10-18  Bruno Haible  <bruno@clisp.org>
51113
51114         Avoid -Wunused-parameter warnings in public gnulib header files.
51115         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51116         macro.
51117         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51118
51119 2008-10-18  Bruno Haible  <bruno@clisp.org>
51120
51121         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51122         * doc/glibc-functions/error.texi: Mention the module 'error'.
51123         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51124         * doc/glibc-functions/getdomainname.texi: Mention the module
51125         'getdomainname'.
51126         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51127         * doc/glibc-functions/getpagesize.texi: Mention the module
51128         'getpagesize'.
51129         * doc/glibc-functions/getusershell.texi: Mention the module
51130         'getusershell'.
51131         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51132         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51133         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51134         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51135         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51136         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51137         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51138         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51139         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51140         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51141         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51142         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51143         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51144         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51145
51146 2008-10-17  Bruno Haible  <bruno@clisp.org>
51147
51148         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51149         HP-UX and IRIX, use -0.0L.
51150         * tests/test-ceill.c (minus_zero): Likewise.
51151         * tests/test-floorl.c (minus_zero): Likewise.
51152         * tests/test-frexpl.c (minus_zero): Likewise.
51153         * tests/test-isnan.c (minus_zerol): Likewise.
51154         * tests/test-isnanl.h (minus_zero): Likewise.
51155         * tests/test-ldexpl.c (minus_zero): Likewise.
51156         * tests/test-roundl.c (minus_zero): Likewise.
51157         * tests/test-signbit.c (minus_zerol): Likewise.
51158         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51159         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51160         * tests/test-truncl.c (minus_zero): Likewise.
51161         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51162         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51163         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51164         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51165
51166 2008-10-17  Bruno Haible  <bruno@clisp.org>
51167
51168         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51169         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51170         that it gets activated only for gcc >= 3.0.
51171         * lib/dirent.in.h: Likewise.
51172         * lib/errno.in.h: Likewise.
51173         * lib/fcntl.in.h: Likewise.
51174         * lib/float.in.h: Likewise.
51175         * lib/iconv.in.h: Likewise.
51176         * lib/inttypes.in.h: Likewise.
51177         * lib/locale.in.h: Likewise.
51178         * lib/math.in.h: Likewise.
51179         * lib/netdb.in.h: Likewise.
51180         * lib/netinet_in.in.h: Likewise.
51181         * lib/search.in.h: Likewise.
51182         * lib/signal.in.h: Likewise.
51183         * lib/spawn.in.h: Likewise.
51184         * lib/stdarg.in.h: Likewise.
51185         * lib/stdint.in.h: Likewise.
51186         * lib/stdio.in.h: Likewise.
51187         * lib/stdlib.in.h: Likewise.
51188         * lib/string.in.h: Likewise.
51189         * lib/strings.in.h: Likewise.
51190         * lib/sys_file.in.h: Likewise.
51191         * lib/sys_ioctl.in.h: Likewise.
51192         * lib/sys_select.in.h: Likewise.
51193         * lib/sys_socket.in.h: Likewise.
51194         * lib/sys_stat.in.h: Likewise.
51195         * lib/sys_time.in.h: Likewise.
51196         * lib/sysexits.in.h: Likewise.
51197         * lib/time.in.h: Likewise.
51198         * lib/unistd.in.h: Likewise.
51199         * lib/wchar.in.h: Likewise.
51200         * lib/wctype.in.h: Likewise.
51201         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51202
51203 2008-10-17  Jim Meyering  <meyering@redhat.com>
51204
51205         ignore-value: don't depend on inline module
51206         * modules/ignore-value (Depends-on): Remove 'inline'.
51207         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51208         Suggestion from Bruno Haible.
51209
51210 2008-10-17  Bruno Haible  <bruno@clisp.org>
51211
51212         New implementation of condition variables for Win32.
51213         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51214         (gl_linked_waitqueue_t): New type.
51215         (gl_cond_t): Use it.
51216         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51217         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51218         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51219         (glthread_cond_init_func, glthread_cond_wait_func,
51220         glthread_cond_timedwait_func, glthread_cond_signal_func,
51221         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51222         Reimplemented on the basis of gl_linked_waitqueue_t.
51223         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51224         gl_waitqueue_t.
51225         (gl_rwlock_t): Update.
51226         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51227
51228 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51229
51230         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51231         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51232
51233 2008-10-17  Jim Meyering  <meyering@redhat.com>
51234
51235         ignore-value: new module
51236         * modules/ignore-value: New file.
51237         * lib/ignore-value.h: New file.
51238         * MODULES.html.sh (Compiler warning management): New section,
51239         just for this module.  More to come.
51240
51241 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51242
51243         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51244         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51245         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51246
51247 2008-10-16  Jim Meyering  <meyering@redhat.com>
51248
51249         openat-die.c: avoid 'no previous prototype' warning
51250         * lib/openat-die.c: Include "openat.h".
51251         Reported by Reuben Thomas <rrt@sc3d.org>.
51252
51253 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51254
51255         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51256         * lib/netdb.in.h: Fix typo.
51257         Reported by Bruno Haible  <bruno@clisp.org>
51258
51259         * lib/netdb.in.h: Include sys/socket.h for platforms without
51260         netdb.h, to get structures like hostent on MinGW.
51261         * modules/netdb (Depends-on): Add sys_socket.
51262
51263 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51264
51265         * modules/netdb, modules/netdb-tests: New file.
51266         * m4/netdb_h.m4: New file.
51267         * lib/netdb.in.h: Add, currently just an empty file pending
51268         definitions.
51269         * tests/test-netdb.c: New file.
51270         * doc/posix-headers/netdb.texi: Mention that we replace it if
51271         needed.
51272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51273         netdb.
51274
51275 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51276
51277         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51278         with code.
51279
51280 2008-10-13  Bruno Haible  <bruno@clisp.org>
51281
51282         * lib/glthread/cond.c (glthread_cond_wait_func,
51283         glthread_cond_timedwait_func): Add a comment.
51284
51285 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51286
51287         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51288         * tests/test-select.c: Likewise,
51289
51290 2008-10-13  Bruno Haible  <bruno@clisp.org>
51291
51292         * lib/glthread/cond.c (glthread_cond_wait_func,
51293         glthread_cond_timedwait_func): Fix variable name.
51294         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51295
51296 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51297
51298         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51299         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51300         struct sockaddr.sa_len.
51301         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51302
51303 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51304
51305         * build-aux/pmccabe2html: Add css and css_url parameters.
51306
51307 2008-10-12  Bruno Haible  <bruno@clisp.org>
51308
51309         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51310         calling aclx_get.
51311         Reported by Rainer Tammer <tammer@tammer.net>.
51312
51313 2008-10-12  Bruno Haible  <bruno@clisp.org>
51314
51315         Use msvcrt aware primitives for creation/termination of Win32 threads.
51316         * lib/glthread/thread.c: Include <process.h>.
51317         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51318         (wrapper_func): Update signature.
51319         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51320
51321 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51322             Bruno Haible  <bruno@clisp.org>
51323
51324         Provide a Win32 implementation of the 'cond' module.
51325         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51326         * lib/glthread/cond.c (glthread_cond_init_func,
51327         glthread_cond_wait_func, glthread_cond_timedwait_func,
51328         glthread_cond_signal_func, glthread_cond_broadcast_func,
51329         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51330         * modules/cond (Dependencies): Add gettimeofday.
51331
51332 2008-10-11  Bruno Haible  <bruno@clisp.org>
51333
51334         Make sleep work on older versions of mingw.
51335         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51336         only whether it exists.
51337         * doc/posix-functions/sleep.texi: Mention the problem with older
51338         versions of mingw.
51339
51340 2008-10-11  Bruno Haible  <bruno@clisp.org>
51341
51342         New module 'shutdown'.
51343         * modules/shutdown: New file.
51344         * lib/sys_socket.in.h (shutdown): New declaration.
51345         * lib/winsock.c (shutdown): New function.
51346         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51347         GNULIB_SHUTDOWN.
51348         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51349         * doc/posix-functions/shutdown.texi: Document the new module.
51350
51351 2008-10-11  Jim Meyering  <meyering@redhat.com>
51352
51353         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51354
51355 2008-10-11  Bruno Haible  <bruno@clisp.org>
51356
51357         New module 'fclose'.
51358         * modules/fclose: New file.
51359         * lib/stdio.in.h (fclose): New declaration.
51360         * lib/fclose.c: New file.
51361         * m4/fclose.m4: New file.
51362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51363         REPLACE_FCLOSE.
51364         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51365         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51366         REPLACE_FCLOSE.
51367         * modules/close (Depends-on): fclose.
51368         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51369
51370 2008-10-11  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51373         set errno and don't call _close.
51374
51375 2008-10-10  Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51378         ACL, not afterwards. Fixes test failure on Cygwin.
51379
51380 2008-10-09  Ben Pfaff  <blp@gnu.org>
51381
51382         * build-aux/announce-gen: Fix gnulib version related part of usage
51383         message.  Die with a useful error message if no tarballs are
51384         found.
51385
51386 2008-10-10  Jim Meyering  <meyering@redhat.com>
51387
51388         bootstrap: use git's --depth=N option only if it's supported
51389         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51390         recognize the --depth option.  Reported by Pádraig Brady.
51391
51392 2008-10-09  Bruno Haible  <bruno@clisp.org>
51393
51394         New module 'ioctl'.
51395         * modules/ioctl: New file.
51396         * lib/sys_socket.in.h (ioctl): Remove declaration.
51397         * lib/winsock.c: Include <sys/ioctl.h>.
51398         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51399         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51400         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51401         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51402         * doc/posix-functions/ioctl.texi: Mention the new module.
51403
51404 2008-10-09  Bruno Haible  <bruno@clisp.org>
51405
51406         New module 'sys_ioctl'.
51407         * lib/sys_ioctl.in.h: New file.
51408         * m4/sys_ioctl_h.m4: New file.
51409         * modules/sys_ioctl: New file.
51410         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51411
51412 2008-10-09  Bruno Haible  <bruno@clisp.org>
51413
51414         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51415         * lib/winsock.c: Include <stdarg.h>.
51416         (rpl_ioctl): Change to second argument 'int' and then varargs.
51417
51418 2008-10-09  Bruno Haible  <bruno@clisp.org>
51419
51420         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51421         when the sys_socket module is present and the system has <winsock2.h>.
51422
51423 2008-10-09  Bruno Haible  <bruno@clisp.org>
51424
51425         * doc/posix-functions/close.texi: Mention module 'close' instead of
51426         module 'sys_socket'.
51427
51428 2008-10-09  Bruno Haible  <bruno@clisp.org>
51429
51430         * doc/glibc-headers/sys_ioctl.texi: New file.
51431         * doc/gnulib.texi: Include it.
51432
51433 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51434             Bruno Haible  <bruno@clisp.org>
51435
51436         Combine the two replacements of 'close'.
51437         * lib/sys_socket.in.h (close): Define to a reminder to include
51438         <unistd.h>.
51439         (_gl_close_fd_maybe_socket): New declaration.
51440         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51441         * lib/winsock.c (close): Remove undefinition.
51442         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51443         needed for the gnulib module 'close'.
51444         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51445         define to an error symbol or to a warning, if suitable.
51446         * lib/close.c: Include <sys/socket.h>.
51447         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51448         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51449         UNISTD_H_HAVE_WINSOCK2_H.
51450         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51452         UNISTD_H_HAVE_WINSOCK2_H.
51453         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51454         (configure.ac): Set a module indicator.
51455         (Makefile.am): Substitute GNULIB_CLOSE.
51456         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51457         * modules/poll-tests (Depends-on): Add close.
51458         * modules/select-tests (Depends-on): Likewise.
51459
51460 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51461             Bruno Haible  <bruno@clisp.org>
51462
51463         New module 'close'.
51464         * modules/close: New file.
51465         * lib/unistd.in.h (close): Move declaration out of the
51466         FCHDIR_REPLACEMENT scope.
51467         (_gl_unregister_fd): New declaration.
51468         * lib/close.c: New file.
51469         * lib/fchdir.c (rpl_close): Remove function.
51470         * m4/close.m4: New file.
51471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51472         close.
51473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51474         REPLACE_CLOSE.
51475         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51476         REPLACE_CLOSE.
51477         * modules/fchdir (Depends-on): Add close.
51478
51479 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51480             Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/fcntl.in.h (open): Simplify conditionals.
51483         (_gl_register_fd): New declaration.
51484         * lib/fchdir.c (rpl_open): Remove function.
51485         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51486         also.
51487         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51489         open.
51490
51491 2008-10-09  Jim Meyering  <meyering@redhat.com>
51492
51493         GNUmakefile: use the more name-space-friendly "_version"
51494         * top/GNUmakefile (_dummy): Update.
51495         (_version): Rename from "version".
51496
51497 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51498             Bruno Haible  <bruno@clisp.org>
51499
51500         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51501         rpl_close.
51502         (_gl_register_fd): New function, extracted from rpl_open.
51503         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51504         (rpl_open, rpl_opendir): Use _gl_register_fd.
51505
51506 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51507
51508         Fix organization of 'open' replacement.
51509         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51510         (gl_FUNC_OPEN): Use it.
51511         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51512
51513 2008-10-08  Bruno Haible  <bruno@clisp.org>
51514
51515         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51516
51517 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51518
51519         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51520         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51521         listen).
51522
51523 2008-10-08  Eric Blake  <ebb9@byu.net>
51524
51525         GNUmakefile: add 'make version' target
51526         * top/GNUmakefile (_curr-ver): Split version update rules...
51527         (version): ...into a target.
51528
51529 2008-10-07  Bruno Haible  <bruno@clisp.org>
51530
51531         Use a more portable replacement expression for -0.0L.
51532         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51533         instead of -0.0L. Fix m4 quotation.
51534
51535         * tests/test-signbit.c: Include <float.h>.
51536         (minus_zero): New variable.
51537         (test_signbitl): Use minus_zero instead of -zero.
51538         * modules/signbit-tests (Depends-on): Add float.
51539
51540         * tests/test-ceill.c: Include <float.h>.
51541         (zero): Remove variable.
51542         (minus_zero): New variable.
51543         (main): Use minus_zero instead of -zero.
51544         * modules/ceill-tests (Depends-on): Add float.
51545
51546         * tests/test-floorl.c: Include <float.h>.
51547         (zero): Remove variable.
51548         (minus_zero): New variable.
51549         (main): Use minus_zero instead of -zero.
51550         * modules/floorl-tests (Depends-on): Add float.
51551
51552         * tests/test-roundl.c: Include <float.h>.
51553         (zero): Remove variable.
51554         (minus_zero): New variable.
51555         (main): Use minus_zero instead of -zero.
51556         * modules/roundl-tests (Depends-on): Add float.
51557
51558         * tests/test-truncl.c: Include <float.h>.
51559         (zero): Remove variable.
51560         (minus_zero): New variable.
51561         (main): Use minus_zero instead of -zero.
51562         * modules/truncl-tests (Depends-on): Add float.
51563
51564         * tests/test-frexpl.c (zero): Remove variable.
51565         (minus_zero): New variable.
51566         (main): Use minus_zero instead of -zero.
51567         * modules/frexpl-tests (Depends-on): Add float.
51568
51569         * tests/test-isnan.c (zerol): Remove variable.
51570         (minus_zerol): New variable.
51571         (test_long_double): Use minus_zerol instead of -zerol.
51572         * modules/isnan-tests (Depends-on): Add float.
51573
51574         * tests/test-isnanl.h (zero): Remove variable.
51575         (minus_zero): New variable.
51576         (main): Use minus_zero instead of -zero.
51577         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51578         * modules/isnanl-tests (Depends-on): Add float.
51579
51580         * tests/test-ldexpl.c (zero): Remove variable.
51581         (minus_zero): New variable.
51582         (main): Use minus_zero instead of -zero.
51583         * modules/ldexpl-tests (Depends-on): Add float.
51584
51585         * tests/test-snprintf-posix.h (zerol): Remove variable.
51586         (minus_zerol): New variable.
51587         (test_function): Use minus_zerol instead of -zerol.
51588         * modules/snprintf-posix-tests (Depends-on): Add float.
51589         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51590
51591         * tests/test-sprintf-posix.h (zerol): Remove variable.
51592         (minus_zerol): New variable.
51593         (test_function): Use minus_zerol instead of -zerol.
51594         * modules/sprintf-posix-tests (Depends-on): Add float.
51595         * modules/vsprintf-posix-tests (Depends-on): Add float.
51596
51597         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51598         (minus_zerol): New variable.
51599         (test_function): Use minus_zerol instead of -zerol.
51600         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51601
51602         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51603         (minus_zerol): New variable.
51604         (test_function): Use minus_zerol instead of -zerol.
51605         * modules/vasprintf-posix-tests (Depends-on): Add float.
51606
51607 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51608
51609         * MODULES.html.sh (Support for building documentation): Mention
51610         pmccabe2html.  Sort entries.
51611
51612         Add pmccabe2html module, from gnupdf.
51613         * build-aux/pmccabe.css: New file.
51614         * build-aux/pmccabe2html: New file.
51615         * m4/pmccabe2html.m4: New file.
51616         * modules/pmccabe2html: New file.
51617
51618 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51619
51620         flock: new module
51621         * MODULES.html.sh: Add to list of modules.
51622         * lib/flock.c: flock implementation for Windows and Unix systems
51623         which have fcntl.
51624         * doc/glibc-functions/flock.texi: Update documentation.
51625         * lib/sys_file.in.h: <sys/file.h> header file.
51626         * m4/flock.m4: M4 macros.
51627         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51628         * modules/flock: flock module.
51629         * modules/flock-tests: flock tests module.
51630         * modules/sys_file: sys/file.h module.
51631         * tests/test-flock.c: test suite for flock.
51632
51633 2008-10-06  Jim Meyering  <meyering@redhat.com>
51634
51635         bootstrap: check for LT_INIT more portably still ;-)
51636         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51637         Spotted by Bruno Haible.
51638
51639 2008-10-06  Eric Blake  <ebb9@byu.net>
51640
51641         test-signbit: avoid tripping Irix cc bug on -0.0L
51642         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51643         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51644         entire testsuite consistent and avoids an Irix 6.2 bug.
51645
51646 2008-10-05  Bruno Haible  <bruno@clisp.org>
51647             Jim Meyering  <jim@meyering.net>
51648
51649         Add an option for ignoring EPIPE during close_stdout.
51650         * lib/closeout.h: Include <stdbool.h>.
51651         (close_stdout_set_ignore_EPIPE): New declaration.
51652         * lib/closeout.c: Include <stdbool.h>.
51653         (ignore_EPIPE): New variable.
51654         (close_stdout_set_ignore_EPIPE): New function.
51655         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51656         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51657         failure.
51658         * modules/closeout (Depends-on): Add stdbool.
51659
51660 2008-10-05  Bruno Haible  <bruno@clisp.org>
51661
51662         * modules/accept: New file.
51663         * modules/bind: New file.
51664         * modules/connect: New file.
51665         * modules/getpeername: New file.
51666         * modules/getsockname: New file.
51667         * modules/getsockopt: New file.
51668         * modules/listen: New file.
51669         * modules/recv: New file.
51670         * modules/recvfrom: New file.
51671         * modules/send: New file.
51672         * modules/sendto: New file.
51673         * modules/setsockopt: New file.
51674         * modules/socket: New file.
51675         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51676         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51677         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51678         the particular module is requested. Add a link warning when the
51679         particular module is not requested.
51680         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51681         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51682         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51683         the particular module is requested.
51684         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51685         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51686         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51687         * modules/sys_socket (Depends-on): Add link-warning.
51688         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51689         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51690         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51691         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51692         GL_LINK_WARNING.
51693         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51694         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51695         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51696         * doc/posix-functions/getpeername.texi: Mention the new module
51697         'getpeername'.
51698         * doc/posix-functions/getsockname.texi: Mention the new module
51699         'getsockname'.
51700         * doc/posix-functions/getsockopt.texi: Mention the new module
51701         'getsockopt'.
51702         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51703         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51704         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51705         * doc/posix-functions/send.texi: Mention the new module 'send'.
51706         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51707         * doc/posix-functions/setsockopt.texi: Mention the new module
51708         'setsockopt'.
51709         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51710         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51711         listen, connect, accept.
51712         * modules/select-tests (Depends-on): Likewise.
51713
51714 2008-10-05  Bruno Haible  <bruno@clisp.org>
51715
51716         * lib/winsock.c (strerror): Remove unused #undef.
51717         (rpl_close): Remove unused local variable.
51718
51719         * modules/sys_socket (Depends-on); Add errno.
51720
51721 2008-10-05  Bruno Haible  <bruno@clisp.org>
51722
51723         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51724         (select): Add a link warning when the 'select' module is not used.
51725         * modules/sys_select (Depends-on): Add link-warning.
51726         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51727         Suggested by Paolo Bonzini.
51728
51729 2008-10-05  Jim Meyering  <meyering@redhat.com>
51730
51731         bootstrap: check for LT_INIT more portably
51732         * build-aux/bootstrap: Avoid using grep -E, since it's not
51733         portable enough.  Suggestion from Bruno Haible.
51734
51735 2008-10-05  Bruno Haible  <bruno@clisp.org>
51736
51737         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51738         as being fixed by gnulib.
51739
51740 2008-10-05  Bruno Haible  <bruno@clisp.org>
51741
51742         * modules/select-tests: New file, mostly copied from
51743         modules/sys_select-tests.
51744         * tests/test-select.c: New file, mostly copied from
51745         tests/test-sys_select.c.
51746         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51747         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51748         (Makefile.am): Remove test_sys_select_LDADD.
51749
51750         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51751         to an undefined symbol, for an error message.
51752         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51753         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51754         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51755         winsock-select.c here.
51756         * modules/sys_select (Files): Remove lib/winsock-select.c.
51757         (Depends-on): Remove alloca.
51758         (Makefile.am): Substitute GNULIB_SELECT.
51759         * modules/select: New file.
51760         * doc/posix-functions/select.texi: Update.
51761
51762 2008-10-05  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51765         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51766         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51767         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51768         getdtablesize.
51769         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51770         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51771
51772 2008-10-05  Bruno Haible  <bruno@clisp.org>
51773
51774         * modules/getdtablesize-tests: New file.
51775         * tests/test-getdtablesize.c: New file.
51776
51777         New module 'getdtablesize'.
51778         * lib/unistd.in.h (getdtablesize): New declaration.
51779         * lib/getdtablesize.c: New file.
51780         * m4/getdtablesize.m4: New file.
51781         * modules/getdtablesize: New file.
51782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51783         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51784         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51785         HAVE_GETDTABLESIZE.
51786         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51787
51788 2008-10-05  Bruno Haible  <bruno@clisp.org>
51789
51790         * modules/sched (Makefile.am): Fix typo.
51791         Reported by Simon Josefsson.
51792
51793 2008-10-05  Jim Meyering  <meyering@redhat.com>
51794
51795         bootstrap: check for LT_INIT, too
51796         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51797         are deprecated.  Suggestion from Ralf Wildenhues.
51798
51799 2008-10-05  Bruno Haible  <bruno@clisp.org>
51800
51801         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51802         overriding them by ours.
51803         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51804
51805 2008-10-05  Jim Meyering  <meyering@redhat.com>
51806
51807         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51808         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51809         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51810
51811 2008-10-04  Bruno Haible  <bruno@clisp.org>
51812
51813         * modules/dup2 (License): Change to LGPLv2+.
51814         * modules/sleep (License): Likewise.
51815         * modules/perror (License): Likewise.
51816         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51817         Blake.
51818         * modules/signal (License): Likewise.
51819         * modules/sigprocmask (License): Likewise.
51820         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51821         Meyering.
51822
51823 2008-10-04  Bruno Haible  <bruno@clisp.org>
51824
51825         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51826         Reported by Rainer Tammer <tammer@tammer.net>.
51827
51828 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51829             Bruno Haible  <bruno@clisp.org>
51830
51831         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51832         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51833         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51834
51835 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51836
51837         filevercmp: new module
51838         * lib/filevercmp.h: New function filevercmp comparing version strings.
51839         * lib/filevercmp.c: Implementation of filevercmp function.
51840         * modules/filevercmp: Module metadata.
51841         * tests/test-filevercmp.c: Unit test for new module.
51842         * modules/filevercmp-tests: Unit test metadata.
51843         * MODULES.html.sh: Add filevercmp module.
51844
51845 2008-10-03  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/c-ctype.h: Add comment.
51848         Reported by Jim Meyering.
51849
51850 2008-10-02  Bruno Haible  <bruno@clisp.org>
51851
51852         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51853
51854 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51855
51856         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51857         name of bootstrap.conf accordingly.
51858
51859 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51860
51861         * build-aux/bootstrap: Install git-merge-changelog configuration
51862         items into .gitconfig if needed.
51863
51864 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51865
51866         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51867         git repository, and initialize/update it accordingly.
51868
51869 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51870
51871         * modules/fsync-tests: New file.
51872         * tests/test-fsync.c: New file.
51873
51874         New module 'fsync'.
51875         * lib/fsync.c: New file.
51876         * m4/fsync.m4: New file.
51877         * modules/fsync: New file.
51878         * lib/unistd.in.h (fsync): New declaration.
51879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51880         GNULIB_FSYNC and HAVE_FSYNC.
51881         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51882         * MODULES.html.sh (posix_functions): Add fsync.
51883         * doc/posix-functions/fsync.texi: Mention the new module.
51884
51885 2008-10-02  Jim Meyering  <meyering@redhat.com>
51886
51887         fts.c: sync with similar code from coreutils' remove.c
51888         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51889         Guard also with "#if defined __linux__", since for now at least,
51890         this code is Linux-kernel-specific.
51891
51892 2008-10-02  Jim Meyering  <meyering@redhat.com>
51893
51894         fts: bug fixes
51895         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51896         Include <sys/vfs.h>, not <sys/statfs.h>.
51897
51898         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51899         Include <sys/vfs.h>, not <sys/statfs.h>.
51900
51901 2008-10-01  Bruno Haible  <bruno@clisp.org>
51902
51903         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51904         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51905         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51906         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51907         * doc/posix-functions/posix_spawnp.texi: Likewise.
51908         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51909         whether posix_spawn actually works.
51910         * m4/pipe.m4 (gl_PIPE): Likewise.
51911         * modules/execute (Files): Add m4/posix_spawn.m4.
51912         * modules/pipe (Files): Add m4/posix_spawn.m4.
51913         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51914
51915 2008-10-01  Jim Meyering  <meyering@redhat.com>
51916
51917         remove trailing spaces
51918         * NEWS: Likewise.
51919         * lib/poll.c (poll): Likewise.
51920         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51921         * lib/winsock.c (rpl_close): Likewise.
51922         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51923         * modules/yield: Likewise.
51924         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51925         * tests/test-sys_select.c (connect_to_socket): Likewise.
51926
51927         fts.c: adjust a new interface to be more generally useful
51928         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51929         (fts_build): Adjust caller.
51930
51931 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51932
51933         * modules/cond-tests: New file.
51934         * tests/test-cond.c: New file.
51935
51936 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51937             Bruno Haible  <bruno@clisp.org>
51938
51939         * modules/cond (Dependencies): Add errno, time.
51940         * lib/glthread/cond.h: Include <time.h>.
51941         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51942         across platforms.
51943
51944 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51945             Bruno Haible  <bruno@clisp.org>
51946
51947         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51948
51949 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51950             Bruno Haible  <bruno@clisp.org>
51951
51952         * modules/tls-tests (Depends-on): Add thread, yield.
51953         (configure.ac): Remove all checks.
51954         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51955         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51956         gl_thread_self): Remove definitions. Include glthread/thread.h and
51957         glthread/yield.h instead.
51958         (test_tls): Pass an additional NULL argument to gl_thread_join.
51959
51960 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51961             Bruno Haible  <bruno@clisp.org>
51962
51963         * modules/lock-tests (Depends-on): Add thread, yield.
51964         (configure.ac): Remove all checks.
51965         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51966         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51967         gl_thread_self): Remove definitions. Include glthread/thread.h and
51968         glthread/yield.h instead.
51969         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51970         additional NULL argument to gl_thread_join.
51971
51972 2008-09-30  Bruno Haible  <bruno@clisp.org>
51973
51974         Fix the Win32 implementation of the 'thread' module.
51975         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51976         pointer type.
51977         (gl_thread_self): Invoke gl_thread_self_func.
51978         (gl_thread_self_func): New declaration.
51979         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51980         (do_init_self_key, init_self_key): New functions.
51981         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51982         Remove some fields.
51983         (running_threads, running_lock): Remove variables.
51984         (get_current_thread_handle): New function.
51985         (gl_thread_self_func, wrapper_func, glthread_create_func,
51986         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51987         simplified.
51988
51989 2008-09-30  Bruno Haible  <bruno@clisp.org>
51990
51991         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51992         files.
51993
51994 2008-09-30  Jim Meyering  <meyering@redhat.com>
51995
51996         fts.m4: correct the test for statfs.f_type
51997         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51998         when checking for statfs.f_type.
51999
52000 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52001
52002         tests: avoid some compiler warnings
52003         * tests/test-memchr.c (main): Pass NULL indirectly.
52004         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52005
52006 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52007
52008         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52009         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52010         exactly specified dayshifts.
52011         (dayshift): New rule.
52012         (rel): Add dayshift.
52013         (relative_time_table) [tomorrow, yesterday, today, now]:
52014         Use tDAY_SHIFT in place of tDAY_UNIT.
52015         * tests/test-getdate.c: Add tests for now-disallowed countable
52016         dayshifts, e.g., "4 yesterday ago".
52017
52018 2008-09-29  Bruno Haible  <bruno@clisp.org>
52019
52020         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52021         * tests/test-posix_spawn1.in.sh: Renamed from
52022         tests/test-posix_spawn.in.sh.
52023         * tests/test-posix_spawn2.c: New file.
52024         * tests/test-posix_spawn2.in.sh: New file.
52025         * modules/posix_spawnp-tests (Files): Update.
52026         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52027
52028 2008-09-29  Bruno Haible  <bruno@clisp.org>
52029
52030         Propagate effects of putenv/setenv/unsetenv to child processes.
52031         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52032         * lib/pipe.c (create_pipe): Likewise.
52033
52034 2008-09-29  Bruno Haible  <bruno@clisp.org>
52035
52036         Enable use of shell scripts as executables in mingw.
52037         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52038         run the program as a shell script.
52039         * lib/pipe.c (create_pipe): Likewise.
52040         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52041         resulting array.
52042
52043 2008-09-29  Eric Blake  <ebb9@byu.net>
52044
52045         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52046
52047 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52048
52049         * doc/posix-functions/accept.texi: Update mingw problems.
52050         * doc/posix-functions/bind.texi: Update mingw problems.
52051         * doc/posix-functions/close.texi: Update mingw problems.
52052         * doc/posix-functions/connect.texi: Update mingw problems.
52053         * doc/posix-functions/getpeername.texi: Update mingw problems.
52054         * doc/posix-functions/getsockname.texi: Update mingw problems.
52055         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52056         * doc/posix-functions/ioctl.texi: Update mingw problems.
52057         * doc/posix-functions/listen.texi: Update mingw problems.
52058         * doc/posix-functions/recv.texi: Update mingw problems.
52059         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52060         * doc/posix-functions/select.texi: Update mingw problems.
52061         * doc/posix-functions/send.texi: Update mingw problems.
52062         * doc/posix-functions/sendto.texi: Update mingw problems.
52063         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52064         * doc/posix-functions/socket.texi: Update mingw problems.
52065
52066 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52067             Bruno Haible  <bruno@clisp.org>
52068
52069         * lib/sys_select.in.h: Include sys/time.h.
52070         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52071         * modules/sys_select: Depend on sys_time.
52072         * tests/test-sys_select.c: Test that sys/select.h defines struct
52073         timeval fully.
52074
52075 2008-09-29  Bruno Haible  <bruno@clisp.org>
52076
52077         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52078         * lib/sys_select.in.h: Likewise.
52079
52080 2008-09-29  Bruno Haible  <bruno@clisp.org>
52081
52082         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52083
52084 2008-09-29  Bruno Haible  <bruno@clisp.org>
52085
52086         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52087         Set LIBSOCKET instead of augmenting LIBS.
52088         * modules/sockets (Link): New section.
52089         * modules/sockets-tests (test_sockets_LDADD): New variable.
52090         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52091         * modules/poll-tests (test_poll_LDADD): New variable.
52092         * NEWS: Document the change.
52093
52094 2008-09-29  Bruno Haible  <bruno@clisp.org>
52095
52096         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52097         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52098         ARPA_INET_H directly.
52099         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52100
52101 2008-09-28  Bruno Haible  <bruno@clisp.org>
52102
52103         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52104         from gl_HEADER_SYS_SOCKET.
52105         (gl_HEADER_SYS_SOCKET): Invoke it.
52106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52107
52108 2008-09-28  Bruno Haible  <bruno@clisp.org>
52109
52110         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52111         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52112         Needed on OSF/1 4.0.
52113
52114 2008-09-28  Bruno Haible  <bruno@clisp.org>
52115
52116         Override open more carefully.
52117         * lib/open.c (orig_open): New function.
52118         (rpl_open): Use orig_open instead of open.
52119         * lib/fcntl.in.h: Add special invocation convention.
52120         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52121         (gl_FUNC_OPEN): Invoke it.
52122
52123         Override freopen more carefully.
52124         * lib/freopen.c (orig_freopen): New function.
52125         (rpl_freopen): Use orig_freopen instead of freopen.
52126         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52127         (gl_FUNC_FREOPEN): Invoke it.
52128
52129         Override fopen more carefully.
52130         * lib/fopen.c (orig_fopen): New function.
52131         (rpl_fopen): Use orig_fopen instead of fopen.
52132         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52133         (gl_FUNC_FOPEN): Invoke it.
52134         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52135
52136 2008-09-28  Bruno Haible  <bruno@clisp.org>
52137
52138         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52139         SIGPIPE.
52140
52141 2008-09-28  Bruno Haible  <bruno@clisp.org>
52142
52143         * tests/test-sigaction.c (handler, main): Disable the check whether
52144         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52145         glibc systems with LinuxThreads.
52146
52147 2008-09-28  Bruno Haible  <bruno@clisp.org>
52148
52149         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52150
52151         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52152         with AIX xlc.
52153         * lib/fcntl.in.h (open): Likewise.
52154         Reported by Rainer Tammer <tammer@tammer.net>.
52155
52156 2008-09-28  Bruno Haible  <bruno@clisp.org>
52157
52158         * modules/posix_spawnp-tests: New file.
52159         * tests/test-posix_spawn.c: New file.
52160         * tests/test-posix_spawn.in.sh: New file.
52161
52162         New module 'posix_spawnp'.
52163         * modules/posix_spawnp: New file.
52164         * lib/spawnp.c: New file, from GNU libc with modifications.
52165         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52166
52167         New module 'posix_spawn'.
52168         * modules/posix_spawn: New file.
52169         * lib/spawn.c: New file, from GNU libc with modifications.
52170         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52171
52172         New module 'posix_spawnattr_destroy'.
52173         * modules/posix_spawnattr_destroy: New file.
52174         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52175         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52176         module.
52177
52178         New module 'posix_spawnattr_setsigmask'.
52179         * modules/posix_spawnattr_setsigmask: New file.
52180         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52181         modifications.
52182         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52183         new module.
52184
52185         New module 'posix_spawnattr_getsigmask'.
52186         * modules/posix_spawnattr_getsigmask: New file.
52187         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52188         modifications.
52189         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52190         new module.
52191
52192         New module 'posix_spawnattr_setsigdefault'.
52193         * modules/posix_spawnattr_setsigdefault: New file.
52194         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52195         modifications.
52196         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52197         new module.
52198
52199         New module 'posix_spawnattr_getsigdefault'.
52200         * modules/posix_spawnattr_getsigdefault: New file.
52201         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52202         modifications.
52203         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52204         new module.
52205
52206         New module 'posix_spawnattr_setschedpolicy'.
52207         * modules/posix_spawnattr_setschedpolicy: New file.
52208         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52209         modifications.
52210         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52211         new module.
52212
52213         New module 'posix_spawnattr_getschedpolicy'.
52214         * modules/posix_spawnattr_getschedpolicy: New file.
52215         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52216         modifications.
52217         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52218         new module.
52219
52220         New module 'posix_spawnattr_setschedparam'.
52221         * modules/posix_spawnattr_setschedparam: New file.
52222         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52223         modifications.
52224         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52225         new module.
52226
52227         New module 'posix_spawnattr_getschedparam'.
52228         * modules/posix_spawnattr_getschedparam: New file.
52229         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52230         modifications.
52231         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52232         new module.
52233
52234         New module 'posix_spawnattr_setpgroup'.
52235         * modules/posix_spawnattr_setpgroup: New file.
52236         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52237         modifications.
52238         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52239         module.
52240
52241         New module 'posix_spawnattr_getpgroup'.
52242         * modules/posix_spawnattr_getpgroup: New file.
52243         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52244         modifications.
52245         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52246         module.
52247
52248         New module 'posix_spawnattr_setflags'.
52249         * modules/posix_spawnattr_setflags: New file.
52250         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52251         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52252         module.
52253
52254         New module 'posix_spawnattr_getflags'.
52255         * modules/posix_spawnattr_getflags: New file.
52256         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52257         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52258         module.
52259
52260         New module 'posix_spawnattr_init'.
52261         * modules/posix_spawnattr_init: New file.
52262         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52263         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52264         module.
52265
52266         New module 'posix_spawn_file_actions_destroy'.
52267         * modules/posix_spawn_file_actions_destroy: New file.
52268         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52269         modifications.
52270         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52271         the new module.
52272
52273         New module 'posix_spawn_file_actions_addopen'.
52274         * modules/posix_spawn_file_actions_addopen: New file.
52275         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52276         modifications.
52277         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52278         the new module.
52279
52280         New module 'posix_spawn_file_actions_adddup2'.
52281         * modules/posix_spawn_file_actions_adddup2: New file.
52282         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52283         modifications.
52284         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52285         the new module.
52286
52287         New module 'posix_spawn_file_actions_addclose'.
52288         * modules/posix_spawn_file_actions_addclose: New file.
52289         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52290         modifications.
52291         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52292         the new module.
52293
52294         New module 'posix_spawn_file_actions_init'.
52295         * modules/posix_spawn_file_actions_init: New file.
52296         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52297         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52298         new module.
52299
52300         New module 'posix_spawn-internal'.
52301         * modules/posix_spawn-internal: New file.
52302         * lib/spawn_int.h: New file, from GNU libc with modifications.
52303         * lib/spawni.c: New file, from GNU libc with modifications.
52304         * m4/posix_spawn.m4: New file.
52305
52306         New module 'spawn'.
52307         * modules/spawn: New file.
52308         * lib/spawn.in.h: New file, from GNU libc with modifications.
52309         * m4/spawn_h.m4: New file.
52310         * doc/posix-headers/spawn.texi: Mention the new module.
52311
52312 2008-09-28  Bruno Haible  <bruno@clisp.org>
52313
52314         * modules/sched-tests: New file.
52315         * tests/test-sched.c: New file.
52316
52317         New module 'sched'.
52318         * modules/sched: New file.
52319         * lib/sched.in.h: New file.
52320         * m4/sched_h.m4: New file.
52321         * doc/posix-headers/sched.texi: Mention the new module.
52322
52323 2008-09-27  Eric Blake  <ebb9@byu.net>
52324
52325         Fix previous patch, and tweak references to $0.
52326         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52327         (func_version, func_gnulib_dir): Don't call this program
52328         gnulib-tool.
52329         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52330         with using $0 in function.
52331         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52332         (func_fatal_error): Reuse the name the user invoked us with.
52333
52334 2008-09-27  Bruno Haible  <bruno@clisp.org>
52335
52336         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52337         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52338         (gl_ICONV_H): Not here.
52339         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52340         instead of assigning ICONV_H directly.
52341
52342         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52344         WCHAR_H directly.
52345
52346 2008-09-27  Bruno Haible  <bruno@clisp.org>
52347
52348         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52349         * modules/arpa_inet (Depends-on): Add link-warning.
52350         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52351         * modules/unistd (Makefile.am): Likewise.
52352
52353 2008-09-26  Bruno Haible  <bruno@clisp.org>
52354
52355         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52356         variables.
52357         (func_version): Essentially copied from gnulib-tool.
52358         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52359         func_readlink): Copied from gnulib-tool.
52360
52361 2008-09-26  Bruno Haible  <bruno@clisp.org>
52362
52363         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52364         invoking git-version-gen.
52365
52366 2008-09-26  Bruno Haible  <bruno@clisp.org>
52367
52368         * posix-modules: Update to directory names changed on 2008-01-19.
52369         Remove commas in output before splitting into words. No more need to
52370         avoid 'ftruncate' since 2007-02-19.
52371
52372 2008-09-26  Bruno Haible  <bruno@clisp.org>
52373
52374         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52375
52376 2008-09-26  Bruno Haible  <bruno@clisp.org>
52377
52378         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52379         * modules/fwriteerror (Depends-on): Add errno.
52380
52381 2008-09-26  Bruno Haible  <bruno@clisp.org>
52382
52383         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52384         * tests/test-vc-list-files-cvs.sh: Likewise.
52385
52386 2008-09-26  Bruno Haible  <bruno@clisp.org>
52387
52388         * doc/posix-headers/sys_resource.texi: Reorder items.
52389
52390 2008-09-26  Jim Meyering  <meyering@redhat.com>
52391
52392         fts: tweak inode comparison function
52393         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52394         inode numbers, as documented.
52395
52396         fts: sort dirent entries on inode number before traversing
52397         This avoids a quadratic, seek-related performance penalty when
52398         operating on a directory containing many entries (measurable at 10k;
52399         3.5 hours at 2 million entries with a cold cache) on certain types
52400         of file systems, including ext3 and ext4, but not tmpfs.
52401         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52402         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52403         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52404         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52405         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52406         (fts_build): Set the stat.st_ino member from D_INO.
52407         If it is likely to be useful, sort dirent entries on inode number.
52408
52409         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52410         and the struct statfs.f_type member.
52411         * modules/fts (Depends-on): Add d-ino.
52412
52413 2008-09-26  Bruno Haible  <bruno@clisp.org>
52414
52415         * modules/sigpipe-die (Depends-on): Add sigpipe.
52416
52417         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52418         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52419         and GNULIB_STDIO_H_SIGPIPE are set.
52420         * lib/stdio-write.c: New file.
52421         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52422         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52423         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52424         REPLACE_STDIO_WRITE_FUNCS.
52425         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52426         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52427         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52428         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52429         * modules/stdio (Files): Add lib/stdio-write.c.
52430         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52431         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52432         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52433         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52434         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52435         REPLACE_FPRINTF_POSIX.
52436         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52437         REPLACE_PRINTF_POSIX.
52438         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52439         REPLACE_VFPRINTF_POSIX.
52440         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52441         REPLACE_VPRINTF_POSIX.
52442         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52443         SIGPIPE issue.
52444         * doc/posix-functions/fputc.texi: Likewise.
52445         * doc/posix-functions/fputs.texi: Likewise.
52446         * doc/posix-functions/fwrite.texi: Likewise.
52447         * doc/posix-functions/printf.texi: Likewise.
52448         * doc/posix-functions/putc.texi: Likewise.
52449         * doc/posix-functions/putchar.texi: Likewise.
52450         * doc/posix-functions/puts.texi: Likewise.
52451         * doc/posix-functions/vfprintf.texi: Likewise.
52452         * doc/posix-functions/vprintf.texi: Likewise.
52453
52454         * modules/safe-write (Depends-on): Add write.
52455
52456         * modules/sigpipe-tests: New file.
52457         * tests/test-sigpipe.c: New file.
52458         * tests/test-sigpipe.sh: New file.
52459
52460         * modules/write: New file.
52461         * lib/unistd.in.h: Include <sys/types.h>.
52462         (write): New declaration.
52463         * lib/write.c: New file.
52464         * m4/write.m4: New file.
52465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52466         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52467         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52468         GNULIB_WRITE, REPLACE_WRITE.
52469         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52470         and the SIGPIPE issue.
52471
52472         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52473         (raise): New declaration.
52474         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52475         (ext_signal): New function.
52476         (rpl_raise): New function.
52477         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52478         GNULIB_SIGNAL_H_SIGPIPE.
52479         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52480         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52481
52482         * modules/sigpipe: New file.
52483         * m4/sigpipe.m4: New file.
52484
52485 2008-09-25  Derek Price  <derek@ximbiot.com>
52486             Bruno Haible  <bruno@clisp.org>
52487
52488         * gnulib-tool (func_import): Report all license incompatibilities, not
52489         just the first one.
52490
52491 2008-09-25  Bruno Haible  <bruno@clisp.org>
52492
52493         * gnulib-tool (func_import): When computing the edits, consider not
52494         only the Makefile.ams that exist but also those that will be generated.
52495
52496 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52497
52498         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52499         fixes gnulib-tool --test warning about duplicate dependency.
52500
52501 2008-09-25  Bruno Haible  <bruno@clisp.org>
52502
52503         * gnulib-tool: Don't ask the user to perform edits in the generated
52504         Makefile.ams.
52505         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52506         apply to the Makefile.am being generated.
52507         (func_emit_tests_Makefile_am): Execute edits that apply to the
52508         Makefile.am being generated.
52509         (func_import): Setup list of Makefile.am edits before emitting the
52510         Makefile.ams, not at the end.
52511         (func_create_testdir): Update.
52512         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52513
52514 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52515
52516         * gnulib-tool (func_import): Store the --tests-base option in the
52517         comment in gnulib-cache.m4.
52518
52519 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52520
52521         * NEWS: Document increased portability that sys_select now provides.
52522
52523         * lib/sys_select.in.h: Install select wrapper.
52524         * lib/sys_socket.in.h: Use more descriptive name when there is no
52525         select wrapper.
52526         * lib/winsock-select.c: New.
52527         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52528         Require gl_HEADER_SYS_SOCKET.
52529         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52530         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52531         * tests/test-sys_select.c: Add functional tests.
52532
52533 2008-09-24  Eric Blake  <ebb9@byu.net>
52534
52535         open, fopen: close fd leak in last patch
52536         * lib/open.c (rpl_open): Close fd before returning error.
52537         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52538         * doc/posix-functions/open.texi (open): Document that Irix also
52539         has the bug.
52540         * doc/posix-functions/fopen.texi (fopen): Likewise.
52541         Reported by Paolo Bonzini.
52542
52543 2008-09-24  Bruno Haible  <bruno@clisp.org>
52544
52545         Ensure that a filename ending in a slash cannot be used to access a
52546         non-directory.
52547         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52548         to check whether it's really a directory.
52549         * lib/fopen.c: Include fcntl.h, unistd.h.
52550         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52551         and fdopen().
52552         * modules/fopen (Depends-on): Add unistd.
52553         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52554         * tests/test-fopen.c (main): Likewise.
52555         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52556         * doc/posix-functions/fopen.texi: Likewise.
52557         Reported by Eric Blake.
52558
52559 2008-09-23  Eric Blake  <ebb9@byu.net>
52560
52561         c-stack: avoid compiler optimizations when provoking overflow
52562         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52563         recursion harder to optimize, to ensure a stack overflow occurs.
52564         * tests/test-c-stack.c (recurse): Likewise.
52565         Borrowed from libsigsegv.
52566
52567         c-stack: work around Irix sigaltstack bug
52568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52569         whether sigaltstack uses wrong end of stack_t (copied in part from
52570         libsigsegv).
52571         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52572         Irix bug, without requiring an over-allocation.
52573         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52574         bug.
52575
52576         fopen: document mingw bug on directories
52577         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52578         not allowing a stream visiting a directory, even though reading
52579         from such a stream is not portable.
52580
52581 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52582
52583         * lib/poll.c: Rewrite.
52584         * modules/poll: Depend on alloca.
52585
52586 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52587
52588         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52589         instead define prototypes for a full set of wrappers.  Ensure
52590         that Cygwin does not use the compatibility code, which is only
52591         for MinGW.
52592         * lib/winsock.c: New.
52593         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52594         * modules/sys_socket: Add lib/winsock.c.
52595
52596         * modules/poll-tests: Add errno and perror.
52597         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52598
52599 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52600
52601         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52602
52603 2008-09-23  Bruno Haible  <bruno@clisp.org>
52604
52605         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52606         * doc/glibc-functions/*: Likewise.
52607
52608 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52609
52610         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52611         success.
52612
52613 2008-09-22  Eric Blake  <ebb9@byu.net>
52614             Bruno Haible  <bruno@clisp.org>
52615
52616         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52617         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52618         supply %A but mishandle pseudo-NaN.
52619         Reported by Simon Josefsson.
52620
52621 2008-09-21  Bruno Haible  <bruno@clisp.org>
52622
52623         * tests/test-lock.c (main): Tweak skip message.
52624         * tests/test-tls.c (main): Likewise.
52625
52626 2008-09-21  Bruno Haible  <bruno@clisp.org>
52627
52628         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52629         whether 'struct sigaction' has sa_sigaction here...
52630         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52631         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52632
52633 2008-09-21  Bruno Haible  <bruno@clisp.org>
52634
52635         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52636         section.
52637         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52638         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52639         the new section.
52640         (Support for obsolete systems lacking POSIX:2001): New section.
52641         (String handling <string.h>): Move strdup to the new section.
52642         Suggested by Simon Josefsson and Paolo Bonzini.
52643
52644 2008-09-21  Bruno Haible  <bruno@clisp.org>
52645
52646         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52647         exponents in %e and %g results on 'long double'. Needed for mingw's
52648         improved *printf functions.
52649         * tests/test-vasprintf-posix.c (test_function): Likewise.
52650         * tests/test-snprintf-posix.h (test_function): Likewise.
52651         * tests/test-sprintf-posix.h (test_function): Likewise.
52652         Reported by Eric Blake.
52653
52654 2008-09-21  Bruno Haible  <bruno@clisp.org>
52655
52656         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52657         * tests/test-sprintf-posix.h (test_function): Likewise.
52658
52659 2008-09-21  Bruno Haible  <bruno@clisp.org>
52660
52661         * modules/getpass (Depends-on): Add strdup-posix.
52662
52663         New module 'strdup-posix'.
52664         * modules/strdup-posix: New file.
52665         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52666         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52668         REPLACE_STRDUP.
52669         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52670         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52672         strdup-posix.
52673
52674         * modules/strdup (Depends-on): Remove malloc-posix.
52675
52676 2008-09-20  Bruno Haible  <bruno@clisp.org>
52677
52678         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52679         Wildenhues.
52680
52681 2008-09-20  Bruno Haible  <bruno@clisp.org>
52682
52683         Ensure that wint_t gets defined on IRIX 5.3.
52684         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52685         * lib/wctype.in.h (wint_t): Likewise.
52686         (__wctype_wint_t): Remove type.
52687         (isw*): Use wint_t instead of __wctype_wint_t.
52688         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52689         * modules/wchar (Files): Add m4/wint_t.m4.
52690         (Makefile.am): Substitute HAVE_WINT_T.
52691         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52692         * tests/test-wctype.c: Check that wint_t is defined.
52693         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52694         * doc/posix-headers/wctype.texi: Likewise.
52695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52696
52697 2008-09-18  Bruno Haible  <bruno@clisp.org>
52698
52699         * gnulib-tool (func_exit): Update comment.
52700
52701 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52702
52703         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52704         assumes strdup exists and does not depend on strdup to return
52705         ENOMEM on out of memory conditions.
52706
52707 2008-09-18  Bruno Haible  <bruno@clisp.org>
52708
52709         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52710         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52711         digits for the exponent.
52712
52713 2008-09-18  Jim Meyering  <meyering@redhat.com>
52714             Bruno Haible  <bruno@clisp.org>
52715
52716         * lib/vasnprintf.c (decimal_point_char): Define also if
52717         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52718
52719 2008-09-16  Bruno Haible  <bruno@clisp.org>
52720         and Eric Blake  <ebb9@byu.net>
52721
52722         vasnprintf: support Irix 5.3
52723         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52724         that mishandle long double infinity.
52725         Reported by Tom G. Christensen.
52726
52727 2008-09-16  Bruno Haible  <bruno@clisp.org>
52728
52729         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52730         Solaris 9.
52731         * doc/glibc-functions/alphasort.texi: Likewise.
52732         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52733
52734 2008-09-16  Jim Meyering  <meyering@redhat.com>
52735
52736         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52737         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52738         a umask modification leak out of a subshell.  Otherwise, the
52739         opensolaris /bin/sh would be accepted and thus cause unwarranted
52740         failures in the coreutils test suite.
52741
52742 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52743
52744         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52745         to succeed.
52746
52747 2008-09-16  Jim Meyering  <meyering@redhat.com>
52748
52749         avoid spurious test failure when library is built without ACL support
52750         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52751         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52752         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52753         * tests/test-copy-acl.sh: Likewise.
52754
52755 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52756
52757         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52758         based on character occurrence counts.
52759
52760 2008-09-15  Eric Blake  <ebb9@byu.net>
52761
52762         tests: avoid some compiler warnings
52763         * tests/test-memchr.c (main): Pass NULL indirectly.
52764         * tests/test-closein.c (main): Avoid unused variable.
52765
52766 2008-09-15  Bruno Haible  <bruno@clisp.org>
52767
52768         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52769         are missing on OpenBSD 4.0 individually.
52770         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52771
52772 2008-09-15  Bruno Haible  <bruno@clisp.org>
52773
52774         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52775         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52776         * doc/posix-functions/perror.texi: Likewise.
52777         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52778         is missing.
52779         Reported by Eric Blake.
52780
52781         * lib/errno.in.h: Use replacement values >= 2000.
52782         Reported by Eric Blake.
52783
52784 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52785
52786         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52787         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52788         limit.
52789         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52790         compareseq was aborted.
52791
52792 2008-09-14  Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52795         yvec_edit_count.
52796         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52797         (fstrcmp_bounded): Simplify result computation accordingly.
52798
52799 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52800
52801         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52802         (fstrcmp): Define in terms of fstrcmp_bounded.
52803         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52804         lower_bound argument.
52805         Return quickly if the result is certainly < lower_bound.
52806         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52807
52808 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52809
52810         * lib/diffseq.h (EARLY_ABORT): New macro.
52811         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52812         evaluates to true.
52813
52814 2008-09-14  Bruno Haible  <bruno@clisp.org>
52815
52816         * modules/perror-tests: New file.
52817         * tests/test-perror.sh: New file.
52818         * tests/test-perror.c: New file.
52819
52820         New module 'perror'.
52821         * lib/stdio.in.h (perror): New declaration.
52822         * lib/perror.c: New file.
52823         * m4/perror.m4: New file.
52824         * modules/perror: New file.
52825         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52826         * doc/posix-functions/perror.texi: Mention the perror module.
52827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52828         REPLACE_PERROR.
52829         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52830         REPLACE_PERROR.
52831
52832 2008-09-14  Bruno Haible  <bruno@clisp.org>
52833
52834         * modules/stdio (Makefile.am): Reorder to match the order in
52835         lib/stdio.in.h.
52836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52837
52838 2008-09-13  Bruno Haible  <bruno@clisp.org>
52839
52840         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52841
52842 2008-09-13  Bruno Haible  <bruno@clisp.org>
52843
52844         Extend strerror to cover the added errno values.
52845         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52846         (rpl_strerror): Provide error messages for the added errno values and
52847         for the WSA* values.
52848         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52849         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52850         strerror.
52851         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52852         * modules/strerror (Depends-on): Add errno.
52853         * doc/posix-functions/strerror.texi: Document the change.
52854         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52855         and EOVERFLOW.
52856
52857 2008-09-13  Bruno Haible  <bruno@clisp.org>
52858
52859         * modules/EOVERFLOW: Remove file.
52860         * m4/eoverflow.m4: Remove file.
52861         * modules/EOVERFLOW-tests: Remove file.
52862         * tests/test-EOVERFLOW.c: Remove file.
52863         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52864         * modules/ftell (Depends-on): Likewise.
52865         * modules/getdelim (Depends-on): Likewise.
52866         * modules/getugroups (Depends-on): Likewise.
52867         * modules/poll (Depends-on): Likewise.
52868         * modules/snprintf (Depends-on): Likewise.
52869         * modules/sprintf-posix (Depends-on): Likewise.
52870         * modules/vasnprintf (Depends-on): Likewise.
52871         * modules/vasprintf (Depends-on): Likewise.
52872         * modules/vfprintf-posix (Depends-on): Likewise.
52873         * modules/vsnprintf (Depends-on): Likewise.
52874         * modules/vsprintf-posix (Depends-on): Likewise.
52875         * modules/xvasprintf (Depends-on): Likewise.
52876         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52877         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52878         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52879         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52880         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52881         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52882         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52883         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52884         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52885         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52886         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52887         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52888         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52889         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52890         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52891         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52892         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52893         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52894         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52895         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52896         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52897         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52898         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52899         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52900         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52901         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52902         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52903         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52904         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52905         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52906         * MODULES.html.sh: Remove EOVERFLOW.
52907         * NEWS: Mention the change.
52908
52909 2008-09-13  Bruno Haible  <bruno@clisp.org>
52910
52911         * modules/errno-tests: New file.
52912         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52913
52914         * lib/errno.in.h: New file.
52915         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52916         * modules/errno: New file.
52917         * doc/posix-headers/errno.texi: Update documentation.
52918         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52919
52920 2008-09-13  Bruno Haible  <bruno@clisp.org>
52921
52922         * tests/test-poll.c: Use #if for native Windows, rather than testing
52923         __MSVCRT__.
52924
52925 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52926             Bruno Haible  <bruno@clisp.org>
52927
52928         * lib/glob.c: Don't include <pwd.h> on native Windows.
52929         (WINDOWS32): New macro.
52930         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52931
52932 2008-09-13  Bruno Haible  <bruno@clisp.org>
52933
52934         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52935         (ETIMEDOUT): Remove macro.
52936         (glthread_cond_timedwait_multithreaded): New declaration.
52937         (glthread_cond_timedwait): Use it.
52938         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52939         (glthread_cond_timedwait_multithreaded): New function.
52940
52941 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52942
52943         * modules/poll-tests: Do not check for io.h.
52944         * tests/test-poll.c: Check for __MSVCRT__ instead.
52945
52946 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52947
52948         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52949         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52950         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52951
52952 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52953
52954         * modules/poll-tests: New.
52955         * tests/test-poll.c: New.
52956
52957 2008-09-12  Eric Blake  <ebb9@byu.net>
52958
52959         frexp: test for NetBSD failure on -0.0
52960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52961         not all, bugs from NetBSD 3.0 have been fixed.
52962         * doc/posix-functions/frexp.texi (frexp): Document bug.
52963         Reported by Thomas Klausner.
52964
52965         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52966         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52967         literal -0.0.
52968         Reported by Jonathan C. Patschke <jp@centtech.com>.
52969
52970 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52971
52972         * lib/glthread/cond.h: Use dummy implementation also if
52973         USE_WIN32_THREADS.
52974
52975 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52976
52977         * modules/fnmatch-posix (License): Change to LGPLv2+.
52978         * modules/fnmatch-gnu (License): Likewise.
52979
52980 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52981
52982         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52983
52984 2008-09-11  Jim Meyering  <meyering@redhat.com>
52985
52986         * users.txt: Add gtk-vnc.
52987
52988 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52989
52990         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52991         rotate amounts.
52992
52993         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52994         required for 16-bit and 8-bit rotates.
52995         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52996         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52997         UINT8_MAX instead of hard-coded constants.
52998         Suggested by Paul Eggert.
52999
53000 2008-09-07  Bruno Haible  <bruno@clisp.org>
53001
53002         * tests/test-striconveh.c (main): Check behaviour when converting from
53003         UTF-7.
53004
53005         Make striconveh work better with stateful encodings.
53006         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53007         that iconv does not increment the inptr when returning -1/EINVAL.
53008
53009 2008-09-07  Bruno Haible  <bruno@clisp.org>
53010
53011         * build-aux/config.rpath: Update according to libtool-2.2.6.
53012         * build-aux/config.libpath: Likewise.
53013
53014 2008-09-06  Bruno Haible  <bruno@clisp.org>
53015
53016         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53017         * lib/freadptr.c (freadptr): Likewise.
53018         * lib/freadseek.c (freadptrinc): Likewise.
53019         Reported by Simon Josefsson.
53020
53021 2008-09-06  Bruno Haible  <bruno@clisp.org>
53022
53023         * modules/freadptr (License): Change to LGPLv2+.
53024         * modules/freadseek (License): Likewise.
53025         Suggested by Eric Blake.
53026
53027         * modules/memchr2 (License): Change to LGPLv2+.
53028         Approved by Eric Blake.
53029
53030 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53031             Bruno Haible  <bruno@clisp.org>
53032
53033         Make gnulib-tool work with native 'sed' on AIX.
53034         * gnulib-tool (sed_noop): New variable.
53035         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53036         func_add_or_update, func_create_testdir): Use it to initialize sed
53037         script variables.
53038         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53039
53040 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53041             Bruno Haible  <bruno@clisp.org>
53042
53043         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53044         also works after #include directives.
53045
53046 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53047
53048         getdate.y: reject an out-of-range timezone value
53049         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53050         the range [-24...+24].  When specified with only one or two digits,
53051         * tests/test-getdate.c: Tests for the fix.
53052         * doc/getdate.texi: Document this change.
53053
53054 2008-09-03  Bruno Haible  <bruno@clisp.org>
53055
53056         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53057
53058 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53059
53060         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53061         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53062         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53063         Blake <ebb9@byu.net>.
53064
53065         * tests/test-bitrotate.c: Add more test vectors.
53066
53067 2008-09-02  Eric Blake  <ebb9@byu.net>
53068
53069         vasnprintf-posix: handle large precision via %.*d
53070         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53071         when handling it ourselves.
53072         * tests/test-vasnprintf-posix.c (test_function): Add test.
53073         * tests/test-snprintf-posix.h (test_function): Likewise.
53074         * tests/test-sprintf-posix.h (test_function): Likewise.
53075         * tests/test-vasprintf-posix.c (test_function): Likewise.
53076         Reported by Alain Guibert.
53077
53078 2008-09-01  Eric Blake  <ebb9@byu.net>
53079
53080         c-stack: make configure-time check more robust
53081         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53082         successful sigaction call.
53083         Reported by Tom G. Christensen.
53084
53085 2008-09-01  Bruno Haible  <bruno@clisp.org>
53086
53087         New module 'findprog-lgpl'.
53088         * modules/findprog-lgpl: New file.
53089         * lib/findprog-lgpl.c: New file.
53090         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53091         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53092         to decide whether to use strdup or xstrdup, concatenated_filename or
53093         xconcatenated_filename.
53094
53095 2008-09-01  Bruno Haible  <bruno@clisp.org>
53096
53097         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53098         'xconcat-filename' (GPL).
53099         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53100         (License): Change to LGPLv2+.
53101         * modules/xconcat-filename: New file.
53102         * lib/concat-filename.h (concatenated_filename): Change specification.
53103         (xconcatenated_filename): New declaration.
53104         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53105         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53106         memory situations.
53107         * lib/xconcat-filename.c: New file.
53108         * NEWS: Mention the change.
53109         * lib/findprog.c: Include concat-filename.h, not filename.h.
53110         (find_in_path): Use xconcatenated_filename instead of
53111         concatenated_filename.
53112         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53113         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53114         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53115         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53116         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53117         instead of concatenated_filename.
53118         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53119         (execute_java_class): Use xconcatenated_filename instead of
53120         concatenated_filename.
53121         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53122         * modules/javacomp (Depends-on): Likewise.
53123         * modules/javaexec (Depends-on): Likewise.
53124
53125 2008-09-01  Bruno Haible  <bruno@clisp.org>
53126
53127         Split module 'filename' into 'filename' and 'concat-filename'.
53128         * modules/filename: Keep only lib/filename.h.
53129         (License): Change to LGPLv2+.
53130         * modules/concat-filename: New file, extracted from modules/filename.
53131         * lib/filename.h (concatenated_filename): Remove declaration.
53132         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53133         * lib/concat-filename.c: Include concat-filename.h.
53134         * NEWS: Mention the change.
53135
53136 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53137
53138         * lib/bitrotate.h (rotl8, rotr8): Add.
53139
53140         * modules/bitrotate (configure.ac): Need
53141         AC_REQUIRE([AC_C_INLINE]).
53142         (Description): Mention stdint.h.  Reported by Bruno Haible
53143         <bruno@clisp.org>.
53144
53145         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53146         Paolo Bonzini <bonzini@gnu.org>.
53147
53148 2008-08-31  Bruno Haible  <bruno@clisp.org>
53149
53150         Assume Solaris specific bi-arch conventions on Solaris systems.
53151         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53152         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53153         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53154         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53155         like acl_libdirstem.
53156         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53157         acl_libdirstem.
53158         * NEWS: Mention the change.
53159         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53160
53161 2008-08-31  Jim Meyering  <meyering@redhat.com>
53162
53163         * lib/strftime.h: Add comments describing the two added arguments.
53164
53165         remove duplicate #include directives
53166         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53167         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53168
53169 2008-08-31  Bruno Haible  <bruno@clisp.org>
53170
53171         New module 'sigpipe-die'.
53172         * modules/sigpipe-die: New file.
53173         * lib/sigpipe-die.h: New file.
53174         * lib/sigpipe-die.c: New file.
53175         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53176
53177 2008-08-31  Bruno Haible  <bruno@clisp.org>
53178
53179         Don't override previously installed signal handlers.
53180         * lib/fatal-signal.c (saved_sigactions): New variable.
53181         (uninstall_handlers): Reset the signal to the saved handler, not
53182         to SIG_DFL (except when ignored).
53183         (install_handlers): Save the previous handlers.
53184
53185 2008-08-30  Bruno Haible  <bruno@clisp.org>
53186
53187         * gnulib-tool (func_reset_sigpipe): New function.
53188         (func_get_automake_snippet, func_modules_transitive_closure,
53189         func_import): Invoke it before a join command that reads from stdin,
53190         to avoid "echo: write error: Broken pipe" error messages on stderr.
53191         Reported by Sam Steingold <sds@gnu.org>.
53192
53193 2008-08-30  Bruno Haible  <bruno@clisp.org>
53194
53195         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53196         Code copied from m4/open.m4.
53197         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53198         access and the filename ends in a slash. Code copied from lib/open.c.
53199         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53200         * tests/test-fopen.c (main): Check against bug with trailing slash.
53201
53202 2008-08-29  Bruno Haible  <bruno@clisp.org>
53203
53204         Avoid some "gcc -pedantic" warnings.
53205         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53206         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53207         * lib/dirent.in.h: Likewise.
53208         * lib/fcntl.in.h: Likewise.
53209         * lib/float.in.h: Likewise.
53210         * lib/iconv.in.h: Likewise.
53211         * lib/inttypes.in.h: Likewise.
53212         * lib/locale.in.h: Likewise.
53213         * lib/math.in.h: Likewise.
53214         * lib/netinet_in.in.h: Likewise.
53215         * lib/search.in.h: Likewise.
53216         * lib/signal.in.h: Likewise.
53217         * lib/stdarg.in.h: Likewise.
53218         * lib/stdint.in.h: Likewise.
53219         * lib/stdio.in.h: Likewise.
53220         * lib/stdlib.in.h: Likewise.
53221         * lib/string.in.h: Likewise.
53222         * lib/strings.in.h: Likewise.
53223         * lib/sys_select.in.h: Likewise.
53224         * lib/sys_socket.in.h: Likewise.
53225         * lib/sys_stat.in.h: Likewise.
53226         * lib/sys_time.in.h: Likewise.
53227         * lib/sysexits.in.h: Likewise.
53228         * lib/time.in.h: Likewise.
53229         * lib/unistd.in.h: Likewise.
53230         * lib/wchar.in.h: Likewise.
53231         * lib/wctype.in.h: Likewise.
53232         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53233         * modules/fchdir (Makefile.am): Likewise.
53234         * modules/fcntl (Makefile.am): Likewise.
53235         * modules/float (Makefile.am): Likewise.
53236         * modules/iconv_open (Makefile.am): Likewise.
53237         * modules/inttypes (Makefile.am): Likewise.
53238         * modules/locale (Makefile.am): Likewise.
53239         * modules/math (Makefile.am): Likewise.
53240         * modules/netinet_in (Makefile.am): Likewise.
53241         * modules/search (Makefile.am): Likewise.
53242         * modules/signal (Makefile.am): Likewise.
53243         * modules/stdarg (Makefile.am): Likewise.
53244         * modules/stdint (Makefile.am): Likewise.
53245         * modules/stdio (Makefile.am): Likewise.
53246         * modules/stdlib (Makefile.am): Likewise.
53247         * modules/string (Makefile.am): Likewise.
53248         * modules/strings (Makefile.am): Likewise.
53249         * modules/sys_select (Makefile.am): Likewise.
53250         * modules/sys_socket (Makefile.am): Likewise.
53251         * modules/sys_stat (Makefile.am): Likewise.
53252         * modules/sys_time (Makefile.am): Likewise.
53253         * modules/sysexits (Makefile.am): Likewise.
53254         * modules/time (Makefile.am): Likewise.
53255         * modules/unistd (Makefile.am): Likewise.
53256         * modules/wchar (Makefile.am): Likewise.
53257         * modules/wctype (Makefile.am): Likewise.
53258         Reported by Reuben Thomas <rrt@sc3d.org>.
53259
53260 2008-08-29  Bruno Haible  <bruno@clisp.org>
53261
53262         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53263         any more.
53264
53265 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53266
53267         * MODULES.html.sh (Misc): Add bitrotate.
53268
53269         * modules/bitrotate: New file.
53270
53271         * lib/bitrotate.h: New file.
53272
53273         * modules/bitrotate-tests: New file.
53274
53275         * tests/test-bitrotate.c: New file.
53276
53277         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53278         on the bitrotate module.
53279
53280         * lib/arctwo.c: Use new bitrotate module.
53281
53282 2008-08-29  Jim Meyering  <meyering@redhat.com>
53283
53284         bootstrap: merge changes from coreutils
53285         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53286         of copied files.  Remove a kludge, now that this is fixed.
53287         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53288         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53289         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53290
53291 2008-08-29  Bruno Haible  <bruno@clisp.org>
53292
53293         * MODULES.html.sh: Remove --cvs-urls option.
53294
53295 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53296
53297         maint.mk: adjust to file name change
53298         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53299
53300 2008-08-28  Jim Meyering  <meyering@redhat.com>
53301
53302         * modules/getndelim2 (License): Relicense to LGPLv2+.
53303         Approved by Richard Stallman for the version of 1995, and by
53304         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53305
53306 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53307
53308         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53309         dummy if one is not available.  Do not touch them if
53310         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53311         (getc_maybe_unlocked): New.
53312         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53313
53314 2008-08-26  Eric Blake  <ebb9@byu.net>
53315
53316         doc/INSTALL: resync from autoconf
53317         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53318         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53319         moving...
53320         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53321         * INSTALL: Regenerate.
53322         * INSTALL.ISO: New file.
53323         * INSTALL.UTF-8: Likewise.
53324
53325 2008-08-26  Jim Meyering  <meyering@redhat.com>
53326
53327         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53328         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53329         these definitions conditional, so that they may be overridden, too.
53330
53331 2008-08-26  Bruno Haible  <bruno@clisp.org>
53332
53333         Generate INSTALL file variants with prettier quotes.
53334         * doc/Makefile (INSTALL_PRELUDE): New macro.
53335         (INSTALL): Use it.
53336         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53337
53338 2008-08-26  Bruno Haible  <bruno@clisp.org>
53339
53340         Run makeinfo in an English locale.
53341         * doc/Makefile (MAKEINFO): New variable.
53342
53343 2008-08-26  Bruno Haible  <bruno@clisp.org>
53344
53345         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53346         Suggested by Eric Blake.
53347
53348 2008-08-25  Bruno Haible  <bruno@clisp.org>
53349
53350         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53351
53352 2008-08-25  Eric Blake  <ebb9@byu.net>
53353
53354         c-stack: test that stack overflow can be caught
53355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53356         that platform allows handling stack overflow; at least OS/2 EMX
53357         has sigaltstack, but crashes before transferring control to
53358         handler on stack overflow.
53359         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53360         check for HAVE_STACK_OVERFLOW_HANDLING.
53361         Reported by Elbert Pol.
53362
53363 2008-08-25  Bruno Haible  <bruno@clisp.org>
53364
53365         * doc/posix-functions/strftime.texi: Fix description of strftime
53366         module.
53367
53368 2008-08-24  Bruno Haible  <bruno@clisp.org>
53369
53370         * tests/uniwidth/test-uc_width2.c: New file.
53371         * tests/uniwidth/test-uc_width2.sh: New file.
53372         * modules/uniwidth/width-tests (Files): Add the new files.
53373         (TESTS): Add uniwidth/test-uc_width2.sh.
53374         (TESTS_ENVIRONMENT): New variable.
53375         (check_PROGRAMS): Add test-uc_width2.
53376         (test_uc_width2_SOURCES): New variable.
53377
53378         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53379         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53380         not 0x00AB.
53381         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53382
53383 2008-08-22  Eric Blake  <ebb9@byu.net>
53384
53385         test-lock, test-tls: mention why a test is skipped
53386         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53387         skipped.
53388         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53389
53390         count-one-bits: relax license
53391         * modules/count-one-bits (License): Relicense to LGPLv2+.
53392         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53393
53394 2008-08-22  Andreas Schwab  <schwab@suse.de>
53395
53396         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53397         Remove spurious space in assignment.
53398
53399 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53400
53401         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53402         Paul Eggert <eggert@CS.UCLA.EDU>.
53403
53404 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53405
53406         * modules/gettext: Add m4/threadlib.m4.
53407
53408 2008-08-19  Eric Blake  <ebb9@byu.net>
53409
53410         test-c-stack: fix compilation failure on FreeBSD 5.0
53411         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53412         headers before <sys/resource.h>.
53413         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53414         the bug.
53415         Reported by Nelson H. F. Beebe.
53416
53417         strverscmp: migrate from "strverscmp.h" to <string.h>
53418         * modules/string (Makefile.am): Add new hooks.
53419         * modules/strverscmp (Files): Remove strverscmp.h.
53420         (Depends-on): Add string.
53421         (configure.ac): Add indicator.
53422         (Include): Mention new header.
53423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53424         defaults.
53425         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53426         results.
53427         * lib/strverscmp.h: Delete.
53428         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53429         * tests/test-strverscmp.c (includes): Adjust client.
53430         * lib/check-version.c (includes): Likewise.
53431         * NEWS: Document the change.
53432
53433         strverscmp: add unit test
53434         * modules/strverscmp-tests: New file.
53435         * tests/test-strverscmp.c: Likewise.
53436
53437 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53438
53439         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53440         regarding Windows crypto stuff, from Mono.
53441
53442 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53443
53444         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53445         if present, for intel RND.  Return error on failures.
53446
53447 2008-08-18  Ben Pfaff  <blp@gnu.org>
53448
53449         gitlog-to-changelog: give better diagnostic for failed pipe-open
53450         * build-aux/gitlog-to-changelog: Improve error message: suggest
53451         that the version of Git may be too old.
53452
53453 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53454
53455         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53456         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53457
53458 2008-08-18  Bruno Haible  <bruno@clisp.org>
53459
53460         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53461         pthread_in_use().
53462
53463 2008-08-18  Bruno Haible  <bruno@clisp.org>
53464
53465         * lib/glthread/threadlib.c: Include <pthread.h>.
53466
53467 2008-08-18  Bruno Haible  <bruno@clisp.org>
53468
53469         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53470         glthread_recursive_lock_* macros.
53471         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53472         Fix syntax error.
53473
53474 2008-08-18  Bruno Haible  <bruno@clisp.org>
53475
53476         * lib/glthread/thread.c: Avoid forcing a context switch right after
53477         thread creation.
53478
53479 2008-08-17  Bruno Haible  <bruno@clisp.org>
53480
53481         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53482         * lib/glthread/thread.h: Provide Win32 specific implementation.
53483         * modules/thread (Files): Add lib/glthread/thread.c.
53484         (Depends-on): Add lock.
53485         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53486
53487 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53488
53489         New module 'yield'.
53490         * modules/yield: New file.
53491         * lib/glthread/yield.h: New file.
53492         * m4/yield.m4: New file.
53493         * MODULES.html.sh (Multithreading): Add yield.
53494
53495 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53496
53497         New module 'thread'.
53498         * modules/thread: New file.
53499         * lib/glthread/thread.h: New file.
53500         * m4/thread.m4: New file.
53501         * MODULES.html.sh (Multithreading): Add thread.
53502
53503 2008-08-17  Bruno Haible  <bruno@clisp.org>
53504
53505         * lib/glthread/lock.h: Include <stdlib.h> always.
53506         * lib/glthread/tls.h: Likewise.
53507         * lib/glthread/cond.h: Likewise.
53508
53509 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53510
53511         New module 'cond'.
53512         * modules/cond: New file.
53513         * lib/glthread/cond.h: New file.
53514         * lib/glthread/cond.c: New file.
53515         * m4/cond.m4: New file.
53516         * MODULES.html.sh (Multithreading): Add cond.
53517
53518 2008-08-16  Eric Blake  <ebb9@byu.net>
53519
53520         c-stack: fix regression on Irix 5.3 from 2008-06-21
53521         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53522         sa_sigaction...
53523         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53524         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53525         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53526         * modules/signal (Makefile.am): Use the value.
53527         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53528         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53529         * doc/posix-headers/signal.texi (signal.h): Document this
53530         portability issue.
53531         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53532         Reported by Tom G. Christensen.
53533
53534 2008-08-17  Bruno Haible  <bruno@clisp.org>
53535
53536         New module 'threadlib'.
53537         * modules/threadlib: New file.
53538         * lib/glthread/threadlib.c: New file, extracted from
53539         lib/glthread/lock.c.
53540         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53541         functions.
53542         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53543         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53544         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53545         macros.
53546         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53547         (gl_DISABLE_THREADS): Remove macro.
53548         * modules/lock (Files): Remove build-aux/config.rpath.
53549         (Depends-on): Remove havelib. Add threadlib.
53550         (configure.ac-early): Remove section.
53551         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53552         * modules/tls (Depends-on): Remove lock. Add threadlib.
53553         (Link): New section, copied from threadlib.
53554         * MODULES.html.sh (Multithreading): Add threadlib.
53555
53556 2008-08-14  Bruno Haible  <bruno@clisp.org>
53557
53558         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53559         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53560         glthread_rwlock_unlock, glthread_rwlock_destroy,
53561         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53562         glthread_recursive_lock_destroy): Define as macros always.
53563         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53564         glthread_lock_lock.
53565         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53566         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53567         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53568         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53569         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53570         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53571         (glthread_recursive_lock_lock_func): Renamed from
53572         glthread_recursive_lock_lock.
53573         (glthread_recursive_lock_unlock_func): Renamed from
53574         glthread_recursive_lock_unlock.
53575         (glthread_recursive_lock_destroy_func): Renamed from
53576         glthread_recursive_lock_destroy.
53577
53578 2008-08-14  Bruno Haible  <bruno@clisp.org>
53579
53580         * lib/glthread/lock.h: Renamed from lib/lock.h.
53581         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53582         * lib/glthread/tls.h: Renamed from lib/tls.h.
53583         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53584         * lib/fstrcmp.c: Update includes.
53585         * lib/strsignal.c: Update includes.
53586         * modules/lock (Files, Makefile.am): Update.
53587         (Include): Change to "glthread/lock.h".
53588         * modules/tls (Files, Makefile.am): Update.
53589         (Include): Change to "glthread/tls.h".
53590         * tests/test-lock.c: Update includes.
53591         * tests/test-tls.c: Update includes.
53592         * NEWS: Mention the renamed header files.
53593
53594 2008-08-11  Jim Meyering  <meyering@redhat.com>
53595
53596         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53597
53598 2008-08-11  Eric Blake  <ebb9@byu.net>
53599
53600         test-c-stack: avoid C99-ism
53601         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53602         before statement.
53603         Reported by Alain Guibert.
53604
53605 2008-08-10  Jim Meyering  <meyering@redhat.com>
53606
53607         ensure that return value of uinttostr et al are not ignored
53608         * lib/inttostr.h (__GNUC_PREREQ): Define.
53609         (__attribute_warn_unused_result__): Define.
53610         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53611
53612 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53613
53614         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53615         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53616
53617 2008-08-07  Jim Meyering  <meyering@redhat.com>
53618
53619         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53620
53621         * modules/mkstemp (License): Relicense under LGPLv2+.
53622         * modules/tempname (License): Likewise.
53623
53624 2008-08-06  Bruno Haible  <bruno@clisp.org>
53625
53626         * lib/poll.c (poll): Further micro-optimization.
53627
53628 2008-08-06  Jim Meyering  <meyering@redhat.com>
53629
53630         inet_pton.c: use locale-independent tolower
53631         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53632         (inet_pton6): Use c_tolower rather than tolower.
53633         * modules/inet_pton (Depends-on): Add c-ctype.
53634
53635 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53636
53637         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53638         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53639
53640 2008-08-06  Jim Meyering  <meyering@redhat.com>
53641
53642         * modules/inet_pton (License): Relicense under LGPLv2+.
53643
53644 2008-08-03  Bruno Haible  <bruno@clisp.org>
53645
53646         Additional non-aborting API for lock and tls.
53647         * lib/lock.h: Include <errno.h>.
53648         (glthread_lock_init): New macro/function.
53649         (gl_lock_init): Define as wrapper around glthread_lock_init.
53650         (glthread_lock_lock): New macro/function.
53651         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53652         (glthread_lock_unlock): New macro/function.
53653         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53654         (glthread_lock_destroy): New macro/function.
53655         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53656         (glthread_rwlock_init): New macro/function.
53657         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53658         (glthread_rwlock_rdlock): New macro/function.
53659         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53660         (glthread_rwlock_wrlock): New macro/function.
53661         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53662         (glthread_rwlock_unlock): New macro/function.
53663         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53664         (glthread_rwlock_destroy): New macro/function.
53665         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53666         (glthread_recursive_lock_init): New macro/function.
53667         (gl_recursive_lock_init): Define as wrapper around
53668         glthread_recursive_lock_init.
53669         (glthread_recursive_lock_lock): New macro/function.
53670         (gl_recursive_lock_lock): Define as wrapper around
53671         glthread_recursive_lock_lock.
53672         (glthread_recursive_lock_unlock): New macro/function.
53673         (gl_recursive_lock_unlock): Define as wrapper around
53674         glthread_recursive_lock_unlock.
53675         (glthread_recursive_lock_destroy): New macro/function.
53676         (gl_recursive_lock_destroy): Define as wrapper around
53677         glthread_recursive_lock_destroy.
53678         (glthread_once): New macro/function.
53679         (gl_once): Define as wrapper around glthread_once.
53680         Update function declarations.
53681         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53682         glthread_rwlock_init. Return error code.
53683         (glthread_rwlock_rdlock_multithreaded): Renamed from
53684         glthread_rwlock_rdlock. Return error code.
53685         (glthread_rwlock_wrlock_multithreaded): Renamed from
53686         glthread_rwlock_wrlock. Return error code.
53687         (glthread_rwlock_unlock_multithreaded): Renamed from
53688         glthread_rwlock_unlock. Return error code.
53689         (glthread_rwlock_destroy_multithreaded): Renamed from
53690         glthread_rwlock_destroy. Return error code.
53691         (glthread_recursive_lock_init_multithreaded): Renamed from
53692         glthread_recursive_lock_init. Return error code.
53693         (glthread_recursive_lock_lock_multithreaded): Renamed from
53694         glthread_recursive_lock_lock. Return error code.
53695         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53696         glthread_recursive_lock_unlock. Return error code.
53697         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53698         glthread_recursive_lock_destroy. Return error code.
53699         (glthread_once_call): Make static.
53700         (glthread_once_multithreaded): Renamed from glthread_once.
53701         * lib/tls.h: Include <errno.h>.
53702         (glthread_tls_key_init): New macro/function.
53703         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53704         (glthread_tls_set): New macro/function.
53705         (gl_tls_set): Define as wrapper around glthread_tls_set.
53706         (glthread_tls_key_destroy): New macro/function.
53707         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53708         Update function declarations.
53709         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53710         glthread_tls_get.
53711         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53712
53713 2008-08-04  Eric Blake  <ebb9@byu.net>
53714
53715         gnumakefile: use space, not TAB, outside of targets
53716         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53717
53718 2008-08-02  Jim Meyering  <meyering@redhat.com>
53719
53720         getdate.y: avoid locale-dependent date parsing failure
53721         In Turkish locales, getdate would fail to recognize keywords
53722         containing a lowercase "i".  The solution is not to rely on
53723         locale-sensitive case-conversion.
53724         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53725         (lookup_word): Use c_toupper in place of toupper.
53726         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53727         Reported by Vefa Bicakci <bicave@superonline.com> in
53728         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53729         * modules/getdate (Depends-on): Add c-ctype.
53730
53731 2008-08-02  Bruno Haible  <bruno@clisp.org>
53732
53733         * gnulib-tool (func_import): When updating or creating a .gitignore
53734         file, prepend each added line with a slash, and ignore leading slashes
53735         from the existing lines.
53736         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53737
53738 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53739
53740         Portability fix for GNU make 3.79.1.
53741         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53742         versions do not understand.
53743
53744 2008-08-01  Bruno Haible  <bruno@clisp.org>
53745
53746         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53747         * tests/test-isnanf.h (zero): New variable.
53748         (main): Avoid literal -0.0f.
53749         * tests/test-isnand.h (zero): New variable.
53750         (main): Avoid literal -0.0.
53751         * tests/test-isnanl.h (zero): New variable.
53752         (main): Avoid literal -0.0L.
53753         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53754         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53755         -0.0, -0.0L.
53756         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53757         (test_signbitd): Avoid literal -0.0.
53758         (test_signbitl): Avoid literal -0.0L.
53759         * tests/test-ceilf1.c (zero): New variable.
53760         (main): Avoid literal -0.0f.
53761         * tests/test-ceill.c (zero): New variable.
53762         (main): Avoid literal -0.0L.
53763         * tests/test-floorf1.c (zero): New variable.
53764         (main): Avoid literal -0.0f.
53765         * tests/test-floorl.c (zero): New variable.
53766         (main): Avoid literal -0.0L.
53767         * tests/test-roundf1.c (zero): New variable.
53768         (main): Avoid literal -0.0f.
53769         * tests/test-round1.c (zero): New variable.
53770         (main): Avoid literal -0.0.
53771         * tests/test-roundl.c (zero): New variable.
53772         (main): Avoid literal -0.0L.
53773         * tests/test-truncf1.c (zero): New variable.
53774         (main): Avoid literal -0.0f.
53775         * tests/test-trunc1.c (zero): New variable.
53776         (main): Avoid literal -0.0.
53777         * tests/test-truncl.c (zero): New variable.
53778         (main): Avoid literal -0.0L.
53779         * tests/test-frexp.c (zero): New variable.
53780         (main): Avoid literal -0.0.
53781         * tests/test-frexpl.c (zero): New variable.
53782         (main): Avoid literal -0.0L.
53783         * tests/test-ldexpl.c (zero): New variable.
53784         (main): Avoid literal -0.0L.
53785         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53786         (zerod, zerol): New variables.
53787         (test_function): Avoid literals -0.0, -0.0L.
53788         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53789         (zerod, zerol): New variables.
53790         (test_function): Avoid literals -0.0, -0.0L.
53791         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53792         (zerod, zerol): New variables.
53793         (test_function): Avoid literals -0.0, -0.0L.
53794         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53795         (zerod, zerol): New variables.
53796         (test_function): Avoid literals -0.0, -0.0L.
53797         * tests/test-strtod.c (zero): New variable.
53798         (main): Avoid literal -0.0.
53799         Reported by Jonathan C. Patschke <jp@centtech.com>.
53800
53801 2008-07-31  Jim Meyering  <meyering@redhat.com>
53802
53803         sha256.h: correct definition of SHA224_DIGEST_SIZE
53804         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53805         Reported by Paulie Pena IV <paulie4@gmail.com>.
53806         Define as 224 / 8, rather than as a literal.
53807         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53808         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53809         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53810
53811 2008-07-31  Bruno Haible  <bruno@clisp.org>
53812
53813         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53814         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53815         Reported by Jonathan Patschke <jp@centtech.com>.
53816
53817 2008-07-31  Bruno Haible  <bruno@clisp.org>
53818
53819         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53820         Reported by Paolo Bonzini <bonzini@gnu.org>.
53821
53822 2008-07-30  Eric Blake  <ebb9@byu.net>
53823
53824         test-strtod: allow compilation without -lm
53825         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53826         Reported by Dennis Clarke <blastwave@gmail.com>.
53827
53828 2008-07-28  Jim Meyering  <meyering@redhat.com>
53829
53830         bootstrap: work also when there are no .po files in po/
53831         * build-aux/bootstrap (update_po_files): Complete the change
53832         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53833
53834 2008-07-27  Jim Meyering  <meyering@redhat.com>
53835
53836         * users.txt: Add zile.
53837
53838 2008-07-26  Ben Pfaff  <blp@gnu.org>
53839
53840         Add missing dependencies on new m4/exponent[fdl].m4 files.
53841         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53842         * modules/isnand-nolibm: Add m4/exponentd.m4.
53843         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53844         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53845         m4/isnan[fdl].m4, because the macros actually used moved.
53846         Reported by Jim Meyering.
53847
53848 2008-07-14  Ben Pfaff  <blp@gnu.org>
53849
53850         Add isinf module.
53851         * lib/isinf.c: New file.
53852         * lib/math.in.h: Define isinf macro if we have decided to replace
53853         it.
53854         * m4/isinf.m4: New file.
53855         * m4/math_h.m4: Initialize and substitute variables for isinf
53856         module.
53857         * modules/isinf: New file.
53858         * modules/isinf-tests: New file.
53859         * modules/math: Add substitutions for new module.
53860         * tests/test-isinf.c: New file.
53861         * doc/posix-functions/isinf.texi: Mention new module.
53862         * MODULES.html.sh: Mention new module.
53863
53864 2008-07-14  Ben Pfaff  <blp@gnu.org>
53865
53866         Factor out some macros for use by additional modules.
53867         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53868         exponentf.m4.
53869         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53870         exponentd.m4.
53871         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53872         file exponentl.m4.
53873         * m4/exponentf.m4: New file.
53874         * m4/exponentd.m4: New file.
53875         * m4/exponentl.m4: New file.
53876         * modules/isnanf: Use new file m4/exponentf.m4.
53877         * modules/isnand: Use new file m4/exponentd.m4.
53878         * modules/isnanl: Use new file m4/exponentl.m4.
53879
53880 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53881
53882         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53883         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53884         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53885         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53886
53887         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53888         readlink on platforms without PATH_MAX.
53889
53890 2008-07-21  Eric Blake  <ebb9@byu.net>
53891
53892         Warn, not fail, on stale version.
53893         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53894
53895         Don't allow installation with stale devel version number.
53896         * top/GNUmakefile (_is-install-target): New macro.
53897         (_curr-ver): Forbid installation with stale version number.
53898
53899 2008-07-20  Bruno Haible  <bruno@clisp.org>
53900
53901         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53902         TESTS_ENVIRONMENT.
53903         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53904
53905 2008-07-20  Bruno Haible  <bruno@clisp.org>
53906
53907         * lib/c-stack.h (c_stack_action): Add documentation.
53908         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53909
53910 2008-07-20  Bruno Haible  <bruno@clisp.org>
53911
53912         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53913         * modules/readlink (License): Likewise.
53914
53915 2008-07-17  Eric Blake  <ebb9@byu.net>
53916
53917         * modules/c-stack (Link): Fix typo.
53918
53919         Make c-stack use libsigsegv, when available.
53920         * modules/c-stack (Depends-on): Add libsigsegv.
53921         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53922         needed.
53923         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53924         (segv_handler, overflow_handler, c_stack_action)
53925         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53926         implementation when libsigsegv is available, but only when using
53927         the library is necessary.
53928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53929         comment, explaining why XSI check fails on Linux.
53930         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53931         * tests/test-c-stack2.sh: Tweak skip message.
53932         * NEWS: Document new link-time requirements.
53933
53934 2008-07-16  Eric Blake  <ebb9@byu.net>
53935
53936         c-stack: Expose false positives when not using libsigsegv.
53937         * modules/c-stack-tests (Files): Expand test.
53938         * tests/test-c-stack.c (main): Add means to conditionally trigger
53939         non-overflow SIGSEGV.
53940         * tests/test-c-stack2.sh: New file.
53941
53942 2008-07-14  Bruno Haible  <bruno@clisp.org>
53943
53944         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53945         Reported by Eric Blake.
53946
53947 2008-07-14  Sam Steingold  <sds@gnu.org>
53948             Bruno Haible  <bruno@clisp.org>
53949
53950         New module libsigsegv.
53951         * modules/libsigsegv: New file.
53952         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53953         modifications.
53954         * MODULES.html.sh (Signal handling): New section.
53955
53956 2008-07-14  Bruno Haible  <bruno@clisp.org>
53957
53958         * modules/unictype/ctype-* (Description): Add the word "function".
53959         Improves the resulting doc in MODULES.html.
53960
53961 2008-07-12  Ben Pfaff  <blp@gnu.org>
53962
53963         Add longlong module.
53964         * modules/longlong: New file.
53965
53966 2008-07-12  Bruno Haible  <bruno@clisp.org>
53967
53968         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53969         to empty.
53970
53971 2008-07-10  Ben Pfaff  <blp@gnu.org>
53972
53973         Add isnan module.
53974         * doc/posix-functions/isnan.texi: Mention new module.
53975         * lib/math.in.h: Define isnan macro if we have decided to replace
53976         it.
53977         * m4/isnan.m4: New file.
53978         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53979         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53980         also.
53981         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53982         redundancy.
53983         * m4/math_h.m4: Initialize and substitute variables for isnan
53984         module.
53985         * modules/isnan: New file.
53986         * modules/isnan-tests: New file.
53987         * modules/math: Add substitutions for new module.
53988         * tests/test-isnan.c: New file.
53989         * MODULES.html.sh: Mention new module.
53990
53991 2008-07-10  Ben Pfaff  <blp@gnu.org>
53992
53993         Add isnanf module.
53994         * lib/isnanf.m4: New file.
53995         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53996         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53997         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53998         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53999         * modules/isnanf: New file.
54000         * modules/isnanf-tests: New file.
54001         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54002         files.
54003         * tests/test-isnanf-nolibm.c: factored most of its contents into
54004         new file tests/test-isnanf.h.
54005         * tests/test-isnanf.h: New file.
54006         * tests/test-isnanf.c: New file.
54007         * MODULES.html.sh: Mention new module.
54008         * doc/glibc-functions/isnanf.texi: Mention new module.
54009
54010 2008-07-10  Ben Pfaff  <blp@gnu.org>
54011
54012         Add isnand module.
54013         * lib/isnand.h: New file.
54014         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54015         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54016         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54017         functionality also.
54018         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54019         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54020         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54021         * modules/isnand: New file.
54022         * modules/isnand-tests: New file.
54023         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54024         files.
54025         * tests/test-isnand-nolibm.c: factored most of its contents into
54026         new file tests/test-isnand.h.
54027         * tests/test-isnand.h: New file.
54028         * tests/test-isnand.c: New file.
54029         * MODULES.html.sh: Mention new module.
54030
54031 2008-07-10  Ben Pfaff  <blp@gnu.org>
54032
54033         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54034         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54035         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54036         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54037         * modules/isnanf-nolibm: Update references to renamed files.
54038         * modules/isnand-nolibm: Likewise.
54039         * modules/isnanf-nolibm-tests: Likewise.
54040         * modules/isnand-nolibm-tests: Likewise.
54041         * lib/frexp.c: Likewise.
54042         * lib/isfinite.c: Likewise.
54043         * lib/signbitd.c: Likewise.
54044         * lib/signbitf.c: Likewise.
54045         * lib/vasnprintf.c: Likewise.
54046         * tests/test-ceilf1.c: Likewise.
54047         * tests/test-ceilf2.c: Likewise.
54048         * tests/test-floorf1.c: Likewise.
54049         * tests/test-floorf2.c: Likewise.
54050         * tests/test-frexp.c: Likewise.
54051         * tests/test-round1.c: Likewise.
54052         * tests/test-round2.c: Likewise.
54053         * tests/test-roundf1.c: Likewise.
54054         * tests/test-strtod.c: Likewise.
54055         * tests/test-trunc1.c: Likewise.
54056         * tests/test-trunc2.c: Likewise.
54057         * tests/test-truncf1.c: Likewise.
54058         * tests/test-truncf2.c: Likewise.
54059         * NEWS: Mention the renamed header files.
54060
54061 2008-07-11  Jim Meyering  <meyering@redhat.com>
54062
54063         vc-list-files: make the last-resort awk code more portable
54064         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54065         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54066         does not support it.
54067
54068 2008-07-10  Eric Blake  <ebb9@byu.net>
54069
54070         Work with tar's bootstrap.
54071         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54072         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54073         an m4 comment.
54074
54075 2008-07-09  Jim Meyering  <meyering@redhat.com>
54076
54077         posix-shell.m4: fix typo that made this test malfunction
54078         * m4/posix-shell.m4: Remove capitalization in variable name.
54079
54080 2008-07-08  Bruno Haible  <bruno@clisp.org>
54081
54082         * m4/onceonly.m4: Update comments.
54083         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54084
54085 2008-07-04  Jim Meyering  <meyering@redhat.com>
54086
54087         * users.txt: Add vc-dwim.
54088         (bison, coreutils): Use the gitweb URL.
54089
54090 2008-07-03  Jim Meyering  <meyering@redhat.com>
54091
54092         * users.txt: Add libffcall.  From Sam Steingold.
54093
54094 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54095
54096         getdate.y: do not ignore TZ with relative day, month or year offset
54097         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54098         relative-date-handling, since otherwise, the latter would clobber the
54099         sole output (an updated Start value) of the tz-handling block.
54100         * tests/test-getdate.c: Tests for the fix
54101
54102 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54103
54104         Recognize 'foo_LIBRARIES += libgnu.a'.
54105         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54106         makefile snippet has already specified an installation location,
54107         also using '+='.
54108
54109 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54110
54111         getdate.y: factor out common actions
54112         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54113         Use them in place of open-coded actions.
54114
54115 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54116
54117         Add self-test for getdate module.
54118         * modules/getdate-tests: New file.
54119         * tests/test-getdate.c: New file.
54120
54121 2008-06-29  Bruno Haible  <bruno@clisp.org>
54122
54123         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54124         .gitignore.
54125         Reported by Sylvain Beucler <beuc@beuc.net>.
54126
54127 2008-06-29  Bruno Haible  <bruno@clisp.org>
54128
54129         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54130         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54131
54132 2008-06-29  Bruno Haible  <bruno@clisp.org>
54133
54134         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54135         EXTRA_DIST.
54136         Reported by Sylvain Beucler <beuc@beuc.net>.
54137
54138 2008-06-26  Jim Meyering  <meyering@redhat.com>
54139
54140         make several modules depend on the "open" module
54141         This provides slightly increased consistency when opening-for-write
54142         the name of a non-directory spelled with a trailing slash.
54143         * modules/chdir-safer: Likewise.
54144         * modules/chown: Likewise.
54145         * modules/clean-temp: Likewise.
54146         * modules/copy-file: Likewise.
54147         * modules/fchdir: Likewise.
54148         * modules/fcntl-safer: Likewise.
54149         * modules/pipe: Likewise.
54150         * modules/utime: Likewise.
54151         Prompted by Eric Blake and Bruno Haible.
54152
54153 2008-06-24  Andreas Schwab  <schwab@suse.de>
54154
54155         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54156         literals can be used as initializers for global variables.
54157
54158 2008-06-23  Eric Blake  <ebb9@byu.net>
54159
54160         Make gnulib-cache.m4 easier to diff.
54161         * gnulib-tool (func_import): Allow newlines when reading cached
54162         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54163
54164 2008-06-23  Bruno Haible  <bruno@clisp.org>
54165
54166         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54167         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54168         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54169         m4/signalblocking.m4.
54170         (gl_PREREQ_SIGACTION): Don't invoke it.
54171         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54172         gl_PREREQ_SIG_HANDLER_H.
54173         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54174         Don't check for sigaction here.
54175
54176 2008-06-23  Bruno Haible  <bruno@clisp.org>
54177
54178         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54179         (install_handlers): Don't set the SA_RESETHAND flag.
54180
54181 2008-06-23  Bruno Haible  <bruno@clisp.org>
54182
54183         * m4/sigaction.m4: Comment fixes.
54184         * lib/signal.in.h: Likewise.
54185
54186 2008-06-23  Eric Blake  <ebb9@byu.net>
54187
54188         Fix typo.
54189         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54190
54191         Avoid SA_ namespace.
54192         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54193         Reported by Ralf Wildenhues.
54194
54195         Avoid test failure due to SA_RESTORER.
54196         * tests/test-sigaction.c (SA_MASK): New macro.
54197         (main): Avoid failing due to extension flags being set.
54198         Reported by Jim Meyering.
54199
54200         Revert use of sig-handler.h in sigprocmask.c.
54201         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54202         it requires the existence of struct sigaction.
54203         * lib/sigprocmask.c (handler_t): Restore typedef.
54204         (rpl_signal, old_handlers): Use local type.
54205
54206 2008-06-22  Bruno Haible  <bruno@clisp.org>
54207
54208         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54209         conditionally.
54210         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54211
54212 2008-06-22  Bruno Haible  <bruno@clisp.org>
54213
54214         * doc/posix-functions/siginterrupt.texi: Move note.
54215
54216         * lib/signal.in.h (SA_RESTART): New macro.
54217         * lib/sigaction.c: Update comment.
54218
54219         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54220
54221         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54222         (gl_PREREQ_SIGPROCMASK): Invoke it.
54223         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54224
54225         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54226
54227         * lib/sigprocmask.c: Update a comment.
54228
54229 2008-06-21  Eric Blake  <ebb9@byu.net>
54230
54231         Use sigaction module rather than signal().
54232         * modules/c-stack (Depends-on): Add sigaction.
54233         * modules/fatal-signal (Depends-on): Likewise.
54234         * modules/nanosleep (Depends-on): Likewise.
54235         * modules/sigprocmask (Files): Add sig-handler.h.
54236         * modules/sigaction (Files): Likewise.
54237         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54238         Eggert.
54239         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54240         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54241         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54242         (init_fatal_signals): Likewise.
54243         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54244         (siginterrupt): Delete fallback.
54245         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54246         instead.
54247         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54248         siginterrupt.
54249
54250         New module sigaction, for mingw.
54251         * modules/sigaction: New module...
54252         * modules/sigaction-tests: ...and its test.
54253         * m4/sigaction.m4: New file.
54254         * lib/sigaction.c: Likewise.
54255         * tests/test-sigaction.c: Likewise.
54256         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54257         * modules/signal (Makefile.am): Likewise.
54258         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54259         needed.
54260         * doc/posix-headers/signal.texi (signal.h): Mention provided
54261         types.
54262         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54263         that sigaction is preferable.
54264         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54265         module.
54266         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54267         sigaction.
54268
54269         Improve robustness of sigprocmask by overriding signal.
54270         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54271         is in use.
54272         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54273         (SIGKILL, SIGSTOP): Provide fallbacks.
54274         (rpl_signal): Implement.
54275         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54276         signal can be called inside handlers.
54277
54278         Fix nanosleep module on mingw.
54279         * modules/nanosleep (Depends-on): Add sys_select.
54280         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54281
54282         Fix licensing of sigprocmask.
54283         * modules/raise (License): Relicense as LGPL.
54284
54285 2008-06-21  Bruno Haible  <bruno@clisp.org>
54286
54287         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54288         result if it contains question marks.
54289         Reported by Michael Geng <linux@michaelgeng.de>.
54290
54291 2008-06-19  Bruno Haible  <bruno@clisp.org>
54292
54293         Fix CVS-ism.
54294         * doc/gnulib.texi: Include updated-stamp.texi.
54295         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54296         (updated-stamp.texi): New rule.
54297         (gnulib.info): Depend on it.
54298         * doc/.gitignore: Add updated-stamp.texi.
54299         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54300
54301 2008-06-19  Bruno Haible  <bruno@clisp.org>
54302
54303         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54304         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54305
54306 2008-06-19  Eric Blake  <ebb9@byu.net>
54307
54308         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54309         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54310         Reported by Stepan Kasal.
54311
54312 2008-06-18  Bruno Haible  <bruno@clisp.org>
54313
54314         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54315         Reported by Eric Blake.
54316
54317 2008-06-18  Eric Blake  <ebb9@byu.net>
54318
54319         Work around cygwin 1.5.25 strsignal bug.
54320         * tests/test-strsignal.c: Allow for const char *.
54321         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54322
54323 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54324
54325         * users.txt: Update URL to article and add author/date
54326         information.
54327
54328 2008-06-17  Bruno Haible  <bruno@clisp.org>
54329
54330         New macro gl_DISABLE_THREADS.
54331         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54332         if the user did not pass --enable-threads or --disable-threads option.
54333         (gl_DISABLE_THREADS): New macro.
54334         Reported by Eric Blake <ebb9@byu.net>.
54335
54336 2008-06-17  Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54339         when the macro ignores it.
54340         Based on a patch by Eric Blake <ebb9@byu.net>.
54341
54342 2008-06-17  Bruno Haible  <bruno@clisp.org>
54343
54344         * modules/tls (License): Change to LGPLv2+.
54345         Reported by Eric Blake.
54346
54347 2008-06-17  Eric Blake  <ebb9@byu.net>
54348
54349         Simplify c-stack prerequisites.
54350         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54352         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54353         check.
54354         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54355         <sys/resource.h>.
54356
54357         Move c-stack test into testsuite.
54358         * modules/c-stack-tests: New file.
54359         * lib/c-stack.c [DEBUG]: Move test program...
54360         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54361         fail test if sigaltstack is lacking.
54362         * tests/test-c-stack.sh: New driver file.
54363
54364 2008-06-16  Eric Blake  <ebb9@byu.net>
54365
54366         Use raise module consistently.
54367         * modules/fatal-signal (Depends-on): Add raise.
54368         * modules/sigprocmask (Depends-on): Likewise.
54369         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54370         * lib/sigprocmask.c (sigprocmask): Likewise.
54371         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54372         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54373
54374         Fix compliance bug in sigpending.
54375         * lib/sigprocmask.c (sigpending): Return pending array via
54376         parameter, not return value.
54377
54378 2008-06-14  Eric Blake  <ebb9@byu.net>
54379
54380         Improve obstack-printf test code.
54381         * tests/test-obstack-printf.c (test_function): Fix comment, and
54382         simplify usage of obstack_* in macros.  Add a test for coverage.
54383         Reported by Bruno Haible.
54384
54385 2008-06-14  Bruno Haible  <bruno@clisp.org>
54386
54387         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54388         array size as a constant, not as a const variable.
54389         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54390         AC_USE_SYSTEM_EXTENSIONS.
54391         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54392         Test whether the obstack_printf function actually exists.
54393         * modules/obstack-printf (Depends-on): Add extensions.
54394         (Include): Remove obstack.h.
54395         * modules/obstack-printf-posix (Depends-on): Add extensions.
54396         (Include): Remove obstack.h.
54397
54398 2008-06-13  Eric Blake  <ebb9@byu.net>
54399
54400         Add obstack-printf and obstack-printf-posix modules.
54401         * modules/obstack-printf: New file.
54402         * modules/obstack-printf-posix: Likewise.
54403         * MODULES.html.sh (Misc): Mention them.
54404         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54405         Likewise.
54406         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54407         Likewise.
54408         * modules/stdio (Makefile.am): Accomodate new modules.
54409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54410         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54411         Declare.
54412         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54413         functions.
54414         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54415         (gl_REPLACE_OBSTACK_PRINTF): New macros
54416         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54417         * tests/test-obstack-printf.c: New file.
54418         * modules/obstack-printf-tests: Likewise.
54419         * modules/obstack-printf-posix-tests: Likewise.
54420
54421 2008-06-11  Bruno Haible  <bruno@clisp.org>
54422
54423         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54424         * lib/open.c: Include errno.h.
54425         (open): Fail when attempting to write to a file that has a trailing
54426         slash.
54427         * tests/test-open.c (main): Test against trailing slash bug.
54428         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54429
54430 2008-06-10  Bruno Haible  <bruno@clisp.org>
54431
54432         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54433         for $? to work inside the trap command, with various /bin/sh-s.
54434         * tests/test-vc-list-files-cvs.sh: Likewise.
54435
54436 2008-06-10  Bruno Haible  <bruno@clisp.org>
54437
54438         * lib/acl-internal.h: Don't include gettext.h here.
54439         * lib/set-mode-acl.c: Include gettext.h here.
54440         * lib/copy-acl.c: Likewise.
54441
54442 2008-06-10  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54445         * lib/wait-process.c (wait_subprocess): Likewise.
54446         * lib/execute.h (execute): Add termsigp argument.
54447         * lib/execute.c (execute): Likewise.
54448         * lib/csharpcomp.c (compile_csharp_using_pnet,
54449         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54450         * lib/csharpexec.c (execute_csharp_using_pnet,
54451         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54452         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54453         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54454         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54455         is_jikes_present): Update.
54456         * lib/javaexec.c (execute_java_class): Update.
54457         * lib/javaversion.c (execute_and_read_line): Update.
54458         * NEWS: Document the changes.
54459         Reported by Eric Blake.
54460
54461 2008-06-10  Eric Blake  <ebb9@byu.net>
54462
54463         Add missing include.
54464         * tests/test-strstr.c (includes): Add <signal.h>.
54465         * tests/test-strcasestr.c (includes): Likewise.
54466         * tests/test-memmem.c (includes): Likewise.
54467
54468 2008-06-10  Bruno Haible  <bruno@clisp.org>
54469
54470         * lib/wait-process.c (wait_subprocess): Add an assertion.
54471
54472 2008-06-10  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54475
54476 2008-06-10  Bruno Haible  <bruno@clisp.org>
54477
54478         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54479         using alarm().
54480         * tests/test-strcasestr.c (main): Likewise.
54481         * tests/test-strstr.c (main): Likewise.
54482
54483 2008-06-09  Bruno Haible  <bruno@clisp.org>
54484
54485         Work around the Solaris 10 ACE ACLs ABI change.
54486         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54487         declare if ACL_NO_TRIVIAL is present.
54488         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54489         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54490         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54491         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54492         define if ACL_NO_TRIVIAL is present.
54493         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54494         and use the current ABI.
54495         (file_has_acl): Use same #if condition as elsewhere.
54496         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54497         in use, and use the current ABI.
54498         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54499         Reported by Jim Meyering.
54500
54501 2008-06-09  Eric Blake  <ebb9@byu.net>
54502
54503         Work around environments that (stupidly) ignore SIGALRM.
54504         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54505         before using alarm().
54506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54507         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54508         Reported by Ian Beckwith <ianb@erislabs.net>.
54509
54510         Produce autobuild blurb earlier in log.
54511         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54512
54513 2008-06-09  Jim Meyering  <meyering@redhat.com>
54514         and OndÅ™ej Vašík  <ovasik@redhat.com>
54515
54516         utimens.c: correct kernel bug work-around
54517         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54518         failure, not success, and the kernel bug we're trying to work
54519         around affects not just the utimensat call, but also the fallback
54520         futimens call.
54521         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54522         not success.
54523         [HAVE_FUTIMENS]: Use the same work-around, here.
54524
54525 2008-06-09  Jim Meyering  <meyering@redhat.com>
54526
54527         add more guards around definition of ACE_-related code
54528         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54529         ALLOW and ACE_OWNER are also defined.
54530
54531 2008-06-08  Bruno Haible  <bruno@clisp.org>
54532
54533         * lib/acl-internal.h: Add me as co-author.
54534         * lib/file-has-acl.c: Likewise.
54535         * lib/set-mode-acl.c: Likewise.
54536         * lib/copy-acl.c: Likewise.
54537
54538 2008-06-08  Bruno Haible  <bruno@clisp.org>
54539
54540         Add support for AIX ACLs.
54541         * lib/acl-internal.h (acl_nontrivial): New declaration.
54542         * lib/file-has-acl.c (acl_nontrivial): New function.
54543         (file_has_acl): Add implementation using AIX 4 ACL API.
54544         * lib/set-mode-acl.c (qset_acl): Likewise.
54545         * lib/copy-acl.c (qcopy_acl): Likewise.
54546
54547 2008-06-08  Bruno Haible  <bruno@clisp.org>
54548
54549         Add support for HP-UX ACLs.
54550         * lib/acl-internal.h (acl_nontrivial): New declaration.
54551         * lib/file-has-acl.c (acl_nontrivial): New function.
54552         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54553         * lib/set-mode-acl.c (qset_acl): Likewise.
54554         * lib/copy-acl.c (qcopy_acl): Likewise.
54555
54556 2008-06-08  Bruno Haible  <bruno@clisp.org>
54557
54558         Add support for Cygwin ACLs.
54559         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54560         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54561         the chmod_or_fchmod call.
54562         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54563
54564 2008-06-08  Bruno Haible  <bruno@clisp.org>
54565
54566         Fix bug with setuid modes in Solaris 10+ code.
54567         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54568         succeeded, when the mode contains some special bits.
54569
54570 2008-06-08  Bruno Haible  <bruno@clisp.org>
54571
54572         Add support for Solaris 7..10 ACLs.
54573         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54574         declarations.
54575         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54576         functions.
54577         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54578         * lib/set-mode-acl.c (qset_acl): Likewise.
54579         * lib/copy-acl.c (qcopy_acl): Likewise.
54580
54581 2008-06-08  Bruno Haible  <bruno@clisp.org>
54582
54583         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54584         declaration.
54585         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54586         (acl_access_nontrivial): Remove MacOS X case.
54587         (file_has_acl): Use acl_extended_nontrivial.
54588         * lib/copy-acl.c (qcopy_acl): Likewise.
54589
54590 2008-06-08  Bruno Haible  <bruno@clisp.org>
54591
54592         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54593
54594 2008-06-08  Jim Meyering  <meyering@redhat.com>
54595
54596         * modules/acl (Maintainer): Add Bruno Haible.
54597
54598 2008-06-07  Bruno Haible  <bruno@clisp.org>
54599
54600         Improve support for Tru64 ACLs.
54601         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54602         ACL on OSF/1.
54603
54604 2008-06-07  Bruno Haible  <bruno@clisp.org>
54605
54606         Add support for MacOS X ACLs.
54607         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54608         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54609         * lib/set-mode-acl.c (qset_acl): Likewise.
54610         * lib/copy-acl.c (qcopy_acl): Likewise.
54611
54612 2008-06-07  Bruno Haible  <bruno@clisp.org>
54613
54614         Fix memory leak introduced on 2008-05-22.
54615         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54616         use.
54617
54618 2008-06-07  Bruno Haible  <bruno@clisp.org>
54619
54620         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54621         to construct an empty ACL.
54622
54623 2008-06-07  Bruno Haible  <bruno@clisp.org>
54624
54625         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54626         precisely.
54627         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54628
54629 2008-06-07  Bruno Haible  <bruno@clisp.org>
54630
54631         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54632         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54633
54634 2008-06-07  Bruno Haible  <bruno@clisp.org>
54635
54636         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54637         regardless of POSIX.
54638         * doc/posix-functions/_longjmp.texi: Likewise.
54639         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54640         SystemV platform in this case.
54641
54642 2008-06-06  Eric Blake  <ebb9@byu.net>
54643
54644         Document abort() bugs.
54645         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54646
54647         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54648         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54649         sigsetjmp.
54650         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54651         siglongjmp, but only as a macro.
54652         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54653         is obsolete.
54654         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54655
54656         Tweak documentation to cover cygwin argz bugs.
54657         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54658         argz bug fix; no code change needed since no cygwin releases
54659         occurred between the last fix and the bug being tested.
54660         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54661         module and recently fixed cygwin bugs.
54662         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54663         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54664         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54665         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54666         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54667         Likewise.
54668         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54669         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54670         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54671         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54672         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54673         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54674         Likewise.
54675
54676         Avoid gcc warning on cygwin.
54677         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54678         !ACL_NO_TRIVIAL]: Avoid unused variable.
54679
54680 2008-06-05  Eric Blake  <ebb9@byu.net>
54681
54682         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54683         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54684         git-version-gen fails to come up with a version.
54685         Reported by Simon Josefsson.
54686
54687 2008-06-05  Jim Meyering  <meyering@redhat.com>
54688             Paul Eggert  <eggert@cs.ucla.edu>
54689
54690         utimens.c: work around a probable Linux kernel bug
54691         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54692         appears to be a kernel bug that causes utimensat to return 280
54693         instead of 0, indicating success.
54694
54695 2008-06-04  Bruno Haible  <bruno@clisp.org>
54696
54697         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54698         2008-06-01 commit.
54699
54700 2008-06-04  Bruno Haible  <bruno@clisp.org>
54701
54702         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54703         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54704         (file_has_acl): Use it. Save errno afterwards.
54705         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54706
54707 2008-06-03  Bruno Haible  <bruno@clisp.org>
54708
54709         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54710         draft code. Simplify #ifs.
54711         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54712         Put Solaris code after POSIX-draft code. Fix comments regarding
54713         Solaris 10, HP-UX. Mention Cygwin.
54714         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54715
54716 2008-06-03  Eric Blake  <ebb9@byu.net>
54717
54718         Provide fallback for older kernels.
54719         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54720         Provide runtime fallback if kernel lacks support.
54721         Reported by Mike Frysinger.
54722
54723 2008-06-02  Bruno Haible  <bruno@clisp.org>
54724
54725         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54726         it exists.
54727
54728 2008-06-02  Bruno Haible  <bruno@clisp.org>
54729
54730         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54731         * lib/copy-acl.c (qcopy_acl): Update comment.
54732
54733 2008-06-02  Bruno Haible  <bruno@clisp.org>
54734
54735         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54736         like ACL APIs.
54737
54738 2008-06-02  Bruno Haible  <bruno@clisp.org>
54739
54740         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54741         * tests/test-set-mode-acl.sh: Likewise.
54742         * tests/test-copy-acl.sh: Likewise.
54743         * tests/test-copy-file.sh: Likewise.
54744
54745 2008-06-02  Bruno Haible  <bruno@clisp.org>
54746
54747         * tests/test-file-has-acl.sh: Remove unused code.
54748
54749 2008-06-01  Bruno Haible  <bruno@clisp.org>
54750
54751         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54752         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54753         messages.
54754         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54755
54756 2008-06-01  Bruno Haible  <bruno@clisp.org>
54757
54758         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54759         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54760         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54761         APIs.
54762         * modules/acl-tests (configure.ac): Remove tests now contained in
54763         m4/acl.m4.
54764
54765 2008-06-02  Jim Meyering  <meyering@redhat.com>
54766
54767         announce-gen: use a better key-server host name
54768         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54769         it may be more consistently reliable.  Suggested by Werner Koch
54770         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54771
54772 2008-06-01  Bruno Haible  <bruno@clisp.org>
54773
54774         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54775         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54776
54777 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54778
54779         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54780
54781 2008-06-01  Bruno Haible  <bruno@clisp.org>
54782
54783         New ACL tests.
54784         * tests/test-file-has-acl.sh: New file.
54785         * tests/test-file-has-acl.c: New file.
54786         * tests/test-set-mode-acl.sh: New file.
54787         * tests/test-set-mode-acl.c: New file.
54788         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54789         * tests/test-copy-acl.c: New file.
54790         * modules/acl-tests: New file, based on modules/copy-file-tests.
54791         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54792         (Depends-on): Add acl-tests.
54793         (configure.ac): Remove checks.
54794         (Makefile.am): Don't create test-sameacls program here any more.
54795
54796 2008-06-01  Bruno Haible  <bruno@clisp.org>
54797
54798         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54799         * tests/test-sameacls.c: Include progname.h.
54800         (main): Invoke set_program_name. Portability fixes for MacOS X,
54801         Solaris, HP-UX.
54802
54803 2008-06-01  Bruno Haible  <bruno@clisp.org>
54804
54805         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54806         function.
54807         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54808
54809 2008-06-01  Bruno Haible  <bruno@clisp.org>
54810
54811         * modules/rpmatch (Depends-on): Add strdup.
54812
54813 2008-06-01  Bruno Haible  <bruno@clisp.org>
54814
54815         * lib/pipe.c: Include unistd-safer.h.
54816         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54817         * modules/pipe (Depends-on): Add unistd-safer.
54818
54819 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54820
54821         * modules/autobuild (configure.ac): Call AB_INIT.
54822
54823 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54824
54825         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54826         Suggested by Bruno Haible <bruno@clisp.org>.
54827
54828 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54829
54830         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54831         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54832         <bruno@clisp.org>.
54833
54834 2008-05-29  Eric Blake  <ebb9@byu.net>
54835
54836         Prefer new POSIX 200x interfaces over futimesat.
54837         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54838         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54839         when available.
54840         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54841
54842 2008-05-28  Bruno Haible  <bruno@clisp.org>
54843
54844         * modules/stpcpy (License): Change to LGPLv2+.
54845         Requested by David Lutterkort <dlutter@redhat.com>.
54846
54847 2008-05-27  Bruno Haible  <bruno@clisp.org>
54848
54849         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54850         current mingw.
54851         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54852
54853 2008-05-27  Bruno Haible  <bruno@clisp.org>
54854
54855         * modules/iconv_open (Link): New section, from module 'iconv'.
54856         * modules/striconv (Link): Likewise.
54857         * modules/striconveh (Link): Likewise.
54858         * modules/xstriconv (Link): Likewise.
54859         * modules/unicodeio (Link): Likewise.
54860         * modules/propername (Link): Likewise.
54861         Reported by Jim Meyering.
54862
54863 2008-05-26  Jim Meyering  <meyering@redhat.com>
54864
54865         sha256: do not artificially restrict buffer length to be < 2^32
54866         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54867         uint32_t to size_t.
54868         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54869         to match.
54870
54871         avoid unaligned access errors, e.g., on sparc
54872         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54873         direct access through a possibly-unaligned uint64* pointer.
54874         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54875         direct access through a possibly-unaligned uint32* pointer.
54876         Prompted by this patch from Tom "spot" Callaway:
54877         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54878
54879         sha512.c: fix typo in comment
54880         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54881
54882 2008-05-25  Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54885         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54886         (Makefile.am): Update lib_SOURCES.
54887
54888 2008-05-25  Bruno Haible  <bruno@clisp.org>
54889
54890         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54891
54892 2008-05-25  Jim Meyering  <meyering@redhat.com>
54893
54894         useless-if-before-free: freed expr may have white-space differences
54895         * build-aux/useless-if-before-free: Recognize cases in which the
54896         freed expression differs from the tested one in embedded white
54897         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54898         $1 was used, so we can't make any regexp shy.  Improved tests now
54899         detect this.
54900
54901         useless-if-before-free: accept white space in the expression.
54902         * build-aux/useless-if-before-free: For now, any white space
54903         in the expression must be identical in the free argument.
54904
54905         useless-if-before-free: efficiency tweak
54906         * build-aux/useless-if-before-free: Make the expression-matching
54907         regexp "shy".
54908         Make the *outer* regexp shy, not the expr-matching one.
54909
54910         update code-in-comment to accept cast of free arg
54911         * build-aux/useless-if-before-free: Update regexp.
54912
54913 2008-05-25  Bruno Haible  <bruno@clisp.org>
54914
54915         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54916         * modules/copy-file-tests (Files, Makefile.am): Update.
54917         * tests/test-copy-file.c (func_test_copy): Update.
54918
54919 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54920
54921         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54922
54923 2008-05-23  Bruno Haible  <bruno@clisp.org>
54924
54925         Improve support for ACLs on OSF/1.
54926         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54927         Remove fallback for unknown flavors of ACLs.
54928
54929 2008-05-22  Bruno Haible  <bruno@clisp.org>
54930
54931         Add support for ACLs on OSF/1.
54932         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54933         replacements.
54934         (acl_free_text): New macro fallback.
54935         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54936         acl_free.
54937         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54938         acl_free_text function. Require AC_C_INLINE.
54939
54940 2008-05-22  Bruno Haible  <bruno@clisp.org>
54941
54942         Make copy_acl work on MacOS X 10.5.
54943         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54944         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54945         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54946         If MODE_INSIDE_ACL, don't assume that every system has the same text
54947         representation for ACLs as FreeBSD.
54948         * lib/copy-acl.c (copy_acl): Add support for platforms with
54949         !MODE_INSIDE_ACL.
54950         * lib/file-has-acl.c (file_has_acl): Likewise.
54951         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54952         FreeBSD, MacOS X, or IRIX, respectively.
54953
54954 2008-05-22  Bruno Haible  <bruno@clisp.org>
54955
54956         * lib/acl.h: Don't include <sys/acl.h>.
54957         (GETACLCNT): Move fallback to lib/acl-internal.h.
54958         * lib/acl-internal.h: Include <sys/acl.h> here.
54959         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54960
54961 2008-05-22  Bruno Haible  <bruno@clisp.org>
54962
54963         Split off copy_acl function to separate file.
54964         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54965         * lib/acl.c (copy_acl): Moved function to separate file.
54966         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54967         * modules/acl (Files): Add lib/copy-acl.c.
54968         (Makefiles.am): Augment lib_SOURCES.
54969
54970 2008-05-22  Bruno Haible  <bruno@clisp.org>
54971
54972         * modules/copy-file-tests: New file.
54973         * tests/test-copy-file.sh: New file.
54974         * tests/test-copy-file.c: New file.
54975         * tests/test-copy-file-sameacls.c: New file.
54976
54977 2008-05-22  Eric Blake  <ebb9@byu.net>
54978
54979         Avoid gcc warning.
54980         * tests/test-memcmp.c (main): Pass NULL indirectly.
54981
54982 2008-05-21  Bruno Haible  <bruno@clisp.org>
54983
54984         Add reference doc about ACLs.
54985         * doc/acl-resources.txt: New file.
54986         * doc/acl-cygwin.txt: New file.
54987
54988 2008-05-21  Bruno Haible  <bruno@clisp.org>
54989
54990         Avoid one more warning from gcc.
54991         * lib/vasnprintf.c (IF_LINT): Update comments.
54992         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54993
54994 2008-05-21  Jim Meyering  <meyering@redhat.com>
54995
54996         avoid a warning from gcc
54997         * lib/vasnprintf.c (IF_LINT): Define.
54998         (scale10_round_decimal_long_double):
54999         Use it to avoid a "may be used uninitialized" warning.
55000         (scale10_round_decimal_double): Likewise.
55001
55002 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55003
55004         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55005         declared.
55006
55007 2008-05-20  Bruno Haible  <bruno@clisp.org>
55008
55009         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55010         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55011
55012 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55013
55014         * modules/memcmp-tests: New file.
55015         * tests/test-memcmp.c: New file.
55016
55017 2008-05-19  Bruno Haible  <bruno@clisp.org>
55018
55019         * modules/propername (Notice, configure.ac): Put quoted "..." into
55020         --keyword option.
55021         * lib/propername.h: Update comments accordingly.
55022         Reported by Eric Blake.
55023
55024 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55025
55026         * modules/getpass-gnu (Depends-on): Add fseeko.
55027
55028 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55029
55030         * modules/base64-tests: New file.
55031
55032 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55033
55034         * lib/base64.c (base64_decode_ctx): If a decode context structure
55035         was passed in use it to ignore newlines.  If a context structure
55036         was _not_ passed in, continue to treat newlines as garbage (this
55037         is the historical behavior).  Formerly base64_decode.
55038         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55039         takes a decode context structure.
55040         * lib/base64.h (base64_decode): Macro for four-argument calls.
55041         (base64_decode_alloc): Likewise.
55042         * lib/base64.c (base64_decode_ctx): If a decode context structure
55043         was passed in use it to ignore newlines.  If a context structure
55044         was _not_ passed in, continue to treat newlines as garbage (this
55045         is the historical behavior).  Formerly base64_decode.
55046         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55047         takes a decode context structure.
55048         * lib/base64.h (base64_decode): Macro for four-argument calls.
55049         (base64_decode_alloc): Likewise.
55050
55051 2008-05-19  Jim Meyering  <meyering@redhat.com>
55052
55053         avoid a warning from gcc
55054         * lib/trim.c (IF_LINT): Define.
55055         (trim2): Use it to avoid a "may be used uninitialized" warning.
55056
55057         Fix doc typo.
55058         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55059
55060 2008-05-19  Bruno Haible  <bruno@clisp.org>
55061
55062         * doc/glibc-functions/getpass.texi: Document limits of other
55063         implementations.
55064
55065 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55066             Bruno Haible <bruno@clisp.org>
55067
55068         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55069
55070 2008-05-18  Bruno Haible  <bruno@clisp.org>
55071
55072         * modules/propername: New file, from GNU gettext.
55073         * lib/propername.h: New file, from GNU gettext.
55074         * lib/propername.c: New file, from GNU gettext.
55075         * MODULES.html.sh (Internationalization functions): Add propername.
55076
55077 2008-05-16  Jim Meyering  <meyering@redhat.com>
55078             Bruno Haible  <bruno@clisp.org>
55079
55080         Avoid some warnings from "gcc -Wshadow".
55081         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55082
55083 2008-05-15  Eric Blake  <ebb9@byu.net>
55084
55085         Extend previous patch to cygwin 1.7.0.
55086         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55087         fast implementation in cygwin >= 1.7.0.
55088         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55089         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55090
55091 2008-05-15  Bruno Haible  <bruno@clisp.org>
55092
55093         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55094         implementation in glibc >= 2.9.
55095         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55097
55098 2008-05-15  Bruno Haible  <bruno@clisp.org>
55099
55100         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55101         (Unicode string functions): Add unilbrk/*.
55102         Reported by Karl Berry.
55103
55104 2008-05-15  Eric Blake  <ebb9@byu.net>
55105
55106         Fix violation of <stdbool.h> replacement in regex.
55107         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55108         * lib/regexec.c (re_search_internal): Likewise.
55109         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55110
55111 2008-05-15  Jim Meyering  <meyering@redhat.com>
55112
55113         avoid distracting test output when git or cvs is not found
55114         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55115         * tests/test-vc-list-files-git.sh: Likewise.
55116
55117 2008-05-15  Eric Blake  <ebb9@byu.net>
55118
55119         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55120         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55121         glibc version.
55122         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55123         * doc/posix-functions/strstr.texi (strstr): Likewise.
55124         * lib/str-two-way.h (MAX): Sychronize with glibc.
55125
55126 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55127
55128         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55129         opr.ctx_type.
55130         (calc_first): Initialize constraint field.
55131         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55132         Fix grammar.
55133         (duplicate_node): Merge constraint field for all node types.
55134         (calc_eclosure_iter): Look at constraint field for all node types.
55135         * lib/regex_internal.c (create_cd_newstate): Don't look at
55136         opr.ctx_type.
55137
55138 2008-05-14  Bruno Haible  <bruno@clisp.org>
55139
55140         Help GCC to do better code generation.
55141         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55142         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55143         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55144         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55145         Declare with attribute 'malloc' if supported.
55146
55147 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55148
55149         use "echo STR|wc -c" rather than unportable "expr length STR"
55150         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55151         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55152
55153 2008-05-14  Jim Meyering  <meyering@redhat.com>
55154
55155         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55156         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55157         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55158         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55159         via Collin Lasse.
55160
55161 2008-05-14  Eric Blake  <ebb9@byu.net>
55162
55163         Avoid quadratic growth in gl_LIBSOURCES.
55164         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55165         Suggested by Bruno Haible.
55166
55167         Test xmemdup0.
55168         * modules/xmemdup0-tests: New file.
55169         * tests/test-xmemdup0.c: Likewise.
55170
55171 2008-05-13  Eric Blake  <ebb9@byu.net>
55172
55173         Split xmemdup0 into its own module.
55174         * modules/xmemdup0: New file.
55175         * lib/xmemdup0.h: Likewise.
55176         * lib/xmemdup0.c: Likewise.
55177         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55178         * lib/xalloc.h (xmemdup0): Remove.
55179         * lib/xmalloc.c (xmemdup0): Likewise.
55180
55181 2008-05-13  Eric Blake  <ebb9@byu.net>
55182             Bruno Haible  <bruno@clisp.org>
55183
55184         Reduce number of forks required during autoconf.
55185         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55186         and gl_LIBSOURCES_DIR.
55187         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55188         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55189         m4_syscmd per file.
55190         <m4_foreach_w>: Move...
55191         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55192
55193 2008-05-13  Eric Blake  <ebb9@byu.net>
55194
55195         * gnulib-tool: Fix various comment typos.
55196
55197 2008-05-12  Bruno Haible  <bruno@clisp.org>
55198
55199         Tailor the linebreaking algorithm.
55200         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55201
55202 2008-05-12  Bruno Haible  <bruno@clisp.org>
55203
55204         Update to Unicode 5.0.0.
55205         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55206         LBP_JV, LBP_JT. Redistribute values.
55207         (unilbrk_table): Change size.
55208         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55209         Unicode TR#14 rev. 22.
55210         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55211         LBP_JV, LBP_JT. Redistribute values.
55212         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55213         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55214         Update.
55215         * lib/unilbrk/lbrkprop1.h: Regenerated.
55216         * lib/unilbrk/lbrkprop2.h: Regenerated.
55217         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55218         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55219         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55220         Likewise.
55221         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55222         Likewise.
55223         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55224         result.
55225         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55226         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55227         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55228         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55229         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55230         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55231
55232 2008-05-11  Bruno Haible  <bruno@clisp.org>
55233
55234         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55235
55236 2008-05-11  Bruno Haible  <bruno@clisp.org>
55237
55238         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55239         * modules/unilbrk/gen-lbrk: New file.
55240
55241 2008-05-11  Bruno Haible  <bruno@clisp.org>
55242
55243         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55244         * m4/sha512.m4 (gl_SHA512): Likewise.
55245
55246 2008-05-11  Jim Meyering  <meyering@redhat.com>
55247
55248         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55249         * modules/crypto/sha256: New file.
55250         * modules/crypto/sha512: Likewise.
55251         * lib/sha256.c: Likewise.
55252         * lib/sha256.h: Likewise.
55253         * lib/sha512.c: Likewise.
55254         * lib/sha512.h: Likewise.
55255         * lib/u64.h: Likewise.
55256         * m4/sha256.m4: Likewise.
55257         * m4/sha512.m4: Likewise.
55258         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55259
55260 2008-05-10  Bruno Haible  <bruno@clisp.org>
55261
55262         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55263         (Input/Output <stdio.h>): Add xprintf.
55264         (Signal handling <signal.h>): Add strsignal.
55265         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55266         (Core language properties): Add func.
55267         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55268         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55269         strings.
55270         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55271         (Input/output): New section.
55272         (File system functions): Add openat-die, stat-macros.
55273         (Networking functions): Add sockets.
55274         (Unicode string functions): Add unictype/*.
55275         (Support for building libraries and executables): Add gperf.
55276         (Support for building documentation): Add agpl-3.0.
55277         (Misc): Add nocrash.
55278
55279 2008-05-10  Bruno Haible  <bruno@clisp.org>
55280
55281         * modules/unictype/gen-ctype: New file.
55282
55283 2008-05-10  Jim Meyering  <meyering@redhat.com>
55284
55285         Make chdir-safer.c more efficient on a system with no symlinks.
55286         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55287         also if ELOOP is zero.  Suggested by Bruno Haible.
55288
55289         Make chdir-safer.c slightly safer.
55290         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55291         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55292
55293         Avoid compile failure on systems without ELOOP (like mingw).
55294         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55295         Reported by Bruno Haible.
55296
55297 2008-05-10  Bruno Haible  <bruno@clisp.org>
55298
55299         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55300         (is_utf8_encoding): Use a case-insensitive comparison.
55301         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55302         streq.
55303
55304 2008-05-10  Bruno Haible  <bruno@clisp.org>
55305
55306         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55307         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55308         * lib/unilbrk/ulc-common.h (iconv_string_length,
55309         iconv_string_keeping_offsets): Remove declarations.
55310         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55311         Don't include <iconv.h>, streq.h, xsize.h.
55312         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55313         conversion.
55314         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55315         <iconv.h>, streq.h, xsize.h.
55316         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55317         conversion.
55318         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55319         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55320         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55321         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55322
55323 2008-05-10  Bruno Haible  <bruno@clisp.org>
55324
55325         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55326         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55327
55328         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55329         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55330
55331         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55332         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55333
55334         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55335         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55336
55337         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55338         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55339
55340         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55341         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55342
55343         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55344         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55345
55346         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55347         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55348
55349 2008-05-10  Bruno Haible  <bruno@clisp.org>
55350
55351         Split up 'linebreak' module.
55352         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55353         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55354         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55355         modifications.
55356         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55357         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55358         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55359         lib/linebreak.c.
55360         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55361         lib/linebreak.c.
55362         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55363         lib/linebreak.c.
55364         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55365         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55366         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55367         lib/linebreak.c.
55368         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55369         lib/linebreak.c.
55370         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55371         lib/linebreak.c.
55372         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55373         lib/linebreak.c.
55374         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55375         lib/linebreak.c.
55376         * modules/unilbrk/base: New file.
55377         * modules/unilbrk/tables: New file.
55378         * modules/unilbrk/u8-possible-linebreaks: New file.
55379         * modules/unilbrk/u16-possible-linebreaks: New file.
55380         * modules/unilbrk/u32-possible-linebreaks: New file.
55381         * modules/unilbrk/ulc-common: New file.
55382         * modules/unilbrk/ulc-possible-linebreaks: New file.
55383         * modules/unilbrk/u8-width-linebreaks: New file.
55384         * modules/unilbrk/u16-width-linebreaks: New file.
55385         * modules/unilbrk/u32-width-linebreaks: New file.
55386         * modules/unilbrk/ulc-width-linebreaks: New file.
55387         * lib/linebreak.h: Remove file.
55388         * lib/linebreak.c: Remove file.
55389         * m4/linebreak.m4: Remove file.
55390         * modules/linebreak: Remove file.
55391         * NEWS: Mention the changes.
55392
55393 2008-05-09  Eric Blake  <ebb9@byu.net>
55394
55395         Add xmemdup0.
55396         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55397         implementation.
55398         * lib/xmalloc.c (xmemdup0): New C implementation.
55399
55400 2008-05-08  Bruno Haible  <bruno@clisp.org>
55401
55402         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55403
55404 2008-05-07  Eric Blake  <ebb9@byu.net>
55405
55406         Support cross-compilation of <wctype.h>.
55407         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55408         AC_CACHE_CHECK.
55409
55410 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55411
55412         * build-aux/vc-list-files: Add support for bzr.
55413
55414 2008-05-03  Jim Meyering  <meyering@redhat.com>
55415
55416         avoid failed assertion with tight malloc
55417         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55418
55419 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55420
55421         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55422         are needed from arpa/inet.h.
55423         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55424         Reported by Bruno Haible.
55425
55426 2008-05-02  Jim Meyering  <meyering@redhat.com>
55427
55428         avoid compilation error on FreeBSD 6
55429         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55430
55431 2008-05-01  Jim Meyering  <meyering@redhat.com>
55432
55433         useless-if-before-free: correct --help's exit status description
55434         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55435         for one or more matches, etc.  Reported by Bruno Haible.
55436
55437         vc-list-files: make the stand-alone gnulib test work
55438         * modules/vc-list-files-tests (configure.ac):
55439         Define and AC_SUBST abs_aux_dir.
55440         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55441         $(abs_top_srcdir) to each script and having each of them
55442         duplicate the work of setting PATH, set PATH here, using
55443         the new variable, abs_aux_dir instead.
55444         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55445         * tests/test-vc-list-files-git.sh: Likewise.
55446         Reported by Bruno Haible.
55447
55448 2008-05-01  Bruno Haible  <bruno@clisp.org>
55449
55450         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55451         reallocation. Rename 'done' to 'found_delimiter'.
55452
55453 2008-05-01  Jim Meyering  <meyering@redhat.com>
55454
55455         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55456         * build-aux/vc-list-files: Use `...`, not $(...).
55457
55458 2008-04-30  Jim Meyering  <meyering@redhat.com>
55459
55460         add tests for vc-list-files
55461         * modules/vc-list-files-tests: New module.
55462         * tests/test-vc-list-files-cvs.sh: New file.
55463         * tests/test-vc-list-files-git.sh: New file.
55464
55465         avoid a warning from gcc
55466         * lib/getndelim2.c (IF_LINT): Define.
55467         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55468
55469         vc-list-files: work properly with build-aux/cvsu, too
55470         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55471         to all cvs-based clauses.
55472
55473         vc-list-files: work properly in the CVS+awk case, too
55474         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55475
55476         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55477         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55478         take more than one file argument, so .  Add quotes, just in case $dir
55479         ever contains a shell meta-character.  Prompted by Soren Hansen in
55480         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55481
55482 2008-04-29  Eric Blake  <ebb9@byu.net>
55483
55484         Optimize getndelim2 to use block operations when possible.
55485         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55486         freadseek, and memchr2.
55487         * lib/getndelim2.c (getndelim2): Use them for block reads.
55488
55489 2008-04-29  Bruno Haible  <bruno@clisp.org>
55490
55491         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55492         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55493         * modules/inet_ntop (Depends-on): Add extensions.
55494         * modules/inet_pton (Depends-on): Likewise.
55495         Reported by Simon Josefsson.
55496
55497 2008-04-29  Jim Meyering  <meyering@redhat.com>
55498
55499         When the is more than one match in a block, match all of them.
55500         * build-aux/useless-if-before-free: Iterate through each block
55501         until there are no more matches.
55502
55503         Fix broken useless-if-before-free script.
55504         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55505         the expression to match cast of argument to free-like function.
55506
55507 2008-04-29  Eric Blake  <ebb9@byu.net>
55508
55509         Use new header.
55510         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55511
55512 2008-04-29  Jim Meyering  <meyering@redhat.com>
55513
55514         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55515         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55516         by gnulib to exist and to declare e.g., inet_ntop.
55517         Don't include "inet_ntop.h", now removed.
55518
55519         * m4/arpa_inet_h.m4: Remove trailing blanks.
55520
55521 2008-04-29  Eric Blake  <ebb9@byu.net>
55522
55523         Silence valgrind on safe reads beyond potential array bounds.
55524         * lib/rawmemchr.valgrind: New file.
55525         * lib/strchrnul.valgrind: Likewise.
55526         * modules/rawmemchr (Files): Distribute new file.
55527         * modules/strchrnul (Files): Likewise.
55528         Suggested by Bruno Haible.
55529
55530 2008-04-29  Bruno Haible  <bruno@clisp.org>
55531
55532         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55533         (inet_ntop, inet_pton): Change portability warning's wording.
55534         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55535         Invoke gl_CHECK_NEXT_HEADERS.
55536         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55537         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55538         set ARPA_INET_H.
55539         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55540         * modules/arpa_inet (Description): No longer only for systems that
55541         lack it.
55542         (Depends-on): Add include_next.
55543         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55544         HAVE_ARPA_INET_H.
55545
55546 2008-04-29  Jim Meyering  <meyering@redhat.com>
55547
55548         * modules/mkdir (License): Re-license as LGPLv2+.
55549
55550 2008-04-29  Bruno Haible  <bruno@clisp.org>
55551
55552         * modules/rawmemchr (Maintainer): Set to Eric.
55553         * modules/strchrnul (Maintainer): Likewise.
55554
55555 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55556
55557         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55558         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55559
55560         * modules/arpa_inet (arpa/inet.h): Use them.
55561
55562 2008-04-28  Eric Blake  <ebb9@byu.net>
55563
55564         Test getndelim2.
55565         * modules/getndelim2-tests: New file.
55566         * tests/test-getndelim2.c: Likewise.
55567         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55568         stream.
55569         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55570
55571         * MODULES.html.sh: Document new module.
55572
55573 2008-04-20  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/c-stack.c (die): Use raise.
55576         * modules/c-stack (Depends-on): Add raise.
55577
55578 2008-04-28  Bruno Haible  <bruno@clisp.org>
55579
55580         Expect rpmatch to be declared.
55581         * lib/yesno.c (rpmatch): Remove declaration.
55582
55583         Declare rpmatch.
55584         * lib/stdlib.in.h (rpmatch): New declaration.
55585         * lib/rpmatch.c: Include <stdlib.h> first.
55586         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55587         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55589         HAVE_RPMATCH.
55590         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55591         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55592         (Include): Set to <stdlib.h>.
55593         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55594         HAVE_RPMATCH.
55595         * NEWS: Document the change.
55596
55597 2008-04-28  Bruno Haible  <bruno@clisp.org>
55598
55599         Change rpmatch to use nl_langinfo when appropriate.
55600         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55601         (N_): New macro.
55602         (localized_pattern): New function/macro.
55603         (try): Remove match, nomatch arguments. Copy the pattern into safe
55604         memory before caching it.
55605         (rpmatch): Use localized_pattern. Add translator comments.
55606         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55607         Suggested by Eric Blake.
55608         * modules/rpmatch (Depends-on): Add stdbool.
55609
55610 2008-04-28  Eric Blake  <ebb9@byu.net>
55611
55612         Add rawmemchr module, matching glibc.
55613         * modules/string (Makefile.am): New indicator.
55614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55615         * lib/string.in.h (rawmemchr): Declare when appropriate.
55616         * modules/rawmemchr: New file.
55617         * m4/rawmemchr.m4: Likewise.
55618         * lib/rawmemchr.c: Likewise.
55619         * modules/rawmemchr-tests: Likewise.
55620         * tests/test-rawmemchr.c: Likewise.
55621         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55622         module.
55623         * modules/strchrnul (Depends-on): Add rawmemchr.
55624         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55625
55626         Whitespace cleanup.
55627         * tests/test-strchrnul.c: Reindent.
55628         * lib/strchrnul.c: Likewise.
55629
55630         Optimize and test strchrnul.
55631         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55632         * modules/strchrnul-tests: New file.
55633         * tests/test-strchrnul.c: Likewise.
55634
55635         Remove intprops dependency.
55636         * modules/memchr (Depends-on): Remove intprops.
55637         * modules/memrchr (Depends-on): Likewise.
55638         * modules/memchr2 (Depends-on): Likewise.
55639         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55640         * lib/memrchr.c (__memrchr): Likewise.
55641         * lib/memrchr2.c (memchr2): Likewise.
55642         Reported by Simon Josefsson.
55643
55644 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55645
55646         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55647         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55648
55649 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55650
55651         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55652
55653         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55654
55655         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55656
55657         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55658         declarations.
55659         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55660
55661         * m4/inet_pton.m4: Don't check for header files.
55662
55663         * m4/inet_ntop.m4: Don't check for header files.
55664
55665 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55666
55667         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55668         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55669         trigger for cygwin).
55670         Reported by Bruno Haible  <bruno@clisp.org>.
55671
55672 2008-04-28  Bruno Haible  <bruno@clisp.org>
55673
55674         * doc/posix-functions/strdup.texi: Mention mingw problem.
55675
55676 2008-04-27  Bruno Haible  <bruno@clisp.org>
55677
55678         * modules/stat-time-tests (Depends-on): Add sleep.
55679         * tests/test-stat-time.c (force_unlink): New function.
55680         (cleanup): Use it.
55681         (test_mtime): Remove the ctime related tests.
55682         (test_ctime): New function, containing the ctime related tests.
55683         (main): Call test_ctime, except on native Windows platforms.
55684
55685 2008-04-27  Bruno Haible  <bruno@clisp.org>
55686
55687         * lib/rpmatch.c (rpmatch): Add some comments.
55688         Reported by James Youngman <jay@gnu.org>.
55689
55690 2008-04-27  Bruno Haible  <bruno@clisp.org>
55691
55692         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55693         quiet NaNs.
55694
55695 2008-04-27  Bruno Haible  <bruno@clisp.org>
55696
55697         Make test-yesno.sh work on mingw.
55698         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55699         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55700         (main): Set stdin to binary mode.
55701         * modules/yesno-tests (Depends-on): Add binary-io.
55702
55703 2008-04-27  Bruno Haible  <bruno@clisp.org>
55704
55705         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55706         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55707         argument that lie outside the IEEE 854 domain.
55708         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55709         (gl_ISFINITE): Use it.
55710         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55711
55712 2008-04-27  Bruno Haible  <bruno@clisp.org>
55713
55714         Allow local renaming in config.h.
55715         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55716
55717 2008-04-27  Bruno Haible  <bruno@clisp.org>
55718
55719         * lib/memchr.c (__memchr): Change type of 'i'.
55720         * lib/memchr2.c (memchr2): Likewise.
55721
55722 2008-04-26  Eric Blake  <ebb9@byu.net>
55723         and Bruno Haible  <bruno@clisp.org>
55724
55725         Optimize and test memrchr.
55726         * modules/memrchr (Depends-on): Add intprops.
55727         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55728         * modules/memrchr-tests: New file.
55729         * tests/test-memrchr.c: New file.
55730
55731 2008-04-26  Bruno Haible  <bruno@clisp.org>
55732
55733         Add tentative support for DragonFly BSD.
55734         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55735         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55736         fp.
55737         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55738         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55739         * lib/fpurge.c (fpurge): Likewise.
55740         * lib/freadable.c (freaadable): Likewise.
55741         * lib/freadahead.c (freadahead): Likewise.
55742         * lib/freading.c (freading): Likewise.
55743         * lib/freadptr.c (freadptr): Likewise.
55744         * lib/freadseek.c (freadptrinc): Likewise.
55745         * lib/fseeko.c (fseeko): Likewise.
55746         * lib/fseterr.c (fseterr): Likewise.
55747         * lib/fwritable.c (fwritable): Likewise.
55748         * lib/fwriting.c (fwriting): Likewise.
55749
55750 2008-04-26  Bruno Haible  <bruno@clisp.org>
55751
55752         * lib/stdio-impl.h: New file.
55753         * lib/fbufmode.c: Include stdio-impl.h.
55754         (fbufmode): Use fp_, remove redundant #defines.
55755         * lib/fflush.c: Include stdio-impl.h.
55756         (clear_ungetc_buffer): Remove redundant #defines.
55757         * lib/fpurge.c: Include stdio-impl.h.
55758         (fpurge): Remove redundant #defines.
55759         * lib/freadable.c: Include stdio-impl.h.
55760         (freadable): Remove redundant #defines.
55761         * lib/freadahead.c: Include stdio-impl.h.
55762         (freadahead): Remove redundant #defines.
55763         * lib/freading.c: Include stdio-impl.h.
55764         (freading): Remove redundant #defines.
55765         * lib/freadptr.c: Include stdio-impl.h.
55766         (freadptr): Remove redundant #defines.
55767         * lib/freadseek.c: Include stdio-impl.h.
55768         (freadptrinc): Remove redundant #defines.
55769         * lib/fseeko.c: Include stdio-impl.h.
55770         (rpl_fseeko): Remove redundant #defines.
55771         * lib/fseterr.c: Include stdio-impl.h.
55772         (fseterr): Remove redundant #defines.
55773         * lib/fwritable.c: Include stdio-impl.h.
55774         (fwritable: Remove redundant #defines.
55775         * lib/fwriting.c: Include stdio-impl.h.
55776         (fwriting): Remove redundant #defines.
55777         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55778         * modules/fflush (Files): Likewise.
55779         * modules/fpurge (Files): Likewise.
55780         * modules/freadable (Files): Likewise.
55781         * modules/freadahead (Files): Likewise.
55782         * modules/freading (Files): Likewise.
55783         * modules/freadptr (Files): Likewise.
55784         * modules/freadseek (Files): Likewise.
55785         * modules/fseeko (Files): Likewise.
55786         * modules/fseterr (Files): Likewise.
55787         * modules/fwritable (Files): Likewise.
55788         * modules/fwriting (Files): Likewise.
55789
55790 2008-04-26  Bruno Haible  <bruno@clisp.org>
55791
55792         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55793         restore_seek_optimization, update_fpos_cache): New functions, extracted
55794         from rpl_fflush.
55795         (rpl_fflush): Use them.
55796         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55797         (gl_REPLACE_FFLUSH): Use it.
55798
55799 2008-04-26  Bruno Haible  <bruno@clisp.org>
55800
55801         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55802         on Solaris.
55803         * tests/test-xstrtoimax.sh: Likewise.
55804         * tests/test-xstrtoumax.sh: Likewise.
55805         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55806
55807 2008-04-26  Bruno Haible  <bruno@clisp.org>
55808
55809         * modules/memchr-tests: New file.
55810         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55811
55812 2008-04-26  Eric Blake  <ebb9@byu.net>
55813             Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/memchr.c: Include intprops.h.
55816         (__memchr): Optimize parallel detection of matching bytes. Rename local
55817         variables. Add explanatory comments.
55818
55819 2008-04-26  Bruno Haible  <bruno@clisp.org>
55820
55821         Fix module 'memchr', broken since 2000-10-28.
55822         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55823
55824 2008-04-26  Bruno Haible  <bruno@clisp.org>
55825
55826         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55827         comments.
55828
55829 2008-04-25  Eric Blake  <ebb9@byu.net>
55830
55831         Use native fstatat on cygwin 1.7.0.
55832         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55833         first.
55834
55835 2008-04-23  Eric Blake  <ebb9@byu.net>
55836
55837         Improve memchr2 performance.
55838         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55839         NUL bytes.
55840         * modules/memchr2 (Depends-on): Use intprops.h.
55841
55842 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55843
55844         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55845         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55846         <blp@cs.stanford.edu>.
55847
55848 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55849
55850         * lib/arpa_inet.in.h: New file.
55851
55852         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55853         (Makefile.am): Sed in substitute header file.
55854
55855         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55856         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55857
55858         * modules/inet_ntop (configure.ac): Use
55859         gl_ARPA_INET_MODULE_INDICATOR.
55860
55861         * modules/inet_pton (configure.ac): Use
55862         gl_ARPA_INET_MODULE_INDICATOR.
55863
55864 2008-04-22  Jim Meyering  <meyering@redhat.com>
55865
55866         * modules/verify (License): Re-license as LGPLv2+.
55867
55868 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55869
55870         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55871         parameter to void* as per POSIX standard (MinGW uses char*).
55872
55873 2008-04-21  Bruno Haible  <bruno@clisp.org>
55874
55875         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55876         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55877         Define to replacements if REPLACE_ISWCNTRL is 1.
55878         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55879         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55880         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55881         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55882         what it fixes.
55883         * doc/posix-functions/iswalpha.texi: Likewise.
55884         * doc/posix-functions/iswblank.texi: Likewise.
55885         * doc/posix-functions/iswcntrl.texi: Likewise.
55886         * doc/posix-functions/iswdigit.texi: Likewise.
55887         * doc/posix-functions/iswgraph.texi: Likewise.
55888         * doc/posix-functions/iswlower.texi: Likewise.
55889         * doc/posix-functions/iswprint.texi: Likewise.
55890         * doc/posix-functions/iswpunct.texi: Likewise.
55891         * doc/posix-functions/iswspace.texi: Likewise.
55892         * doc/posix-functions/iswupper.texi: Likewise.
55893         * doc/posix-functions/iswxdigit.texi: Likewise.
55894         Reported by Alain Guibert.
55895
55896 2008-04-21  Bruno Haible  <bruno@clisp.org>
55897
55898         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55899         Patch by Alain Guibert.
55900
55901 2008-04-21  Bruno Haible  <bruno@clisp.org>
55902
55903         Fix test failures on mingw.
55904         * tests/test-xstrtol.c (print_no_progname): New function.
55905         (main): Install it in error_print_progname hook.
55906         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55907         * tests/test-xstrtoimax.sh: Likewise.
55908         * tests/test-xstrtoumax.sh: Likewise.
55909
55910 2008-04-21  Bruno Haible  <bruno@clisp.org>
55911
55912         Fix test failure on mingw.
55913         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55914
55915 2008-04-21  Bruno Haible  <bruno@clisp.org>
55916
55917         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55918         Actually assign a value.
55919
55920 2008-04-20  Bruno Haible  <bruno@clisp.org>
55921
55922         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55923         take 2.
55924         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55925         'canonicalize-lgpl' module is also used.
55926         * lib/canonicalize-lgpl.c: Undo last change.
55927         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55928
55929 2008-04-20  Bruno Haible  <bruno@clisp.org>
55930
55931         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55932         config.h. Provide _mkdir based fallback for mingw.
55933         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55934         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55935         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55936         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55937         rather than defining mkdir in config.h.
55938         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55939         (gl_SYS_STAT_H_DEFAULTS): New macro.
55940         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55941         HAVE_IO_H any more.
55942         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55943         HAVE_DECL_MKDIR and HAVE_IO_H.
55944
55945 2008-04-20  Bruno Haible  <bruno@clisp.org>
55946
55947         * lib/isapipe.c: Port to native Windows platforms.
55948
55949 2008-04-20  Bruno Haible  <bruno@clisp.org>
55950
55951         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55952
55953 2008-04-21  Eric Blake  <ebb9@byu.net>
55954
55955         Work around preprocessors that don't handle UINTMAX_MAX.
55956         * lib/memchr2.c (memchr2): Avoid embedded #if.
55957         Reported by Alain Guibert, fix suggested by Bruno Haible.
55958
55959 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55960
55961         * doc/posix-functions/strftime.texi (strftime): Explain better
55962         Windows incompatibility.  Suggested by Micah Cowan
55963         <micah@cowan.name>.
55964
55965 2008-04-20  Bruno Haible  <bruno@clisp.org>
55966
55967         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55968         unistr/u8-mblen.
55969
55970 2008-04-20  Bruno Haible  <bruno@clisp.org>
55971
55972         Fix test failure on platforms with non-GNU iconv.
55973         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55974         (U_TO_U8): Use it, rather than u16_to_u8.
55975         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55976         units at the end of the input string.
55977         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55978
55979 2008-04-20  Bruno Haible  <bruno@clisp.org>
55980
55981         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55982         when the resulting length is 0.
55983         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55984
55985 2008-04-20  Bruno Haible  <bruno@clisp.org>
55986
55987         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55988         works.
55989         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55990
55991 2008-04-20  Bruno Haible  <bruno@clisp.org>
55992
55993         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55994         * modules/tsearch-tests (configure.ac): Test for initstate function.
55995
55996 2008-04-20  Bruno Haible  <bruno@clisp.org>
55997
55998         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55999         for nlink_t if missing.
56000         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56001
56002 2008-04-19  Bruno Haible  <bruno@clisp.org>
56003
56004         Work around snprintf bug on Linux libc5.
56005         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56006         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56007         gl_SNPRINTF_SIZE1.
56008         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56009         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56010         that test failed.
56011         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56012         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56013         * modules/snprintf (Files): Add m4/printf.m4.
56014         * modules/vsnprintf (Files): Likewise.
56015         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56016         * doc/posix-functions/vsnprintf.texi: Likewise.
56017
56018 2008-04-19  Bruno Haible  <bruno@clisp.org>
56019
56020         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56021         from 0.0058 to less than 10^-7.
56022
56023 2008-04-19  Bruno Haible  <bruno@clisp.org>
56024
56025         Fix rounding when a precision is given.
56026         * lib/vasnprintf.c (is_borderline): New function.
56027         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56028         9...9x.
56029         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56030         %e, %g.
56031         * tests/test-vasprintf-posix.c (test_function): Likewise.
56032         * tests/test-snprintf-posix.h (test_function): Likewise.
56033         * tests/test-sprintf-posix.h (test_function): Likewise.
56034         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56035         * tests/test-printf-posix.h (test_function): Likewise.
56036         * tests/test-printf-posix.output: Update.
56037         Reported by John Darrington <john@darrington.wattle.id.au> via
56038         Ben Pfaff <blp@cs.stanford.edu>.
56039
56040 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56041
56042         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56043         Suggested by Bruno Haible <bruno@clisp.org>.
56044
56045 2008-04-17  Bruno Haible  <bruno@clisp.org>
56046
56047         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56048         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56049         implementation.
56050         Patch by Bruce Merry <bmerry@gmail.com>.
56051
56052 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56053
56054         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56055         doesn't work under Windows.
56056
56057 2008-04-16  Bruno Haible  <bruno@clisp.org>
56058
56059         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56060         New macros.
56061         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56062         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56063         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56064         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56065         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56066         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56067         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56068         macros.
56069         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56070         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56071         Northern Sotho, Uighur.
56072
56073 2008-04-16  Bruno Haible  <bruno@clisp.org>
56074
56075         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56076         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56077         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56078         Reported by Daniel Bergström <daniel@octocode.com>.
56079
56080 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56081             Bruno Haible  <bruno@clisp.org>
56082
56083         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56084         function.
56085         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56086         New functions, mostly extracted from gl_locale_name_default.
56087         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56088
56089 2008-04-16  Eric Blake  <ebb9@byu.net>
56090
56091         Adjust strtod detection to catch glibc 2.7 bug.
56092         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56093         Reported by John Gatewood Ham.
56094
56095 2008-04-16  Bruno Haible  <bruno@clisp.org>
56096
56097         Add tentative support for Linux libc5.
56098         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56099         * lib/fpurge.c (fpurge): Likewise.
56100         * lib/freadable.c (freadable): Likewise.
56101         * lib/freadahead.c (freadahead): Likewise.
56102         * lib/freading.c (freading): Likewise.
56103         * lib/freadptr.c (freadptr): Likewise.
56104         * lib/freadseek.c (freadptrinc): Likewise.
56105         * lib/fseeko.c (rpl_fseeko): Likewise.
56106         * lib/fseterr.c (fseterr): Likewise.
56107         * lib/fwritable.c (fwritable): Likewise.
56108         * lib/fwriting.c (fwriting): Likewise.
56109         Reported by Alain Guibert <alguibert+bts@free.fr>.
56110
56111 2008-04-15  Bruno Haible  <bruno@clisp.org>
56112
56113         * modules/mathl (configure.ac): Define module indicator.
56114
56115 2008-04-15  Bruno Haible  <bruno@clisp.org>
56116
56117         * lib/logl.c (logl): Remove unused variables.
56118
56119 2008-04-15  Bruno Haible  <bruno@clisp.org>
56120
56121         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56122         fails.
56123
56124 2008-04-15  Bruno Haible  <bruno@clisp.org>
56125
56126         * lib/trim.c (trim2): Fix argument of isspace() macro.
56127
56128 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56129
56130         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56131         to 0.
56132         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56133
56134 2008-04-14  Bruno Haible  <bruno@clisp.org>
56135
56136         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56137         AC_LANG_PROGRAM argument.
56138         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56139         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56141         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56142         * m4/math_h.m4 (gl_MATH_H): Likewise.
56143         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56144         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56145         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56146         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56147         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56148         * m4/regex.m4 (gl_REGEX): Likewise.
56149         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56150         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56151         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56152         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56153         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56154         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56155         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56156         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56157
56158 2008-04-14  Jim Meyering  <meyering@redhat.com>
56159
56160         test-strtod: fix typos: s/abs/fabs/
56161         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56162
56163 2008-04-13  Bruno Haible  <bruno@clisp.org>
56164
56165         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56166         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56167         module is also used and while not building the reloc-wrapper.
56168
56169 2008-04-13  Bruno Haible  <bruno@clisp.org>
56170
56171         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56172
56173 2008-04-13  Bruno Haible  <bruno@clisp.org>
56174
56175         Fix AIX compilation failure introduced on 2008-04-02.
56176         * tests/test-frexp.c (exp): Undefine before redefining.
56177         * tests/test-frexpl.c (exp): Likewise.
56178
56179 2008-04-13  Bruno Haible  <bruno@clisp.org>
56180
56181         Work around a HP-UX stdio bug.
56182         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56183         * tests/test-ftello.c (main): Likewise.
56184         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56185         * doc/posix-functions/ftello.texi: Likewise.
56186
56187 2008-04-13  Bruno Haible  <bruno@clisp.org>
56188
56189         Make test-signbit pass on HP-UX/hppa.
56190         * tests/test-signbit.c (minus_zerol): New variable.
56191         (test_signbitl): Use it.
56192
56193 2008-04-13  Bruno Haible  <bruno@clisp.org>
56194
56195         Make truncl work on OSF/1 4.0.
56196         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56197         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56198         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56200         HAVE_DECL_TRUNCL.
56201         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56202         HAVE_DECL_TRUNCL.
56203         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56204
56205 2008-04-13  Bruno Haible  <bruno@clisp.org>
56206
56207         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56208
56209 2008-04-13  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56212         expression, so as to avoid HP-UX 11 cc compiler bug.
56213
56214 2008-04-13  Bruno Haible  <bruno@clisp.org>
56215
56216         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56217
56218 2008-04-13  Bruno Haible  <bruno@clisp.org>
56219
56220         * lib/git-merge-changelog.c: Remove empty declaration outside of
56221         functions.
56222
56223 2008-04-13  Bruno Haible  <bruno@clisp.org>
56224
56225         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56226
56227 2008-04-13  Bruno Haible  <bruno@clisp.org>
56228
56229         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56230         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56231         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56232         also if it exists but lacks definitions of the SHUT_* macros.
56233         * modules/sys_socket (Description): Update.
56234         Reported by Elbert Pol <e.pol@chello.nl>.
56235
56236 2008-04-13  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/localcharset.c (OS2): Don't redefine if already defined.
56239         Reported by Elbert Pol <e.pol@chello.nl>.
56240
56241 2008-04-13  Bruno Haible  <bruno@clisp.org>
56242
56243         * lib/binary-io.h [__EMX__]: Include <io.h>.
56244         Reported by Elbert Pol <e.pol@chello.nl>.
56245
56246 2008-04-12  Bruno Haible  <bruno@clisp.org>
56247
56248         * lib/fpucw.h: Enable the definitions also for x86_64.
56249         Needed for NetBSD/x86_64.
56250         Reported by Thomas Klausner <tk@giga.or.at>.
56251
56252 2008-04-12  Bruno Haible  <bruno@clisp.org>
56253
56254         * tests/test-strtod.c: Include isnand.h.
56255         (main): Use isnand instead of isnan.
56256         Reported by Jim Meyering.
56257
56258 2008-04-12  Bruno Haible  <bruno@clisp.org>
56259
56260         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56261         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56262
56263 2008-04-12  Jim Meyering  <meyering@redhat.com>
56264
56265         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56266
56267 2008-04-12  Bruno Haible  <bruno@clisp.org>
56268
56269         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56270         Reported by Elbert Pol <e.pol@chello.nl>.
56271
56272 2008-04-12  Eric Blake  <ebb9@byu.net>
56273
56274         Work around Solaris 10 math.h bug.
56275         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56276         (gl_MATH_H_DEFAULTS): Set up default.
56277         * modules/math (Makefile.am): Replace new indicators.
56278         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56279         * tests/test-math.c (main): Test this.
56280         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56281         * doc/posix-headers/math.texi (math.h): Mention bug.
56282         Reported by Nelson H. F. Beebe and Jim Meyering.
56283
56284 2008-04-11  Bruno Haible  <bruno@clisp.org>
56285
56286         Adapt to future versions of Apple GCC.
56287         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56288         Reported by Peter O'Gorman <peter@pogma.com>.
56289
56290 2008-04-11  Bruno Haible  <bruno@clisp.org>
56291
56292         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56293
56294 2008-04-11  Bruno Haible  <bruno@clisp.org>
56295
56296         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56297
56298         * modules/getaddrinfo-tests (Makefile.am): Define
56299         test_getaddrinfo_LDADD.
56300
56301 2008-04-11  Bruno Haible  <bruno@clisp.org>
56302
56303         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56304         (init): Fix syntax error.
56305         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56306         is declared.
56307
56308 2008-04-11  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56311         * modules/glob (Depends-on): Add stdbool.
56312
56313 2008-04-11  Bruno Haible  <bruno@clisp.org>
56314
56315         * lib/trim.c: Include <string.h>.
56316
56317 2008-04-11  Eric Blake  <ebb9@byu.net>
56318
56319         Avoid compile failure on OS/2.
56320         * lib/regex_internal.h (internal_function): Disable optimization
56321         on OS/2 (__EMX__), where it caused compiler error.
56322         Reported by Elbert Pol.
56323
56324 2008-04-11  Bruno Haible  <bruno@clisp.org>
56325
56326         Flush the standard error stream before aborting. Needed on mingw.
56327         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56328         * tests/test-array_list.c (ASSERT): Likewise.
56329         * tests/test-array_oset.c (ASSERT): Likewise.
56330         * tests/test-avltree_list.c (ASSERT): Likewise.
56331         * tests/test-avltree_oset.c (ASSERT): Likewise.
56332         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56333         * tests/test-binary-io.c (ASSERT): Likewise.
56334         * tests/test-byteswap.c (ASSERT): Likewise.
56335         * tests/test-c-ctype.c (ASSERT): Likewise.
56336         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56337         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56338         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56339         * tests/test-c-strstr.c (ASSERT): Likewise.
56340         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56341         * tests/test-canonicalize.c (ASSERT): Likewise.
56342         * tests/test-carray_list.c (ASSERT): Likewise.
56343         * tests/test-ceilf1.c (ASSERT): Likewise.
56344         * tests/test-ceilf2.c (ASSERT): Likewise.
56345         * tests/test-ceill.c (ASSERT): Likewise.
56346         * tests/test-count-one-bits.c (ASSERT): Likewise.
56347         * tests/test-fbufmode.c (ASSERT): Likewise.
56348         * tests/test-fflush2.c (ASSERT): Likewise.
56349         * tests/test-floorf1.c (ASSERT): Likewise.
56350         * tests/test-floorf2.c (ASSERT): Likewise.
56351         * tests/test-floorl.c (ASSERT): Likewise.
56352         * tests/test-fopen.c (ASSERT): Likewise.
56353         * tests/test-fpending.c (ASSERT): Likewise.
56354         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56355         * tests/test-fpurge.c (ASSERT): Likewise.
56356         * tests/test-freadable.c (ASSERT): Likewise.
56357         * tests/test-freadahead.c (ASSERT): Likewise.
56358         * tests/test-freading.c (ASSERT): Likewise.
56359         * tests/test-freadptr.c (ASSERT): Likewise.
56360         * tests/test-freadptr2.c (ASSERT): Likewise.
56361         * tests/test-freadseek.c (ASSERT): Likewise.
56362         * tests/test-freopen.c (ASSERT): Likewise.
56363         * tests/test-frexp.c (ASSERT): Likewise.
56364         * tests/test-frexpl.c (ASSERT): Likewise.
56365         * tests/test-fseek.c (ASSERT): Likewise.
56366         * tests/test-fseeko.c (ASSERT): Likewise.
56367         * tests/test-fstrcmp.c (ASSERT): Likewise.
56368         * tests/test-ftell.c (ASSERT): Likewise.
56369         * tests/test-ftello.c (ASSERT): Likewise.
56370         * tests/test-func.c (ASSERT): Likewise.
56371         * tests/test-fwritable.c (ASSERT): Likewise.
56372         * tests/test-fwriting.c (ASSERT): Likewise.
56373         * tests/test-getdelim.c (ASSERT): Likewise.
56374         * tests/test-getline.c (ASSERT): Likewise.
56375         * tests/test-i-ring.c (ASSERT): Likewise.
56376         * tests/test-iconv-utf.c (ASSERT): Likewise.
56377         * tests/test-iconv.c (ASSERT): Likewise.
56378         * tests/test-isfinite.c (ASSERT): Likewise.
56379         * tests/test-isnand.c (ASSERT): Likewise.
56380         * tests/test-isnanf.c (ASSERT): Likewise.
56381         * tests/test-isnanl.h (ASSERT): Likewise.
56382         * tests/test-ldexpl.c (ASSERT): Likewise.
56383         * tests/test-linked_list.c (ASSERT): Likewise.
56384         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56385         * tests/test-localename.c (ASSERT): Likewise.
56386         * tests/test-lseek.c (ASSERT): Likewise.
56387         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56388         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56389         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56390         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56391         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56392         * tests/test-mbschr.c (ASSERT): Likewise.
56393         * tests/test-mbscspn.c (ASSERT): Likewise.
56394         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56395         * tests/test-mbspbrk.c (ASSERT): Likewise.
56396         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56397         * tests/test-mbsrchr.c (ASSERT): Likewise.
56398         * tests/test-mbsspn.c (ASSERT): Likewise.
56399         * tests/test-mbsstr1.c (ASSERT): Likewise.
56400         * tests/test-mbsstr2.c (ASSERT): Likewise.
56401         * tests/test-mbsstr3.c (ASSERT): Likewise.
56402         * tests/test-memchr2.c (ASSERT): Likewise.
56403         * tests/test-memmem.c (ASSERT): Likewise.
56404         * tests/test-open.c (ASSERT): Likewise.
56405         * tests/test-printf-frexp.c (ASSERT): Likewise.
56406         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56407         * tests/test-printf-posix.c (ASSERT): Likewise.
56408         * tests/test-quotearg.c (ASSERT): Likewise.
56409         * tests/test-rbtree_list.c (ASSERT): Likewise.
56410         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56411         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56412         * tests/test-round1.c (ASSERT): Likewise.
56413         * tests/test-roundf1.c (ASSERT): Likewise.
56414         * tests/test-roundl.c (ASSERT): Likewise.
56415         * tests/test-signbit.c (ASSERT): Likewise.
56416         * tests/test-sleep.c (ASSERT): Likewise.
56417         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56418         * tests/test-snprintf.c (ASSERT): Likewise.
56419         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56420         * tests/test-stat-time.c (ASSERT): Likewise.
56421         * tests/test-strcasestr.c (ASSERT): Likewise.
56422         * tests/test-strerror.c (ASSERT): Likewise.
56423         * tests/test-striconv.c (ASSERT): Likewise.
56424         * tests/test-striconveh.c (ASSERT): Likewise.
56425         * tests/test-striconveha.c (ASSERT): Likewise.
56426         * tests/test-strsignal.c (ASSERT): Likewise.
56427         * tests/test-strstr.c (ASSERT): Likewise.
56428         * tests/test-strtod.c (ASSERT): Likewise.
56429         * tests/test-trunc1.c (ASSERT): Likewise.
56430         * tests/test-trunc2.c (ASSERT): Likewise.
56431         * tests/test-truncf1.c (ASSERT): Likewise.
56432         * tests/test-truncf2.c (ASSERT): Likewise.
56433         * tests/test-truncl.c (ASSERT): Likewise.
56434         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56435         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56436         * tests/test-vasnprintf.c (ASSERT): Likewise.
56437         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56438         * tests/test-vasprintf.c (ASSERT): Likewise.
56439         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56440         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56441         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56442         * tests/test-vsnprintf.c (ASSERT): Likewise.
56443         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56444         * tests/test-wcwidth.c (ASSERT): Likewise.
56445         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56446         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56447         * tests/test-xvasprintf.c (ASSERT): Likewise.
56448         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56449         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56450         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56451         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56452         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56453         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56454         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56455         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56456         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56457         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56458         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56459         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56460         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56461         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56462         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56463         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56464         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56465         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56466         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56467         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56468         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56469         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56470         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56471         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56472         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56473         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56474         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56475         * tests/unictype/test-combining.c (ASSERT): Likewise.
56476         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56477         * tests/unictype/test-digit.c (ASSERT): Likewise.
56478         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56479         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56480         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56481         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56482         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56483         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56484         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56485         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56486         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56487         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56488         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56489         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56490         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56491         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56492         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56493         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56494         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56495         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56496         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56497         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56498         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56499         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56500         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56501         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56502         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56503         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56504         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56505         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56506         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56507         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56508         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56509         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56510         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56511         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56512         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56513         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56514         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56515         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56516         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56517         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56518         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56519         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56520         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56521         Reported by Eric Blake.
56522
56523 2008-04-11  Bruno Haible  <bruno@clisp.org>
56524
56525         * lib/wchar.in.h: Tweak comment.
56526
56527 2008-04-11  Bruno Haible  <bruno@clisp.org>
56528
56529         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56530         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56531         gl_COMMON.
56532         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56533
56534 2008-04-11  Bruno Haible  <bruno@clisp.org>
56535
56536         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56537
56538 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56539
56540         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56541         of attempting to use non-existing /dev/*random.  Based on patch
56542         from Adam Strzelecki <ono@java.pl> in
56543         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56544
56545 2008-04-08  Bruno Haible  <bruno@clisp.org>
56546
56547         Add tentative support for emx+gcc.
56548         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56549         * lib/fpurge.c (fpurge): Likewise.
56550         * lib/freadable.c (freadable): Likewise.
56551         * lib/freadahead.c (freadahead): Likewise.
56552         * lib/freading.c (freading): Likewise.
56553         * lib/freadptr.c (freadptr): Likewise.
56554         * lib/freadseek.c (freadptrinc): Likewise.
56555         * lib/fseeko.c (rpl_fseeko): Likewise.
56556         * lib/fseterr.c (fseterr): Likewise.
56557         * lib/fwritable.c (fwritable): Likewise.
56558         * lib/fwriting.c (fwriting): Likewise.
56559         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56560
56561 2008-04-09  Eric Blake  <ebb9@byu.net>
56562
56563         Avoid some autoconf warnings.
56564         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56565         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56566         * m4/afs.m4 (gl_AFS): Likewise.
56567         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56568         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56569         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56570         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56571         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56572         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56573         (AC_CHECK_DECLS_ONCE): Likewise.
56574         Rename file...
56575         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56576         gnulib-tool requires autoconf 2.59 or better.
56577         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56578
56579 2008-04-08  Eric Blake  <ebb9@byu.net>
56580
56581         Use 'git describe --match' if present (added in git 1.5.5).
56582         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56583         if possible.
56584
56585 2008-04-08  Bruno Haible  <bruno@clisp.org>
56586
56587         Add tentative support for OpenServer.
56588         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56589         _ptr, _cnt.
56590         * lib/fpurge.c (fpurge): Likewise.
56591         * lib/freadable.c (freadable): Likewise.
56592         * lib/freadahead.c (freadahead): Likewise.
56593         * lib/freading.c (freading): Likewise.
56594         * lib/freadptr.c (freadptr): Likewise.
56595         * lib/freadseek.c (freadptrinc): Likewise.
56596         * lib/fseeko.c (rpl_fseeko): Likewise.
56597         * lib/fseterr.c (fseterr): Likewise.
56598         * lib/fwritable.c (fwritable): Likewise.
56599         * lib/fwriting.c (fwriting): Likewise.
56600         Reported by Roger Cornelius <rac@tenzing.org> and
56601         Brian K. White <brian@aljex.com>.
56602
56603 2008-04-06  Jim Meyering  <meyering@redhat.com>
56604
56605         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56606
56607 2008-04-06  Bruno Haible  <bruno@clisp.org>
56608
56609         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56610         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56611         * tests/test-printf-posix.sh: Likewise.
56612         * tests/test-vfprintf-posix.sh: Likewise.
56613         * tests/test-vprintf-posix.sh: Likewise.
56614         * tests/test-xprintf-posix.sh: Likewise.
56615
56616 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56617
56618         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56619         hide error from 'ls', needed on OS/2.
56620         Report by Elbert Pol <elbert.pol@gmail.com>.
56621
56622 2008-04-04  Eric Blake  <ebb9@byu.net>
56623
56624         Make test-fseeko.c failures meaningful.
56625         * tests/test-fseeko.c: Print line number on failure.
56626         * tests/test-fseek.c: Likewise.
56627         Reported by Nelson H. F. Beebe.
56628
56629         Improve strtod bug detection check.
56630         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56631         required for Solaris 10.
56632         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56633
56634 2008-04-04  Bruno Haible  <bruno@clisp.org>
56635
56636         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56637         by m4/setenv.m4.
56638
56639 2008-04-03  Eric Blake  <ebb9@byu.net>
56640
56641         Ensure sane .version contents.
56642         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56643         version string.
56644         * build-aux/git-version-gen: Improve documentation.
56645
56646         Make GNU make output nicer.
56647         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56648         MAKECMDGOALS to enforce message for all command line targets.  Set
56649         srcdir for use in maint.mk.
56650
56651         Another maintainer tweak.
56652         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56653         a target that regenerates version.
56654
56655 2008-04-03  Jim Meyering  <meyering@redhat.com>
56656
56657         vc-list-files: don't cause coreutils "make po-check" failure
56658         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56659
56660 2008-04-03  Eric Blake  <ebb9@byu.net>
56661
56662         Allow VPATH usage of vc-list-files.
56663         * build-aux/vc-list-files (scriptversion): Add timestamp.
56664         (options): Add --help, --version, -C.
56665         (CVS): Support installed cvsu.
56666
56667 2008-04-02  Bruno Haible  <bruno@clisp.org>
56668
56669         Avoid some "statement with no effect" warnings from gcc.
56670         * tests/test-wctype.c (main): Explicitly ignore unused values.
56671         Reported by Jim Meyering.
56672
56673 2008-04-02  Jim Meyering  <meyering@redhat.com>
56674
56675         Avoid some warnings from "gcc -Wshadow".
56676         * tests/test-frexp.c (exp): Define to a different identifier.
56677         * tests/test-frexpl.c (exp): Likewise.
56678
56679 2008-04-03  Jim Meyering  <meyering@redhat.com>
56680
56681         bootstrap: remove dangling *.[ch] symlinks from lib
56682         * build-aux/bootstrap [dangling symlink removal]: Move find's
56683         -depth option to precede all others, to avoid a warning.
56684         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56685
56686 2008-04-02  Bruno Haible  <bruno@clisp.org>
56687
56688         Avoid some warnings from "gcc -Wshadow".
56689         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56690         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56691         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56692         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56693         Reported by Jim Meyering.
56694
56695 2008-04-01  Bruno Haible  <bruno@clisp.org>
56696
56697         Fix test to work on IRIX 6.5 with cc.
56698         * tests/test-math.c (numeric_equal): New function.
56699         (main): Use it.
56700
56701 2008-04-01  Bruno Haible  <bruno@clisp.org>
56702
56703         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56704
56705 2008-04-01  Bruno Haible  <bruno@clisp.org>
56706
56707         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56708         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56709         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56710         (Depends-on): Remove math.
56711
56712         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56713         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56714         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56715         (Depends-on): Remove math.
56716
56717         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56718         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56719         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56720         (Depends-on): Remove math.
56721         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56722         (Depends-on): Remove math.
56723
56724         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56725         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56726         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56727         (Depends-on): Remove math.
56728         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56729         (Depends-on): Remove math.
56730
56731         * tests/test-round1.c: Include nan.h.
56732         (main): Use NaNd instead of NAN.
56733         * modules/round-tests (Files): Add tests/nan.h.
56734
56735         * tests/test-trunc1.c: Include nan.h.
56736         (main): Use NaNd instead of NAN.
56737         * modules/trunc-tests (Files): Add tests/nan.h.
56738
56739         * tests/test-roundf1.c: Include nan.h.
56740         (main): Use NaNf instead of NAN.
56741         * modules/roundf-tests (Files): Add tests/nan.h.
56742
56743         * tests/test-truncf1.c: Include nan.h.
56744         (main): Use NaNf instead of NAN.
56745         * modules/truncf-tests (Files): Add tests/nan.h.
56746
56747         * tests/test-ceilf1.c: Include nan.h.
56748         (main): Use NaNf instead of NAN.
56749         * modules/ceilf-tests (Files): Add tests/nan.h.
56750
56751         * tests/test-floorf1.c: Include nan.h.
56752         (main): Use NaNf instead of NAN.
56753         * modules/floorf-tests (Files): Add tests/nan.h.
56754
56755         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56756         (main): Use NaNf instead of NAN.
56757         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56758
56759         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56760         (main): Use NaNd instead of NAN.
56761         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56762
56763         * tests/test-frexp.c: Include nan.h.
56764         (main): Use NaNd instead of NAN.
56765         * modules/frexp-tests (Files): Add tests/nan.h.
56766
56767         * lib/isnan.c: Don't include <math.h>.
56768         (FUNC): Don't use NAN macro.
56769         * modules/isnand-nolibm (Depends-on): Remove math.
56770         * modules/isnanf-nolibm (Depends-on): Remove math.
56771         * modules/isnanl (Depends-on): Remove math.
56772         * modules/isnanl-nolibm (Depends-on): Remove math.
56773
56774         * tests/nan.h: New file.
56775
56776 2008-04-01  Eric Blake  <ebb9@byu.net>
56777
56778         Fix typos.
56779         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56780         values to be the right type.
56781
56782         For now, cater to gnulib strtod inaccuracies.
56783         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56784         fractional results.  While not as nice from a QoI perspective, it
56785         is a quicker patch than correctly implementing decimal to binary
56786         rounding.
56787
56788 2008-03-31  Eric Blake  <ebb9@byu.net>
56789
56790         Guarantee a definition of NAN.
56791         * lib/math.in.h (NAN): Define if missing.
56792         * tests/test-math.c (main): Test it.
56793         * doc/posix-headers/math.texi (math.h): Document this.
56794         * lib/isnan.c (rpl_isnand): Use it.
56795         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56796         * tests/test-floorf1.c (NaN): Likewise.
56797         * tests/test-frexp.c (NaN): Likewise.
56798         * tests/test-isnand.c (NaN): Likewise.
56799         * tests/test-isnanf.c (NaN): Likewise.
56800         * tests/test-round1.c (NaN): Likewise.
56801         * tests/test-roundf1.c (NaN): Likewise.
56802         * tests/test-snprintf-posix.h (NaN): Likewise.
56803         * tests/test-sprintf-posix.h (NaN): Likewise.
56804         * tests/test-trunc1.c (NaN): Likewise.
56805         * tests/test-truncf1.c (NaN): Likewise.
56806         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56807         * tests/test-vasprintf-posix.c (NaN): Likewise.
56808         * modules/isnand-nolibm (Depends-on): Add math.
56809         * modules/isnanf-nolibm (Depends-on): Likewise.
56810         * modules/isnanl (Depends-on): Likewise.
56811         * modules/isnanl-nolibm (Depends-on): Likewise.
56812         * modules/snprintf-posix-tests (Depends-on): Likewise.
56813         * modules/sprintf-posix-tests (Depends-on): Likewise.
56814         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56815         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56816         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56817         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56818
56819 2008-03-31  Bruno Haible  <bruno@clisp.org>
56820
56821         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56822         * doc/posix-functions/strtod.texi: Likewise.
56823
56824 2008-03-31  Bruno Haible  <bruno@clisp.org>
56825
56826         * tests/test-strtod.c (main): Don't use C99 syntax.
56827
56828 2008-03-31  Bruno Haible  <bruno@clisp.org>
56829
56830         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56831         Reported by Eric Blake.
56832
56833 2008-03-31  Jim Meyering  <meyering@redhat.com>
56834
56835         Don't compare actual signbit return values.
56836         * tests/test-strtod.c (main): Rather, compare only their
56837         zero/non-zero nature.
56838
56839 2008-03-31  Eric Blake  <ebb9@byu.net>
56840
56841         More strtod documentation.
56842         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56843         failures as distinct bugs.
56844
56845 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56846
56847         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56848         Problem reported by Erik Benada in
56849         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56850
56851 2008-03-30  Bruno Haible  <bruno@clisp.org>
56852
56853         * tests/test-strtod.c: Add comments about which assertion fails on which
56854         platform.
56855         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56856
56857 2008-03-30  Eric Blake  <ebb9@byu.net>
56858
56859         Test signbit behavior on zeros.
56860         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56861         (test_signbitd, test_signbitl): Likewise.
56862
56863         More strtod touchups.
56864         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56865         sign of negative underflow, for now.  Use .5, not .1.
56866         * doc/posix-functions/strtod.texi (strtod): Mention these
56867         limitations.
56868         Reported by Jim Meyering.
56869
56870 2008-03-30  Bruno Haible  <bruno@clisp.org>
56871
56872         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56873         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56874
56875 2008-03-30  Bruno Haible  <bruno@clisp.org>
56876
56877         Avoid failure when attempting to return empty iconv results on some
56878         platforms.
56879         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56880         allocation, don't report ENOMEM when the resulting string is empty.
56881
56882 2008-03-30  Bruno Haible  <bruno@clisp.org>
56883
56884         Fix buffer overrun.
56885         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56886         Don't consider the width for tmp_length. Check count against tmp_length
56887         before doing the padding. Ensure enough allocation during padding.
56888
56889 2008-03-30  Eric Blake  <ebb9@byu.net>
56890
56891         strtod touchups.
56892         * lib/strtod.c (strtod): Avoid compiler warnings.
56893         Reported by Jim Meyering.
56894
56895 2008-03-30  Bruno Haible  <bruno@clisp.org>
56896
56897         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56898         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56899         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56900         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56901         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56902         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56903         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56904         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56905
56906         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56907         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56908         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56909         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56910         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56911         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56912         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56913         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56914
56915         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56916         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56917         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56918         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56919         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56920         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56921         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56922         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56923
56924         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56925         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56926
56927         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56928         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56929
56930         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56931         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56932
56933         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56935         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56936
56937         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56939         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56940
56941         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56943         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56944
56945         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56947         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56948
56949         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56950         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56951         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56952         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56953         (Depends-on): Add EOVERFLOW.
56954         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56955         (Depends-on): Add EOVERFLOW.
56956         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56957         (Depends-on): Add EOVERFLOW.
56958         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56959         (Depends-on): Add EOVERFLOW.
56960         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56961         (Depends-on): Add EOVERFLOW.
56962         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56963         (Depends-on): Add EOVERFLOW.
56964         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56965         (Depends-on): Add EOVERFLOW.
56966         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56967         (Depends-on): Add EOVERFLOW.
56968
56969         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56971         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56972
56973         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56974         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56975         * modules/snprintf (Depends-on): Add EOVERFLOW.
56976
56977         * lib/poll.c (EOVERFLOW): Remove fallback.
56978         * modules/poll (Depends-on): Add EOVERFLOW.
56979
56980         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56981         * modules/getugroups (Depends-on): Add EOVERFLOW.
56982
56983         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56984         * modules/getdelim (Depends-on): Add EOVERFLOW.
56985
56986         * lib/ftell.c (EOVERFLOW): Remove fallback.
56987         * modules/ftell (Depends-on): Add EOVERFLOW.
56988
56989         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56991         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56992
56993         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56994
56995         * modules/EOVERFLOW-tests: New file.
56996         * tests/test-EOVERFLOW.c: New file.
56997
56998         * modules/EOVERFLOW: New file.
56999         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57000
57001 2008-03-30  Bruno Haible  <bruno@clisp.org>
57002
57003         Fix bug introduced on 2007-06-10.
57004         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57005         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57006
57007 2008-03-30  Bruno Haible  <bruno@clisp.org>
57008
57009         Improve freadseek's efficiency after ungetc.
57010         * lib/freadseek.c: Include freadahead.h.
57011         (freadptrinc): New function, extracted from freadseek.
57012         (freadseek): Use it in a loop. Use freadahead to determine the number
57013         of loop iterations.
57014         * modules/freadseek (Depends-on): Add freadahead.
57015         (configure.ac): Require AC_C_INLINE.
57016
57017 2008-03-30  Bruno Haible  <bruno@clisp.org>
57018
57019         * lib/freadseek.c (freadseek): Don't ignore the return value of
57020         freadptr.
57021
57022 2008-03-29  Eric Blake  <ebb9@byu.net>
57023
57024         Add hex float support.
57025         * modules/strtod (Depends-on): Add c-ctype.
57026         (Link): Mention POW_LIB.
57027         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57028         whitespace between 'e' and exponent.
57029         * tests/test-strtod.c (main): Enable hex float tests.
57030         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57031         now provides.
57032
57033         Document various strtod bugs, with some fixes.
57034         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57035         "-0x", "inf", "nan", and hex constants.
57036         * doc/posix-functions/atof.texi (atof): Likewise.
57037         * modules/stdlib (Makefile.am): Support strtod.
57038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57039         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57040         detect additional strtod bugs.
57041         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57042         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57043         bool where appropriate.  Parse 'inf' and 'nan'.
57044         * tests/test-strtod.c: New file.
57045         * modules/strtod (Depends-on): Add stdbool, stdlib.
57046         (configure.ac): Turn on module indicator.
57047         * modules/strtod-tests: New module.
57048
57049 2008-03-29  Eric Blake  <ebb9@byu.net>
57050
57051         Fix ftell on mingw.
57052         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57053         * modules/ftell-tests (Depends-on): Add binary-io.
57054         * modules/ftello-tests (Depends-on): Likewise.
57055         * tests/test-ftell.c (main): Enhance test to cover behavior after
57056         ungetc.  Enforce binary mode.
57057         * tests/test-ftello.c (main): Likewise.
57058
57059         Pass test-freadseek on cygwin.
57060         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57061         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57062         ungetc buffer.
57063
57064         * tests/test-fflush2.c (main): Fix typo.
57065
57066 2008-03-29  Bruno Haible  <bruno@clisp.org>
57067
57068         * tests/test-fflush2.c (main): Temporarily disable the contents of
57069         this test.
57070         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57071         Reported by Eric Blake.
57072
57073 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57074
57075         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57076         (GC_SHA224_DIGEST_SIZE): Add.
57077
57078         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57079         (gc_hash_digest_length): Likewise.
57080         (gc_hash_buffer): Likewise.
57081
57082 2008-03-25  Bruno Haible  <bruno@clisp.org>
57083
57084         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57085         detail which gettext release to use.
57086         Reported by Simon Josefsson.
57087
57088 2008-03-26  Jim Meyering  <meyering@redhat.com>
57089
57090         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57091         * modules/gnumakefile (clean-GNUmakefile): Also, use
57092         test ... && ... || : syntax rather than if-then ... fi.
57093
57094         gnumakefile: Don't double-quote-expand $(VPATH) value.
57095         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57096
57097 2008-03-24  Eric Blake  <ebb9@byu.net>
57098
57099         Alter GNUmakefile to install into top directory.
57100         * modules/maintainer-makefile: Split, and add dependency...
57101         * modules/gnumakefile: to this new module.
57102         * build-aux/GNUmakefile: Move...
57103         * top/GNUmakefile: ...here.
57104         * build-aux/maint.mk: Move...
57105         * top/maint.mk: ...here.
57106         * MODULES.html.sh (Support for maintaining...): Document new
57107         module.
57108
57109 2008-03-23  Bruno Haible  <bruno@clisp.org>
57110
57111         * gnulib-tool: New options --vc-files, --no-vc-files.
57112         (func_usage): Document them.
57113         (vc_files): New variable.
57114         (func_import): Consider vc_files.
57115         (func_create_testdir): Set vc_files to empty.
57116         Suggested by Jim Meyering and Karl Berry.
57117
57118 2008-03-23  Bruno Haible  <bruno@clisp.org>
57119
57120         Fix regex compilation error on HP-UX 11.
57121         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57122         * modules/regex (Files): Add m4/mbstate_t.m4.
57123         Reported by Ton Voon <ton.voon@altinity.com>.
57124
57125 2008-03-23  Bruno Haible  <bruno@clisp.org>
57126
57127         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57128
57129 2008-03-23  Eric Blake  <ebb9@byu.net>
57130             Bruno Haible  <bruno@clisp.org>
57131
57132         Install files from top/ in the destination directory.
57133         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57134         augmentation also for the files from top/.
57135         (func_import, func_create_testdir): Rewrite file names:
57136         top/filename -> filename.
57137
57138 2008-03-23  Bruno Haible  <bruno@clisp.org>
57139
57140         Tweak "gnulib --version" output.
57141         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57142
57143 2008-03-23  Bruno Haible  <bruno@clisp.org>
57144
57145         Tweak "gnulib --version" output.
57146         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57147         rather than contents of ChangeLog, when possible.
57148
57149 2008-03-21  Eric Blake  <ebb9@byu.net>
57150
57151         More --version tweaks.
57152         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57153         date of last ChangeLog entry.
57154
57155 2008-03-21  Jim Meyering  <meyering@redhat.com>
57156
57157         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57158
57159 2008-03-20  Eric Blake  <ebb9@byu.net>
57160
57161         VPATH fix.
57162         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57163
57164 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57165
57166         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57167         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57168
57169 2008-03-20  Eric Blake  <ebb9@byu.net>
57170
57171         Sync GNUmakefile with coreutils.
57172         * build-aux/GNUmakefile (have-Makefile): Rename...
57173         (_have-Makefile): ...to this, for namespace consideration.
57174         (GNUmakefile.cfg): Include, if present.
57175         (_autoreconf): Define a default.
57176         (_is-dist-target): New rule for rebuilds to pick up intra-release
57177         version.
57178         (maint-cfg.mk): Rename...
57179         (cfg.mk): ...to this.
57180
57181 2008-03-18  Jim Meyering  <meyering@redhat.com>
57182
57183         New script and module: mktempd
57184         * MODULES.html.sh (maint+release support): Add mktempd.
57185         * build-aux/mktempd: New file.
57186         * modules/mktempd: New file.
57187
57188 2008-03-15  Jim Meyering  <meyering@redhat.com>
57189
57190         Undo last change.
57191         * lib/sha1.c, lib/md5.c: 63 != ~63.
57192         Reported by Andreas Schwab.
57193
57194         sha1.c, md5.c: Hoist a redundant expression.
57195         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57196         "ctx->buflen" only once, before calling *_process_block.
57197         * lib/md5.c (md5_process_bytes): Likewise.
57198
57199 2008-03-14  Eric Blake  <ebb9@byu.net>
57200
57201         Bump copyright year in files generated by gnulib-tool.
57202         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57203         gnulib-tool, rather than hard-coding it.
57204
57205         Fix 'gnulib-tool --version' output to work with git.
57206         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57207         (startup): ...here.
57208         (func_version): Use it to invoke git-version-gen, rather than
57209         relying on CVS keyword expansion.  Modernize wording.
57210         (cvsdatestamp, last_checkin_date, version): Kill unused
57211         variables.
57212
57213 2008-03-12  Jim Meyering  <meyering@redhat.com>
57214
57215         Recognize optional cast of the argument to free.
57216         * build-aux/useless-if-before-free: Update regexps.
57217
57218         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57219
57220 2008-03-11  Bruno Haible  <bruno@clisp.org>
57221
57222         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57223         by a single package.
57224         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57225         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57226         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57227         Reported by Sam Steingold <sds@gnu.org>.
57228
57229 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57230
57231         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57232         repositories.
57233
57234 2008-03-11  Bruno Haible  <bruno@clisp.org>
57235
57236         Avoid conflicts between local macro definitions.
57237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57238         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57239
57240 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57241             Bruno Haible  <bruno@clisp.org>
57242
57243         Make va_copy work with some version of xlc on AIX 5.1.
57244         * lib/stdarg.in.h: New file.
57245         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57246         On AIX, use a <stdarg.h> file substitute.
57247         * modules/stdarg (Files): Add lib/stdarg.in.h.
57248         (Depends-on): Add include_next.
57249         (Makefile.am): Build a stdarg.h substitute if requested.
57250         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57251
57252 2008-03-10  Bruno Haible  <bruno@clisp.org>
57253
57254         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57255         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57256         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57257
57258 2008-03-10  Bruno Haible  <bruno@clisp.org>
57259
57260         * modules/stdlib (Depends-on): Add include_next, remove
57261         absolute-header.
57262
57263 2008-03-09  Bruno Haible  <bruno@clisp.org>
57264
57265         * lib/freadahead.h (freadahead): Document more precisely.
57266         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57267         the sum of both buffer sizes.
57268         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57269         * NEWS: Document the change.
57270
57271 2008-03-09  Bruno Haible  <bruno@clisp.org>
57272
57273         Extend freadptr to return also the buffer size.
57274         * lib/freadptr.h (freadptr): Add sizep argument.
57275         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57276         (freadptr): Add sizep argument. Determine buffer size like freadahead
57277         does.
57278         * tests/test-freadptr.c: Don't include freadahead.h.
57279         (main): Adapt for new calling convention of freadptr.
57280         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57281         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57282         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57283         tests/test-freadptr2.sh.
57284         (Depends): Remove freadahead.
57285         (TESTS): Add test-freadptr2.sh.
57286         (check_PROGRAMS): Add test-freadptr2.
57287
57288 2008-03-09  Bruno Haible  <bruno@clisp.org>
57289
57290         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57291         Report and solution by Simon Josefsson.
57292
57293 2008-03-06  Bruno Haible  <bruno@clisp.org>
57294
57295         Make fflush after ungetc work on BSD platforms.
57296         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57297         * tests/test-fflush2.c: New file.
57298         * tests/test-fflush2.sh: New file.
57299         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57300         tests/test-fflush2.c.
57301         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57302         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57303
57304 2008-03-06  Eric Blake  <ebb9@byu.net>
57305
57306         Likewise for ftello.
57307         * modules/ftello (Dependencies): Add extensions.
57308         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57309
57310 2008-03-06  Bruno Haible  <bruno@clisp.org>
57311
57312         * modules/fseeko (Dependencies): Add extensions.
57313         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57314         Needed on glibc systems.
57315
57316 2008-03-06  Bruno Haible  <bruno@clisp.org>
57317
57318         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57319         email address.
57320         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57321
57322 2008-03-06  Bruno Haible  <bruno@clisp.org>
57323
57324         * users.txt: Add libgnupdf.
57325
57326 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57327
57328         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57329         (Header File Substitutes, Function Substitutes,
57330         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57331         (Build robot for gnulib): Fix typo.
57332
57333 2008-03-06  Bruno Haible  <bruno@clisp.org>
57334
57335         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57336         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57337
57338 2008-03-06  Bruno Haible  <bruno@clisp.org>
57339
57340         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57341         * doc/gnulib.texi: Include it.
57342
57343 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57344
57345         * modules/func (License): Change license to unlimited; there was
57346         no LGPL parts in the module anyway.
57347
57348 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57349
57350         * modules/__func__: Renamed to modules/func.
57351         * modules/__func__-tests: Renamed to modules/func-tests.
57352         * tests/test-__func__.c: Renamed to tests/test-func.c.
57353         * m4/__func__.m4: Renamed to m4/func.m4.
57354         * doc/gnulib.texi (__func__): Section renamed to func.
57355         Suggested by Eric Blake <ebb9@byu.net>.
57356
57357 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57358
57359         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57360         about __func__.  Make example self-contained.  Suggested by Eric
57361         Blake <ebb9@byu.net>.
57362
57363         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57364         Suggested by Eric Blake <ebb9@byu.net>.
57365
57366 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57367
57368         * modules/__func__: New file.
57369         * modules/__func__-tests: New file.
57370         * tests/test-__func__.c: New file.
57371         * m4/__func__.m4: New file.
57372         * doc/gnulib.texi (__func__): Document __func__ module.
57373
57374 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57375
57376         * modules/byteswap (License): Re-license as LGPLv2+.
57377
57378 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57379
57380         * doc/Makefile: Add pdf target.
57381
57382 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57383
57384         * modules/inline (License): Use 'unlimited', since there are only
57385         *.m4 files in this module.
57386
57387 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57388             Bruno Haible  <bruno@clisp.org>
57389
57390         Add support for HP C 7.1 on OpenVMS 8.3.
57391         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57392
57393 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57394
57395         Update VMS specifics.
57396         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57397
57398 2008-03-02  Jim Meyering  <meyering@redhat.com>
57399
57400         Remove the last dependency on the "free" module.
57401         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57402         Reported by Bob Proulx.
57403
57404         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57405
57406         Remove useless "if" tests before free.  Deprecate "free" module.
57407         * doc/posix-functions/free.texi: Mention that this
57408         module is no longer useful.
57409         * modules/free (Notice): Say this module is obsolete.
57410         * modules/readutmp (Depends-on): Remove free.
57411         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57412         * lib/putenv.c (putenv): Likewise.
57413         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57414         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57415         * tests/test-c-strcasestr.c (main): Likewise.
57416         * tests/test-c-strstr.c (main): Likewise.
57417         * tests/test-mbscasestr1.c (main): Likewise.
57418         * tests/test-mbscasestr2.c (main): Likewise.
57419         * tests/test-mbsstr1.c (main): Likewise.
57420         * tests/test-mbsstr2.c (main): Likewise.
57421         * tests/test-memmem.c (main): Likewise.
57422         * tests/test-strcasestr.c (main): Likewise.
57423         * tests/test-striconv.c (main): Likewise.
57424         * tests/test-striconveh.c (main): Likewise.
57425         * tests/test-striconveha.c (main): Likewise.
57426         * tests/test-strstr.c (main): Likewise.
57427
57428         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57429
57430         bootstrap: sync from coreutils again
57431         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57432
57433 2008-03-01  Jim Meyering  <meyering@redhat.com>
57434
57435         bootstrap: sync from coreutils
57436         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57437         also when the target doesn't exist.
57438
57439 2008-03-01  Eric Blake  <ebb9@byu.net>
57440
57441         Fix bugs in last patch.
57442         * lib/memchr2.c (memchr2): Fix typo.
57443         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57444         extension.
57445         Reported by Bruce Korb.
57446
57447         New module 'memchr2'.
57448         * modules/memchr2: New file.
57449         * modules/memchr2-tests: Likewise.
57450         * lib/memchr2.h: Likewise.
57451         * lib/memchr2.c: Likewise, based on memchr.c.
57452         * tests/test-memchr2.c: New test.
57453         * MODULES.html.sh (String handling): Add memchr2.
57454
57455 2008-02-29  Bruno Haible  <bruno@clisp.org>
57456
57457         * modules/freadseek-tests: New file.
57458         * tests/test-freadseek.sh: New file.
57459         * tests/test-freadseek.c: New file.
57460
57461         New module 'freadseek'.
57462         * modules/freadseek: New file.
57463         * lib/freadseek.h: New file.
57464         * lib/freadseek.c: New file.
57465         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57466
57467 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57468
57469         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57470         wydawca.
57471
57472         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57473         program_invocation_name and program_invocation_short_name are
57474         present.
57475
57476 2008-02-28  Bruno Haible  <bruno@clisp.org>
57477
57478         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57479         * tests/test-freadptr.sh: Also test non-seekable stdin.
57480
57481 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57482
57483         * build-aux/bootstrap (source_base, m4_base)
57484         (doc_base, tests_base): New variables.
57485         (gnulib_tool_options): Do not hardcode base directories, use
57486         the above variables instead.
57487
57488 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57489
57490         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57491
57492 2008-02-28  Bruno Haible  <bruno@clisp.org>
57493
57494         * modules/freadptr-tests: New file.
57495         * tests/test-freadptr.sh: New file.
57496         * tests/test-freadptr.c: New file.
57497
57498         New module 'freadptr'.
57499         * modules/freadptr: New file.
57500         * lib/freadptr.h: New file.
57501         * lib/freadptr.c: New file.
57502         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57503
57504 2008-02-26  Karl Berry  <karl@freefriends.org>
57505
57506         Sync from Libtool:
57507         * libltdl/argz.c (argz_add, argz_count): New functions.
57508         * libltdl/argz.in.h: Declare them.
57509         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57510
57511 2008-02-22  Bruno Haible  <bruno@clisp.org>
57512
57513         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57514         is a pointer type.  Needed for HP-UX 10.
57515         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57516         * doc/posix-functions/gmtime_r.texi: Likewise.
57517         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57518
57519 2008-02-24  Bruno Haible  <bruno@clisp.org>
57520
57521         * modules/environ-tests: New file.
57522         * tests/test-environ.c: New file.
57523
57524         New module 'environ'.
57525         * modules/environ: New file.
57526         * lib/unistd.in.h (environ): New declaration.
57527         * m4/environ.m4: New file.
57528         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57529         after use.
57530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57531         HAVE_DECL_ENVIRON.
57532         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57533         HAVE_DECL_ENVIRON.
57534         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57535         wrong claim that 'environ' is missing on some systems.
57536         * modules/execute (Depends-on): Add environ.
57537         * lib/execute.c (environ): Remove fallback declaration.
57538         * modules/pipe (Depends-on): Add environ.
57539         * lib/pipe.c (environ): Remove fallback declaration.
57540         * modules/setenv (Depends-on): Add environ.
57541         * lib/setenv.c (environ): Remove fallback declaration.
57542         * modules/unsetenv (Depends-on): Add environ.
57543         * lib/unsetenv.c (environ): Remove fallback declaration.
57544         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57545         m4/environ.m4.
57546         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57547         (gl_PREREQ_UNSETENV): Likewise.
57548
57549 2008-02-24  Bruno Haible  <bruno@clisp.org>
57550
57551         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57552
57553 2008-02-20  Bob Proulx  <bob@proulx.com>
57554
57555         Enable use of older two part flavor 'git describe'.
57556         * build-aux/git-version-gen: If using the older two part flavor of
57557         git version then recreate the third part now present in the
57558         newer three part flavor of git describe.
57559
57560 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57561
57562         * lib/fts.c (fts_build): Typo correction to comment.
57563
57564 2008-02-17  Bruno Haible  <bruno@clisp.org>
57565
57566         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57567         generating no-op conflicts.
57568
57569 2008-02-17  Bruno Haible  <bruno@clisp.org>
57570
57571         Speed up by 10%.
57572         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57573         result_entries, rather than an index-based loop.
57574
57575 2008-02-17  Bruno Haible  <bruno@clisp.org>
57576
57577         Speed up by 25%.
57578         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57579         'hashcode_cached'.
57580         (entry_create): New function.
57581         (entry_hashcode): Use the cached hashcode if possible.
57582         (read_changelog_file, try_split_merged_entry): Use entry_create.
57583
57584 2008-02-17  Bruno Haible  <bruno@clisp.org>
57585
57586         Speed up from O(n^2) to O(n) for long ChangeLog files.
57587         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57588         (read_changelog_file): Change implementation of entries_reversed list
57589         to rbtreehash.
57590         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57591
57592 2008-02-17  Bruno Haible  <bruno@clisp.org>
57593
57594         New option --split-merged-entry.
57595         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57596         (find_paragraph_end, try_split_merged_entry): New functions.
57597         (long_options): Add option --split-merged-entry.
57598         (usage): Document option --split-merged-entry.
57599         (main): Implement option --split-merged-entry.
57600         Reported by Eric Blake.
57601
57602 2008-02-17  Bruno Haible  <bruno@clisp.org>
57603
57604         * lib/git-merge-changelog.c: Include c-strstr.h.
57605         (main): Support the "git pull --rebase" situation.
57606         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57607         Reported by Eric Blake.
57608
57609 2008-02-16  Eric Blake  <ebb9@byu.net>
57610
57611         Avoid doubling \ in common case of "c-maybe" quoting style.
57612         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57613         eliding outer quotes.
57614         * lib/quotearg.h: Document this.
57615         * tests/test-quotearg.c (result_strings, inputs, results_g)
57616         (flag_results, locale_results): Test it by adding a new string to
57617         each test group.
57618         (compare_strings): Test new string.
57619
57620 2008-02-13  Eric Blake  <ebb9@byu.net>
57621
57622         Avoid trigraph quoting in default output.
57623         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57624         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57625         unless explicitly requested.
57626         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57627
57628 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57629
57630         Don't rely on signed integer overflowing to negative value.
57631         * lib/getugroups.c (getugroups): Include <limits.h>.
57632         Instead, compare against INT_MAX, and increment only if the test passes.
57633
57634 2008-02-13  Jim Meyering  <meyering@redhat.com>
57635         and Eric Blake  <ebb9@byu.net>
57636
57637         Avoid shadowing warning and compile errors on Linux.
57638         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57639         forwarding macros on Linux.
57640         (dcgettext): Define a stub, for Linux.
57641         (results_g, main): Avoid warnings.
57642
57643 2008-02-12  Eric Blake  <ebb9@byu.net>
57644
57645         Silence warning in last patch.
57646         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57647
57648         Quotearg part 4: add tests, fix c-maybe colon quoting.
57649         * lib/quotearg.h: Improve documentation.
57650         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57651         escapes when adding outer quotes.  When quoting trigraphs, use
57652         valid C notation.  When quoting NUL, omit extra characters if next
57653         character is not digit.  Alter prototype.
57654         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57655         callers.
57656         * modules/quotearg-tests: New module.
57657         * tests/test-quotearg.c: New test.
57658
57659 2008-02-07  Eric Blake  <ebb9@byu.net>
57660
57661         Quotearg part 3: add flag to control outer quote elision.
57662         * lib/quotearg.h (c_maybe_quoting_style): New style.
57663         (enum quoting_flags): Better documentation of flags.
57664         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57665         c-maybe style.
57666         (quotearg_buffer_restyled): Handle new flag to elide outer
57667         quotes.
57668
57669         Quotearg part 2: add flag that can control NUL elision.
57670         * lib/quotearg.h (set_quoting_flags): New prototype.
57671         * lib/quotearg.c (struct quoting_options): Add flag field.
57672         (set_quoting_flags): New function.
57673         (quotearg_buffer_restyled): Add flags parameter.
57674         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57675         (quotearg_n_options): Set the flag, since length cannot be
57676         returned.
57677         (quoting_options_from_style): Default flags correctly.
57678
57679         Quotearg part 1: more wrappers, restore quotearg_char state.
57680         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57681         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57682         (quotearg_colon_mem): New wrappers.
57683         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57684         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57685         functions.
57686         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57687         (quotearg_colon_mem): New functions.
57688
57689 2008-02-11  Bruno Haible  <bruno@clisp.org>
57690
57691         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57692         library in the current directory: it does not work with parallel make.
57693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57694
57695 2008-02-11  Bruno Haible  <bruno@clisp.org>
57696
57697         * .gitattributes: New file.
57698
57699 2008-02-11  Jim Meyering  <meyering@redhat.com>
57700
57701         useless-if-before-free: Fix reversed exit values.
57702         * build-aux/useless-if-before-free: Use correct values
57703         for EXIT_MATCH and EXIT_NO_MATCH.
57704
57705         * build-aux/useless-if-before-free: Close stdout carefully.
57706
57707 2008-02-10  Bruno Haible  <bruno@clisp.org>
57708
57709         New module 'git-merge-changelog'.
57710         * modules/git-merge-changelog: New file.
57711         * lib/git-merge-changelog.c: New file.
57712
57713 2008-02-10  Jim Meyering  <meyering@redhat.com>
57714
57715         useless-if-before-free: New option: --list (-l).
57716
57717         useless-if-before-free: Don't exit immediately upon open failure.
57718         * build-aux/useless-if-before-free: Exit 2 for errors.
57719         Upon failure to open a file, don't exit immediately.
57720         Rather, just warn and continue with any remaining files.
57721
57722 2008-02-10  Bruno Haible  <bruno@clisp.org>
57723
57724         New abstract list operation 'node_set_value'.
57725         * lib/gl_list.h (gl_list_node_set_value): New function.
57726         (struct gl_list_implementation): New field node_set_value.
57727         * lib/gl_list.c (gl_list_node_set_value): New function.
57728         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57729         (gl_array_list_implementation): Update.
57730         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57731         (gl_carray_list_implementation): Update.
57732         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57733         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57734         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57735         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57736         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57737         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57738         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57739         Update.
57740         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57741         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57742         (gl_sublist_list_implementation): Update.
57743
57744 2008-02-10  Bruno Haible  <bruno@clisp.org>
57745
57746         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57747         Needed when ELEMENT is #defined to 'some_type *'.
57748
57749 2008-02-10  Jim Meyering  <meyering@redhat.com>
57750
57751         New script and module: useless-if-before-free
57752         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57753         * build-aux/useless-if-before-free: New file.
57754         * modules/useless-if-before-free: New file.
57755
57756         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57757
57758         xstrtol_error: Fix typo.
57759         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57760         s/exit_failure/exit_status/.
57761
57762 2008-02-09  Jim Meyering  <meyering@redhat.com>
57763
57764         New script and module: gitlog-to-changelog
57765         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57766         * modules/gitlog-to-changelog: New file.
57767         * build-aux/gitlog-to-changelog: New file.
57768
57769 2008-02-08  Jim Meyering  <meyering@redhat.com>
57770
57771         Avoid two "parameter unused" warnings.
57772         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57773         Mark "st" as used.
57774
57775         Use "git COMMAND", not "git-COMMAND".
57776         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57777         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57778         * build-aux/git-version-gen: Use "git status", not "git-status".
57779
57780 2008-02-07  Bruno Haible  <bruno@clisp.org>
57781
57782         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57783         Avoids a crash on Windows Vista.
57784         Reported by Adam Strzelecki <ono@java.pl> via
57785         Simon Josefsson <simon@josefsson.org>.
57786
57787 2008-02-06  Bruno Haible  <bruno@clisp.org>
57788
57789         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57790         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57791         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57793         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57795         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57796         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57799         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57800         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57801         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57803         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57804         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57805         left-adjust flag.
57806         * tests/test-snprintf-posix.h (test_function): Likewise.
57807         * tests/test-sprintf-posix.h (test_function): Likewise.
57808         * tests/test-vasprintf-posix.c (test_function): Likewise.
57809         * doc/posix-functions/fprintf.texi: Update.
57810         * doc/posix-functions/printf.texi: Update.
57811         * doc/posix-functions/snprintf.texi: Update.
57812         * doc/posix-functions/sprintf.texi: Update.
57813         * doc/posix-functions/vfprintf.texi: Update.
57814         * doc/posix-functions/vprintf.texi: Update.
57815         * doc/posix-functions/vsnprintf.texi: Update.
57816         * doc/posix-functions/vsprintf.texi: Update.
57817         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57818
57819 2008-02-06  Bruno Haible  <bruno@clisp.org>
57820
57821         Fix bug introduced on 2008-01-26.
57822         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57823
57824 2008-02-06  Bruno Haible  <bruno@clisp.org>
57825
57826         Fix bug introduced on 2007-06-10.
57827         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57828         !NEED_PRINTF_FLAG_ZERO.
57829
57830 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57831
57832         getloadavg: use libperfstat on AIX5
57833         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57834
57835 2008-02-03  Bruno Haible  <bruno@clisp.org>
57836
57837         * lib/diffseq.h: Add comments about required #includes.
57838         Reported by Michael Biggs <gnulib@doubleplum.net>.
57839
57840 2008-02-01  Bruno Haible  <bruno@clisp.org>
57841
57842         * users.txt: Add gnuit.
57843
57844 2008-01-31  Bruno Haible  <bruno@clisp.org>
57845
57846         * lib/md4.c (set_uint32): Mark as inline.
57847         * lib/md5.c (set_uint32): Likewise.
57848         * lib/sha1.c (set_uint32): Likewise.
57849         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57850         * m4/md5.m4 (gl_MD5): Likewise.
57851         * m4/sha1.m4 (gl_SHA1): Likewise.
57852
57853 2008-01-31  Jim Meyering  <meyering@redhat.com>
57854
57855         Use "sizeof VAR", rather than a literal "4".
57856         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57857         * lib/md4.c (md4_read_ctx): Likewise.
57858         * lib/sha1.c (sha1_read_ctx): Likewise.
57859
57860 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57861
57862         * tests/test-sha1.c: New file, based on test-md5.c.
57863
57864         * modules/crypto/sha1-tests: New file.
57865
57866 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57867
57868         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57869
57870 2008-01-31  Jim Meyering  <meyering@redhat.com>
57871
57872         Prefer "sizeof v" over the equivalent "4".
57873         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57874         * lib/md5.c (set_uint32): Likewise.
57875         * lib/sha1.c (set_uint32): Likewise.
57876
57877 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57878
57879         * lib/sha1.c (set_uint32): Mark function as static.
57880
57881 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57882
57883         md2: clarify comments to say that alignment is not required.
57884         * lib/md2.h: Remove warning about alignment in comment.
57885         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57886         never been required.
57887
57888 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57889
57890         md4: adapt alignment constraint fix from sha1.
57891         * lib/md4.c (set_uint32): New function, from sha1.c
57892         (md4_read_ctx): Use it.
57893         (md4_finish_ctx): Doc fix.
57894         * lib/md4.h: Doc fix.
57895
57896 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57897
57898         md5: adapt alignment constraint fix from sha1.
57899         * lib/md5.c (set_uint32): New function, from sha1.c
57900         (md5_read_ctx): Use it.
57901         (md5_finish_ctx): Doc fix.
57902         * lib/md5.h: Doc fix.
57903
57904 2008-01-30  Peter Palfrader  <weasel@debian.org>
57905
57906         sha1: remove the result buffer alignment constraint
57907         * lib/sha1.c (set_uint32): New function.
57908         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57909         constraint.
57910         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57911         * lib/sha1.h: Likewise.
57912
57913 2008-01-30  Andreas Schwab  <schwab@suse.de>
57914             Bruno Haible  <bruno@clisp.org>
57915
57916         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57917         correct definition of LDBL_MIN_EXP.
57918
57919 2008-01-30  Karl Berry  <karl@gnu.org>
57920
57921         * config/srclist-update: try to preserve x bit on updates.
57922         * config/srclistvars.sh: update for karl.
57923
57924 2008-01-29  Jim Meyering  <meyering@redhat.com>
57925
57926         vasnprintf.c: Avoid warning about unused label
57927         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57928         "overflow" label definition and associated code with the
57929         same cpp condition that guards the sole use of that label.
57930
57931 2008-01-26  Bruno Haible  <bruno@clisp.org>
57932
57933         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57934         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57935         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57936         * lib/isnanl-nolibm.h (isnanl): Likewise.
57937         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57938
57939 2008-01-26  Bruno Haible  <bruno@clisp.org>
57940
57941         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57942         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57943
57944 2008-01-26  Bruno Haible  <bruno@clisp.org>
57945
57946         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57947         GCC >= 4.0 built-in.
57948         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57949
57950 2008-01-26  Bruno Haible  <bruno@clisp.org>
57951
57952         Rename isnan, applicable to 'double' only, to isnand.
57953         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57954         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57955         (configure.ac): Update.
57956         (Include): Replace "isnan.h" with "isnand.h".
57957         * m4/isnand.m4: Renamed from m4/isnan.m4.
57958         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57959         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57960         instead of isnan.c.
57961         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57962         instead of HAVE_ISNAN_IN_LIBC.
57963         (isnand): Renamed from isnan.
57964         * lib/isnand.c: New file.
57965         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57966         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57967         (Makefile.am): Update.
57968         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57969         Include isnand.h instead of isnan.h.
57970         (main): Test isnand instead of isnan.
57971         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57972         isnan-nolibm.
57973         * modules/frexp (Depends-on): Likewise.
57974         * modules/frexp-tests (Depends-on): Likewise.
57975         * modules/frexp-nolibm (Depends-on): Likewise.
57976         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57977         * modules/isfinite (Depends-on): Likewise.
57978         * modules/round-tests (Depends-on): Likewise.
57979         * modules/signbit (Depends-on): Likewise.
57980         * modules/signbit-tests (Depends-on): Likewise.
57981         * modules/snprintf-posix (Depends-on): Likewise.
57982         * modules/sprintf-posix (Depends-on): Likewise.
57983         * modules/trunc-tests (Depends-on): Likewise.
57984         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57985         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57986         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57987         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57988         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57989         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57990         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57991         * modules/vasnprintf-posix (Depends-on): Likewise.
57992         * modules/vasprintf-posix (Depends-on): Likewise.
57993         * modules/vfprintf-posix (Depends-on): Likewise.
57994         * modules/vsnprintf-posix (Depends-on): Likewise.
57995         * modules/vsprintf-posix (Depends-on): Likewise.
57996         * lib/frexp.c: Include isnand.h instead of isnan.h.
57997         (ISNAN): Set to isnand instead of isnan.
57998         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57999         (gl_isfinited): Use isnand instead of isnan.
58000         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58001         (gl_signbitd): Use isnand instead of isnan.
58002         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58003         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58004         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58005         (main): Use isnand instead of isnan.
58006         * tests/test-round1.c: Include isnand.h.
58007         (main): Use isnand instead of isnan.
58008         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58009         (ISNAN): Set to isnand instead of isnan.
58010         * tests/test-trunc1.c: Include isnand.h.
58011         (main): Use isnand instead of isnan.
58012         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58013         (equal): Use isnand instead of isnan.
58014         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58015         isnand-nolibm.
58016         * NEWS: Mention the change.
58017
58018 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58019             Bruno Haible  <bruno@clisp.org>
58020
58021         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58022         the GCC builtins for signbits are present and set
58023         REPLACE_SIGNBIT_USING_GCC if so.
58024         * lib/math.in.h (signbit): Define using GCC builtins if
58025         REPLACE_SIGNBIT_USING_GCC is set.
58026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58027         REPLACE_SIGNBIT_USING_GCC.
58028         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58029
58030 2008-01-25  Jim Meyering  <meyering@redhat.com>
58031
58032         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58033         * lib/poll.c: Include <config.h>, not "config.h".
58034         * tests/test-getaddrinfo.c: Likewise.
58035
58036 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58037
58038         * modules/sockets-tests: New file.
58039
58040 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58041
58042         * modules/sockets: New module, can be used to call WSA_Startup and
58043         WSA_Cleanup when needed.
58044
58045         * lib/sockets.h, lib/sockets.c: New files.
58046
58047         * m4/sockets.m4: New file.
58048
58049         * tests/test-sockets.c: New file.
58050
58051 2008-01-19  Bruno Haible  <bruno@clisp.org>
58052
58053         * doc/posix-headers: Renamed from doc/headers.
58054         * doc/posix-functions: Renamed from doc/functions.
58055         * doc/gnulib.texi: Update.
58056
58057 2008-01-19  Bruno Haible  <bruno@clisp.org>
58058
58059         * doc/glibc-functions/strcasestr.texi: Include contents of
58060         doc/functions/strcasestr.texi, fixing the list of platforms.
58061         * doc/functions/strcasestr.texi: Remove file.
58062
58063 2008-01-19  Bruno Haible  <bruno@clisp.org>
58064
58065         * doc/glibc-functions/memmem.texi: Include contents of
58066         doc/functions/memmem.texi.
58067         * doc/functions/memmem.texi: Remove file.
58068
58069 2008-01-18  Bruno Haible  <bruno@clisp.org>
58070
58071         * doc/glibc-functions/*.texi: New files.
58072         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58073         to use the new files.
58074
58075 2008-01-17  Bruno Haible  <bruno@clisp.org>
58076
58077         * tests/test-gethostname.c (main): Fix printf statement.
58078
58079 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58080
58081         * modules/gethostname-tests: New file.
58082
58083         * tests/test-gethostname.c: New file.
58084
58085 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58086
58087         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58088         used by the UNAME case.  Reported by Bruno Haible
58089         <bruno@clisp.org>.
58090
58091 2008-01-17  Eric Blake  <ebb9@byu.net>
58092
58093         Convert c-strcasestr to be more efficient.
58094         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58095         (Depends-on): Add c-strcase, remove malloca, strnlen.
58096         * tests/test-c-strcasestr.c (main): Enhance test.
58097         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58098
58099 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58100
58101         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58102         Use it in creating po/Makevars.
58103
58104 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58105
58106         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58107         Applications that requires it should initialize libgcrypt
58108         manually.
58109
58110 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58111
58112         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58113
58114 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58115
58116         Fix problem with getdate on mingw32 reported by Simon Josefsson
58117         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58118         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58119         tzname", when deciding whether to declare tzname.
58120         * lib/strftime.c (tzname): Likewise.
58121
58122 2008-01-15  Bruno Haible  <bruno@clisp.org>
58123
58124         Work around a MacOS X 10.5 bug in frexpl().
58125         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58126         * doc/functions/frexpl.texi: Document the bug.
58127         Reported by Elias Pipping <pipping@gentoo.org>.
58128
58129 2008-01-14  Eric Blake  <ebb9@byu.net>
58130
58131         Touch up previous patch.
58132         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58133         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58134
58135         Convert strcasestr module to use Two-Way algorithm.
58136         * modules/strcasestr-simple: New module, based on the old
58137         strcasestr, but with Two-Way rather than KMP.
58138         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58139         * lib/string.in.h (rpl_strcasestr): Declare.
58140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58141         performance.
58142         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58143         * modules/string (Makefile.am): Support strcasestr.
58144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58145         * modules/strcasestr-tests (Depends-on): Check for alarm.
58146         * tests/test-strcasestr.c: Augment test.
58147         * lib/str-two-way.h: Clean up stray macro.
58148         * NEWS: Document new module.
58149         * MODULES.html.sh (string handling): Likewise.
58150         * doc/functions/strcasestr.texi: New file.
58151         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58152         here, since it is not a POSIX function.
58153
58154 2008-01-14  Colin Watson  <cjwatson@debian.org>
58155             Bruno Haible  <bruno@clisp.org>
58156
58157         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58158         works fine; if not, set REPLACE_STRSIGNAL.
58159         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58161         REPLACE_STRSIGNAL.
58162         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58163         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58164         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58165
58166 2008-01-14  Bruno Haible  <bruno@clisp.org>
58167
58168         * modules/strsignal (Include): Change to <string.h>.
58169
58170 2008-01-14  Colin Watson  <cjwatson@debian.org>
58171
58172         * modules/argp (Notice): Add a notice recommending to change
58173         XGETTEXT_OPTIONS.
58174         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58175
58176 2008-01-13  Colin Watson  <cjwatson@debian.org>
58177
58178         * modules/strsignal-tests: New file.
58179         * tests/test-strsignal.c: New file.
58180
58181         * lib/strsignal.c: New file, from glibc with modifications.
58182         * lib/siglist.h: New file, from glibc with modifications.
58183         * lib/string.in.h (strsignal): New declaration.
58184         * m4/strsignal.m4: New file.
58185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58186         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58187         * modules/strsignal: New file.
58188         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58189         HAVE_DECL_STRSIGNAL.
58190
58191 2008-01-13  Bruno Haible  <bruno@clisp.org>
58192
58193         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58194         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58195         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58196         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58197
58198 2008-01-13  Bruno Haible  <bruno@clisp.org>
58199
58200         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58201         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58202         * lib/argp.h (__attribute__): Likewise.
58203         * lib/c-stack.c (__attribute__): Likewise.
58204         * lib/error.h (__attribute__): Likewise.
58205         * lib/fts.c (__attribute__): Likewise.
58206         * lib/openat.h (__attribute__): Likewise.
58207         * lib/stdio.in.h (__attribute__): Likewise.
58208         * lib/string.in.h (__attribute__): Likewise.
58209         * lib/utimens.c (__attribute__): Likewise.
58210         * lib/vasnprintf.h (__attribute__): Likewise.
58211         * lib/xalloc.h (__attribute__): Likewise.
58212         * lib/xprintf.h (__attribute__): Likewise.
58213         * lib/xstrtol.h (__attribute__): Likewise.
58214         * lib/xvasprintf.h (__attribute__): Likewise.
58215
58216 2008-01-12  Bruno Haible  <bruno@clisp.org>
58217
58218         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58219         * doc/glibc-headers/a.out.texi: New file.
58220         * doc/glibc-headers/aliases.texi: New file.
58221         * doc/glibc-headers/alloca.texi: New file.
58222         * doc/glibc-headers/ar.texi: New file.
58223         * doc/glibc-headers/argp.texi: New file.
58224         * doc/glibc-headers/argz.texi: New file.
58225         * doc/glibc-headers/byteswap.texi: New file.
58226         * doc/glibc-headers/crypt.texi: New file.
58227         * doc/glibc-headers/endian.texi: New file.
58228         * doc/glibc-headers/envz.texi: New file.
58229         * doc/glibc-headers/err.texi: New file.
58230         * doc/glibc-headers/error.texi: New file.
58231         * doc/glibc-headers/execinfo.texi: New file.
58232         * doc/glibc-headers/fpu_control.texi: New file.
58233         * doc/glibc-headers/fstab.texi: New file.
58234         * doc/glibc-headers/fts.texi: New file.
58235         * doc/glibc-headers/getopt.texi: New file.
58236         * doc/glibc-headers/ieee754.texi: New file.
58237         * doc/glibc-headers/ifaddrs.texi: New file.
58238         * doc/glibc-headers/libintl.texi: New file.
58239         * doc/glibc-headers/mcheck.texi: New file.
58240         * doc/glibc-headers/mntent.texi: New file.
58241         * doc/glibc-headers/obstack.texi: New file.
58242         * doc/glibc-headers/paths.texi: New file.
58243         * doc/glibc-headers/printf.texi: New file.
58244         * doc/glibc-headers/pty.texi: New file.
58245         * doc/glibc-headers/resolv.texi: New file.
58246         * doc/glibc-headers/shadow.texi: New file.
58247         * doc/glibc-headers/sysexits.texi: New file.
58248         * doc/glibc-headers/ttyent.texi: New file.
58249
58250 2008-01-12  Jim Meyering  <meyering@redhat.com>
58251
58252         announce-gen: emit Gnulib's git-based version string.
58253         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58254         New option --gnulib-version=V, where V is expected to be
58255         the output of running git describe in the gnulib directory.
58256         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58257         not useful, and plan to stop publishing an xdelta file with each
58258         coreutils release.
58259
58260         * build-aux/announce-gen: Also check for lzma-compressed files.
58261
58262 2008-01-11  Bruno Haible  <bruno@clisp.org>
58263
58264         * tests/test-memmem.c (main): Increase maximum allowed time.
58265         * tests/test-strstr.c (main): Likewise.
58266
58267 2008-01-11  Bruno Haible  <bruno@clisp.org>
58268
58269         * doc/functions/memmem.texi: Add more precisions about platforms.
58270         * doc/functions/strstr.texi: Likewise.
58271
58272 2008-01-10  Eric Blake  <ebb9@byu.net>
58273
58274         * m4/strstr.m4: Delete cruft from copy-n-paste.
58275         Reported by Bruno Haible.
58276
58277 2008-01-10  Bruno Haible  <bruno@clisp.org>
58278
58279         Make c-strstr rely on strstr.
58280         * lib/c-strstr.c: Don't include str-kmp.h.
58281         (c_strstr): Define in terms of strstr.
58282         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58283         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58284
58285 2008-01-10  Bruno Haible  <bruno@clisp.org>
58286
58287         * doc/gnulib.texi (String Functions in C Locale): New section.
58288         * doc/c-ctype.texi: New file.
58289         * doc/c-strcase.texi: New file.
58290         * doc/c-strcaseeq.texi: New file.
58291         * doc/c-strcasestr.texi: New file.
58292         * doc/c-strstr.texi: New file.
58293         * doc/c-strtod.texi: New file.
58294         * doc/c-strtold.texi: New file.
58295
58296 2008-01-10  Eric Blake  <ebb9@byu.net>
58297
58298         * lib/relocatable.h: Fix a comment.
58299
58300 2008-01-10  Eric Blake  <ebb9@byu.net>
58301
58302         Share two-way algorithm.
58303         * lib/str-two-way.h: New file, merged from...
58304         * lib/memmem.c: ...here...
58305         * lib/strstr.c: ...and here.
58306         * modules/memmem (Files): Use it.
58307         * modules/strstr (Files): Likewise.
58308
58309         Avoid quadratic strstr implementations.
58310         * lib/strstr.c: New file.
58311         * m4/strstr.m4: Likewise.
58312         * modules/strstr: Likewise.
58313         * modules/strstr-tests: Likewise.
58314         * tests/test-strstr.c: Likewise.
58315         * lib/string.in.h (rpl_strstr): Declare.
58316         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58318         * modules/string (Makefile.am): Likewise.
58319         * MODULES.html.sh (string handling): Mention new module.
58320         * doc/functions/strstr.texi (strstr): Document the bug.
58321
58322 2008-01-10  Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/relocatable.h (relocate): State whether result is freshly
58325         allocated or not.
58326         * lib/relocatable.c (relocate): Return a freshly allocated string
58327         instead of a pointer to a privately held string.
58328         Reported by Sylvain Beucler <beuc@gnu.org>.
58329
58330 2008-01-10  Colin Watson  <cjwatson@debian.org>
58331
58332         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58333         s/S_ISNLK/S_ISLNK/.
58334
58335 2008-01-09  Bruno Haible  <bruno@clisp.org>
58336
58337         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58338         and other files.
58339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58340         if it's only a guess.
58341         * modules/memmem: Simplify by depending on memmem-simple.
58342
58343 2008-01-09  Bruno Haible  <bruno@clisp.org>
58344
58345         Work around OpenBSD 4.0 tdelete() bug.
58346         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58347         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58348         macros and don't redefine the enum values.
58349         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58350         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58351         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58352
58353 2008-01-09  Bruno Haible  <bruno@clisp.org>
58354
58355         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58356         (main): Don't perform the tests if setlocale did not install a UTF-8
58357         locale. Needed on OpenBSD 4.0.
58358         * modules/wcwidth-tests (Depends-on): Add localcharset.
58359
58360 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58361
58362         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58363         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58364         * NEWS: announce this.
58365         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58366
58367 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58368         and Eric Blake  <ebb9@byu.net>
58369
58370         Add memmem-simple module.
58371         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58372         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58373         * modules/memmem-simple: New file.
58374         * modules/memmem (Description): Tweak.
58375         * MODULES.html.sh (string handling): Mention new module.
58376         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58377         addressed by memmem-simple.
58378         * NEWS: Document the difference.
58379
58380 2008-01-09  Eric Blake  <ebb9@byu.net>
58381
58382         Give gcc some memmem optimization hints.
58383         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58384         (strcasestr): Declare as pure.
58385         * modules/memmem (Maintainer): Claim my implementation.
58386
58387 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58388
58389         Support AIX 6.1 and higher.
58390         * build-aux/config.libpath: Likewise.
58391         * build-aux/config.rpath: Likewise.
58392
58393 2008-01-08  Jim Meyering  <meyering@redhat.com>
58394             Bruno Haible  <bruno@clisp.org>
58395
58396         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58397         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58398         Reported by Peter Fales in
58399         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58400
58401 2008-01-08  Bruno Haible  <bruno@clisp.org>
58402
58403         * modules/unictype/category-of (Depends-on): Add
58404         unictype/category-none.
58405         * modules/unictype/category-and-tests (Depends-on): Add
58406         unictype/category-{L,N,Lu,Nd}.
58407         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58408         * modules/unictype/category-or-tests (Depends-on): Add
58409         unictype/category-{L,N}.
58410         * modules/unictype/category-name-tests (Depends-on): Add
58411         unictype/category-{Z,Nl}.
58412         Reported by Simon Josefsson.
58413
58414 2008-01-08  Bruno Haible  <bruno@clisp.org>
58415
58416         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58417         convention better.
58418         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58419         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58420         Reported by Peter Miller <millerp@canb.auug.org.au>.
58421
58422 2008-01-08  Eric Blake  <ebb9@byu.net>
58423
58424         Rewrite memmem to guarantee linear complexity without malloc.
58425         * lib/memmem.c (memmem): Use Two-Way rather than
58426         Knuth-Morris-Pratt, to allow O(1) space usage.
58427         (critical_factorization, two_way_short_needle)
58428         (two_way_long_needle): New functions.
58429         (knuth_morris_pratt): Delete.
58430         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58431         Add stdint.
58432         * tests/test-memmem.c (main): Add tests for periodic needle and
58433         sublinear performance.
58434         * doc/functions/memmem.texi (memmem): Document other deficiencies
58435         in cygwin and older glibc.
58436
58437 2008-01-08  Bruno Haible  <bruno@clisp.org>
58438
58439         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58440         augmentation.
58441
58442 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58443
58444         Add a configure time option: --disable-acl.
58445         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58446         AC_ARG_ENABLE(acl).
58447
58448 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58449
58450         * tests/test-localename.c: Don't include obsolete "setenv.h".
58451
58452         * modules/localename-tests (Depends-on): Need unsetenv.
58453
58454 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58455
58456         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58457
58458 2008-01-06  Colin Watson  <cjwatson@debian.org>
58459
58460         * users.txt: Add man-db.
58461
58462 2008-01-07  Bruno Haible  <bruno@clisp.org>
58463
58464         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58465         previous section name.
58466
58467 2008-01-07  Bruno Haible  <bruno@clisp.org>
58468
58469         * lib/progname.c (set_program_name): Don't strip off a leading
58470         "lt-" prefix outside a .libs directory.
58471         Suggested by Paul Eggert.
58472
58473 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58474             Bruno Haible  <bruno@clisp.org>
58475
58476         Improve memory cleanup in 'relocatable' module.
58477         * lib/relocatable.h (compute_curr_prefix): Change return type to
58478         'char *'.
58479         * lib/relocatable.c (compute_curr_prefix): Change return type to
58480         'char *'. Free curr_installdir after use.
58481         (relocate): Free curr_prefix_better after use.
58482         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58483
58484 2008-01-01  Bruno Haible  <bruno@clisp.org>
58485
58486         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58487         failure on older glibc systems.
58488         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58489
58490 2008-01-05  Eric Blake  <ebb9@byu.net>
58491
58492         Avoid quadratic system memmem.
58493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58494         Reported by Ralf Wildenhues.
58495
58496         Fix memmem test for mingw.
58497         * modules/memmem-tests (configure.ac): Check for alarm.
58498         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58499         it.
58500         * doc/functions/memmem.texi: New file.
58501         * doc/gnulib.texi (Function Substitutes): Add memmem.
58502         Reported by Bruno Haible.
58503
58504 2008-01-04  Bruno Haible  <bruno@clisp.org>
58505
58506         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58507         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58508         gl_HEADER_STRING_H_DEFAULTS.
58509
58510 2008-01-04  Eric Blake  <ebb9@byu.net>
58511
58512         Shorten duration of memmem test.
58513         * tests/test-memmem.c (main): Use alarm to declare failure if test
58514         is taking too long.
58515         Reported by Ralf Wildenhues.
58516
58517 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58518
58519         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58520         string, needed by strerror.
58521
58522 2008-01-03  Colin Watson  <cjwatson@debian.org>
58523             Bruno Haible  <bruno@clisp.org>
58524
58525         * doc/gnulib-tool.texi (Localization): New section.
58526
58527 2008-01-02  Bruno Haible  <bruno@clisp.org>
58528
58529         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58530         variables to 'unsigned char *' type.
58531         Reported by Paul Eggert.
58532
58533 2008-01-02  Jim Meyering  <jim@meyering.net>
58534
58535         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58536
58537 2007-12-31  Jim Meyering  <jim@meyering.net>
58538
58539         Avoid use of private FTS type name.
58540         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58541
58542 2007-12-30  Karl Berry  <karl@gnu.org>
58543
58544         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58545         work around defect in Texinfo and/or the standalone Info browser.
58546
58547 2007-12-30  Bruno Haible  <bruno@clisp.org>
58548
58549         Unify 5 copies of the KMP code.
58550         * lib/str-kmp.h: New file.
58551         * lib/c-strcasestr.c: Include str-kmp.h.
58552         (knuth_morris_pratt): Remove function.
58553         (c_strcasestr): Update.
58554         * lib/c-strstr.c: Include str-kmp.h.
58555         (knuth_morris_pratt): Remove function.
58556         (c_strcasestr): Update.
58557         * lib/mbscasestr.c: Include str-kmp.h.
58558         (knuth_morris_pratt_unibyte): Remove function.
58559         * lib/mbsstr.c: Include str-kmp.h.
58560         (knuth_morris_pratt_unibyte): Remove function.
58561         * lib/strcasestr.c: Include str-kmp.h.
58562         (knuth_morris_pratt): Remove function.
58563         (strcasestr): Update.
58564         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58565         * modules/c-strstr (Files): Likewise.
58566         * modules/mbscasestr (Files): Likewise.
58567         * modules/mbsstr (Files): Likewise.
58568         * modules/strcasestr (Files): Likewise.
58569         Suggested by Paul Eggert.
58570
58571 2007-12-30  Bruno Haible  <bruno@clisp.org>
58572
58573         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58574         defined.
58575
58576 2007-12-30  Bruno Haible  <bruno@clisp.org>
58577
58578         * lib/xmalloca.h: Include xalloc.h.
58579         (xnmalloca): New macro.
58580
58581 2007-12-30  Bruno Haible  <bruno@clisp.org>
58582
58583         * lib/malloca.h (nmalloca): New macro.
58584         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58585         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58586         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58587         knuth_morris_pratt_multibyte): Likewise.
58588         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58589         knuth_morris_pratt_multibyte): Likewise.
58590         * lib/memmem.c (knuth_morris_pratt): Likewise.
58591         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58592
58593 2007-12-25  Bruno Haible  <bruno@clisp.org>
58594
58595         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58596         * lib/glob.c: Don't include openat.h.
58597         (link_exists2_p): Add back the code that deals with the
58598         !GLOB_ALTDIRFUNC case.
58599         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58600         let it do the filename concatenation.
58601         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58602         * modules/glob (Depends-on): Remove openat.
58603
58604 2007-12-31  Bruno Haible  <bruno@clisp.org>
58605
58606         * modules/dirfd (License): Change to LGPLv2+.
58607         Approved by Jim Meyering.
58608
58609 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58610
58611         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58612         when multiplying M by sizeof (size_t).
58613
58614 2007-12-10  Martin Lambers  <marlam@marlam.de>
58615
58616         Override getpagesize on mingw.
58617         * lib/getpagesize.c: New file.
58618         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58619         * modules/getpagesize (Files): Add lib/getpagesize.c.
58620         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58622         REPLACE_GETPAGESIZE.
58623         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58624
58625 2007-12-25  Bruno Haible  <bruno@clisp.org>
58626
58627         * modules/localcharset (Notice): New field.
58628         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58629         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58630
58631 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58632             Bruno Haible  <bruno@clisp.org>
58633
58634         Avoid using the syntax symbol() in formatted documentation.
58635         * MODULES.html.sh (func_module): When replacing symbol() with a
58636         hyperlink, remove the parentheses. Show an error if some remain.
58637         Recognize and render the '...' syntax.
58638         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58639         Rework. Add paragraph about GCC's inlining.
58640         * doc/alloca.texi: Likewise.
58641         * doc/error.texi: Remove parentheses from symbol reference.
58642         * doc/gnulib-intro.texi: Likewise.
58643         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58644         * modules/fnmatch (Description): Reword to say "the ... function".
58645         * modules/full-read (Description): Likewise.
58646         * modules/full-write (Description): Likewise.
58647         * modules/safe-read (Description): Likewise.
58648         * modules/safe-write (Description): Likewise.
58649         * modules/strchrnul (Description): Likewise.
58650         * modules/trim (Description): Likewise.
58651         * modules/error (Description): Remove parentheses from symbol
58652         references.
58653         * modules/verror (Description): Likewise.
58654         Reported by Karl Berry.
58655
58656 2007-12-25  Bruno Haible  <bruno@clisp.org>
58657
58658         Fixup after 2007-10-16 commit.
58659         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58660
58661 2007-12-24  Bruno Haible  <bruno@clisp.org>
58662
58663         Make --enable-relocatable work with DESTDIR.
58664         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58665         to compute installdir from destprog.
58666         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58667         also set the RELOC_DESTDIR variable.
58668         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58669
58670 2007-12-24  Bruno Haible  <bruno@clisp.org>
58671
58672         Fix link error due to xalloc_die().
58673         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58674         of xreadlink.
58675         * lib/relocwrapper.c: Update comments.
58676         * build-aux/install-reloc: Remove xreadlink.c from file list.
58677         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58678         xreadlink.c.
58679         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58680
58681 2007-12-24  Bruno Haible  <bruno@clisp.org>
58682
58683         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58684         * lib/setenv.h: Remove file.
58685         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58686         lib/setenv.h.
58687         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58688         (Depends-on): Add stdlib.
58689         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58690         gl_FUNC_UNSETENV.
58691         (Include): Replace setenv.h with <stdlib.h>.
58692         * modules/unsetenv: New file.
58693         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58694         * lib/unsetenv.c: Include <stdlib.h> first.
58695         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58696         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58697         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58698         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58699         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58700         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58702         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58703         * doc/functions/unsetenv.texi: Update.
58704         * modules/xsetenv (Depends-on): Add unsetenv.
58705         * modules/getdate (Depends-on): Likewise.
58706         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58707         * lib/xsetenv.c: Don't include setenv.h.
58708         * lib/getdate.y: Likewise.
58709         * lib/relocwrapper.c: Likewise.
58710         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58711         (Depends-on): Add stdlib.
58712         * NEWS: Mention the changes.
58713         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58714
58715 2007-12-23  Bruno Haible  <bruno@clisp.org>
58716
58717         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58718         indentation.
58719
58720 2007-12-23  Bruno Haible  <bruno@clisp.org>
58721
58722         * lib/c-strcasestr.c: Add more comments.
58723         * lib/c-strstr.c: Likewise.
58724         * lib/mbscasestr.c: Likewise.
58725         * lib/mbsstr.c: Likewise.
58726         * lib/strcasestr.c: Likewise.
58727         * lib/memmem.c: Likewise.
58728
58729 2007-12-23  Bruno Haible  <bruno@clisp.org>
58730
58731         * tests/test-memmem.c: Include <string.h> first.
58732
58733 2007-12-22  Bruno Haible  <bruno@clisp.org>
58734
58735         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58736         the contents of $testsbase.
58737         Reported by Ralf Wildenhues.
58738
58739 2007-12-22  Bruno Haible  <bruno@clisp.org>
58740
58741         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58742         two variables local_ldadd_before, local_ldadd_last.
58743
58744 2007-12-20  Eric Blake  <ebb9@byu.net>
58745
58746         Work around circular library issue when cross-compiling.
58747         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58748         that progname.o does not need to pull in rpl_memcmp.
58749
58750 2007-12-19  Eric Blake  <ebb9@byu.net>
58751
58752         Fix memmem to avoid O(n^2) worst-case complexity.
58753         * lib/memmem.c (knuth_morris_pratt): New function.
58754         (memmem): Use it if first few naive iterations fail.
58755         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58756         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58757         * modules/memchr (License): Likewise.
58758         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58759         malloca.
58760         * tests/test-memmem.c: Rewrite, borrowing ideas from
58761         test-mbsstr1.c; the old version wouldn't even compile!
58762         * modules/memmem-tests: New file.
58763         * lib/string.in.h (rpl_memmem): Add declaration.
58764         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58766         REPLACE_MEMMEM.
58767
58768 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58769
58770         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58771         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58772         before any system include files, and undef after them all.  This
58773         should fix a problem on VMS reported by John E. Malmberg in
58774         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58775
58776 2007-12-17  Eric Blake  <ebb9@byu.net>
58777
58778         Revert addition of verify, for BSD/OS.
58779         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58780         can't handle large files, for the sake of obsolete platforms.
58781         * modules/fseeko (Depends-on): Remove verify.
58782         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58783         * doc/functions/ftello.texi (ftello): Likewise.
58784         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58785         Reported by Larry Jones.
58786
58787 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58788
58789         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58790         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58791
58792 2007-12-17  Jim Meyering  <meyering@redhat.com>
58793
58794         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58795         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58796         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58797         * modules/getcwd (Depends-on): Add openat.
58798         Reported by Petr Salinger.
58799
58800 2007-12-17  Bruno Haible  <bruno@clisp.org>
58801
58802         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58803         avoid a segmentation fault of the configure test on x86_64 systems.
58804
58805 2007-12-15  Jim Meyering  <meyering@redhat.com>
58806
58807         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58808
58809 2007-12-13  Eric Blake  <ebb9@byu.net>
58810
58811         Another fseek test.
58812         * tests/test-fseek.c (main): Also test ungetc handling.
58813         * tests/test-fseeko.c (main): Likewise.
58814         * modules/fseeko (Depends-on): Add verify.
58815         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58816         large.
58817         Reported by Larry Jones.
58818
58819         Fix fseeko on mingw.
58820         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58821         seek.
58822
58823         Beef up fseek tests.
58824         * tests/test-fseek.c (main): Also test eof handling.
58825         * tests/test-fseeko.c (main): Likewise.
58826         Reported by Larry Jones.
58827
58828 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58829
58830         Fix fseeko on BSD-based platforms.
58831         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58832         successful seek.
58833
58834 2007-12-12  Eric Blake  <ebb9@byu.net>
58835
58836         Allow circular dependency of separate libtests.a
58837         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58838         when use_libtests.
58839
58840 2007-12-11  Eric Blake  <ebb9@byu.net>
58841
58842         Fix bug with -0.0L in previous patch.
58843         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58844         * tests/test-isnan.c (main): Also test on zeroes.
58845         * tests/test-isnanf.c (main): Likewise.
58846         * tests/test-isnanl.h (main): Likewise.
58847
58848         Detect pseudo-denormals on x86 even when cross-compiling.
58849         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58850         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58851         invalid bit patterns that happen to satisfy ==.
58852
58853         Avoid link failures with separate libtests.a.
58854         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58855         last, to satisfy circular dependencies.
58856
58857 2007-12-11  Eric Blake  <ebb9@byu.net>
58858         and Bruno Haible  <bruno@clisp.org>
58859
58860         Fix OpenBSD 4.0 <float.h> handling of long double.
58861         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58862         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58863         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58864
58865 2007-12-11  Jim Meyering  <meyering@redhat.com>
58866
58867         * users.txt: Add libvirt.
58868
58869         Support versions of autoconf prior to 2.59c.
58870         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58871         if it is not already defined.
58872
58873 2007-12-09  Bruno Haible  <bruno@clisp.org>
58874
58875         Let 'gnulib-tool --import' collect sources needed for the tests in
58876         tests/ rather than in lib/.
58877         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58878         argument. If true, add rules to generate libtests.a, and put libtests.a
58879         into $(LDADD). Consider source files in subdirectories and set
58880         uses_subdirs.
58881         (func_emit_initmacro_start, func_emit_initmacro_end,
58882         func_emit_initmacro_done): Pass all arguments explicitly.
58883         (func_import): Determine two module lists main_modules,
58884         testsrelated_modules. Determine use_libtests. Determine two variables
58885         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58886         instead of just sed_transform_lib_file. Determine two variables
58887         main_files and testsrelated_files. Compute 'files' as the union of
58888         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58889         func_add_or_update. In the generated gnulib-comp.m4, collect the
58890         object files for tests/ in different variables than those for lib/.
58891         Substitute LIBTESTS_LIBDEPS.
58892         (func_create_testdir): Combine the uses_subdirs results from
58893         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58894
58895 2007-12-09  Bruno Haible  <bruno@clisp.org>
58896
58897         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58898         the build-aux directory.
58899
58900 2007-12-09  Bruno Haible  <bruno@clisp.org>
58901
58902         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58903         introduced on 2006-09-09.
58904
58905 2007-12-07  Jim Meyering  <meyering@redhat.com>
58906
58907         Let these macros work also with autoconf-2.59.
58908         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58909         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58910         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58911
58912 2007-12-06  Jim Meyering  <meyering@redhat.com>
58913
58914         Avoid a configure-time syntax error in gl_FUNC_ACL.
58915         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58916         function in each branch, before testing the cache variable.
58917
58918 2007-12-04  Eric Blake  <ebb9@byu.net>
58919
58920         Make scripts executable.
58921         * build-aux/config.guess: Add execute permissions.
58922         * build-aux/config.sub: Likewise.
58923         * build-aux/gendocs.sh: Likewise.
58924
58925         Fix frexp on mingw.
58926         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58927         cross-compiling.
58928         * doc/functions/frexp.texi (frexp): Document the bug.
58929
58930         Make cygwin fseeko check more reliable.
58931         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58932         version numbers, rather than unrelated feature check.
58933         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58934         * doc/functions/ftello.texi (ftello): Likewise.
58935         Reported by Bruno Haible.
58936
58937         * m4/strerror.m4: Bump version number.
58938
58939 2007-12-03  Bruno Haible  <bruno@clisp.org>
58940
58941         * doc/functions/mprotect.texi: Mention the mingw problem.
58942
58943 2007-12-03  Eric Blake  <ebb9@byu.net>
58944
58945         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58946         REPLACE_STRERROR is initialized before this macro.
58947
58948 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58949
58950         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58951         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58952         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58953         put -lsec in even for programs other than 'ls'.  This fixes a problem
58954         for gettext reported by Bruno Haible in
58955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58956         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58957         Add support for Solaris 10.  This isn't efficient, but should get the
58958         job done for now.
58959
58960 2007-12-03  James Youngman  <jay@gnu.org>
58961
58962         * doc/regexprops-generic.texi: change "an close-group" to "a
58963         close-group" and "illegal" to "not allowed".
58964
58965 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58966
58967         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58968         pr_byname.h. Needed for the rare case when the maintainer has done
58969         "make maintainer-clean" in the source directory and then attempts a
58970         build outside the source directory.
58971         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58972         scripts_byname.h.
58973
58974 2007-12-02  Martin Lambers <marlam@marlam.de>
58975             Bruno Haible  <bruno@clisp.org>
58976
58977         * lib/getpagesize.h: Remove file.
58978         * lib/unistd.in.h: Include declaration of getpagesize here.
58979         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58980         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58981         HAVE_SYS_PARAM_H.
58982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58983         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58984         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58985         (Depends-on): Add unistd.
58986         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58987         (Include): Use <unistd.h> instead of getpagesize.h.
58988         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58989         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58990         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58991         gl_GETPAGESIZE invocation, already handled by module dependency.
58992         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58993
58994 2007-12-02  Bruno Haible  <bruno@clisp.org>
58995
58996         * modules/strings-tests: New file.
58997         * tests/test-strings.c: New file.
58998
58999         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59000         * lib/strings.in.h: New file.
59001         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59002         * m4/strings_h.m4: New file.
59003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59004         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59005         * modules/strings: New file.
59006         * modules/string (Makefile.am): Update.
59007         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59008         Reported by Karl Berry.
59009
59010 2007-12-01  Eric Blake  <ebb9@byu.net>
59011
59012         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59013         accomodate fix in cygwin 1.5.25.
59014
59015 2007-12-01  Jim Meyering  <meyering@redhat.com>
59016
59017         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59018         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59019         that would inhibit utf8-optimization of a regexp containing line-
59020         or buffer-anchors, e.g., `^', `$'.
59021
59022 2007-11-30  Bruno Haible  <bruno@clisp.org>
59023
59024         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59025         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59026         glthread_recursive_lock_init.
59027         * lib/lock.c (glthread_recursive_lock_init)
59028         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59029         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59030
59031 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59032
59033         New function qset_acl, like set_acl but with syscall semantics.
59034         * lib/acl.h (qset_acl): New decl.
59035         * lib/acl.c (qset_acl): New function.
59036         (set_acl): Use new function.  Use more-consistent diagnostics.
59037
59038 2007-11-28  Jim Meyering  <meyering@redhat.com>
59039
59040         * modules/physmem (License): Change from GPL to LGPLv2+.
59041
59042 2007-11-26  Bruno Haible  <bruno@clisp.org>
59043
59044         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59045         'long double' type has excess precision.
59046         Reported by Jim Meyering in
59047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59048
59049 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59050
59051         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59052         Sync from <http://gnu.org/licenses>.
59053         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59054         with license text from same location.
59055         * doc/maintain.texi, doc/standards.texi:  Sync from
59056         <http://savannah.gnu.org/projects/gnustandards>.
59057
59058 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59059         and Jim Meyering  <meyering@redhat.com>
59060
59061         Adjust getdate' grammar to accept a slightly more regular language.
59062         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59063         Before, the former was rejected.
59064         * lib/getdate.y (digits_to_date_time): New function, factored
59065         out of ...
59066         (number): ...here.  Just call digits_to_date_time.
59067         (hybrid): New non-terminal to handle an <unsigned number,
59068         signed relative offset> sequence consistently.
59069
59070 2007-11-18  Jim Meyering  <meyering@redhat.com>
59071
59072         Pull my changes from coreutils:
59073         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59074         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59075         use of $gnulib_tool_option_extras, so that it's separated from the
59076         preceding argument.
59077
59078         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59079         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59080         parent destination directories before copying a file into place.
59081
59082 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59083
59084         bootstrap: work also with 4-argument variant of AC_INIT
59085         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59086
59087 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         Port test-getaddrinfo to Solaris.
59090         Problem reported by Bruno Haible in
59091         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59092         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59093         explanation of setting 'hints'.
59094         Don't reject an implementation merely because it returns EAI_SERVICE.
59095         (EAI_SERVICE): Define to 0 if not defined.
59096
59097 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59098
59099         The license of gnu-make and posix-shell is now "GPLed build tool".
59100         * modules/gnu-make (License): Likewise.
59101         * modules/posix-shell (License): Likewise.
59102
59103         New module posix-shell, for determining a POSIX shell
59104         or perhaps something that is close enough to a POSIX shell.
59105         * m4/posix-shell.m4: New file.
59106         * modules/posix-shell: New file.
59107
59108         * MODULES.html.sh: Mention new module.
59109
59110         New module gnu-make, for determining whether we're using GNU Make.
59111         * m4/gnu-make.m4: New file.
59112         * modules/gnu-make: New file.
59113         * MODULES.html.sh: Mention new module.
59114
59115 2007-11-14  Jim Meyering  <meyering@redhat.com>
59116
59117         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59118         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59119         use this macro to create a function _definition_.
59120         Remove useless "#undef ARGMATCH_DIE".
59121
59122 2007-11-14  Bruno Haible  <bruno@clisp.org>
59123
59124         * lib/config.charset: Update for OpenBSD 4.1.
59125         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59126
59127 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59128
59129         Document 64-bit #if problems in stdint.texi.
59130         * doc/headers/stdint.texi (stdint.h): Mention problems with
59131         64-bit-#if, and how to work around them.
59132
59133         Don't insist on 'long long int' support in the preprocessor.  It
59134         breaks too many things.  For example, PRIdMAX still uses a 'long
59135         long int' format with the latest Sun compiler, even though
59136         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59137         preprocessor problem.  This causes the latest coreutils to dump
59138         core on Solaris 10 sparc with the Sun C compiler.
59139         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59140         the troublesome expressions at configure-time, not at #if-time.
59141         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59142         preprocessor.
59143         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59144         compile-time C checks, done at 'configure'-time.
59145         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59146         * modules/inttypes (Makefile): Substitute the new symbols that
59147         gl_INTTYPES_H now generates.
59148         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59149
59150 2007-11-12  Bruno Haible  <bruno@clisp.org>
59151
59152         Tests for Unicode character classification functions.
59153
59154         * modules/unictype/bidicategory-byname-tests: New file.
59155         * modules/unictype/bidicategory-name-tests: New file.
59156         * modules/unictype/bidicategory-of-tests: New file.
59157         * modules/unictype/bidicategory-test-tests: New file.
59158         * modules/unictype/block-list-tests: New file.
59159         * modules/unictype/block-of-tests: New file.
59160         * modules/unictype/block-test-tests: New file.
59161         * modules/unictype/category-C-tests: New file.
59162         * modules/unictype/category-Cc-tests: New file.
59163         * modules/unictype/category-Cf-tests: New file.
59164         * modules/unictype/category-Cn-tests: New file.
59165         * modules/unictype/category-Co-tests: New file.
59166         * modules/unictype/category-Cs-tests: New file.
59167         * modules/unictype/category-L-tests: New file.
59168         * modules/unictype/category-Ll-tests: New file.
59169         * modules/unictype/category-Lm-tests: New file.
59170         * modules/unictype/category-Lo-tests: New file.
59171         * modules/unictype/category-Lt-tests: New file.
59172         * modules/unictype/category-Lu-tests: New file.
59173         * modules/unictype/category-M-tests: New file.
59174         * modules/unictype/category-Mc-tests: New file.
59175         * modules/unictype/category-Me-tests: New file.
59176         * modules/unictype/category-Mn-tests: New file.
59177         * modules/unictype/category-N-tests: New file.
59178         * modules/unictype/category-Nd-tests: New file.
59179         * modules/unictype/category-Nl-tests: New file.
59180         * modules/unictype/category-No-tests: New file.
59181         * modules/unictype/category-P-tests: New file.
59182         * modules/unictype/category-Pc-tests: New file.
59183         * modules/unictype/category-Pd-tests: New file.
59184         * modules/unictype/category-Pe-tests: New file.
59185         * modules/unictype/category-Pf-tests: New file.
59186         * modules/unictype/category-Pi-tests: New file.
59187         * modules/unictype/category-Po-tests: New file.
59188         * modules/unictype/category-Ps-tests: New file.
59189         * modules/unictype/category-S-tests: New file.
59190         * modules/unictype/category-Sc-tests: New file.
59191         * modules/unictype/category-Sk-tests: New file.
59192         * modules/unictype/category-Sm-tests: New file.
59193         * modules/unictype/category-So-tests: New file.
59194         * modules/unictype/category-Z-tests: New file.
59195         * modules/unictype/category-Zl-tests: New file.
59196         * modules/unictype/category-Zp-tests: New file.
59197         * modules/unictype/category-Zs-tests: New file.
59198         * modules/unictype/category-and-not-tests: New file.
59199         * modules/unictype/category-and-tests: New file.
59200         * modules/unictype/category-byname-tests: New file.
59201         * modules/unictype/category-name-tests: New file.
59202         * modules/unictype/category-none-tests: New file.
59203         * modules/unictype/category-of-tests: New file.
59204         * modules/unictype/category-or-tests: New file.
59205         * modules/unictype/category-test-withtable-tests: New file.
59206         * modules/unictype/combining-class-tests: New file.
59207         * modules/unictype/ctype-alnum-tests: New file.
59208         * modules/unictype/ctype-alpha-tests: New file.
59209         * modules/unictype/ctype-blank-tests: New file.
59210         * modules/unictype/ctype-cntrl-tests: New file.
59211         * modules/unictype/ctype-digit-tests: New file.
59212         * modules/unictype/ctype-graph-tests: New file.
59213         * modules/unictype/ctype-lower-tests: New file.
59214         * modules/unictype/ctype-print-tests: New file.
59215         * modules/unictype/ctype-punct-tests: New file.
59216         * modules/unictype/ctype-space-tests: New file.
59217         * modules/unictype/ctype-upper-tests: New file.
59218         * modules/unictype/ctype-xdigit-tests: New file.
59219         * modules/unictype/decimal-digit-tests: New file.
59220         * modules/unictype/digit-tests: New file.
59221         * modules/unictype/mirror-tests: New file.
59222         * modules/unictype/numeric-tests: New file.
59223         * modules/unictype/property-alphabetic-tests: New file.
59224         * modules/unictype/property-ascii-hex-digit-tests: New file.
59225         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59226         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59227         * modules/unictype/property-bidi-block-separator-tests: New file.
59228         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59229         * modules/unictype/property-bidi-common-separator-tests: New file.
59230         * modules/unictype/property-bidi-control-tests: New file.
59231         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59232         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59233         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59234         * modules/unictype/property-bidi-european-digit-tests: New file.
59235         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59236         * modules/unictype/property-bidi-left-to-right-tests: New file.
59237         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59238         * modules/unictype/property-bidi-other-neutral-tests: New file.
59239         * modules/unictype/property-bidi-pdf-tests: New file.
59240         * modules/unictype/property-bidi-segment-separator-tests: New file.
59241         * modules/unictype/property-bidi-whitespace-tests: New file.
59242         * modules/unictype/property-byname-tests: New file.
59243         * modules/unictype/property-combining-tests: New file.
59244         * modules/unictype/property-composite-tests: New file.
59245         * modules/unictype/property-currency-symbol-tests: New file.
59246         * modules/unictype/property-dash-tests: New file.
59247         * modules/unictype/property-decimal-digit-tests: New file.
59248         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59249         * modules/unictype/property-deprecated-tests: New file.
59250         * modules/unictype/property-diacritic-tests: New file.
59251         * modules/unictype/property-extender-tests: New file.
59252         * modules/unictype/property-format-control-tests: New file.
59253         * modules/unictype/property-grapheme-base-tests: New file.
59254         * modules/unictype/property-grapheme-extend-tests: New file.
59255         * modules/unictype/property-grapheme-link-tests: New file.
59256         * modules/unictype/property-hex-digit-tests: New file.
59257         * modules/unictype/property-hyphen-tests: New file.
59258         * modules/unictype/property-id-continue-tests: New file.
59259         * modules/unictype/property-id-start-tests: New file.
59260         * modules/unictype/property-ideographic-tests: New file.
59261         * modules/unictype/property-ids-binary-operator-tests: New file.
59262         * modules/unictype/property-ids-trinary-operator-tests: New file.
59263         * modules/unictype/property-ignorable-control-tests: New file.
59264         * modules/unictype/property-iso-control-tests: New file.
59265         * modules/unictype/property-join-control-tests: New file.
59266         * modules/unictype/property-left-of-pair-tests: New file.
59267         * modules/unictype/property-line-separator-tests: New file.
59268         * modules/unictype/property-logical-order-exception-tests: New file.
59269         * modules/unictype/property-lowercase-tests: New file.
59270         * modules/unictype/property-math-tests: New file.
59271         * modules/unictype/property-non-break-tests: New file.
59272         * modules/unictype/property-not-a-character-tests: New file.
59273         * modules/unictype/property-numeric-tests: New file.
59274         * modules/unictype/property-other-alphabetic-tests: New file.
59275         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59276         * modules/unictype/property-other-grapheme-extend-tests: New file.
59277         * modules/unictype/property-other-id-continue-tests: New file.
59278         * modules/unictype/property-other-id-start-tests: New file.
59279         * modules/unictype/property-other-lowercase-tests: New file.
59280         * modules/unictype/property-other-math-tests: New file.
59281         * modules/unictype/property-other-uppercase-tests: New file.
59282         * modules/unictype/property-paired-punctuation-tests: New file.
59283         * modules/unictype/property-paragraph-separator-tests: New file.
59284         * modules/unictype/property-pattern-syntax-tests: New file.
59285         * modules/unictype/property-pattern-white-space-tests: New file.
59286         * modules/unictype/property-private-use-tests: New file.
59287         * modules/unictype/property-punctuation-tests: New file.
59288         * modules/unictype/property-quotation-mark-tests: New file.
59289         * modules/unictype/property-radical-tests: New file.
59290         * modules/unictype/property-sentence-terminal-tests: New file.
59291         * modules/unictype/property-soft-dotted-tests: New file.
59292         * modules/unictype/property-space-tests: New file.
59293         * modules/unictype/property-terminal-punctuation-tests: New file.
59294         * modules/unictype/property-test-tests: New file.
59295         * modules/unictype/property-titlecase-tests: New file.
59296         * modules/unictype/property-unassigned-code-value-tests: New file.
59297         * modules/unictype/property-unified-ideograph-tests: New file.
59298         * modules/unictype/property-uppercase-tests: New file.
59299         * modules/unictype/property-variation-selector-tests: New file.
59300         * modules/unictype/property-white-space-tests: New file.
59301         * modules/unictype/property-xid-continue-tests: New file.
59302         * modules/unictype/property-xid-start-tests: New file.
59303         * modules/unictype/property-zero-width-tests: New file.
59304         * modules/unictype/scripts-tests: New file.
59305         * modules/unictype/syntax-c-ident-tests: New file.
59306         * modules/unictype/syntax-c-whitespace-tests: New file.
59307         * modules/unictype/syntax-java-ident-tests: New file.
59308         * modules/unictype/syntax-java-whitespace-tests: New file.
59309         * tests/unictype/test-bidi_byname.c: New file.
59310         * tests/unictype/test-bidi_name.c: New file.
59311         * tests/unictype/test-bidi_of.c: New file.
59312         * tests/unictype/test-bidi_test.c: New file.
59313         * tests/unictype/test-block_list.c: New file.
59314         * tests/unictype/test-block_of.c: New file.
59315         * tests/unictype/test-block_test.c: New file.
59316         * tests/unictype/test-categ_and.c: New file.
59317         * tests/unictype/test-categ_and_not.c: New file.
59318         * tests/unictype/test-categ_byname.c: New file.
59319         * tests/unictype/test-categ_name.c: New file.
59320         * tests/unictype/test-categ_none.c: New file.
59321         * tests/unictype/test-categ_of.c: New file.
59322         * tests/unictype/test-categ_or.c: New file.
59323         * tests/unictype/test-categ_test_withtable.c: New file.
59324         * tests/unictype/test-combining.c: New file.
59325         * tests/unictype/test-decdigit.c: New file.
59326         * tests/unictype/test-digit.c: New file.
59327         * tests/unictype/test-mirror.c: New file.
59328         * tests/unictype/test-numeric.c: New file.
59329         * tests/unictype/test-pr_byname.c: New file.
59330         * tests/unictype/test-pr_test.c: New file.
59331         * tests/unictype/test-predicate-part1.h: New file.
59332         * tests/unictype/test-predicate-part2.h: New file.
59333         * tests/unictype/test-scripts.c: New file.
59334         * tests/unictype/test-sy_c_ident.c: New file.
59335         * tests/unictype/test-sy_java_ident.c: New file.
59336
59337         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59338         for Unicode 5.0.0.
59339         * tests/unictype/test-categ_Cc.c: Likewise.
59340         * tests/unictype/test-categ_Cf.c: Likewise.
59341         * tests/unictype/test-categ_Cn.c: Likewise.
59342         * tests/unictype/test-categ_Co.c: Likewise.
59343         * tests/unictype/test-categ_Cs.c: Likewise.
59344         * tests/unictype/test-categ_L.c: Likewise.
59345         * tests/unictype/test-categ_Ll.c: Likewise.
59346         * tests/unictype/test-categ_Lm.c: Likewise.
59347         * tests/unictype/test-categ_Lo.c: Likewise.
59348         * tests/unictype/test-categ_Lt.c: Likewise.
59349         * tests/unictype/test-categ_Lu.c: Likewise.
59350         * tests/unictype/test-categ_M.c: Likewise.
59351         * tests/unictype/test-categ_Mc.c: Likewise.
59352         * tests/unictype/test-categ_Me.c: Likewise.
59353         * tests/unictype/test-categ_Mn.c: Likewise.
59354         * tests/unictype/test-categ_N.c: Likewise.
59355         * tests/unictype/test-categ_Nd.c: Likewise.
59356         * tests/unictype/test-categ_Nl.c: Likewise.
59357         * tests/unictype/test-categ_No.c: Likewise.
59358         * tests/unictype/test-categ_P.c: Likewise.
59359         * tests/unictype/test-categ_Pc.c: Likewise.
59360         * tests/unictype/test-categ_Pd.c: Likewise.
59361         * tests/unictype/test-categ_Pe.c: Likewise.
59362         * tests/unictype/test-categ_Pf.c: Likewise.
59363         * tests/unictype/test-categ_Pi.c: Likewise.
59364         * tests/unictype/test-categ_Po.c: Likewise.
59365         * tests/unictype/test-categ_Ps.c: Likewise.
59366         * tests/unictype/test-categ_S.c: Likewise.
59367         * tests/unictype/test-categ_Sc.c: Likewise.
59368         * tests/unictype/test-categ_Sk.c: Likewise.
59369         * tests/unictype/test-categ_Sm.c: Likewise.
59370         * tests/unictype/test-categ_So.c: Likewise.
59371         * tests/unictype/test-categ_Z.c: Likewise.
59372         * tests/unictype/test-categ_Zl.c: Likewise.
59373         * tests/unictype/test-categ_Zp.c: Likewise.
59374         * tests/unictype/test-categ_Zs.c: Likewise.
59375         * tests/unictype/test-ctype_alnum.c: Likewise.
59376         * tests/unictype/test-ctype_alpha.c: Likewise.
59377         * tests/unictype/test-ctype_blank.c: Likewise.
59378         * tests/unictype/test-ctype_cntrl.c: Likewise.
59379         * tests/unictype/test-ctype_digit.c: Likewise.
59380         * tests/unictype/test-ctype_graph.c: Likewise.
59381         * tests/unictype/test-ctype_lower.c: Likewise.
59382         * tests/unictype/test-ctype_print.c: Likewise.
59383         * tests/unictype/test-ctype_punct.c: Likewise.
59384         * tests/unictype/test-ctype_space.c: Likewise.
59385         * tests/unictype/test-ctype_upper.c: Likewise.
59386         * tests/unictype/test-ctype_xdigit.c: Likewise.
59387         * tests/unictype/test-decdigit.h: Likewise.
59388         * tests/unictype/test-digit.h: Likewise.
59389         * tests/unictype/test-numeric.h: Likewise.
59390         * tests/unictype/test-pr_alphabetic.c: Likewise.
59391         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59392         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59393         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59394         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59395         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59396         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59397         * tests/unictype/test-pr_bidi_control.c: Likewise.
59398         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59399         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59400         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59401         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59402         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59403         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59404         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59405         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59406         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59407         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59408         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59409         * tests/unictype/test-pr_combining.c: Likewise.
59410         * tests/unictype/test-pr_composite.c: Likewise.
59411         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59412         * tests/unictype/test-pr_dash.c: Likewise.
59413         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59414         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59415         * tests/unictype/test-pr_deprecated.c: Likewise.
59416         * tests/unictype/test-pr_diacritic.c: Likewise.
59417         * tests/unictype/test-pr_extender.c: Likewise.
59418         * tests/unictype/test-pr_format_control.c: Likewise.
59419         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59420         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59421         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59422         * tests/unictype/test-pr_hex_digit.c: Likewise.
59423         * tests/unictype/test-pr_hyphen.c: Likewise.
59424         * tests/unictype/test-pr_id_continue.c: Likewise.
59425         * tests/unictype/test-pr_id_start.c: Likewise.
59426         * tests/unictype/test-pr_ideographic.c: Likewise.
59427         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59428         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59429         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59430         * tests/unictype/test-pr_iso_control.c: Likewise.
59431         * tests/unictype/test-pr_join_control.c: Likewise.
59432         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59433         * tests/unictype/test-pr_line_separator.c: Likewise.
59434         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59435         * tests/unictype/test-pr_lowercase.c: Likewise.
59436         * tests/unictype/test-pr_math.c: Likewise.
59437         * tests/unictype/test-pr_non_break.c: Likewise.
59438         * tests/unictype/test-pr_not_a_character.c: Likewise.
59439         * tests/unictype/test-pr_numeric.c: Likewise.
59440         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59441         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59442         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59443         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59444         * tests/unictype/test-pr_other_id_start.c: Likewise.
59445         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59446         * tests/unictype/test-pr_other_math.c: Likewise.
59447         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59448         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59449         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59450         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59451         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59452         * tests/unictype/test-pr_private_use.c: Likewise.
59453         * tests/unictype/test-pr_punctuation.c: Likewise.
59454         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59455         * tests/unictype/test-pr_radical.c: Likewise.
59456         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59457         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59458         * tests/unictype/test-pr_space.c: Likewise.
59459         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59460         * tests/unictype/test-pr_titlecase.c: Likewise.
59461         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59462         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59463         * tests/unictype/test-pr_uppercase.c: Likewise.
59464         * tests/unictype/test-pr_variation_selector.c: Likewise.
59465         * tests/unictype/test-pr_white_space.c: Likewise.
59466         * tests/unictype/test-pr_xid_continue.c: Likewise.
59467         * tests/unictype/test-pr_xid_start.c: Likewise.
59468         * tests/unictype/test-pr_zero_width.c: Likewise.
59469         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59470         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59471
59472 2007-11-12  Bruno Haible  <bruno@clisp.org>
59473
59474         Unicode character classification functions.
59475         * lib/unictype.h: New file.
59476         * modules/unictype/base: New file.
59477         * modules/unictype/category-L: New file.
59478         * modules/unictype/category-Lu: New file.
59479         * modules/unictype/category-Ll: New file.
59480         * modules/unictype/category-Lt: New file.
59481         * modules/unictype/category-Lm: New file.
59482         * modules/unictype/category-Lo: New file.
59483         * modules/unictype/category-M: New file.
59484         * modules/unictype/category-Mn: New file.
59485         * modules/unictype/category-Mc: New file.
59486         * modules/unictype/category-Me: New file.
59487         * modules/unictype/category-N: New file.
59488         * modules/unictype/category-Nd: New file.
59489         * modules/unictype/category-Nl: New file.
59490         * modules/unictype/category-No: New file.
59491         * modules/unictype/category-P: New file.
59492         * modules/unictype/category-Pc: New file.
59493         * modules/unictype/category-Pd: New file.
59494         * modules/unictype/category-Ps: New file.
59495         * modules/unictype/category-Pe: New file.
59496         * modules/unictype/category-Pi: New file.
59497         * modules/unictype/category-Pf: New file.
59498         * modules/unictype/category-Po: New file.
59499         * modules/unictype/category-S: New file.
59500         * modules/unictype/category-Sm: New file.
59501         * modules/unictype/category-Sc: New file.
59502         * modules/unictype/category-Sk: New file.
59503         * modules/unictype/category-So: New file.
59504         * modules/unictype/category-Z: New file.
59505         * modules/unictype/category-Zs: New file.
59506         * modules/unictype/category-Zl: New file.
59507         * modules/unictype/category-Zp: New file.
59508         * modules/unictype/category-C: New file.
59509         * modules/unictype/category-Cc: New file.
59510         * modules/unictype/category-Cf: New file.
59511         * modules/unictype/category-Cs: New file.
59512         * modules/unictype/category-Co: New file.
59513         * modules/unictype/category-Cn: New file.
59514         * modules/unictype/category-or: New file.
59515         * modules/unictype/category-of: New file.
59516         * modules/unictype/category-test: New file.
59517         * modules/unictype/category-test-withtable: New file.
59518         * modules/unictype/category-byname: New file.
59519         * modules/unictype/category-none: New file.
59520         * modules/unictype/category-and: New file.
59521         * modules/unictype/category-and-not: New file.
59522         * modules/unictype/category-name: New file.
59523         * modules/unictype/combining-class: New file.
59524         * modules/unictype/category-all: New file.
59525         * modules/unictype/bidicategory-all: New file.
59526         * modules/unictype/bidicategory-byname: New file.
59527         * modules/unictype/bidicategory-name: New file.
59528         * modules/unictype/bidicategory-of: New file.
59529         * modules/unictype/bidicategory-test: New file.
59530         * modules/unictype/decimal-digit: New file.
59531         * modules/unictype/digit: New file.
59532         * modules/unictype/numeric: New file.
59533         * modules/unictype/mirror: New file.
59534         * modules/unictype/property-white-space: New file.
59535         * modules/unictype/property-alphabetic: New file.
59536         * modules/unictype/property-other-alphabetic: New file.
59537         * modules/unictype/property-not-a-character: New file.
59538         * modules/unictype/property-default-ignorable-code-point: New file.
59539         * modules/unictype/property-other-default-ignorable-code-point: New
59540         file.
59541         * modules/unictype/property-deprecated: New file.
59542         * modules/unictype/property-logical-order-exception: New file.
59543         * modules/unictype/property-variation-selector: New file.
59544         * modules/unictype/property-private-use: New file.
59545         * modules/unictype/property-unassigned-code-value: New file.
59546         * modules/unictype/property-uppercase: New file.
59547         * modules/unictype/property-other-uppercase: New file.
59548         * modules/unictype/property-lowercase: New file.
59549         * modules/unictype/property-other-lowercase: New file.
59550         * modules/unictype/property-titlecase: New file.
59551         * modules/unictype/property-soft-dotted: New file.
59552         * modules/unictype/property-id-start: New file.
59553         * modules/unictype/property-other-id-start: New file.
59554         * modules/unictype/property-id-continue: New file.
59555         * modules/unictype/property-other-id-continue: New file.
59556         * modules/unictype/property-xid-start: New file.
59557         * modules/unictype/property-xid-continue: New file.
59558         * modules/unictype/property-pattern-white-space: New file.
59559         * modules/unictype/property-pattern-syntax: New file.
59560         * modules/unictype/property-join-control: New file.
59561         * modules/unictype/property-grapheme-base: New file.
59562         * modules/unictype/property-grapheme-extend: New file.
59563         * modules/unictype/property-other-grapheme-extend: New file.
59564         * modules/unictype/property-grapheme-link: New file.
59565         * modules/unictype/property-bidi-control: New file.
59566         * modules/unictype/property-bidi-left-to-right: New file.
59567         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59568         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59569         * modules/unictype/property-bidi-european-digit: New file.
59570         * modules/unictype/property-bidi-eur-num-separator: New file.
59571         * modules/unictype/property-bidi-eur-num-terminator: New file.
59572         * modules/unictype/property-bidi-arabic-digit: New file.
59573         * modules/unictype/property-bidi-common-separator: New file.
59574         * modules/unictype/property-bidi-block-separator: New file.
59575         * modules/unictype/property-bidi-segment-separator: New file.
59576         * modules/unictype/property-bidi-whitespace: New file.
59577         * modules/unictype/property-bidi-non-spacing-mark: New file.
59578         * modules/unictype/property-bidi-boundary-neutral: New file.
59579         * modules/unictype/property-bidi-pdf: New file.
59580         * modules/unictype/property-bidi-embedding-or-override: New file.
59581         * modules/unictype/property-bidi-other-neutral: New file.
59582         * modules/unictype/property-hex-digit: New file.
59583         * modules/unictype/property-ascii-hex-digit: New file.
59584         * modules/unictype/property-ideographic: New file.
59585         * modules/unictype/property-unified-ideograph: New file.
59586         * modules/unictype/property-radical: New file.
59587         * modules/unictype/property-ids-binary-operator: New file.
59588         * modules/unictype/property-ids-trinary-operator: New file.
59589         * modules/unictype/property-zero-width: New file.
59590         * modules/unictype/property-space: New file.
59591         * modules/unictype/property-non-break: New file.
59592         * modules/unictype/property-iso-control: New file.
59593         * modules/unictype/property-format-control: New file.
59594         * modules/unictype/property-dash: New file.
59595         * modules/unictype/property-hyphen: New file.
59596         * modules/unictype/property-punctuation: New file.
59597         * modules/unictype/property-line-separator: New file.
59598         * modules/unictype/property-paragraph-separator: New file.
59599         * modules/unictype/property-quotation-mark: New file.
59600         * modules/unictype/property-sentence-terminal: New file.
59601         * modules/unictype/property-terminal-punctuation: New file.
59602         * modules/unictype/property-currency-symbol: New file.
59603         * modules/unictype/property-math: New file.
59604         * modules/unictype/property-other-math: New file.
59605         * modules/unictype/property-paired-punctuation: New file.
59606         * modules/unictype/property-left-of-pair: New file.
59607         * modules/unictype/property-combining: New file.
59608         * modules/unictype/property-composite: New file.
59609         * modules/unictype/property-decimal-digit: New file.
59610         * modules/unictype/property-numeric: New file.
59611         * modules/unictype/property-diacritic: New file.
59612         * modules/unictype/property-extender: New file.
59613         * modules/unictype/property-ignorable-control: New file.
59614         * modules/unictype/property-test: New file.
59615         * modules/unictype/property-byname: New file.
59616         * modules/unictype/property-all: New file.
59617         * modules/unictype/scripts: New file.
59618         * modules/unictype/scripts-all: New file.
59619         * modules/unictype/block-of: New file.
59620         * modules/unictype/block-test: New file.
59621         * modules/unictype/block-list: New file.
59622         * modules/unictype/block-all: New file.
59623         * modules/unictype/syntax-c-whitespace: New file.
59624         * modules/unictype/syntax-java-whitespace: New file.
59625         * modules/unictype/syntax-c-ident: New file.
59626         * modules/unictype/syntax-java-ident: New file.
59627         * modules/unictype/ctype-alnum: New file.
59628         * modules/unictype/ctype-alpha: New file.
59629         * modules/unictype/ctype-cntrl: New file.
59630         * modules/unictype/ctype-digit: New file.
59631         * modules/unictype/ctype-graph: New file.
59632         * modules/unictype/ctype-lower: New file.
59633         * modules/unictype/ctype-print: New file.
59634         * modules/unictype/ctype-punct: New file.
59635         * modules/unictype/ctype-space: New file.
59636         * modules/unictype/ctype-upper: New file.
59637         * modules/unictype/ctype-xdigit: New file.
59638         * modules/unictype/ctype-blank: New file.
59639         * lib/unictype/bidi_byname.c: New file.
59640         * lib/unictype/bidi_name.c: New file.
59641         * lib/unictype/bidi_of.c: New file.
59642         * lib/unictype/bidi_test.c: New file.
59643         * lib/unictype/bitmap.h: New file.
59644         * lib/unictype/block_test.c: New file.
59645         * lib/unictype/blocks.c: New file.
59646         * lib/unictype/categ_C.c: New file.
59647         * lib/unictype/categ_Cc.c: New file.
59648         * lib/unictype/categ_Cf.c: New file.
59649         * lib/unictype/categ_Cn.c: New file.
59650         * lib/unictype/categ_Co.c: New file.
59651         * lib/unictype/categ_Cs.c: New file.
59652         * lib/unictype/categ_L.c: New file.
59653         * lib/unictype/categ_Ll.c: New file.
59654         * lib/unictype/categ_Lm.c: New file.
59655         * lib/unictype/categ_Lo.c: New file.
59656         * lib/unictype/categ_Lt.c: New file.
59657         * lib/unictype/categ_Lu.c: New file.
59658         * lib/unictype/categ_M.c: New file.
59659         * lib/unictype/categ_Mc.c: New file.
59660         * lib/unictype/categ_Me.c: New file.
59661         * lib/unictype/categ_Mn.c: New file.
59662         * lib/unictype/categ_N.c: New file.
59663         * lib/unictype/categ_Nd.c: New file.
59664         * lib/unictype/categ_Nl.c: New file.
59665         * lib/unictype/categ_No.c: New file.
59666         * lib/unictype/categ_P.c: New file.
59667         * lib/unictype/categ_Pc.c: New file.
59668         * lib/unictype/categ_Pd.c: New file.
59669         * lib/unictype/categ_Pe.c: New file.
59670         * lib/unictype/categ_Pf.c: New file.
59671         * lib/unictype/categ_Pi.c: New file.
59672         * lib/unictype/categ_Po.c: New file.
59673         * lib/unictype/categ_Ps.c: New file.
59674         * lib/unictype/categ_S.c: New file.
59675         * lib/unictype/categ_Sc.c: New file.
59676         * lib/unictype/categ_Sk.c: New file.
59677         * lib/unictype/categ_Sm.c: New file.
59678         * lib/unictype/categ_So.c: New file.
59679         * lib/unictype/categ_Z.c: New file.
59680         * lib/unictype/categ_Zl.c: New file.
59681         * lib/unictype/categ_Zp.c: New file.
59682         * lib/unictype/categ_Zs.c: New file.
59683         * lib/unictype/categ_and.c: New file.
59684         * lib/unictype/categ_and_not.c: New file.
59685         * lib/unictype/categ_byname.c: New file.
59686         * lib/unictype/categ_name.c: New file.
59687         * lib/unictype/categ_none.c: New file.
59688         * lib/unictype/categ_of.c: New file.
59689         * lib/unictype/categ_or.c: New file.
59690         * lib/unictype/categ_test.c: New file.
59691         * lib/unictype/combining.c: New file.
59692         * lib/unictype/ctype_alnum.c: New file.
59693         * lib/unictype/ctype_alpha.c: New file.
59694         * lib/unictype/ctype_blank.c: New file.
59695         * lib/unictype/ctype_cntrl.c: New file.
59696         * lib/unictype/ctype_digit.c: New file.
59697         * lib/unictype/ctype_graph.c: New file.
59698         * lib/unictype/ctype_lower.c: New file.
59699         * lib/unictype/ctype_print.c: New file.
59700         * lib/unictype/ctype_punct.c: New file.
59701         * lib/unictype/ctype_space.c: New file.
59702         * lib/unictype/ctype_upper.c: New file.
59703         * lib/unictype/ctype_xdigit.c: New file.
59704         * lib/unictype/decdigit.c: New file.
59705         * lib/unictype/digit.c: New file.
59706         * lib/unictype/identsyntaxmap.h: New file.
59707         * lib/unictype/mirror.c: New file.
59708         * lib/unictype/numeric.c: New file.
59709         * lib/unictype/pr_alphabetic.c: New file.
59710         * lib/unictype/pr_ascii_hex_digit.c: New file.
59711         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59712         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59713         * lib/unictype/pr_bidi_block_separator.c: New file.
59714         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59715         * lib/unictype/pr_bidi_common_separator.c: New file.
59716         * lib/unictype/pr_bidi_control.c: New file.
59717         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59718         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59719         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59720         * lib/unictype/pr_bidi_european_digit.c: New file.
59721         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59722         * lib/unictype/pr_bidi_left_to_right.c: New file.
59723         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59724         * lib/unictype/pr_bidi_other_neutral.c: New file.
59725         * lib/unictype/pr_bidi_pdf.c: New file.
59726         * lib/unictype/pr_bidi_segment_separator.c: New file.
59727         * lib/unictype/pr_bidi_whitespace.c: New file.
59728         * lib/unictype/pr_byname.c: New file.
59729         * lib/unictype/pr_byname.gperf: New file.
59730         * lib/unictype/pr_combining.c: New file.
59731         * lib/unictype/pr_composite.c: New file.
59732         * lib/unictype/pr_currency_symbol.c: New file.
59733         * lib/unictype/pr_dash.c: New file.
59734         * lib/unictype/pr_decimal_digit.c: New file.
59735         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59736         * lib/unictype/pr_deprecated.c: New file.
59737         * lib/unictype/pr_diacritic.c: New file.
59738         * lib/unictype/pr_extender.c: New file.
59739         * lib/unictype/pr_format_control.c: New file.
59740         * lib/unictype/pr_grapheme_base.c: New file.
59741         * lib/unictype/pr_grapheme_extend.c: New file.
59742         * lib/unictype/pr_grapheme_link.c: New file.
59743         * lib/unictype/pr_hex_digit.c: New file.
59744         * lib/unictype/pr_hyphen.c: New file.
59745         * lib/unictype/pr_id_continue.c: New file.
59746         * lib/unictype/pr_id_start.c: New file.
59747         * lib/unictype/pr_ideographic.c: New file.
59748         * lib/unictype/pr_ids_binary_operator.c: New file.
59749         * lib/unictype/pr_ids_trinary_operator.c: New file.
59750         * lib/unictype/pr_ignorable_control.c: New file.
59751         * lib/unictype/pr_iso_control.c: New file.
59752         * lib/unictype/pr_join_control.c: New file.
59753         * lib/unictype/pr_left_of_pair.c: New file.
59754         * lib/unictype/pr_line_separator.c: New file.
59755         * lib/unictype/pr_logical_order_exception.c: New file.
59756         * lib/unictype/pr_lowercase.c: New file.
59757         * lib/unictype/pr_math.c: New file.
59758         * lib/unictype/pr_non_break.c: New file.
59759         * lib/unictype/pr_not_a_character.c: New file.
59760         * lib/unictype/pr_numeric.c: New file.
59761         * lib/unictype/pr_other_alphabetic.c: New file.
59762         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59763         * lib/unictype/pr_other_grapheme_extend.c: New file.
59764         * lib/unictype/pr_other_id_continue.c: New file.
59765         * lib/unictype/pr_other_id_start.c: New file.
59766         * lib/unictype/pr_other_lowercase.c: New file.
59767         * lib/unictype/pr_other_math.c: New file.
59768         * lib/unictype/pr_other_uppercase.c: New file.
59769         * lib/unictype/pr_paired_punctuation.c: New file.
59770         * lib/unictype/pr_paragraph_separator.c: New file.
59771         * lib/unictype/pr_pattern_syntax.c: New file.
59772         * lib/unictype/pr_pattern_white_space.c: New file.
59773         * lib/unictype/pr_private_use.c: New file.
59774         * lib/unictype/pr_punctuation.c: New file.
59775         * lib/unictype/pr_quotation_mark.c: New file.
59776         * lib/unictype/pr_radical.c: New file.
59777         * lib/unictype/pr_sentence_terminal.c: New file.
59778         * lib/unictype/pr_soft_dotted.c: New file.
59779         * lib/unictype/pr_space.c: New file.
59780         * lib/unictype/pr_terminal_punctuation.c: New file.
59781         * lib/unictype/pr_test.c: New file.
59782         * lib/unictype/pr_titlecase.c: New file.
59783         * lib/unictype/pr_unassigned_code_value.c: New file.
59784         * lib/unictype/pr_unified_ideograph.c: New file.
59785         * lib/unictype/pr_uppercase.c: New file.
59786         * lib/unictype/pr_variation_selector.c: New file.
59787         * lib/unictype/pr_white_space.c: New file.
59788         * lib/unictype/pr_xid_continue.c: New file.
59789         * lib/unictype/pr_xid_start.c: New file.
59790         * lib/unictype/pr_zero_width.c: New file.
59791         * lib/unictype/scripts.c: New file.
59792         * lib/unictype/sy_c_ident.c: New file.
59793         * lib/unictype/sy_c_whitespace.c: New file.
59794         * lib/unictype/sy_java_ident.c: New file.
59795         * lib/unictype/sy_java_whitespace.c: New file.
59796
59797         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59798         Unicode 5.0.0.
59799         * lib/unictype/blocks.h: Likewise.
59800         * lib/unictype/categ_C.h: Likewise.
59801         * lib/unictype/categ_Cc.h: Likewise.
59802         * lib/unictype/categ_Cf.h: Likewise.
59803         * lib/unictype/categ_Cn.h: Likewise.
59804         * lib/unictype/categ_Co.h: Likewise.
59805         * lib/unictype/categ_Cs.h: Likewise.
59806         * lib/unictype/categ_L.h: Likewise.
59807         * lib/unictype/categ_Ll.h: Likewise.
59808         * lib/unictype/categ_Lm.h: Likewise.
59809         * lib/unictype/categ_Lo.h: Likewise.
59810         * lib/unictype/categ_Lt.h: Likewise.
59811         * lib/unictype/categ_Lu.h: Likewise.
59812         * lib/unictype/categ_M.h: Likewise.
59813         * lib/unictype/categ_Mc.h: Likewise.
59814         * lib/unictype/categ_Me.h: Likewise.
59815         * lib/unictype/categ_Mn.h: Likewise.
59816         * lib/unictype/categ_N.h: Likewise.
59817         * lib/unictype/categ_Nd.h: Likewise.
59818         * lib/unictype/categ_Nl.h: Likewise.
59819         * lib/unictype/categ_No.h: Likewise.
59820         * lib/unictype/categ_P.h: Likewise.
59821         * lib/unictype/categ_Pc.h: Likewise.
59822         * lib/unictype/categ_Pd.h: Likewise.
59823         * lib/unictype/categ_Pe.h: Likewise.
59824         * lib/unictype/categ_Pf.h: Likewise.
59825         * lib/unictype/categ_Pi.h: Likewise.
59826         * lib/unictype/categ_Po.h: Likewise.
59827         * lib/unictype/categ_Ps.h: Likewise.
59828         * lib/unictype/categ_S.h: Likewise.
59829         * lib/unictype/categ_Sc.h: Likewise.
59830         * lib/unictype/categ_Sk.h: Likewise.
59831         * lib/unictype/categ_Sm.h: Likewise.
59832         * lib/unictype/categ_So.h: Likewise.
59833         * lib/unictype/categ_Z.h: Likewise.
59834         * lib/unictype/categ_Zl.h: Likewise.
59835         * lib/unictype/categ_Zp.h: Likewise.
59836         * lib/unictype/categ_Zs.h: Likewise.
59837         * lib/unictype/categ_of.h: Likewise.
59838         * lib/unictype/combining.h: Likewise.
59839         * lib/unictype/ctype_alnum.h: Likewise.
59840         * lib/unictype/ctype_alpha.h: Likewise.
59841         * lib/unictype/ctype_blank.h: Likewise.
59842         * lib/unictype/ctype_cntrl.h: Likewise.
59843         * lib/unictype/ctype_digit.h: Likewise.
59844         * lib/unictype/ctype_graph.h: Likewise.
59845         * lib/unictype/ctype_lower.h: Likewise.
59846         * lib/unictype/ctype_print.h: Likewise.
59847         * lib/unictype/ctype_punct.h: Likewise.
59848         * lib/unictype/ctype_space.h: Likewise.
59849         * lib/unictype/ctype_upper.h: Likewise.
59850         * lib/unictype/ctype_xdigit.h: Likewise.
59851         * lib/unictype/decdigit.h: Likewise.
59852         * lib/unictype/digit.h: Likewise.
59853         * lib/unictype/mirror.h: Likewise.
59854         * lib/unictype/numeric.h: Likewise.
59855         * lib/unictype/pr_alphabetic.h: Likewise.
59856         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59857         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59858         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59859         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59860         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59861         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59862         * lib/unictype/pr_bidi_control.h: Likewise.
59863         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59864         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59865         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59866         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59867         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59868         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59869         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59870         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59871         * lib/unictype/pr_bidi_pdf.h: Likewise.
59872         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59873         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59874         * lib/unictype/pr_combining.h: Likewise.
59875         * lib/unictype/pr_composite.h: Likewise.
59876         * lib/unictype/pr_currency_symbol.h: Likewise.
59877         * lib/unictype/pr_dash.h: Likewise.
59878         * lib/unictype/pr_decimal_digit.h: Likewise.
59879         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59880         * lib/unictype/pr_deprecated.h: Likewise.
59881         * lib/unictype/pr_diacritic.h: Likewise.
59882         * lib/unictype/pr_extender.h: Likewise.
59883         * lib/unictype/pr_format_control.h: Likewise.
59884         * lib/unictype/pr_grapheme_base.h: Likewise.
59885         * lib/unictype/pr_grapheme_extend.h: Likewise.
59886         * lib/unictype/pr_grapheme_link.h: Likewise.
59887         * lib/unictype/pr_hex_digit.h: Likewise.
59888         * lib/unictype/pr_hyphen.h: Likewise.
59889         * lib/unictype/pr_id_continue.h: Likewise.
59890         * lib/unictype/pr_id_start.h: Likewise.
59891         * lib/unictype/pr_ideographic.h: Likewise.
59892         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59893         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59894         * lib/unictype/pr_ignorable_control.h: Likewise.
59895         * lib/unictype/pr_iso_control.h: Likewise.
59896         * lib/unictype/pr_join_control.h: Likewise.
59897         * lib/unictype/pr_left_of_pair.h: Likewise.
59898         * lib/unictype/pr_line_separator.h: Likewise.
59899         * lib/unictype/pr_logical_order_exception.h: Likewise.
59900         * lib/unictype/pr_lowercase.h: Likewise.
59901         * lib/unictype/pr_math.h: Likewise.
59902         * lib/unictype/pr_non_break.h: Likewise.
59903         * lib/unictype/pr_not_a_character.h: Likewise.
59904         * lib/unictype/pr_numeric.h: Likewise.
59905         * lib/unictype/pr_other_alphabetic.h: Likewise.
59906         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59907         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59908         * lib/unictype/pr_other_id_continue.h: Likewise.
59909         * lib/unictype/pr_other_id_start.h: Likewise.
59910         * lib/unictype/pr_other_lowercase.h: Likewise.
59911         * lib/unictype/pr_other_math.h: Likewise.
59912         * lib/unictype/pr_other_uppercase.h: Likewise.
59913         * lib/unictype/pr_paired_punctuation.h: Likewise.
59914         * lib/unictype/pr_paragraph_separator.h: Likewise.
59915         * lib/unictype/pr_pattern_syntax.h: Likewise.
59916         * lib/unictype/pr_pattern_white_space.h: Likewise.
59917         * lib/unictype/pr_private_use.h: Likewise.
59918         * lib/unictype/pr_punctuation.h: Likewise.
59919         * lib/unictype/pr_quotation_mark.h: Likewise.
59920         * lib/unictype/pr_radical.h: Likewise.
59921         * lib/unictype/pr_sentence_terminal.h: Likewise.
59922         * lib/unictype/pr_soft_dotted.h: Likewise.
59923         * lib/unictype/pr_space.h: Likewise.
59924         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59925         * lib/unictype/pr_titlecase.h: Likewise.
59926         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59927         * lib/unictype/pr_unified_ideograph.h: Likewise.
59928         * lib/unictype/pr_uppercase.h: Likewise.
59929         * lib/unictype/pr_variation_selector.h: Likewise.
59930         * lib/unictype/pr_white_space.h: Likewise.
59931         * lib/unictype/pr_xid_continue.h: Likewise.
59932         * lib/unictype/pr_xid_start.h: Likewise.
59933         * lib/unictype/pr_zero_width.h: Likewise.
59934         * lib/unictype/scripts.h: Likewise.
59935         * lib/unictype/scripts_byname.gperf: Likewise.
59936         * lib/unictype/sy_c_ident.h: Likewise.
59937         * lib/unictype/sy_c_whitespace.h: Likewise.
59938         * lib/unictype/sy_java_ident.h: Likewise.
59939         * lib/unictype/sy_java_whitespace.h: Likewise.
59940
59941         * lib/unictype/Makefile: New file.
59942         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59943         glibc.
59944         * lib/unictype/3level.h: New file, copied from glibc.
59945         * lib/unictype/3levelbit.h: New file.
59946
59947 2007-11-11  Bruno Haible  <bruno@clisp.org>
59948
59949         * modules/gperf: New file.
59950         * modules/iconv_open (Depends-on): Add it.
59951         (Makefile.am): Remove the GPERF definition.
59952
59953 2007-11-11  Bruno Haible  <bruno@clisp.org>
59954
59955         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59956         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59957
59958 2007-11-11  Bruno Haible  <bruno@clisp.org>
59959
59960         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59961         (usage): Remove function.
59962
59963 2007-11-11  Bruno Haible  <bruno@clisp.org>
59964
59965         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59966         gl_FUNC_CEILF_LIBS.
59967         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59968         gl_FUNC_CEIL_LIBS.
59969         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59970         gl_FUNC_CEILL_LIBS.
59971         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59972         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59973         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59974
59975 2007-11-11  Bruno Haible  <bruno@clisp.org>
59976
59977         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59978         roundf were declared but do not exist on functions.
59979         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59980         roundl were declared but do not exist on functions.
59981         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59982         HAVE_FLOORL_AND_CEILL, respectively.
59983         Needed for Sun C on Solaris 10.
59984
59985 2007-11-11  Bruno Haible  <bruno@clisp.org>
59986
59987         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59988         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59989         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59990         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59991         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59992         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59993         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59994         HAVE_DECL_ROUNDF.
59995         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59996         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59998         of HAVE_DECL_ROUND*.
59999         * modules/math (Makefile.am): Update.
60000
60001 2007-11-10  Bruno Haible  <bruno@clisp.org>
60002
60003         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60004         ptrdiff_t as m4/intl.m4.
60005
60006 2007-11-10  Jim Meyering  <meyering@redhat.com>
60007
60008         Avoid link failure for the argmatch test.
60009         * tests/test-argmatch.c (usage): Define function to avoid a link
60010         failure: argmatch_die requires a usage function.
60011
60012 2007-11-09  Bruno Haible  <bruno@clisp.org>
60013
60014         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60015         * doc/functions/vsnprintf.texi: Likewise.
60016         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60017         with a size argument < 2.
60018
60019 2007-11-09  Bruno Haible  <bruno@clisp.org>
60020
60021         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60022         buffer. Fixes an inefficiency introduced on 2007-11-03.
60023
60024 2007-11-09  Bruno Haible  <bruno@clisp.org>
60025
60026         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60027         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60028
60029 2007-11-08  Jim Meyering  <meyering@redhat.com>
60030
60031         Change cache variable name prefix "jm_" to "gl_" everywhere.
60032         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60033         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60034         * m4/uptime.m4: s/gl_/jm_/
60035
60036 2007-11-07  Bruno Haible  <bruno@clisp.org>
60037
60038         Update to GNU gettext 0.17.
60039         * m4/intl.m4: Update to GNU gettext 0.17.
60040         * m4/po.m4: Likewise.
60041         * modules/gettext (Files): Remove m4/ulonglong.m4.
60042         (configure.ac): Require gettext infrastructure from version 0.17.
60043
60044 2007-11-06  Bruno Haible  <bruno@clisp.org>
60045
60046         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60047         symbolic values are not defined in a public header.
60048         * lib/freadable.c (freadable) [QNX]: Likewise.
60049         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60050         * lib/freading.c (freading) [QNX]: Likewise.
60051         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60052         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60053         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60054         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60055         Reported by Alain Magloire.
60056
60057         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60058
60059 2007-11-05  Bruno Haible  <bruno@clisp.org>
60060
60061         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60062         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60063         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60064         Reported by Eric Blake.
60065
60066 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60067             Bruno Haible  <bruno@clisp.org>
60068
60069         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60070         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60071         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60072         (malloc): Undefine also before including <stdlib.h>.
60073         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60074         Needed on OSF/1 4.0.
60075
60076 2007-11-05  Jim Meyering  <meyering@redhat.com>
60077
60078         git-version-gen: sync from coreutils.
60079         * build-aux/git-version-gen: Add comments.
60080         Change the first '-' to '.' in the snapshot version string,
60081         e.g., 6.9-377-08144 -> 6.9.377-08144
60082         Remove first parameter.
60083         Don't declare a version "-dirty" merely because a time
60084         stamp has changed.
60085
60086 2007-11-04  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/lock.h: Protect all macro definitions containing an 'if'
60089         statement through a "do { ... } while (0)".
60090         * lib/tls.h: Likewise.
60091
60092 2007-11-04  Bruno Haible  <bruno@clisp.org>
60093
60094         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60095
60096 2007-11-04  Bruno Haible  <bruno@clisp.org>
60097
60098         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60099         * modules/fprintf-posix (Depends-on): Add nocrash.
60100         * modules/snprintf-posix (Depends-on): Likewise.
60101         * modules/sprintf-posix (Depends-on): Likewise.
60102         * modules/vasnprintf-posix (Depends-on): Likewise.
60103         * modules/vasprintf-posix (Depends-on): Likewise.
60104         * modules/vfprintf-posix (Depends-on): Likewise.
60105         * modules/vsnprintf-posix (Depends-on): Likewise.
60106         * modules/vsprintf-posix (Depends-on): Likewise.
60107         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60108         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60109         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60110         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60111         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60112         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60113         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60114
60115 2007-11-04  Bruno Haible  <bruno@clisp.org>
60116
60117         * modules/nocrash: New file.
60118         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60119         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60120
60121 2007-11-04  Bruno Haible  <bruno@clisp.org>
60122
60123         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60124         precision handling.
60125         * tests/test-vasprintf-posix.c (test_function): Likewise.
60126         * tests/test-snprintf-posix.h (test_function): Likewise.
60127         * tests/test-sprintf-posix.h (test_function): Likewise.
60128
60129         Fix *printf behaviour for large precisions on mingw and BeOS.
60130         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60131         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60133         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60134         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60135         gl_PRINTF_PRECISION and test its result. Invoke
60136         gl_PREREQ_VASNPRINTF_PRECISION.
60137         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60138         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60139         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60140         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60142         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60143         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60144         * doc/functions/fprintf.texi: Update.
60145         * doc/functions/printf.texi: Update.
60146         * doc/functions/snprintf.texi: Update.
60147         * doc/functions/sprintf.texi: Update.
60148         * doc/functions/vfprintf.texi: Update.
60149         * doc/functions/vprintf.texi: Update.
60150         * doc/functions/vsnprintf.texi: Update.
60151         * doc/functions/vsprintf.texi: Update.
60152
60153 2007-11-04  Bruno Haible  <bruno@clisp.org>
60154
60155         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60156
60157 2007-11-04  Bruno Haible  <bruno@clisp.org>
60158
60159         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60160         Reported by Sylvain Beucler <beuc@gnu.org>.
60161
60162 2007-11-03  Bruno Haible  <bruno@clisp.org>
60163
60164         * tests/test-fprintf-posix2.sh: New file.
60165         * tests/test-fprintf-posix2.c: New file.
60166         * modules/fprintf-posix-tests (Files): Add them.
60167         (TESTS): Add test-fprintf-posix2.sh.
60168         (configure.ac): Check for getrlimit and setrlimit.
60169         (check_PROGRAMS): Add test-fprintf-posix2.
60170
60171         * tests/test-printf-posix2.sh: New file.
60172         * tests/test-printf-posix2.c: New file.
60173         * modules/printf-posix-tests (Files): Add them.
60174         (TESTS): Add test-printf-posix2.sh.
60175         (configure.ac): Check for getrlimit and setrlimit.
60176         (check_PROGRAMS): Add test-printf-posix2.
60177
60178         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60179         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60180         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60181         (decode_double): New function, copied from decode_long_double.
60182         (scale10_round_decimal_decoded): New function, extracted from
60183         scale10_round_decimal_long_double.
60184         (scale10_round_decimal_long_double): Use it.
60185         (scale10_round_decimal_double): New function.
60186         (floorlog10): New function.
60187         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60189         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60190         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60191         gl_PRINTF_ENOMEM and test its result. Invoke
60192         gl_PREREQ_VASNPRINTF_ENOMEM.
60193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60194         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60200         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60201         * modules/snprintf-posix (Depends-on): Likewise.
60202         * modules/sprintf-posix (Depends-on): Likewise.
60203         * modules/vasnprintf-posix (Depends-on): Likewise.
60204         * modules/vasprintf-posix (Depends-on): Likewise.
60205         * modules/vfprintf-posix (Depends-on): Likewise.
60206         * modules/vsnprintf-posix (Depends-on): Likewise.
60207         * modules/vsprintf-posix (Depends-on): Likewise.
60208         * doc/functions/fprintf.texi: Update.
60209         * doc/functions/printf.texi: Update.
60210         * doc/functions/snprintf.texi: Update.
60211         * doc/functions/sprintf.texi: Update.
60212         * doc/functions/vfprintf.texi: Update.
60213         * doc/functions/vprintf.texi: Update.
60214         * doc/functions/vsnprintf.texi: Update.
60215         * doc/functions/vsprintf.texi: Update.
60216
60217 2007-11-03  Bruno Haible  <bruno@clisp.org>
60218
60219         * modules/frexp-nolibm-tests: New file.
60220
60221         * modules/frexp-nolibm: New file.
60222         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60223
60224 2007-11-03  Bruno Haible  <bruno@clisp.org>
60225
60226         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60227         value is C99 compliant.
60228         Needed for OSF/1 5.1.
60229
60230 2007-11-03  Bruno Haible  <bruno@clisp.org>
60231
60232         Fix out-of-memory handling of vasnprintf.
60233         * lib/printf-parse.c: Include <errno.h>.
60234         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60235         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60236         is already set.
60237
60238 2007-11-02  Eric Blake  <ebb9@byu.net>
60239
60240         Fix tests on cygwin.
60241         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60242
60243 2007-11-01  Bruno Haible  <bruno@clisp.org>
60244
60245         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60246         warning.
60247         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60248         needed for POSIX compatibility.
60249
60250 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60251
60252         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60253         for compatibility with GNU.
60254
60255 2007-11-01  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60258         (putenv): Renamed from rpl_putenv. Change argument type from
60259         'const char *' to 'char *'.
60260         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60261         of defining putenv in config.h, just set REPLACE_PUTENV.
60262         * modules/putenv (Depends-on): Add stdlib.
60263         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60264         (Include): Use <stdlib.h>.
60265         * lib/stdlib.in.h (putenv): New declaration.
60266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60267         REPLACE_PUTENV.
60268         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60269         REPLACE_PUTENV.
60270         Needed for MacOS X 10.5.0.
60271         Reported by Peter O'Gorman <peter@pogma.com>.
60272
60273 2007-11-01  Jim Meyering  <meyering@redhat.com>
60274
60275         Treat an empty date string exactly like "0".
60276         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60277         if the remaining date string (to be parsed) is empty, use "0".
60278         Reported by Mischa Molhoek and discussed in this thread:
60279         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60280
60281 2007-10-31  Bruno Haible  <bruno@clisp.org>
60282
60283         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60284         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60285         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60286         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60287         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60288         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60289
60290 2007-10-31  Bruno Haible  <bruno@clisp.org>
60291
60292         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60293         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60294         (AC_TYPE_LONG_LONG_INT): Use it.
60295         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60296         it as well.
60297         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60298         to m4/longlong.m4.
60299         * modules/stdint (Files): Remove m4/ulonglong.m4.
60300         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60301         m4/ulonglong.m4.
60302         * modules/strtoumax (Files): Likewise.
60303
60304 2007-10-30  Bruno Haible  <bruno@clisp.org>
60305
60306         * modules/xvasprintf-posix: New file.
60307         Suggested by Eric Blake.
60308
60309 2007-10-30  Bruno Haible  <bruno@clisp.org>
60310
60311         * modules/xprintf-posix-tests: New file.
60312         * tests/test-xprintf-posix.sh: New file.
60313         * tests/test-xprintf-posix.c: New file.
60314         * tests/test-xfprintf-posix.c: New file.
60315
60316         * modules/xprintf-posix: New file.
60317
60318 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60319
60320         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60321         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60322         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60323
60324 2007-10-29  Bruno Haible  <bruno@clisp.org>
60325
60326         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60327         contain the special marker '_cv_'.
60328         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60329         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60330         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60331         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60332         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60333         Reported by Ralf Wildenhues.
60334
60335 2007-10-29  Bruno Haible  <bruno@clisp.org>
60336
60337         * gnulib-tool (func_import): When --lgpl is not specified, set
60338         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60339         GPLv3.
60340         Reported by Simon Josefsson.
60341
60342 2007-10-28  Bruno Haible  <bruno@clisp.org>
60343
60344         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60345         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60346         HAVE_DECL_ISFINITE.
60347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60348         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60349         HAVE_DECL_ISFINITE.
60350
60351 2007-10-28  Bruno Haible  <bruno@clisp.org>
60352
60353         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60354         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60355
60356 2007-10-28  Bruno Haible  <bruno@clisp.org>
60357
60358         Fix link errors with Sun C 5.0 on Solaris 10.
60359         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60360         function is declared but not present in the compiler's libm.
60361         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60362         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60363         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60364         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60365         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60366         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60367         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60369         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60370         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60371         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60372         HAVE_DECL_FLOORL.
60373
60374 2007-10-28  Bruno Haible  <bruno@clisp.org>
60375
60376         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60377         gl_FUNC_FLOORL. Cache the result.
60378         (gl_FUNC_FLOORL): Use it.
60379         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60380         gl_FUNC_CEILL. Cache the result.
60381         (gl_FUNC_CEILL): Use it.
60382
60383         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60384         gl_FUNC_FLOOR. Cache the result.
60385         (gl_FUNC_FLOOR): Use it.
60386         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60387         gl_FUNC_CEIL. Cache the result.
60388         (gl_FUNC_CEIL): Use it.
60389
60390         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60391         gl_FUNC_FLOORF. Cache the result.
60392         (gl_FUNC_FLOORF): Use it.
60393         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60394         gl_FUNC_CEILF. Cache the result.
60395         (gl_FUNC_CEILF): Use it.
60396
60397 2007-10-28  Bruno Haible  <bruno@clisp.org>
60398
60399         * gnulib-tool: Allow specifying the LGPL version number through
60400         --lgpl=2 or --lgpl=3.
60401         (func_usage): Document --lgpl with argument.
60402         Handle --lgpl=... arguments.
60403         (func_import): Recognize also gl_LGPL calls with an argument. When
60404         --lgpl=2 is used and the module's license is just LGPL, report an
60405         error. Set sed_transform_lib_file according to the lgpl variable. In
60406         the generated files, use --lgpl or gl_LGPL invocations with argument,
60407         if necessary.
60408         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60409         an LGPv2+ license.
60410         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60411         gl_LGPL macro.
60412
60413 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60414             Bruno Haible  <bruno@clisp.org>
60415
60416         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60417         (u16_uctomb_aux): Likewise.
60418         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60419         !HAVE_INLINE.
60420         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60421
60422 2007-10-28  Bruno Haible  <bruno@clisp.org>
60423
60424         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60425         Invoke AM_GETTEXT_OPTION if it exists.
60426         * modules/vasprintf: Likewise.
60427         * modules/verror: Likewise.
60428         * modules/xprintf: Likewise.
60429         * modules/xvasprintf: Likewise.
60430
60431 2007-10-27  Ben Pfaff  <blp@gnu.org>
60432
60433         * lib/math.in.h: Define isfinite macro and prototypes for
60434         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60435         implementations.
60436         * m4/math_h.m4: New substitutions for isfinite module.
60437         * lib/isfinite.c: New file.
60438         * m4/isfinite.m4: New file.
60439         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60440         * modules/isfinite: New file.
60441         * modules/isfinite-tests: New file.
60442         * tests/tests-isfinite.c: New file.
60443         * doc/functions/isfinite.texi: Mention isfinite module.
60444         * MODULES.html.sh: Mention new module.
60445
60446 2007-10-27  Ben Pfaff  <blp@gnu.org>
60447
60448         Ralf Wildenhues reported that Tru64 4.0D declares the round
60449         functions but does not have definitions.
60450         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60451         cannot be found in any library, set the output variable to
60452         "missing" instead of "".
60453         * m4/round.m4: Also use our substitute if we cannot find round in
60454         any library, even if it is declared.
60455         * m4/roundf.m4: Likewise for roundf.
60456         * m4/roundl.m4: Likewise for roundl.
60457         * lib/math.in.h: Undefine roundf, round, roundl before defining
60458         their replacements, to allow for hypothetical systems where these
60459         may be defined as macros but not available in libraries.
60460
60461 2007-10-27  Bruno Haible  <bruno@clisp.org>
60462
60463         * doc/gnulib.texi: Invoke @firstparagraphindent.
60464         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60465         changes in gnulib.
60466         (Source changes): New section.
60467
60468 2007-10-26  Bruno Haible  <bruno@clisp.org>
60469
60470         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60471         borrowed from autoconf.
60472
60473 2007-10-26  Bruno Haible  <bruno@clisp.org>
60474
60475         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60476         strerror returned the empty string. Needed on HP-UX 11.00.
60477
60478 2007-10-24  Micah Cowan  <micah@cowan.name>
60479
60480         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60481         * build-aux/bootstrap: Remove support for now-unnecessary option,
60482         --cvs-user, and envvars CVS_USER, CVS_RSH.
60483
60484 2007-10-24  Jim Meyering  <meyering@redhat.com>
60485
60486         Avoid diagnostics from sha1sum when there is no cached checksum.
60487         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60488         if the po.s1 file hasn't been created yet.
60489
60490         * build-aux/bootstrap: Sync from coreutils:
60491         2007-10-24  Jim Meyering  <meyering@redhat.com>
60492         Get gnulib from the git repository, not from an obsolete cvs one.
60493         * build-aux/bootstrap: Suggestion from Micah Cowan.
60494         2007-10-04  Jim Meyering  <jim@meyering.net>
60495         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60496         (update_po_files): Work also when there are no .po files in po/.
60497
60498 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60499
60500         * README: Append ".git" to git and cg examples.
60501         Problem reported by Benoit Sigoure.
60502
60503 2007-10-23  Micah Cowan  <micah@cowan.name>
60504
60505         * users.txt: Add wget.
60506
60507 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60508
60509         Fix linking of some unistdio tests on FreeBSD.
60510         * modules/unistdio/u16-vsnprintf-tests
60511         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60512         * modules/unistdio/u16-vsprintf-tests
60513         (test_u16_vsnprintf1_LDADD): Likewise.
60514         * modules/unistdio/u32-vsnprintf-tests
60515         (test_u32_vsnprintf1_LDADD): Likewise.
60516         * modules/unistdio/u32-vsprintf-tests
60517         (test_u32_vsprintf1_LDADD): Likewise.
60518         * modules/unistdio/u8-vsnprintf-tests
60519         (test_u8_vsnprintf1_LDADD): Likewise.
60520         * modules/unistdio/u8-vsprintf-tests
60521         (test_u8_vsprintf1_LDADD): Likewise.
60522         * modules/unistdio/ulc-vsnprintf-tests
60523         (test_ulc_vsnprintf1_LDADD): Likewise.
60524         * modules/unistdio/ulc-vsprintf-tests
60525         (test_ulc_vsprintf1_LDADD): Likewise.
60526
60527         Fix linking of some uniconv tests on FreeBSD.
60528         * modules/uniconv/u16-conv-from-enc-tests
60529         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60530         * modules/uniconv/u16-conv-to-enc-tests
60531         (test_u16_conv_to_enc_LDADD): Likewise.
60532         * modules/uniconv/u16-strconv-from-enc-tests
60533         (test_u16_strconv_from_enc_LDADD): Likewise.
60534         * modules/uniconv/u16-strconv-to-enc-tests
60535         (test_u16_strconv_to_enc_LDADD): Likewise.
60536         * modules/uniconv/u32-conv-from-enc-tests
60537         (test_u32_conv_from_enc_LDADD): Likewise.
60538         * modules/uniconv/u32-conv-to-enc-tests
60539         (test_u32_conv_to_enc_LDADD): Likewise.
60540         * modules/uniconv/u32-strconv-from-enc-tests
60541         (test_u32_strconv_from_enc_LDADD): Likewise.
60542         * modules/uniconv/u32-strconv-to-enc-tests
60543         (test_u32_strconv_to_enc_LDADD): Likewise.
60544         * modules/uniconv/u8-conv-from-enc-tests
60545         (test_u8_conv_from_enc_LDADD): Likewise.
60546         * modules/uniconv/u8-conv-to-enc-tests
60547         (test_u8_conv_to_enc_LDADD): Likewise.
60548         * modules/uniconv/u8-strconv-from-enc-tests
60549         (test_u8_strconv_from_enc_LDADD): Likewise.
60550         * modules/uniconv/u8-strconv-to-enc-tests
60551         (test_u8_strconv_to_enc_LDADD): Likewise.
60552
60553 2007-10-22  Bruno Haible  <bruno@clisp.org>
60554
60555         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60556         size.
60557
60558 2007-10-22  Eric Blake  <ebb9@byu.net>
60559
60560         Tweak x*printf documentation.
60561         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60562         variable name and comments.
60563         Suggested by Bruno Haible.
60564
60565 2007-10-22  Bruno Haible  <bruno@clisp.org>
60566
60567         * lib/acl.c (copy_acl): Fix file name in comment.
60568
60569 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60570
60571         Fix Tru64 problem with stdbool.h.
60572         * lib/stdbool.in.h (false, true):
60573         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60574         Don't declare as an enum in this situation; it runs afoul of Tru64.
60575         Problem reported by Steven M. Schweda in
60576         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60577
60578 2007-10-22  Eric Blake  <ebb9@byu.net>
60579
60580         Also wrap vf?printf.
60581         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60582         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60583         (xvprintf, xvfprintf): New functions.
60584
60585 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60586
60587         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60588         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60589
60590         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60591         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60592
60593 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60594
60595         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60596         by Bruno Haible.
60597
60598 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60599
60600         * lib/getloadavg.c
60601         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60602         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60603
60604         * tests/test-i-ring.c: Work for C89.
60605
60606 2007-10-22  Bruno Haible  <bruno@clisp.org>
60607
60608         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60609         -1u, in preprocessor expression, so that we don't test for the bug
60610         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60611         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60612
60613 2007-10-22  Eric Blake  <ebb9@byu.net>
60614
60615         * tests/test-yesno.sh: Silence stderr during test.
60616
60617 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60618
60619         * modules/crypto/gc-camellia: New file.
60620
60621         * m4/gc-camellia.m4: New file.
60622
60623         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60624
60625         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60626
60627 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60628
60629         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60630         --help to stdout.  Reported by sms@antinode.org (Steven
60631         M. Schweda).
60632
60633 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60634
60635         * users.txt: Fix link to libksba.
60636
60637 2007-10-21  Ben Pfaff  <blp@gnu.org>
60638
60639         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60640         round.c roundf implementation that depends on floorf and ceilf to
60641         be tested unconditionally.
60642
60643 2007-10-21  Ben Pfaff  <blp@gnu.org>
60644
60645         * m4/check-libm-func.m4: Removed.
60646         * m4/check-math-lib.m4: New file.
60647         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60648         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60649         definition and lack of AC_LIBOBJ([roundf]).
60650         * m4/roundl.m4: Ditto, and similarly for roundl.
60651         * modules/round: Reference new m4 file.
60652         * modules/roundf: Ditto.
60653         * modules/roundl: Ditto.
60654         * tests/test-round2.c (main): Use ROUND instead of round.
60655         Bug report from Bruno Haible.
60656
60657 2007-10-21  Bruno Haible  <bruno@clisp.org>
60658
60659         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60660         context.
60661
60662 2007-10-21  Bruno Haible  <bruno@clisp.org>
60663
60664         * tests/test-wcwidth.c (main): Allow negative result for some control
60665         characters.
60666
60667         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60668         Needed on OSF/1 5.1.
60669
60670 2007-10-21  Bruno Haible  <bruno@clisp.org>
60671
60672         * tests/test-floorf1.c: Include isnanf.h.
60673         (main): Use isnanf() instead of isnan().
60674         * tests/test-ceilf1.c: Include isnanf.h.
60675         (main): Use isnanf() instead of isnan().
60676         * tests/test-truncf1.c: Include isnanf.h.
60677         (main): Use isnanf() instead of isnan().
60678         * tests/test-roundf1.c: Include isnanf.h.
60679         (main): Use isnanf() instead of isnan().
60680
60681 2007-10-21  Eric Blake  <ebb9@byu.net>
60682
60683         * users.txt: Update URL for m4.
60684
60685 2007-10-21  Bruno Haible  <bruno@clisp.org>
60686
60687         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60688
60689 2007-10-21  Bruno Haible  <bruno@clisp.org>
60690
60691         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60692         Git's management files if the CVS files are not present.
60693
60694 2007-10-20  Bruno Haible  <bruno@clisp.org>
60695
60696         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60697         gcc-3.4.x.
60698
60699 2007-10-20  Ben Pfaff  <blp@gnu.org>
60700
60701         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60702         implementations.
60703         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60704         * lib/round.c: New file.
60705         * lib/roundf.c: New file.
60706         * lib/roundl.c: New file.
60707         * m4/round.m4: New file.
60708         * m4/roundf.m4: New file.
60709         * m4/roundl.m4: New file.
60710         * m4/check-libm-func-m4: New file.
60711         * modules/math: Replace round, roundf, roundl related @VARS@ in
60712         math.in.h.
60713         * modules/round: New file.
60714         * modules/round-tests: New file.
60715         * modules/roundf: New file.
60716         * modules/roundf-tests: New file.
60717         * modules/roundl: New file.
60718         * modules/roundl-tests: New file.
60719         * tests/test-round1.c: New file.
60720         * tests/test-round2.c: New file.
60721         * tests/test-roundf1.c: New file.
60722         * tests/test-roundf2.c: New file.
60723         * tests/test-roundl.c: New file.
60724         * doc/functions/round.texi: Mention round module.
60725         * doc/functions/roundf.texi: Mention roundf module.
60726         * doc/functions/roundl.texi: Mention roundl module.
60727         * MODULES.html.sh: Mention new modules.
60728         Thanks to Bruno Haible for suggestions.
60729
60730 2007-10-20  Jim Meyering  <meyering@redhat.com>
60731
60732         * lib/xprintf.c: Include <config.h> unconditionally.
60733
60734         Change xprintf's license to GPL.
60735         * modules/xprintf (License): s/LGPL/GPL/, since this module
60736         depends on modules (exit and exitfail) which are GPL.
60737         Suggestion from Bruno Haible.
60738
60739         xprintf fixes.
60740         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60741         Use a clearer diagnostic.
60742         Patch from Bruno Haible.
60743
60744 2007-10-20  Bruno Haible  <bruno@clisp.org>
60745
60746         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60747         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60748         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60749
60750 2007-10-20  Bruno Haible  <bruno@clisp.org>
60751
60752         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60753         precision in the comparison result > x - 1 or similar.
60754         * tests/test-ceilf2.c (correct_result_p): Likewise.
60755         * tests/test-truncf2.c (correct_result_p): Likewise.
60756         * tests/test-trunc2.c (correct_result_p): Likewise.
60757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60758
60759 2007-10-20  Bruno Haible  <bruno@clisp.org>
60760
60761         * modules/ceil: New file.
60762         * m4/ceil.m4: New file.
60763         * doc/functions/ceil.texi: Mention the 'ceil' module.
60764
60765 2007-10-20  Bruno Haible  <bruno@clisp.org>
60766
60767         * modules/floor: New file.
60768         * m4/floor.m4: New file.
60769         * doc/functions/floor.texi: Mention the 'floor' module.
60770
60771 2007-10-20  Bruno Haible  <bruno@clisp.org>
60772
60773         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60774         of %a.
60775         * modules/floorf-tests (Depends-on): Likewise.
60776         * modules/truncf-tests (Depends-on): Likewise.
60777         * modules/trunc-tests (Depends-on): Likewise.
60778         Reported by Ben Pfaff.
60779
60780 2007-10-19  Jim Meyering  <meyering@redhat.com>
60781
60782         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60783         Don't bother testing specific errno values.  Just test ferror.
60784
60785         New module: xprintf
60786         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60787
60788 2007-10-19  Bruno Haible  <bruno@clisp.org>
60789
60790         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60791         syntax.
60792         * modules/javaexec (Makefile.am): Likewise.
60793         * modules/relocatable-prog (Makefile.am): Likewise.
60794         Suggested by Jim Meyering.
60795
60796 2007-10-18  Bruno Haible  <bruno@clisp.org>
60797
60798         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60799         Reported by Jim Meyering.
60800
60801 2007-10-18  Eric Blake  <ebb9@byu.net>
60802
60803         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60804
60805 2007-10-18  Bruno Haible  <bruno@clisp.org>
60806
60807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60808         the format string into writable memory. Needed in Fortify conditions.
60809
60810 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60811             Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60814         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60815         * modules/trim (Depends-on): Add mbchar.
60816         (configure.ac): Add gl_FUNC_MBRTOWC.
60817         (Makefile.am): Augment lib_SOURCES.
60818
60819 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60820
60821         Modify glob.c to use fstatat and dirfd, to simplify it.
60822         Suggested by Eric Blake.
60823         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60824         Don't include <stdbool.h>; not used.
60825         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60826         (link_exists_p): Simplify implementation, since we can now assume
60827         dirfd and fstatat.
60828         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60829
60830 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60831
60832         * gnulib-tool (func_get_dependencies): Fix sed script to
60833         match only tests.
60834
60835 2007-10-17  Bruno Haible  <bruno@clisp.org>
60836
60837         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60838         allow locale names without encoding suffix.
60839         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60840         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60841
60842 2007-10-16  Bruno Haible  <bruno@clisp.org>
60843
60844         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60845         * lib/getgroups.c (getgroups): Likewise.
60846         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60847
60848 2007-10-16  Bruno Haible  <bruno@clisp.org>
60849
60850         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60851         * modules/malloc-posix (License): Likewise.
60852         * modules/realloc-posix (License): Likewise.
60853         * modules/calloc-posix (License): Likewise.
60854         * modules/intprops (License): Change from GPL to LGPL, with
60855         Paul Eggert's approval.
60856
60857 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60858
60859         Merge glibc changes into lib/glob.c.
60860
60861         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60862         2007-10-15 04:59:03 UTC.  Here are the changes:
60863
60864         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60865
60866         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60867
60868         * lib/glob.c: Add some branch prediction throughout.
60869
60870         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60871
60872         [BZ #5103]
60873         * lib/glob.c (glob): Recognize patterns starting \/.
60874
60875         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60876
60877         [BZ #3996]
60878         * lib/glob.c (attribute_hidden): Define if not defined.
60879         (glob): Unescape dirname, filename or username when needed and not
60880         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60881         is NULL.  Handle unescaped [ in pattern without closing ].
60882         Don't pass GLOB_CHECK down to recursive glob for directories.
60883         (__glob_pattern_type): New function.
60884         (__glob_pattern_p): Implement using __glob_pattern_type.
60885         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60886         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60887         Remove unreachable code.
60888
60889         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60890
60891         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60892         explain why there are no leaks.
60893
60894         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60895
60896         [BZ #3253]
60897         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60898         time, rather allocate increasingly bigger arrays of pointers, if
60899         possible with alloca, if too large with malloc.
60900
60901 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60902
60903         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60904         Problem reported by H.Merijn Brand in
60905         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60906         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60907         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60908
60909 2007-10-15  Bruno Haible  <bruno@clisp.org>
60910
60911         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60912         with explicit rpl_ prefix.
60913         * lib/fopen.c (fopen): Likewise.
60914         * lib/freopen.c (freopen): Likewise.
60915         * lib/iconv.c (iconv): Likewise.
60916         * lib/iconv_close.c (iconv_close): Likewise.
60917
60918 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60919
60920         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60921
60922 2007-10-15  Bruno Haible  <bruno@clisp.org>
60923
60924         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60925         <stddef.h> instead of <stdlib.h> since we only need NULL.
60926         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60927
60928 2007-10-15  Bruno Haible  <bruno@clisp.org>
60929
60930         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60931         Replace paragraph talking about LIBOBJS.
60932         Reported by Colin Watson <cjwatson@debian.org>.
60933
60934 2007-10-15  Bruno Haible  <bruno@clisp.org>
60935
60936         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60937         <stdlib.h> before using NULL.
60938
60939 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60940
60941         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60942         Reported by Albert Chin <china@thewrittenword.com>.
60943
60944 2007-10-14  Bruno Haible  <bruno@clisp.org>
60945
60946         * modules/iconv_open-utf-tests: New file.
60947         * tests/test-iconv-utf.c: New file.
60948
60949         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60950         * modules/iconv_open-utf: New file.
60951         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60952         (iconv, iconv_close): New declarations.
60953         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60954         be defined.
60955         (iconv_open): Add special handling of conversion between UTF-8 and
60956         UTF-{16,32}{BE,LE}.
60957         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60958         * lib/iconv_close.c: New file.
60959         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60960         gl_FUNC_ICONV_OPEN.
60961         (gl_FUNC_ICONV_OPEN): Use it.
60962         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60963         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60964         and REPLACE_ICONV_UTF.
60965         * modules/iconv_open (Depends-on): Add c-strcase.
60966         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60967         ICONV_CONST.
60968         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60969
60970 2007-10-13  Albert Chin  <china@thewrittenword.com>
60971             Bruno Haible  <bruno@clisp.org>
60972
60973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60974         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60975
60976 2007-10-13  Bruno Haible  <bruno@clisp.org>
60977
60978         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60979         defined, use the ISO C99 inline semantics.
60980         * lib/argp.h (ARGP_EI): Likewise.
60981
60982 2007-10-13  Bruno Haible  <bruno@clisp.org>
60983
60984         Handle 'inline' change in gcc 4.3.0.
60985         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60986         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60987         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60988         argp_fmtstream_point): Disable 'extern' declaration if the function
60989         definition is going to be provided inline.
60990         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60991         semantics, not the ISO C99 inline semantics.
60992         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60993         'extern' declaration if the function definition is going to be provided
60994         inline.
60995         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60996         the GNU C inline semantics, not the ISO C99 inline semantics. With
60997         GCC 4.2, avoid a warning.
60998
60999 2007-10-13  Bruno Haible  <bruno@clisp.org>
61000
61001         * lib/freading.h (freading): Enable the use of __freading for
61002         glibc >= 2.7.
61003         * lib/freading.c (freading): Likewise.
61004
61005 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61006
61007         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61008         "warning: C99 inline functions are not supported; using GNU89".
61009
61010 2007-10-12  Bruno Haible  <bruno@clisp.org>
61011
61012         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61013         of 2.
61014         * tests/test-ceilf2.c: New file.
61015         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61016
61017         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61018         * modules/ceilf-tests: Update.
61019
61020 2007-10-12  Bruno Haible  <bruno@clisp.org>
61021
61022         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61023         of 2.
61024         * tests/test-floorf2.c: New file.
61025         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61026
61027         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61028         * modules/floorf-tests: Update.
61029
61030 2007-10-12  Bruno Haible  <bruno@clisp.org>
61031
61032         * tests/test-trunc2.c: New file.
61033         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61034
61035         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61036         * modules/trunc-tests: Update.
61037
61038 2007-10-12  Bruno Haible  <bruno@clisp.org>
61039
61040         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61041         of 2.
61042         * tests/test-truncf2.c: New file.
61043         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61044
61045         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61046         * modules/truncf-tests: Update.
61047
61048 2007-10-11  Eric Blake  <ebb9@byu.net>
61049
61050         Don't claim strerror is broken on Interix.
61051         * doc/functions/strerror.texi (strerror): Known broken systems are
61052         now Solaris 8, and not Interix.
61053         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61054         Interix on cross-compile.
61055         Reported by Martin Koeppe in
61056         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61057
61058 2007-10-11  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/i-ring-tests: New file.
61061         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61062         instead of assert.
61063
61064 2007-10-11  Bruno Haible  <bruno@clisp.org>
61065
61066         * modules/filenamecat-tests: New file.
61067         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61068         * lib/filenamecat.c: Remove test code.
61069
61070 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61071
61072         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61073
61074         * lib/strerror.c: Include <string.h> always, to test interface,
61075         and to remove the need for the dummy.
61076         Include intprops.h to compute width instead of doing it ourselves
61077         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61078         (strerror): Define it to return NULL if there's no system strerror.
61079         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61080         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61081         ancient pre-strerror Unix systems well any more.  Saying "unknown
61082         system error" is enough.
61083         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61084         simpler strerror.c implementation.
61085         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61086         Simplify the tests to reflect the simpler strerror implementation.
61087         * modules/strerror (Depends-on): Add intprops.
61088
61089 2007-10-09  Eric Blake  <ebb9@byu.net>
61090
61091         Silence test-fpending.
61092         * modules/fpending-tests (Files): Add wrapper script.
61093         * tests/test-fpending.sh: New file.
61094
61095 2007-10-09  Bruno Haible  <bruno@clisp.org>
61096
61097         * MODULES.html.sh (func_module): Don't create a hyperlink for
61098         function names like 'printf_frexp'.
61099         (Misc): Add crc, memxor.
61100         (Characteristics of floating types): New section.
61101         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61102         isnanf-nolibm, signbit, trunc, truncf, truncl.
61103         (Enhancements for ISO C 99 functions): New subsection Input/output.
61104         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61105         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61106         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61107         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61108         (Enhancements for POSIX:2001 functions): Add chdir-long.
61109         (File system functions): Add areadlink, chdir-safer, read-file.
61110         Remove cycle-check.
61111         (File system as inode set): New section.
61112         (Date and time): Add gethrxtime.
61113         (Multithreading): Add openmp.
61114         (Internationalization functions): Add localename.
61115         (Unicode string functions): Add unistr/u*-mbsnlen.
61116         (Support for maintaining and releasing projects): Add git-version-gen.
61117         (Lone files): Remove directories.
61118
61119 2007-10-08  Ben Pfaff  <blp@gnu.org>
61120
61121         * lib/xmalloca.h: Fix typo in comment.
61122
61123 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61124
61125         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61126         when avoiding problems with integer overflow.  Use a portable test
61127         instead.
61128
61129 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61130
61131         * modules/dummy (License): Change to LGPLv2+.
61132         * modules/float (License): Likewise
61133         * modules/realloc (License): Likewise
61134         * modules/stdlib (License): Likewise
61135
61136 2007-10-07  Bruno Haible  <bruno@clisp.org>
61137
61138         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61139         * floor.c (TWO_MANT_DIG): Likewise.
61140         * ceil.c (TWO_MANT_DIG): Likewise.
61141         Reported by Ben Pfaff.
61142
61143 2007-10-07  Bruno Haible  <bruno@clisp.org>
61144
61145         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61146         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61147         * lib/frexp.c (FUNC): Likewise.
61148         * lib/printf-frexp.h (printf_frexp): Likewise.
61149         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61150         * lib/printf-frexp.c (FUNC): Likewise.
61151         Suggested by Jim Meyering.
61152
61153 2007-10-07  Jim Meyering  <meyering@redhat.com>
61154
61155         Make xnanosleep's integer overflow test more robust.
61156         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61157         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61158
61159 2007-10-07  Bruno Haible  <bruno@clisp.org>
61160
61161         * NEWS: Mention the license change.
61162
61163         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61164         abbreviations in the modules files.
61165
61166         Change copyright notice from GPLv2+ to GPLv3+.
61167         * README: Change copyright notice.
61168         * MODULES.html.sh: Likewise.
61169         * build-aux/bootstrap.conf: Likewise.
61170         * build-aux/config.libpath: Likewise.
61171         * build-aux/csharpcomp.sh.in: Likewise.
61172         * build-aux/csharpexec.sh.in: Likewise.
61173         * build-aux/install-reloc: Likewise.
61174         * build-aux/javacomp.sh.in: Likewise.
61175         * build-aux/javaexec.sh.in: Likewise.
61176         * build-aux/ldd.sh.in: Likewise.
61177         * build-aux/reloc-ldflags: Likewise.
61178         * build-aux/relocatable.sh.in: Likewise.
61179         * build-aux/x-to-1.in: Likewise.
61180         * check-module: Likewise.
61181         * config/srclistvars.sh: Likewise.
61182         * gnulib-tool: Likewise.
61183         * lib/acl-internal.h: Likewise.
61184         * lib/acl.c: Likewise.
61185         * lib/acl.h: Likewise.
61186         * lib/acl_entries.c: Likewise.
61187         * lib/areadlink-with-size.c: Likewise.
61188         * lib/areadlink.c: Likewise.
61189         * lib/areadlink.h: Likewise.
61190         * lib/argmatch.c: Likewise.
61191         * lib/argmatch.h: Likewise.
61192         * lib/argp-ba.c: Likewise.
61193         * lib/argp-eexst.c: Likewise.
61194         * lib/argp-fmtstream.c: Likewise.
61195         * lib/argp-fmtstream.h: Likewise.
61196         * lib/argp-fs-xinl.c: Likewise.
61197         * lib/argp-help.c: Likewise.
61198         * lib/argp-namefrob.h: Likewise.
61199         * lib/argp-parse.c: Likewise.
61200         * lib/argp-pin.c: Likewise.
61201         * lib/argp-pv.c: Likewise.
61202         * lib/argp-pvh.c: Likewise.
61203         * lib/argp-xinl.c: Likewise.
61204         * lib/argp.h: Likewise.
61205         * lib/at-func.c: Likewise.
61206         * lib/atanl.c: Likewise.
61207         * lib/backupfile.c: Likewise.
61208         * lib/backupfile.h: Likewise.
61209         * lib/basename.c: Likewise.
61210         * lib/binary-io.h: Likewise.
61211         * lib/byteswap.in.h: Likewise.
61212         * lib/c-stack.c: Likewise.
61213         * lib/c-stack.h: Likewise.
61214         * lib/c-strcasestr.c: Likewise.
61215         * lib/c-strcasestr.h: Likewise.
61216         * lib/c-strstr.c: Likewise.
61217         * lib/c-strstr.h: Likewise.
61218         * lib/c-strtod.c: Likewise.
61219         * lib/calloc.c: Likewise.
61220         * lib/canon-host.c: Likewise.
61221         * lib/canon-host.h: Likewise.
61222         * lib/canonicalize-lgpl.c: Likewise.
61223         * lib/canonicalize.c: Likewise.
61224         * lib/canonicalize.h: Likewise.
61225         * lib/ceil.c: Likewise.
61226         * lib/ceilf.c: Likewise.
61227         * lib/ceill.c: Likewise.
61228         * lib/chdir-long.c: Likewise.
61229         * lib/chdir-long.h: Likewise.
61230         * lib/chdir-safer.c: Likewise.
61231         * lib/chdir-safer.h: Likewise.
61232         * lib/chown.c: Likewise.
61233         * lib/classpath.c: Likewise.
61234         * lib/classpath.h: Likewise.
61235         * lib/clean-temp.c: Likewise.
61236         * lib/clean-temp.h: Likewise.
61237         * lib/cloexec.c: Likewise.
61238         * lib/close-stream.c: Likewise.
61239         * lib/closein.c: Likewise.
61240         * lib/closein.h: Likewise.
61241         * lib/closeout.c: Likewise.
61242         * lib/closeout.h: Likewise.
61243         * lib/concat-filename.c: Likewise.
61244         * lib/copy-file.c: Likewise.
61245         * lib/copy-file.h: Likewise.
61246         * lib/count-one-bits.h: Likewise.
61247         * lib/crc.c: Likewise.
61248         * lib/crc.h: Likewise.
61249         * lib/creat-safer.c: Likewise.
61250         * lib/csharpcomp.c: Likewise.
61251         * lib/csharpcomp.h: Likewise.
61252         * lib/csharpexec.c: Likewise.
61253         * lib/csharpexec.h: Likewise.
61254         * lib/cycle-check.c: Likewise.
61255         * lib/cycle-check.h: Likewise.
61256         * lib/diacrit.c: Likewise.
61257         * lib/diacrit.h: Likewise.
61258         * lib/diffseq.h: Likewise.
61259         * lib/dirchownmod.c: Likewise.
61260         * lib/dirent.in.h: Likewise.
61261         * lib/dirfd.c: Likewise.
61262         * lib/dirfd.h: Likewise.
61263         * lib/dirname.c: Likewise.
61264         * lib/dirname.h: Likewise.
61265         * lib/dummy.c: Likewise.
61266         * lib/dup-safer.c: Likewise.
61267         * lib/dup2.c: Likewise.
61268         * lib/eealloc.h: Likewise.
61269         * lib/error.c: Likewise.
61270         * lib/error.h: Likewise.
61271         * lib/euidaccess.c: Likewise.
61272         * lib/exclude.c: Likewise.
61273         * lib/exclude.h: Likewise.
61274         * lib/execute.c: Likewise.
61275         * lib/execute.h: Likewise.
61276         * lib/exitfail.c: Likewise.
61277         * lib/exitfail.h: Likewise.
61278         * lib/expl.c: Likewise.
61279         * lib/fatal-signal.c: Likewise.
61280         * lib/fatal-signal.h: Likewise.
61281         * lib/fbufmode.c: Likewise.
61282         * lib/fbufmode.h: Likewise.
61283         * lib/fchdir.c: Likewise.
61284         * lib/fchmodat.c: Likewise.
61285         * lib/fchownat.c: Likewise.
61286         * lib/fcntl--.h: Likewise.
61287         * lib/fcntl-safer.h: Likewise.
61288         * lib/fcntl.in.h: Likewise.
61289         * lib/fd-safer.c: Likewise.
61290         * lib/fflush.c: Likewise.
61291         * lib/file-has-acl.c: Likewise.
61292         * lib/file-set.c: Likewise.
61293         * lib/file-type.c: Likewise.
61294         * lib/file-type.h: Likewise.
61295         * lib/fileblocks.c: Likewise.
61296         * lib/filemode.c: Likewise.
61297         * lib/filemode.h: Likewise.
61298         * lib/filename.h: Likewise.
61299         * lib/filenamecat.c: Likewise.
61300         * lib/filenamecat.h: Likewise.
61301         * lib/findprog.c: Likewise.
61302         * lib/findprog.h: Likewise.
61303         * lib/float.in.h: Likewise.
61304         * lib/floor.c: Likewise.
61305         * lib/floorf.c: Likewise.
61306         * lib/floorl.c: Likewise.
61307         * lib/fopen-safer.c: Likewise.
61308         * lib/fopen.c: Likewise.
61309         * lib/fpending.c: Likewise.
61310         * lib/fpending.h: Likewise.
61311         * lib/fprintf.c: Likewise.
61312         * lib/fprintftime.h: Likewise.
61313         * lib/fpucw.h: Likewise.
61314         * lib/fpurge.c: Likewise.
61315         * lib/fpurge.h: Likewise.
61316         * lib/freadable.c: Likewise.
61317         * lib/freadable.h: Likewise.
61318         * lib/freadahead.c: Likewise.
61319         * lib/freadahead.h: Likewise.
61320         * lib/freading.c: Likewise.
61321         * lib/freading.h: Likewise.
61322         * lib/free.c: Likewise.
61323         * lib/freopen.c: Likewise.
61324         * lib/frexp.c: Likewise.
61325         * lib/frexpl.c: Likewise.
61326         * lib/fseek.c: Likewise.
61327         * lib/fseterr.c: Likewise.
61328         * lib/fseterr.h: Likewise.
61329         * lib/fstatat.c: Likewise.
61330         * lib/fstrcmp.c: Likewise.
61331         * lib/fstrcmp.h: Likewise.
61332         * lib/fsusage.c: Likewise.
61333         * lib/fsusage.h: Likewise.
61334         * lib/ftell.c: Likewise.
61335         * lib/ftello.c: Likewise.
61336         * lib/fts-cycle.c: Likewise.
61337         * lib/fts.c: Likewise.
61338         * lib/fts_.h: Likewise.
61339         * lib/full-read.c: Likewise.
61340         * lib/full-read.h: Likewise.
61341         * lib/full-write.c: Likewise.
61342         * lib/full-write.h: Likewise.
61343         * lib/fwritable.c: Likewise.
61344         * lib/fwritable.h: Likewise.
61345         * lib/fwriteerror.c: Likewise.
61346         * lib/fwriteerror.h: Likewise.
61347         * lib/fwriting.c: Likewise.
61348         * lib/fwriting.h: Likewise.
61349         * lib/gcd.c: Likewise.
61350         * lib/gcd.h: Likewise.
61351         * lib/getcwd.c: Likewise.
61352         * lib/getdate.h: Likewise.
61353         * lib/getdate.y: Likewise.
61354         * lib/getdomainname.c: Likewise.
61355         * lib/getdomainname.h: Likewise.
61356         * lib/getgroups.c: Likewise.
61357         * lib/gethostname.c: Likewise.
61358         * lib/gethrxtime.c: Likewise.
61359         * lib/gethrxtime.h: Likewise.
61360         * lib/getloadavg.c: Likewise.
61361         * lib/getndelim2.c: Likewise.
61362         * lib/getndelim2.h: Likewise.
61363         * lib/getnline.c: Likewise.
61364         * lib/getnline.h: Likewise.
61365         * lib/getopt.c: Likewise.
61366         * lib/getopt.in.h: Likewise.
61367         * lib/getopt1.c: Likewise.
61368         * lib/getopt_int.h: Likewise.
61369         * lib/getpagesize.h: Likewise.
61370         * lib/getsubopt.c: Likewise.
61371         * lib/gettime.c: Likewise.
61372         * lib/getugroups.c: Likewise.
61373         * lib/getugroups.h: Likewise.
61374         * lib/getusershell.c: Likewise.
61375         * lib/gl_anyavltree_list1.h: Likewise.
61376         * lib/gl_anyavltree_list2.h: Likewise.
61377         * lib/gl_anyhash_list1.h: Likewise.
61378         * lib/gl_anyhash_list2.h: Likewise.
61379         * lib/gl_anylinked_list1.h: Likewise.
61380         * lib/gl_anylinked_list2.h: Likewise.
61381         * lib/gl_anyrbtree_list1.h: Likewise.
61382         * lib/gl_anyrbtree_list2.h: Likewise.
61383         * lib/gl_anytree_list1.h: Likewise.
61384         * lib/gl_anytree_list2.h: Likewise.
61385         * lib/gl_anytree_oset.h: Likewise.
61386         * lib/gl_anytreehash_list1.h: Likewise.
61387         * lib/gl_anytreehash_list2.h: Likewise.
61388         * lib/gl_array_list.c: Likewise.
61389         * lib/gl_array_list.h: Likewise.
61390         * lib/gl_array_oset.c: Likewise.
61391         * lib/gl_array_oset.h: Likewise.
61392         * lib/gl_avltree_list.c: Likewise.
61393         * lib/gl_avltree_list.h: Likewise.
61394         * lib/gl_avltree_oset.c: Likewise.
61395         * lib/gl_avltree_oset.h: Likewise.
61396         * lib/gl_avltreehash_list.c: Likewise.
61397         * lib/gl_avltreehash_list.h: Likewise.
61398         * lib/gl_carray_list.c: Likewise.
61399         * lib/gl_carray_list.h: Likewise.
61400         * lib/gl_linked_list.c: Likewise.
61401         * lib/gl_linked_list.h: Likewise.
61402         * lib/gl_linkedhash_list.c: Likewise.
61403         * lib/gl_linkedhash_list.h: Likewise.
61404         * lib/gl_list.c: Likewise.
61405         * lib/gl_list.h: Likewise.
61406         * lib/gl_oset.c: Likewise.
61407         * lib/gl_oset.h: Likewise.
61408         * lib/gl_rbtree_list.c: Likewise.
61409         * lib/gl_rbtree_list.h: Likewise.
61410         * lib/gl_rbtree_oset.c: Likewise.
61411         * lib/gl_rbtree_oset.h: Likewise.
61412         * lib/gl_rbtreehash_list.c: Likewise.
61413         * lib/gl_rbtreehash_list.h: Likewise.
61414         * lib/gl_sublist.c: Likewise.
61415         * lib/gl_sublist.h: Likewise.
61416         * lib/group-member.c: Likewise.
61417         * lib/group-member.h: Likewise.
61418         * lib/hard-locale.c: Likewise.
61419         * lib/hard-locale.h: Likewise.
61420         * lib/hash-pjw.c: Likewise.
61421         * lib/hash-pjw.h: Likewise.
61422         * lib/hash-triple.c: Likewise.
61423         * lib/hash.c: Likewise.
61424         * lib/hash.h: Likewise.
61425         * lib/human.c: Likewise.
61426         * lib/human.h: Likewise.
61427         * lib/i-ring.c: Likewise.
61428         * lib/i-ring.h: Likewise.
61429         * lib/idcache.c: Likewise.
61430         * lib/imaxabs.c: Likewise.
61431         * lib/imaxdiv.c: Likewise.
61432         * lib/inet_pton.c: Likewise.
61433         * lib/inet_pton.h: Likewise.
61434         * lib/intprops.h: Likewise.
61435         * lib/inttostr.c: Likewise.
61436         * lib/inttostr.h: Likewise.
61437         * lib/inttypes.in.h: Likewise.
61438         * lib/isapipe.c: Likewise.
61439         * lib/isdir.c: Likewise.
61440         * lib/isnan.c: Likewise.
61441         * lib/isnan.h: Likewise.
61442         * lib/isnanf.c: Likewise.
61443         * lib/isnanf.h: Likewise.
61444         * lib/isnanl-nolibm.h: Likewise.
61445         * lib/isnanl.c: Likewise.
61446         * lib/isnanl.h: Likewise.
61447         * lib/javacomp.c: Likewise.
61448         * lib/javacomp.h: Likewise.
61449         * lib/javaexec.c: Likewise.
61450         * lib/javaexec.h: Likewise.
61451         * lib/javaversion.c: Likewise.
61452         * lib/javaversion.h: Likewise.
61453         * lib/javaversion.java: Likewise.
61454         * lib/lbrkprop.h: Likewise.
61455         * lib/lchmod.h: Likewise.
61456         * lib/lchown.c: Likewise.
61457         * lib/ldexpl.c: Likewise.
61458         * lib/linebreak.c: Likewise.
61459         * lib/linebreak.h: Likewise.
61460         * lib/linebuffer.c: Likewise.
61461         * lib/linebuffer.h: Likewise.
61462         * lib/locale.in.h: Likewise.
61463         * lib/logl.c: Likewise.
61464         * lib/long-options.c: Likewise.
61465         * lib/long-options.h: Likewise.
61466         * lib/lstat.c: Likewise.
61467         * lib/lstat.h: Likewise.
61468         * lib/math.in.h: Likewise.
61469         * lib/mbchar.c: Likewise.
61470         * lib/mbchar.h: Likewise.
61471         * lib/mbfile.h: Likewise.
61472         * lib/mbiter.h: Likewise.
61473         * lib/mbscasecmp.c: Likewise.
61474         * lib/mbscasestr.c: Likewise.
61475         * lib/mbschr.c: Likewise.
61476         * lib/mbscspn.c: Likewise.
61477         * lib/mbslen.c: Likewise.
61478         * lib/mbsncasecmp.c: Likewise.
61479         * lib/mbsnlen.c: Likewise.
61480         * lib/mbspbrk.c: Likewise.
61481         * lib/mbspcasecmp.c: Likewise.
61482         * lib/mbsrchr.c: Likewise.
61483         * lib/mbssep.c: Likewise.
61484         * lib/mbsspn.c: Likewise.
61485         * lib/mbsstr.c: Likewise.
61486         * lib/mbstok_r.c: Likewise.
61487         * lib/mbswidth.c: Likewise.
61488         * lib/mbswidth.h: Likewise.
61489         * lib/mbuiter.h: Likewise.
61490         * lib/memcasecmp.c: Likewise.
61491         * lib/memcasecmp.h: Likewise.
61492         * lib/memchr.c: Likewise.
61493         * lib/memcmp.c: Likewise.
61494         * lib/memcoll.c: Likewise.
61495         * lib/memcoll.h: Likewise.
61496         * lib/memcpy.c: Likewise.
61497         * lib/memrchr.c: Likewise.
61498         * lib/mkancesdirs.c: Likewise.
61499         * lib/mkdir-p.c: Likewise.
61500         * lib/mkdir-p.h: Likewise.
61501         * lib/mkdir.c: Likewise.
61502         * lib/mkdirat.c: Likewise.
61503         * lib/mkdtemp.c: Likewise.
61504         * lib/mkstemp-safer.c: Likewise.
61505         * lib/mkstemp.c: Likewise.
61506         * lib/modechange.c: Likewise.
61507         * lib/modechange.h: Likewise.
61508         * lib/mountlist.c: Likewise.
61509         * lib/mountlist.h: Likewise.
61510         * lib/mpsort.c: Likewise.
61511         * lib/nanosleep.c: Likewise.
61512         * lib/obstack.c: Likewise.
61513         * lib/obstack.h: Likewise.
61514         * lib/open-safer.c: Likewise.
61515         * lib/open.c: Likewise.
61516         * lib/openat-die.c: Likewise.
61517         * lib/openat-priv.h: Likewise.
61518         * lib/openat-proc.c: Likewise.
61519         * lib/openat.c: Likewise.
61520         * lib/openat.h: Likewise.
61521         * lib/pagealign_alloc.c: Likewise.
61522         * lib/pagealign_alloc.h: Likewise.
61523         * lib/physmem.c: Likewise.
61524         * lib/physmem.h: Likewise.
61525         * lib/pipe-safer.c: Likewise.
61526         * lib/pipe.c: Likewise.
61527         * lib/pipe.h: Likewise.
61528         * lib/posixtm.c: Likewise.
61529         * lib/posixtm.h: Likewise.
61530         * lib/posixver.c: Likewise.
61531         * lib/printf-frexp.c: Likewise.
61532         * lib/printf-frexp.h: Likewise.
61533         * lib/printf-frexpl.c: Likewise.
61534         * lib/printf-frexpl.h: Likewise.
61535         * lib/printf.c: Likewise.
61536         * lib/progname.c: Likewise.
61537         * lib/progname.h: Likewise.
61538         * lib/progreloc.c: Likewise.
61539         * lib/putenv.c: Likewise.
61540         * lib/quote.c: Likewise.
61541         * lib/quote.h: Likewise.
61542         * lib/quotearg.c: Likewise.
61543         * lib/quotearg.h: Likewise.
61544         * lib/raise.c: Likewise.
61545         * lib/readline.c: Likewise.
61546         * lib/readline.h: Likewise.
61547         * lib/readlink.c: Likewise.
61548         * lib/readtokens.c: Likewise.
61549         * lib/readtokens.h: Likewise.
61550         * lib/readtokens0.c: Likewise.
61551         * lib/readtokens0.h: Likewise.
61552         * lib/readutmp.c: Likewise.
61553         * lib/readutmp.h: Likewise.
61554         * lib/realloc.c: Likewise.
61555         * lib/relocwrapper.c: Likewise.
61556         * lib/rename-dest-slash.c: Likewise.
61557         * lib/rename.c: Likewise.
61558         * lib/rmdir.c: Likewise.
61559         * lib/rpmatch.c: Likewise.
61560         * lib/safe-read.c: Likewise.
61561         * lib/safe-read.h: Likewise.
61562         * lib/safe-write.c: Likewise.
61563         * lib/safe-write.h: Likewise.
61564         * lib/same-inode.h: Likewise.
61565         * lib/same.c: Likewise.
61566         * lib/same.h: Likewise.
61567         * lib/save-cwd.c: Likewise.
61568         * lib/save-cwd.h: Likewise.
61569         * lib/savedir.c: Likewise.
61570         * lib/savedir.h: Likewise.
61571         * lib/savewd.c: Likewise.
61572         * lib/savewd.h: Likewise.
61573         * lib/search.in.h: Likewise.
61574         * lib/setenv.c: Likewise.
61575         * lib/setenv.h: Likewise.
61576         * lib/settime.c: Likewise.
61577         * lib/sh-quote.c: Likewise.
61578         * lib/sh-quote.h: Likewise.
61579         * lib/sig2str.c: Likewise.
61580         * lib/sig2str.h: Likewise.
61581         * lib/signal.in.h: Likewise.
61582         * lib/signbitd.c: Likewise.
61583         * lib/signbitf.c: Likewise.
61584         * lib/signbitl.c: Likewise.
61585         * lib/sigprocmask.c: Likewise.
61586         * lib/sincosl.c: Likewise.
61587         * lib/sleep.c: Likewise.
61588         * lib/sprintf.c: Likewise.
61589         * lib/sqrtl.c: Likewise.
61590         * lib/stat-time.h: Likewise.
61591         * lib/stdio--.h: Likewise.
61592         * lib/stdio-safer.h: Likewise.
61593         * lib/stdlib--.h: Likewise.
61594         * lib/stdlib-safer.h: Likewise.
61595         * lib/stdlib.in.h: Likewise.
61596         * lib/stpcpy.c: Likewise.
61597         * lib/stpncpy.c: Likewise.
61598         * lib/strchrnul.c: Likewise.
61599         * lib/strcspn.c: Likewise.
61600         * lib/strerror.c: Likewise.
61601         * lib/strftime.c: Likewise.
61602         * lib/strftime.h: Likewise.
61603         * lib/striconveh.c: Likewise.
61604         * lib/striconveh.h: Likewise.
61605         * lib/striconveha.c: Likewise.
61606         * lib/striconveha.h: Likewise.
61607         * lib/stripslash.c: Likewise.
61608         * lib/strnlen1.c: Likewise.
61609         * lib/strnlen1.h: Likewise.
61610         * lib/strtod.c: Likewise.
61611         * lib/strtoimax.c: Likewise.
61612         * lib/strtok_r.c: Likewise.
61613         * lib/strtol.c: Likewise.
61614         * lib/strtoll.c: Likewise.
61615         * lib/strtoul.c: Likewise.
61616         * lib/strtoull.c: Likewise.
61617         * lib/sysexits.in.h: Likewise.
61618         * lib/tempname.c: Likewise.
61619         * lib/tempname.h: Likewise.
61620         * lib/timespec.h: Likewise.
61621         * lib/tls.c: Likewise.
61622         * lib/tls.h: Likewise.
61623         * lib/tmpdir.c: Likewise.
61624         * lib/tmpdir.h: Likewise.
61625         * lib/tmpfile-safer.c: Likewise.
61626         * lib/tmpfile.c: Likewise.
61627         * lib/trigl.c: Likewise.
61628         * lib/trigl.h: Likewise.
61629         * lib/trim.c: Likewise.
61630         * lib/trim.h: Likewise.
61631         * lib/trunc.c: Likewise.
61632         * lib/truncf.c: Likewise.
61633         * lib/truncl.c: Likewise.
61634         * lib/tsearch.c: Likewise.
61635         * lib/unicodeio.c: Likewise.
61636         * lib/unicodeio.h: Likewise.
61637         * lib/unistd--.h: Likewise.
61638         * lib/unistd-safer.h: Likewise.
61639         * lib/unistdio/ulc-fprintf.c: Likewise.
61640         * lib/unistdio/ulc-vfprintf.c: Likewise.
61641         * lib/unlinkdir.c: Likewise.
61642         * lib/unlinkdir.h: Likewise.
61643         * lib/unlocked-io.h: Likewise.
61644         * lib/unsetenv.c: Likewise.
61645         * lib/userspec.c: Likewise.
61646         * lib/utime.c: Likewise.
61647         * lib/utimecmp.c: Likewise.
61648         * lib/utimecmp.h: Likewise.
61649         * lib/utimens.c: Likewise.
61650         * lib/verify.h: Likewise.
61651         * lib/verror.c: Likewise.
61652         * lib/verror.h: Likewise.
61653         * lib/version-etc-fsf.c: Likewise.
61654         * lib/version-etc.c: Likewise.
61655         * lib/version-etc.h: Likewise.
61656         * lib/vfprintf.c: Likewise.
61657         * lib/vprintf.c: Likewise.
61658         * lib/vsprintf.c: Likewise.
61659         * lib/w32spawn.h: Likewise.
61660         * lib/wait-process.c: Likewise.
61661         * lib/wait-process.h: Likewise.
61662         * lib/wcwidth.c: Likewise.
61663         * lib/write-any-file.c: Likewise.
61664         * lib/xalloc-die.c: Likewise.
61665         * lib/xalloc.h: Likewise.
61666         * lib/xasprintf.c: Likewise.
61667         * lib/xgetcwd.c: Likewise.
61668         * lib/xgetcwd.h: Likewise.
61669         * lib/xgetdomainname.c: Likewise.
61670         * lib/xgetdomainname.h: Likewise.
61671         * lib/xgethostname.c: Likewise.
61672         * lib/xmalloc.c: Likewise.
61673         * lib/xmalloca.c: Likewise.
61674         * lib/xmalloca.h: Likewise.
61675         * lib/xmemcoll.c: Likewise.
61676         * lib/xnanosleep.c: Likewise.
61677         * lib/xreadlink.c: Likewise.
61678         * lib/xreadlink.h: Likewise.
61679         * lib/xsetenv.c: Likewise.
61680         * lib/xsetenv.h: Likewise.
61681         * lib/xstriconv.c: Likewise.
61682         * lib/xstriconv.h: Likewise.
61683         * lib/xstrndup.c: Likewise.
61684         * lib/xstrndup.h: Likewise.
61685         * lib/xstrtod.c: Likewise.
61686         * lib/xstrtod.h: Likewise.
61687         * lib/xstrtol-error.c: Likewise.
61688         * lib/xstrtol.c: Likewise.
61689         * lib/xstrtol.h: Likewise.
61690         * lib/xtime.h: Likewise.
61691         * lib/xvasprintf.c: Likewise.
61692         * lib/xvasprintf.h: Likewise.
61693         * lib/yesno.c: Likewise.
61694         * lib/yesno.h: Likewise.
61695         * posix-modules: Likewise.
61696         * tests/test-alloca-opt.c: Likewise.
61697         * tests/test-arcfour.c: Likewise.
61698         * tests/test-arctwo.c: Likewise.
61699         * tests/test-argmatch.c: Likewise.
61700         * tests/test-argp-2.sh: Likewise.
61701         * tests/test-argp.c: Likewise.
61702         * tests/test-arpa_inet.c: Likewise.
61703         * tests/test-array_list.c: Likewise.
61704         * tests/test-array_oset.c: Likewise.
61705         * tests/test-atexit.c: Likewise.
61706         * tests/test-avltree_list.c: Likewise.
61707         * tests/test-avltree_oset.c: Likewise.
61708         * tests/test-avltreehash_list.c: Likewise.
61709         * tests/test-base64.c: Likewise.
61710         * tests/test-binary-io.c: Likewise.
61711         * tests/test-byteswap.c: Likewise.
61712         * tests/test-c-ctype.c: Likewise.
61713         * tests/test-c-strcasecmp.c: Likewise.
61714         * tests/test-c-strcasestr.c: Likewise.
61715         * tests/test-c-strncasecmp.c: Likewise.
61716         * tests/test-c-strstr.c: Likewise.
61717         * tests/test-canonicalize-lgpl.c: Likewise.
61718         * tests/test-canonicalize.c: Likewise.
61719         * tests/test-carray_list.c: Likewise.
61720         * tests/test-ceilf.c: Likewise.
61721         * tests/test-ceill.c: Likewise.
61722         * tests/test-count-one-bits.c: Likewise.
61723         * tests/test-crc.c: Likewise.
61724         * tests/test-dirname.c: Likewise.
61725         * tests/test-fbufmode.c: Likewise.
61726         * tests/test-fcntl.c: Likewise.
61727         * tests/test-fflush.c: Likewise.
61728         * tests/test-floorf.c: Likewise.
61729         * tests/test-floorl.c: Likewise.
61730         * tests/test-fopen.c: Likewise.
61731         * tests/test-fprintf-posix.c: Likewise.
61732         * tests/test-fprintf-posix.h: Likewise.
61733         * tests/test-fpurge.c: Likewise.
61734         * tests/test-freadable.c: Likewise.
61735         * tests/test-freadahead.c: Likewise.
61736         * tests/test-freading.c: Likewise.
61737         * tests/test-freopen.c: Likewise.
61738         * tests/test-frexp.c: Likewise.
61739         * tests/test-frexpl.c: Likewise.
61740         * tests/test-fseek.c: Likewise.
61741         * tests/test-fseeko.c: Likewise.
61742         * tests/test-fseterr.c: Likewise.
61743         * tests/test-fstrcmp.c: Likewise.
61744         * tests/test-ftell.c: Likewise.
61745         * tests/test-ftello.c: Likewise.
61746         * tests/test-fwritable.c: Likewise.
61747         * tests/test-fwriting.c: Likewise.
61748         * tests/test-getaddrinfo.c: Likewise.
61749         * tests/test-getpass.c: Likewise.
61750         * tests/test-gettimeofday.c: Likewise.
61751         * tests/test-hmac-md5.c: Likewise.
61752         * tests/test-hmac-sha1.c: Likewise.
61753         * tests/test-iconv.c: Likewise.
61754         * tests/test-iconvme.c: Likewise.
61755         * tests/test-inttypes.c: Likewise.
61756         * tests/test-isnan.c: Likewise.
61757         * tests/test-isnanf.c: Likewise.
61758         * tests/test-isnanl-nolibm.c: Likewise.
61759         * tests/test-isnanl.c: Likewise.
61760         * tests/test-isnanl.h: Likewise.
61761         * tests/test-ldexpl.c: Likewise.
61762         * tests/test-linked_list.c: Likewise.
61763         * tests/test-linkedhash_list.c: Likewise.
61764         * tests/test-locale.c: Likewise.
61765         * tests/test-localename.c: Likewise.
61766         * tests/test-lock.c: Likewise.
61767         * tests/test-lseek.c: Likewise.
61768         * tests/test-malloca.c: Likewise.
61769         * tests/test-math.c: Likewise.
61770         * tests/test-mbscasecmp.c: Likewise.
61771         * tests/test-mbscasestr1.c: Likewise.
61772         * tests/test-mbscasestr2.c: Likewise.
61773         * tests/test-mbscasestr3.c: Likewise.
61774         * tests/test-mbscasestr4.c: Likewise.
61775         * tests/test-mbschr.c: Likewise.
61776         * tests/test-mbscspn.c: Likewise.
61777         * tests/test-mbsncasecmp.c: Likewise.
61778         * tests/test-mbspbrk.c: Likewise.
61779         * tests/test-mbspcasecmp.c: Likewise.
61780         * tests/test-mbsrchr.c: Likewise.
61781         * tests/test-mbsspn.c: Likewise.
61782         * tests/test-mbsstr1.c: Likewise.
61783         * tests/test-mbsstr2.c: Likewise.
61784         * tests/test-mbsstr3.c: Likewise.
61785         * tests/test-md5.c: Likewise.
61786         * tests/test-memmem.c: Likewise.
61787         * tests/test-netinet_in.c: Likewise.
61788         * tests/test-open.c: Likewise.
61789         * tests/test-printf-frexp.c: Likewise.
61790         * tests/test-printf-frexpl.c: Likewise.
61791         * tests/test-printf-posix.c: Likewise.
61792         * tests/test-printf-posix.h: Likewise.
61793         * tests/test-rbtree_list.c: Likewise.
61794         * tests/test-rbtree_oset.c: Likewise.
61795         * tests/test-rbtreehash_list.c: Likewise.
61796         * tests/test-read-file.c: Likewise.
61797         * tests/test-rijndael.c: Likewise.
61798         * tests/test-search.c: Likewise.
61799         * tests/test-signbit.c: Likewise.
61800         * tests/test-sleep.c: Likewise.
61801         * tests/test-snprintf-posix.c: Likewise.
61802         * tests/test-snprintf-posix.h: Likewise.
61803         * tests/test-snprintf.c: Likewise.
61804         * tests/test-sprintf-posix.c: Likewise.
61805         * tests/test-sprintf-posix.h: Likewise.
61806         * tests/test-stat-time.c: Likewise.
61807         * tests/test-stdbool.c: Likewise.
61808         * tests/test-stdint.c: Likewise.
61809         * tests/test-stdio.c: Likewise.
61810         * tests/test-stdlib.c: Likewise.
61811         * tests/test-stpncpy.c: Likewise.
61812         * tests/test-strcasestr.c: Likewise.
61813         * tests/test-striconv.c: Likewise.
61814         * tests/test-striconveh.c: Likewise.
61815         * tests/test-striconveha.c: Likewise.
61816         * tests/test-string.c: Likewise.
61817         * tests/test-sys_select.c: Likewise.
61818         * tests/test-sys_socket.c: Likewise.
61819         * tests/test-sys_stat.c: Likewise.
61820         * tests/test-sys_time.c: Likewise.
61821         * tests/test-sysexits.c: Likewise.
61822         * tests/test-time.c: Likewise.
61823         * tests/test-tls.c: Likewise.
61824         * tests/test-trunc.c: Likewise.
61825         * tests/test-truncf.c: Likewise.
61826         * tests/test-truncl.c: Likewise.
61827         * tests/test-unistd.c: Likewise.
61828         * tests/test-vasnprintf-posix.c: Likewise.
61829         * tests/test-vasnprintf-posix2.c: Likewise.
61830         * tests/test-vasnprintf.c: Likewise.
61831         * tests/test-vasprintf-posix.c: Likewise.
61832         * tests/test-vasprintf.c: Likewise.
61833         * tests/test-verify.c: Likewise.
61834         * tests/test-vfprintf-posix.c: Likewise.
61835         * tests/test-vprintf-posix.c: Likewise.
61836         * tests/test-vsnprintf-posix.c: Likewise.
61837         * tests/test-vsnprintf.c: Likewise.
61838         * tests/test-vsprintf-posix.c: Likewise.
61839         * tests/test-wchar.c: Likewise.
61840         * tests/test-wctype.c: Likewise.
61841         * tests/test-wcwidth.c: Likewise.
61842         * tests/test-xstrtol.c: Likewise.
61843         * tests/test-xvasprintf.c: Likewise.
61844         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61845         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61846         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61847         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61848         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61849         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61850         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61851         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61852         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61853         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61854         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61855         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61856         * tests/uniname/test-uninames.c: Likewise.
61857         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61858         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61859         * tests/unistdio/test-u16-printf1.h: Likewise.
61860         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61861         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61862         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61863         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61864         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61865         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61866         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61867         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61868         * tests/unistdio/test-u32-printf1.h: Likewise.
61869         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61870         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61871         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61872         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61873         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61874         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61875         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61876         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61877         * tests/unistdio/test-u8-printf1.h: Likewise.
61878         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61879         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61880         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61881         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61882         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61883         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61884         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61885         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61886         * tests/unistdio/test-ulc-printf1.h: Likewise.
61887         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61888         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61889         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61890         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61891         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61892         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61893         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61894         * tests/uniwidth/test-u16-width.c: Likewise.
61895         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61896         * tests/uniwidth/test-u32-width.c: Likewise.
61897         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61898         * tests/uniwidth/test-u8-width.c: Likewise.
61899         * tests/uniwidth/test-uc_width.c: Likewise.
61900         * config/srclist-update: Likewise.
61901         (fixlicense): Update to GPLv3+.
61902
61903         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61904         * tests/test-tsearch.c: Change copyright notice.
61905
61906         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61907         * lib/c-strcaseeq.h: Change copyright notice.
61908         * lib/streq.h: Likewise.
61909         * lib/uniconv.h: Likewise.
61910         * lib/uniconv/u-conv-from-enc.h: Likewise.
61911         * lib/uniconv/u-conv-to-enc.h: Likewise.
61912         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61913         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61914         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61915         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61916         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61917         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61918         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61919         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61920         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61921         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61922         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61923         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61924         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61925         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61926         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61927         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61928         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61929         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61930         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61931         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61932         * lib/uniname.h: Likewise.
61933         * lib/uniname/uniname.c: Likewise.
61934         * lib/unistdio.h: Likewise.
61935         * lib/unistdio/u-asnprintf.h: Likewise.
61936         * lib/unistdio/u-asprintf.h: Likewise.
61937         * lib/unistdio/u-printf-args.c: Likewise.
61938         * lib/unistdio/u-printf-args.h: Likewise.
61939         * lib/unistdio/u-printf-parse.h: Likewise.
61940         * lib/unistdio/u-snprintf.h: Likewise.
61941         * lib/unistdio/u-sprintf.h: Likewise.
61942         * lib/unistdio/u-vasprintf.h: Likewise.
61943         * lib/unistdio/u-vsnprintf.h: Likewise.
61944         * lib/unistdio/u-vsprintf.h: Likewise.
61945         * lib/unistdio/u16-asnprintf.c: Likewise.
61946         * lib/unistdio/u16-asprintf.c: Likewise.
61947         * lib/unistdio/u16-printf-parse.c: Likewise.
61948         * lib/unistdio/u16-snprintf.c: Likewise.
61949         * lib/unistdio/u16-sprintf.c: Likewise.
61950         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61951         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61952         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61953         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61954         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61955         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61956         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61957         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61958         * lib/unistdio/u16-vasnprintf.c: Likewise.
61959         * lib/unistdio/u16-vasprintf.c: Likewise.
61960         * lib/unistdio/u16-vsnprintf.c: Likewise.
61961         * lib/unistdio/u16-vsprintf.c: Likewise.
61962         * lib/unistdio/u32-asnprintf.c: Likewise.
61963         * lib/unistdio/u32-asprintf.c: Likewise.
61964         * lib/unistdio/u32-printf-parse.c: Likewise.
61965         * lib/unistdio/u32-snprintf.c: Likewise.
61966         * lib/unistdio/u32-sprintf.c: Likewise.
61967         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61968         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61969         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61970         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61971         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61972         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61973         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61974         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61975         * lib/unistdio/u32-vasnprintf.c: Likewise.
61976         * lib/unistdio/u32-vasprintf.c: Likewise.
61977         * lib/unistdio/u32-vsnprintf.c: Likewise.
61978         * lib/unistdio/u32-vsprintf.c: Likewise.
61979         * lib/unistdio/u8-asnprintf.c: Likewise.
61980         * lib/unistdio/u8-asprintf.c: Likewise.
61981         * lib/unistdio/u8-printf-parse.c: Likewise.
61982         * lib/unistdio/u8-snprintf.c: Likewise.
61983         * lib/unistdio/u8-sprintf.c: Likewise.
61984         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61985         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61986         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61987         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61988         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61989         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61990         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61991         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61992         * lib/unistdio/u8-vasnprintf.c: Likewise.
61993         * lib/unistdio/u8-vasprintf.c: Likewise.
61994         * lib/unistdio/u8-vsnprintf.c: Likewise.
61995         * lib/unistdio/u8-vsprintf.c: Likewise.
61996         * lib/unistdio/ulc-asnprintf.c: Likewise.
61997         * lib/unistdio/ulc-asprintf.c: Likewise.
61998         * lib/unistdio/ulc-printf-parse.c: Likewise.
61999         * lib/unistdio/ulc-snprintf.c: Likewise.
62000         * lib/unistdio/ulc-sprintf.c: Likewise.
62001         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62002         * lib/unistdio/ulc-vasprintf.c: Likewise.
62003         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62004         * lib/unistdio/ulc-vsprintf.c: Likewise.
62005         * lib/unistr.h: Likewise.
62006         * lib/unistr/u-cpy-alloc.h: Likewise.
62007         * lib/unistr/u-cpy.h: Likewise.
62008         * lib/unistr/u-endswith.h: Likewise.
62009         * lib/unistr/u-move.h: Likewise.
62010         * lib/unistr/u-set.h: Likewise.
62011         * lib/unistr/u-startswith.h: Likewise.
62012         * lib/unistr/u-stpcpy.h: Likewise.
62013         * lib/unistr/u-stpncpy.h: Likewise.
62014         * lib/unistr/u-strcat.h: Likewise.
62015         * lib/unistr/u-strcpy.h: Likewise.
62016         * lib/unistr/u-strcspn.h: Likewise.
62017         * lib/unistr/u-strdup.h: Likewise.
62018         * lib/unistr/u-strlen.h: Likewise.
62019         * lib/unistr/u-strncat.h: Likewise.
62020         * lib/unistr/u-strncpy.h: Likewise.
62021         * lib/unistr/u-strnlen.h: Likewise.
62022         * lib/unistr/u-strpbrk.h: Likewise.
62023         * lib/unistr/u-strspn.h: Likewise.
62024         * lib/unistr/u-strstr.h: Likewise.
62025         * lib/unistr/u-strtok.h: Likewise.
62026         * lib/unistr/u16-check.c: Likewise.
62027         * lib/unistr/u16-chr.c: Likewise.
62028         * lib/unistr/u16-cmp.c: Likewise.
62029         * lib/unistr/u16-cpy-alloc.c: Likewise.
62030         * lib/unistr/u16-cpy.c: Likewise.
62031         * lib/unistr/u16-endswith.c: Likewise.
62032         * lib/unistr/u16-mblen.c: Likewise.
62033         * lib/unistr/u16-mbsnlen.c: Likewise.
62034         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62035         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62036         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62037         * lib/unistr/u16-mbtouc.c: Likewise.
62038         * lib/unistr/u16-mbtoucr.c: Likewise.
62039         * lib/unistr/u16-move.c: Likewise.
62040         * lib/unistr/u16-next.c: Likewise.
62041         * lib/unistr/u16-prev.c: Likewise.
62042         * lib/unistr/u16-set.c: Likewise.
62043         * lib/unistr/u16-startswith.c: Likewise.
62044         * lib/unistr/u16-stpcpy.c: Likewise.
62045         * lib/unistr/u16-stpncpy.c: Likewise.
62046         * lib/unistr/u16-strcat.c: Likewise.
62047         * lib/unistr/u16-strchr.c: Likewise.
62048         * lib/unistr/u16-strcmp.c: Likewise.
62049         * lib/unistr/u16-strcpy.c: Likewise.
62050         * lib/unistr/u16-strcspn.c: Likewise.
62051         * lib/unistr/u16-strdup.c: Likewise.
62052         * lib/unistr/u16-strlen.c: Likewise.
62053         * lib/unistr/u16-strmblen.c: Likewise.
62054         * lib/unistr/u16-strmbtouc.c: Likewise.
62055         * lib/unistr/u16-strncat.c: Likewise.
62056         * lib/unistr/u16-strncmp.c: Likewise.
62057         * lib/unistr/u16-strncpy.c: Likewise.
62058         * lib/unistr/u16-strnlen.c: Likewise.
62059         * lib/unistr/u16-strpbrk.c: Likewise.
62060         * lib/unistr/u16-strrchr.c: Likewise.
62061         * lib/unistr/u16-strspn.c: Likewise.
62062         * lib/unistr/u16-strstr.c: Likewise.
62063         * lib/unistr/u16-strtok.c: Likewise.
62064         * lib/unistr/u16-to-u32.c: Likewise.
62065         * lib/unistr/u16-to-u8.c: Likewise.
62066         * lib/unistr/u16-uctomb-aux.c: Likewise.
62067         * lib/unistr/u16-uctomb.c: Likewise.
62068         * lib/unistr/u32-check.c: Likewise.
62069         * lib/unistr/u32-chr.c: Likewise.
62070         * lib/unistr/u32-cmp.c: Likewise.
62071         * lib/unistr/u32-cpy-alloc.c: Likewise.
62072         * lib/unistr/u32-cpy.c: Likewise.
62073         * lib/unistr/u32-endswith.c: Likewise.
62074         * lib/unistr/u32-mblen.c: Likewise.
62075         * lib/unistr/u32-mbsnlen.c: Likewise.
62076         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62077         * lib/unistr/u32-mbtouc.c: Likewise.
62078         * lib/unistr/u32-mbtoucr.c: Likewise.
62079         * lib/unistr/u32-move.c: Likewise.
62080         * lib/unistr/u32-next.c: Likewise.
62081         * lib/unistr/u32-prev.c: Likewise.
62082         * lib/unistr/u32-set.c: Likewise.
62083         * lib/unistr/u32-startswith.c: Likewise.
62084         * lib/unistr/u32-stpcpy.c: Likewise.
62085         * lib/unistr/u32-stpncpy.c: Likewise.
62086         * lib/unistr/u32-strcat.c: Likewise.
62087         * lib/unistr/u32-strchr.c: Likewise.
62088         * lib/unistr/u32-strcmp.c: Likewise.
62089         * lib/unistr/u32-strcpy.c: Likewise.
62090         * lib/unistr/u32-strcspn.c: Likewise.
62091         * lib/unistr/u32-strdup.c: Likewise.
62092         * lib/unistr/u32-strlen.c: Likewise.
62093         * lib/unistr/u32-strmblen.c: Likewise.
62094         * lib/unistr/u32-strmbtouc.c: Likewise.
62095         * lib/unistr/u32-strncat.c: Likewise.
62096         * lib/unistr/u32-strncmp.c: Likewise.
62097         * lib/unistr/u32-strncpy.c: Likewise.
62098         * lib/unistr/u32-strnlen.c: Likewise.
62099         * lib/unistr/u32-strpbrk.c: Likewise.
62100         * lib/unistr/u32-strrchr.c: Likewise.
62101         * lib/unistr/u32-strspn.c: Likewise.
62102         * lib/unistr/u32-strstr.c: Likewise.
62103         * lib/unistr/u32-strtok.c: Likewise.
62104         * lib/unistr/u32-to-u16.c: Likewise.
62105         * lib/unistr/u32-to-u8.c: Likewise.
62106         * lib/unistr/u32-uctomb.c: Likewise.
62107         * lib/unistr/u8-check.c: Likewise.
62108         * lib/unistr/u8-chr.c: Likewise.
62109         * lib/unistr/u8-cmp.c: Likewise.
62110         * lib/unistr/u8-cpy-alloc.c: Likewise.
62111         * lib/unistr/u8-cpy.c: Likewise.
62112         * lib/unistr/u8-endswith.c: Likewise.
62113         * lib/unistr/u8-mblen.c: Likewise.
62114         * lib/unistr/u8-mbsnlen.c: Likewise.
62115         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62116         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62117         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62118         * lib/unistr/u8-mbtouc.c: Likewise.
62119         * lib/unistr/u8-mbtoucr.c: Likewise.
62120         * lib/unistr/u8-move.c: Likewise.
62121         * lib/unistr/u8-next.c: Likewise.
62122         * lib/unistr/u8-prev.c: Likewise.
62123         * lib/unistr/u8-set.c: Likewise.
62124         * lib/unistr/u8-startswith.c: Likewise.
62125         * lib/unistr/u8-stpcpy.c: Likewise.
62126         * lib/unistr/u8-stpncpy.c: Likewise.
62127         * lib/unistr/u8-strcat.c: Likewise.
62128         * lib/unistr/u8-strchr.c: Likewise.
62129         * lib/unistr/u8-strcmp.c: Likewise.
62130         * lib/unistr/u8-strcpy.c: Likewise.
62131         * lib/unistr/u8-strcspn.c: Likewise.
62132         * lib/unistr/u8-strdup.c: Likewise.
62133         * lib/unistr/u8-strlen.c: Likewise.
62134         * lib/unistr/u8-strmblen.c: Likewise.
62135         * lib/unistr/u8-strmbtouc.c: Likewise.
62136         * lib/unistr/u8-strncat.c: Likewise.
62137         * lib/unistr/u8-strncmp.c: Likewise.
62138         * lib/unistr/u8-strncpy.c: Likewise.
62139         * lib/unistr/u8-strnlen.c: Likewise.
62140         * lib/unistr/u8-strpbrk.c: Likewise.
62141         * lib/unistr/u8-strrchr.c: Likewise.
62142         * lib/unistr/u8-strspn.c: Likewise.
62143         * lib/unistr/u8-strstr.c: Likewise.
62144         * lib/unistr/u8-strtok.c: Likewise.
62145         * lib/unistr/u8-to-u16.c: Likewise.
62146         * lib/unistr/u8-to-u32.c: Likewise.
62147         * lib/unistr/u8-uctomb-aux.c: Likewise.
62148         * lib/unistr/u8-uctomb.c: Likewise.
62149         * lib/unitypes.h: Likewise.
62150         * lib/uniwidth.h: Likewise.
62151         * lib/uniwidth/cjk.h: Likewise.
62152         * lib/uniwidth/u16-strwidth.c: Likewise.
62153         * lib/uniwidth/u16-width.c: Likewise.
62154         * lib/uniwidth/u32-strwidth.c: Likewise.
62155         * lib/uniwidth/u32-width.c: Likewise.
62156         * lib/uniwidth/u8-strwidth.c: Likewise.
62157         * lib/uniwidth/u8-width.c: Likewise.
62158         * lib/uniwidth/width.c: Likewise.
62159
62160 2007-10-07  Bruno Haible  <bruno@clisp.org>
62161
62162         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62163         The file is still under LGPL (see modules/inttypes).
62164
62165 2007-10-06  Bruno Haible  <bruno@clisp.org>
62166
62167         * modules/trunc (Dependencies): Add 'extensions'.
62168         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62169         Reported by Ben Pfaff <blp@gnu.org>.
62170
62171 2007-10-06  Bruno Haible  <bruno@clisp.org>
62172
62173         * modules/freopen-tests: New file.
62174         * tests/test-freopen.c: New file.
62175
62176         * modules/fopen-tests: New file.
62177         * tests/test-fopen.c: New file.
62178
62179         * modules/fopen: New file.
62180         * lib/fopen.c: New file.
62181         * m4/fopen.m4: New file.
62182         * modules/freopen: New file.
62183         * lib/freopen.c: New file.
62184         * m4/freopen.m4: New file.
62185         * lib/stdio.in.h (fopen, freopen): New declarations.
62186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62187         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62188         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62189         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62190         * doc/functions/fopen.texi: Mention the 'fopen' module.
62191         * doc/functions/freopen.texi: Mention the 'freopen' module.
62192
62193 2007-10-06  Bruno Haible  <bruno@clisp.org>
62194
62195         * modules/open-tests: New file.
62196         * tests/test-open.c: New file.
62197
62198         * modules/open: New file.
62199         * lib/open.c: New file.
62200         * m4/open.m4: New file.
62201         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62202         lib/open.c does.
62203         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62204         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62205         macros.
62206         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62207         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62208         REPLACE_OPEN.
62209         * doc/functions/open.texi: Mention the 'open' module.
62210
62211 2007-10-04  Bruno Haible  <bruno@clisp.org>
62212
62213         * modules/ceill-tests: New file.
62214         * tests/test-ceill.c: New file.
62215
62216         * modules/ceill: New file.
62217         * lib/ceill.c: Replace entire file.
62218         * m4/ceill.m4: New file.
62219         * lib/math.in.h (ceill): Replace declaration.
62220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62221         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62222         * doc/functions/ceill.texi: Mention the 'ceill' module.
62223         * modules/mathl (Files): Remove lib/ceill.c.
62224         (Depends-on): Add ceill.
62225
62226 2007-10-04  Bruno Haible  <bruno@clisp.org>
62227
62228         * modules/ceilf-tests: New file.
62229         * tests/test-ceilf.c: New file.
62230
62231         * modules/ceilf: New file.
62232         * lib/ceil.c: New file.
62233         * lib/ceilf.c: New file.
62234         * m4/ceilf.m4: New file.
62235         * lib/math.in.h (ceilf): New declaration.
62236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62237         HAVE_DECL_CEILF.
62238         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62239         HAVE_DECL_CEILF.
62240         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62241
62242 2007-10-04  Bruno Haible  <bruno@clisp.org>
62243
62244         * modules/floorl-tests: New file.
62245         * tests/test-floorl.c: New file.
62246
62247         * modules/floorl: New file.
62248         * lib/floorl.c: Replace entire file.
62249         * m4/floorl.m4: New file.
62250         * lib/math.in.h (floorl): Replace declaration.
62251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62252         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62253         * doc/functions/floorl.texi: Mention the 'floorl' module.
62254         * modules/mathl (Files): Remove lib/floorl.c.
62255         (Depends-on): Add floorl.
62256
62257 2007-10-04  Bruno Haible  <bruno@clisp.org>
62258
62259         * modules/floorf-tests: New file.
62260         * tests/test-floorf.c: New file.
62261
62262         * modules/floorf: New file.
62263         * lib/floor.c: New file.
62264         * lib/floorf.c: New file.
62265         * m4/floorf.m4: New file.
62266         * lib/math.in.h (floorf): New declaration.
62267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62268         HAVE_DECL_FLOORF.
62269         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62270         HAVE_DECL_FLOORF.
62271         * doc/functions/floorf.texi: Mention the 'floorf' module.
62272
62273 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62274             Bruno Haible  <bruno@clisp.org>
62275
62276         Advertise for the Git server instead of the CVS server.
62277         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62278         repository instead of the CVS one.
62279         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62280         about all VCS systems generically.
62281         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62282
62283 2007-10-04  Bruno Haible  <bruno@clisp.org>
62284
62285         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62286         means.
62287         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62288
62289 2007-10-04  Bruno Haible  <bruno@clisp.org>
62290
62291         * modules/truncl-tests: New file.
62292         * tests/test-truncl.c: New file.
62293
62294         * modules/truncl: New file.
62295         * lib/truncl.c: New file.
62296         * m4/truncl.m4: New file.
62297         * lib/math.in.h (truncl): New declaration.
62298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62299         HAVE_DECL_TRUNCL.
62300         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62301         HAVE_DECL_TRUNCL.
62302         * doc/functions/truncl.texi: Mention the 'truncl' module.
62303
62304 2007-10-04  Bruno Haible  <bruno@clisp.org>
62305
62306         * modules/truncf-tests: New file.
62307         * tests/test-truncf.c: New file.
62308
62309         * modules/truncf: New file.
62310         * lib/trunc.c: Make paramerizable through USE_* macros.
62311         * lib/truncf.c: New file.
62312         * m4/truncf.m4: New file.
62313         * lib/math.in.h (truncf): New declaration.
62314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62315         HAVE_DECL_TRUNCF.
62316         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62317         HAVE_DECL_TRUNCF.
62318         * doc/functions/truncf.texi: Mention the 'truncf' module.
62319
62320 2007-10-03  Bruno Haible  <bruno@clisp.org>
62321
62322         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62323         augmentation also for tests modules.
62324         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62325         * modules/atexit-tests (Makefile.am): Likewise.
62326         * modules/binary-io-tests (Makefile.am): Likewise.
62327         * modules/c-strcase-tests (Makefile.am): Likewise.
62328         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62329         * modules/canonicalize-tests (Makefile.am): Likewise.
62330         * modules/closein-tests (Makefile.am): Likewise.
62331         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62332         * modules/freadahead-tests (Makefile.am): Likewise.
62333         * modules/fseek-tests (Makefile.am): Likewise.
62334         * modules/fseeko-tests (Makefile.am): Likewise.
62335         * modules/ftell-tests (Makefile.am): Likewise.
62336         * modules/ftello-tests (Makefile.am): Likewise.
62337         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62338         * modules/isnanl-tests (Makefile.am): Likewise.
62339         * modules/lseek-tests (Makefile.am): Likewise.
62340         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62341         * modules/mbscasestr-tests (Makefile.am): Likewise.
62342         * modules/mbschr-tests (Makefile.am): Likewise.
62343         * modules/mbscspn-tests (Makefile.am): Likewise.
62344         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62345         * modules/mbspbrk-tests (Makefile.am): Likewise.
62346         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62347         * modules/mbsrchr-tests (Makefile.am): Likewise.
62348         * modules/mbsspn-tests (Makefile.am): Likewise.
62349         * modules/mbsstr-tests (Makefile.am): Likewise.
62350         * modules/printf-posix-tests (Makefile.am): Likewise.
62351         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62352         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62353         * modules/tsearch-tests (Makefile.am): Likewise.
62354         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62355         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62356         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62357         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62358         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62359         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62360         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62361         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62362         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62363         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62364         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62365         * modules/xstrtol-tests (Makefile.am): Likewise.
62366         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62367         * modules/yesno-tests (Makefile.am): Likewise.
62368
62369 2007-10-03  Bruno Haible  <bruno@clisp.org>
62370
62371         * modules/trunc-tests: New file.
62372         * tests/test-trunc.c: New file.
62373
62374         * modules/trunc: New file.
62375         * lib/trunc.c: New file.
62376         * m4/trunc.m4: New file.
62377         * lib/math.in.h (trunc): New declaration.
62378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62379         HAVE_DECL_TRUNC.
62380         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62381         HAVE_DECL_TRUNC.
62382         * doc/functions/trunc.texi: Mention the 'trunc' module.
62383
62384 2007-10-03  Bruno Haible  <bruno@clisp.org>
62385
62386         * tests/test-fpending.c: New file, mostly copied
62387         from coreutils/lib/t-fpending.c.
62388         * modules/fpending-tests: New file.
62389
62390 2007-10-03  Bruno Haible  <bruno@clisp.org>
62391
62392         Port the stdio extensions to QNX (untested).
62393         * lib/fseterr.c (fseterr): Add support for QNX.
62394         * lib/fbufmode.c (fbufmode): Likewise.
62395         * lib/freadable.c (freadable): Likewise.
62396         * lib/fwritable.c (fwritable): Likewise.
62397         * lib/freading.c (freading): Likewise.
62398         * lib/fwriting.c (fwriting): Likewise.
62399         * lib/freadahead.c (freadahed): Likewise.
62400         * lib/fpurge.c (fpurge): Likewise.
62401         * lib/fseeko.c (rpl_fseeko): Likewise.
62402
62403 2007-10-03  Bruno Haible  <bruno@clisp.org>
62404             Jim Meyering  <jim@meyering.net>
62405             Eric Blake  <ebb9@byu.net>
62406
62407         * doc/relocatable.texi: Use @command instead of @program.
62408
62409 2007-10-02  Jim Meyering  <jim@meyering.net>
62410
62411         Perform one more "_.h" -> ".in.h" substitution.
62412         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62413         instead of unistd_.h here, too.
62414
62415 2007-10-01  Bruno Haible  <bruno@clisp.org>
62416
62417         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62418         Needed for the alloca-opt module.
62419
62420 2007-09-30  Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62423         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62424         alloca_.h.
62425         * lib/argz.in.h: Renamed from lib/argz_.h.
62426         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62427         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62428         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62429         byteswap_.h.
62430         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62431         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62432         dirent_.h.
62433         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62434         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62435         fcntl_.h.
62436         * lib/float.in.h: Renamed from lib/float_.h.
62437         * modules/float (Files, Makefile.am): Use float.in.h instead of
62438         float_.h.
62439         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62440         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62441         fnmatch_.h.
62442         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62443         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62444         getopt_.h.
62445         * lib/glob.in.h: Renamed from lib/glob_.h.
62446         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62447         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62448         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62449         iconv_.h.
62450         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62451         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62452         inttypes_.h.
62453         * lib/locale.in.h: Renamed from lib/locale_.h.
62454         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62455         locale_.h.
62456         * lib/math.in.h: Renamed from lib/math_.h.
62457         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62458         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62459         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62460         of netinet_in_.h. Add dependency.
62461         * lib/poll.in.h: Renamed from lib/poll_.h.
62462         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62463         * lib/search.in.h: Renamed from lib/search_.h.
62464         * modules/search (Files, Makefile.am): Use search.in.h instead of
62465         search_.h.
62466         * lib/signal.in.h: Renamed from lib/signal_.h.
62467         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62468         _signal.h.
62469         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62470         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62471         stdbool_.h.
62472         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62473         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62474         stdint_.h.
62475         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62476         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62477         stdio_.h.
62478         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62479         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62480         stdlib_.h.
62481         * lib/string.in.h: Renamed from lib/string_.h.
62482         * modules/string (Files, Makefile.am): Use string.in.h instead of
62483         string_.h.
62484         * doc/gnulib-tool.texi (Initial import): Update.
62485         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62486         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62487         of sys_select_.h. Add dependency.
62488         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62489         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62490         of sys_socket_.h.
62491         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62492         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62493         sys_stat_.h.
62494         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62495         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62496         sys_time_.h.
62497         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62498         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62499         sysexits_.h.
62500         * lib/time.in.h: Renamed from lib/time_.h.
62501         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62502         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62503         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62504         unistd_.h.
62505         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62506         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62507         wchar_.h.
62508         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62509         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62510         wctype_.h.
62511         * build-aux/bootstrap (slurp): Update.
62512         * lib/.cppi-disable: Update.
62513
62514 2007-09-30  Bruno Haible  <bruno@clisp.org>
62515
62516         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62517         Needed on BeOS.
62518
62519 2007-09-30  Bruno Haible  <bruno@clisp.org>
62520
62521         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62522
62523 2007-09-29  Bruno Haible  <bruno@clisp.org>
62524
62525         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62526
62527 2007-09-29  Bruno Haible  <bruno@clisp.org>
62528
62529         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62530         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62531         * build-aux/install-reloc: Compile also areadlink.c.
62532         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62533
62534 2007-09-29  Bruno Haible  <bruno@clisp.org>
62535
62536         * gnulib-tool (func_emit_initmacro_done): Indentation.
62537
62538 2007-09-29  Bruno Haible  <bruno@clisp.org>
62539
62540         * README: Add CVS checkout update instructions.
62541         Info from Bob Proulx <bob@proulx.com>.
62542
62543 2007-09-28  Eric Blake  <ebb9@byu.net>
62544
62545         Provide move-if-change.
62546         * build-aux/move-if-change: New file, based on best practice
62547         rather than any canonical upstream location.
62548
62549 2007-09-28  Jim Meyering  <jim@meyering.net>
62550
62551         Fix canonicalize loop-detection corner case.
62552         Do not attempt to stat the symlink values stored via seen_triple.
62553         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62554         on linux-2.6.18, (but not 2.6.22).
62555         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62556         triple_compare.  The former compares dev,ino,filename, while the latter
62557         would actually stat dirname(filename) when dev and ino were equal.
62558         * lib/hash-triple.c: Install <string.h>.
62559         (STREQ): Define.
62560         (triple_compare_ino_str): New function.
62561         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62562
62563 2007-09-28  Eric Blake  <ebb9@byu.net>
62564
62565         Enforce that AC_REPLACE_FUNCS files exist.
62566         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62567         override check for typos.
62568
62569         Fix test-closein on Solaris 10.
62570         * tests/test-closein.c (main): Don't assume stdin can be inherited
62571         closed on all systems.
62572         * tests/test-closein.sh: Likewise.
62573         Reported by Piotr Tarnowski.
62574
62575 2007-09-28  Jim Meyering  <jim@meyering.net>
62576
62577         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62578
62579 2007-09-27  Jim Meyering  <jim@meyering.net>
62580
62581         canonicalize: Avoid a false-positive cycle failure.
62582         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62583         Sort.  Remove cycle-check.
62584         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62585         not cycle-check.h.
62586         (seen_triple): New function.
62587         (canonicalize_filename_mode): Use it instead of cycle-check.
62588         * tests/test-canonicalize.c: Add a test for this bug.
62589         * tests/test-canonicalize.sh: Set up and run the test.
62590
62591         New module, file-set, from coreutils.
62592         * modules/file-set: Define it.
62593         * lib/file-set.c, lib/file-set.h: Implement.
62594
62595         New module, hash-triple, from coreutils.
62596         * modules/hash-triple: Define it.
62597         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62598
62599 2007-09-25  Eric Blake  <ebb9@byu.net>
62600
62601         Fix strerror on Interix.
62602         * lib/string_.h (strerror): Declare replacement.
62603         * doc/functions/strerror.texi (strerror): Document the Interix
62604         shortcoming.
62605         * modules/string (Makefile.am): Support new hooks.
62606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62607         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62608         gl_FUNC_STRERROR_SEPARATE.
62609         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62610         * lib/strerror.c (rpl_strerror): Provide replacement.
62611         * modules/strerror (Depends-on): Add string.
62612         (configure.ac): Detect use of module.
62613         * tests/test-strerror.c: New file.
62614         * modules/strerror-tests: New test module.
62615         * modules/argp (Depends-on): Add strerror.
62616         * modules/error (Depends-on): Likewise.
62617         Reported by Martin Koeppe.
62618
62619 2007-09-24  Bruno Haible  <bruno@clisp.org>
62620
62621         * README: Update git instructions.
62622
62623 2007-09-24  Eric Blake  <ebb9@byu.net>
62624
62625         Revert fpending breakage from 2007-09-08.
62626         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62627         __fpending.c.
62628
62629 2007-09-24  Jim Meyering  <jim@meyering.net>
62630
62631         filenamecat.c: Add a test.
62632         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62633         showing how the function works when DIR is the empty string.
62634
62635 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62636
62637         * tests/test-canonicalize.sh: Turn on executable bit.
62638
62639 2007-09-19  Eric Blake  <ebb9@byu.net>
62640
62641         * README: Update CVS instructions.
62642
62643 2007-09-18  Bruno Haible  <bruno@clisp.org>
62644
62645         * modules/areadlink: New file.
62646         * lib/areadlink.h (areadlink): New declaration.
62647         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62648
62649 2007-09-17  Jim Meyering  <jim@meyering.net>
62650
62651         * lib/savewd.c (ESTALE) [!defined]: Define.
62652         Reported to be required on Interix by Martin Koeppe.
62653
62654 2007-09-17  Bruno Haible  <bruno@clisp.org>
62655
62656         * gnulib-tool (func_version): Use $version.
62657
62658 2007-09-16  Bruno Haible  <bruno@clisp.org>
62659
62660         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62661         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62662         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62663         Reported by Greg Schafer <gschafer@zip.com.au>.
62664
62665 2007-09-15  Bruno Haible  <bruno@clisp.org>
62666
62667         * gnulib-tool (sed): Try a little harder to make bash understand the
62668         alias.
62669         Reported by Bruce Korb <bruce.korb@gmail.com>.
62670
62671 2007-09-13  Eric Blake  <ebb9@byu.net>
62672
62673         * ChangeLog: Remove conflict markers.
62674
62675 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62676
62677         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62678         Reported by Bruno Haible <bruno@clisp.org>.
62679
62680 2007-09-12  Bruno Haible  <bruno@clisp.org>
62681
62682         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62683         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62684         is not defined.
62685
62686 2007-09-12  Eric Blake  <ebb9@byu.net>
62687
62688         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62689         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62690         Autoconf definition.
62691         * modules/euidaccess (Depends-on): Add extensions, for
62692         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62693         * modules/fnmatch (Depends-on): Likewise.
62694         * modules/getaddrinfo (Depends-on): Likewise.
62695         * modules/getdelim (Depends-on): Likewise.
62696         * modules/getline (Depends-on): Likewise.
62697         * modules/getsubopt (Depends-on): Likewise.
62698         * modules/gettext (Depends-on): Likewise.
62699         * modules/group-member (Depends-on): Likewise.
62700         * modules/mbchar (Depends-on): Likewise.
62701         * modules/memmem (Depends-on): Likewise.
62702         * modules/mempcpy (Depends-on): Likewise.
62703         * modules/memrchr (Depends-on): Likewise.
62704         * modules/pagealign_alloc (Depends-on): Likewise.
62705         * modules/readutmp (Depends-on): Likewise.
62706         * modules/stpcpy (Depends-on): Likewise.
62707         * modules/stpncpy (Depends-on): Likewise.
62708         * modules/strchrnul (Depends-on): Likewise.
62709         * modules/strndup (Depends-on): Likewise.
62710         * modules/strsep (Depends-on): Likewise.
62711         * modules/strverscmp (Depends-on): Likewise.
62712         * modules/vasprintf (Depends-on): Likewise.
62713         * modules/wcwidth (Depends-on): Likewise.
62714         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62715         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62716         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62717         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62718         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62719         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62720         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62721         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62722         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62723         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62724         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62725         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62726         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62727         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62728         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62729         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62730         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62731         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62732         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62733         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62734         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62735         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62736         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62737         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62738         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62740         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62741         so that lock.m4 can be used in gettext without extensions module.
62742
62743 2007-09-11  Bruno Haible  <bruno@clisp.org>
62744
62745         * m4/isc-posix.m4: Remove file.
62746         Suggested by Eric Blake.
62747
62748 2007-09-11  Eric Blake  <ebb9@byu.net>
62749
62750         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62751
62752 2007-09-10  Bruno Haible  <bruno@clisp.org>
62753
62754         * posix-modules: Fix typo in error message.
62755         Reported by Matt <mkraai@beckman.com>.
62756
62757 2007-09-09  Bruno Haible  <bruno@clisp.org>
62758
62759         * doc/functions/getdelim.texi: Update list of platforms lacking the
62760         function.
62761         * doc/functions/getline.texi: Likewise.
62762
62763 2007-09-09  Jim Meyering  <jim@meyering.net>
62764
62765         * lib/hash.c (hash_initialize): Detect calloc failure.
62766         Reported by Bruno Haible.
62767
62768 2007-09-09  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62771         malloc or realloc fails.
62772
62773 2007-09-09  Bruno Haible  <bruno@clisp.org>
62774
62775         * modules/getcwd (Depends-on): Add malloc-posix.
62776         * modules/glob (Depends-on): Likewise.
62777         * modules/putenv (Depends-on): Likewise.
62778         * modules/strdup (Depends-on): Likewise.
62779         * modules/getdelim (Depends-on): Add realloc-posix.
62780         * modules/read-file (Depends-on): Likewise.
62781
62782 2007-09-09  Bruno Haible  <bruno@clisp.org>
62783
62784         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62785         (gl_FUNC_MALLOC_POSIX): Require it.
62786         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62787         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62788         * modules/realloc (Files): Add m4/malloc.m4.
62789         * modules/calloc (Files): Likewise.
62790
62791 2007-09-09  Bruno Haible  <bruno@clisp.org>
62792
62793         * modules/malloc-posix: New file.
62794         * modules/malloc (Depends-on): Add malloc-posix.
62795         * lib/malloc.c: Include errno.h.
62796         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62797         and a POSIX-compatible malloc into a single function. Set ENOMEM
62798         when returning NULL.
62799         * m4/malloc.m4: New file.
62800         * doc/functions/malloc.texi: Mention the malloc-posix module.
62801         * lib/stdlib_.h (malloc): New declaration.
62802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62803         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62804         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62805         and HAVE_MALLOC_POSIX.
62806
62807 2007-09-09  Bruno Haible  <bruno@clisp.org>
62808
62809         * modules/realloc-posix: New file.
62810         * modules/realloc (Depends-on): Add realloc-posix.
62811         * lib/realloc.c: Include errno.h.
62812         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62813         and a POSIX-compatible realloc into a single function. Set ENOMEM
62814         when returning NULL.
62815         * m4/realloc.m4: New file.
62816         * doc/functions/realloc.texi: Mention the realloc-posix module.
62817         * lib/stdlib_.h (realloc): New declaration.
62818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62819         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62820         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62821         and HAVE_REALLOC_POSIX.
62822
62823 2007-09-09  Bruno Haible  <bruno@clisp.org>
62824
62825         * modules/calloc-posix: New file.
62826         * modules/calloc (Depends-on): Add calloc-posix.
62827         * lib/calloc.c: Include errno.h.
62828         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62829         and a POSIX-compatible calloc into a single function. Set ENOMEM
62830         when returning NULL.
62831         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62832         * doc/functions/calloc.texi: Mention the calloc-posix module.
62833         * lib/stdlib_.h (calloc): New declaration.
62834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62835         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62836         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62837         and HAVE_CALLOC_POSIX.
62838
62839 2007-09-09  Bruno Haible  <bruno@clisp.org>
62840
62841         Allow for modules to show an arbitrary notice.
62842         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62843         * gnulib-tool: New option --extract-notice.
62844         (func_usage): Document it.
62845         (sed_extract_prog): Update.
62846         (func_get_notice): New function.
62847         (func_modules_notice): New function.
62848         (func_import, func_create_testdir): Invoke it.
62849         Suggested by Jim Meyering.
62850
62851 2007-09-09  Bruno Haible  <bruno@clisp.org>
62852
62853         * gnulib-tool: New options --verbose, --quiet.
62854         (func_usage): Document them.
62855         (verbose): New variable.
62856         (func_execute_command): New function.
62857         (func_import): Don't show the module list and the file list if
62858         $verbose < 0.
62859         (func_create_testdir): Likewise. Use func_execute_command.
62860         (func_create_megatestdir): Use func_execute_command.
62861
62862 2007-09-08  Bruno Haible  <bruno@clisp.org>
62863
62864         * gnulib-tool (func_import): Prefer rsync over wget when available,
62865         for fetching the PO files.
62866
62867 2007-09-08  Bruno Haible  <bruno@clisp.org>
62868
62869         * posix-modules: New file. Portions copied from gnulib-tool.
62870         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62871
62872 2007-09-08  Jim Meyering  <jim@meyering.net>
62873
62874         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62875         * lib/fpending.h: Rename from __fpending.h.
62876         * lib/fpending.c: Rename from __fpending.c.
62877         Include "fpending.h", not "__fpending.h".
62878         * lib/__fpending.h, lib/__fpending.c: Remove files.
62879         * modules/fpending (Files): Reflect new file names.
62880         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62881
62882 2007-09-08  Bruno Haible  <bruno@clisp.org>
62883
62884         * m4/inttypes-h.m4: Remove stub file.
62885
62886 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62887
62888         * doc/headers/stdint.texi: Discuss #include_next issue.
62889
62890 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62891
62892         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62893
62894 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62895
62896         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62897         in variable name.
62898
62899 2007-09-03  Jim Meyering  <jim@meyering.net>
62900
62901         New module: git-version-gen.
62902         * modules/git-version-gen: New file.
62903
62904         Import changes from coreutils for bootstrap script.
62905
62906         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62907
62908         bootstrap: uses rsync to download the .po files
62909         * build-aux/bootstrap (po_download_command_format): New global.
62910         (download_po_files): Use rsync.
62911         (update_po_files): Don't remove .po files after download,
62912         so future rsync runs can take advantage of the copies.
62913
62914         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62915
62916         Solve the unnecessary-.po-file-regeneration problem once and for all.
62917         * build-aux/bootstrap (download_po_files): New function, renamed from
62918         get_translations.  Now, downloads, but doesn't update LINGUAS.
62919         (update_po_files): New function.
62920
62921         bootstrap: Ignore more.
62922         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62923         uniwidth to e.g., lib/.gitignore.
62924         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62925
62926         * build-aux/bootstrap: New setting: vc_ignore.
62927         (insert_sorted_if_absent): Create $file if absent.
62928         Adapt to new, possibly empty, list: $vc_ignore.
62929
62930         bootstrap: generate more ignorable names
62931         * build-aux/bootstrap (slurp): When generating ignorable names,
62932         also map .sin to .sed, .gperf to .c, and .y to .c.
62933
62934 2007-09-03  Jim Meyering  <jim@meyering.net>
62935
62936         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62937         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62938
62939 2007-09-02  Bruno Haible  <bruno@clisp.org>
62940
62941         Fix mis-recognition of 'mcs' on QNX 6.
62942         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62943         output contains the string "Mono".
62944         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62945         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62946
62947 2007-09-01  Bruno Haible  <bruno@clisp.org>
62948
62949         Fix collision between uniwidth/* and linebreak modules.
62950         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62951         u32_width): Remove declarations.
62952         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62953         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62954         streq3, streq2, streq1, streq0): Remove functions.
62955         (STREQ): Remove macro.
62956         (is_cjk_encoding): Remove function.
62957         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62958         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62959         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62960         * NEWS: Document the change.
62961
62962 2007-09-01  Bruno Haible  <bruno@clisp.org>
62963
62964         * lib/streq.h: Add double-inclusion guard.
62965
62966 2007-09-01  Karl Berry  <karl@gnu.org>
62967
62968         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62969
62970 2007-08-28  Jim Meyering  <jim@meyering.net>
62971
62972         Rename mreadlink_with_size to areadlink_with_size.
62973         * NEWS: Document the change.
62974         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62975         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62976         * lib/mreadlink.h: Rename this to...
62977         * lib/areadlink.h: ...this.
62978         * modules/mreadlink-with-size: Rename this to...
62979         * modules/areadlink-with-size: ...this.
62980         * lib/canonicalize.c: Reflect the renaming.
62981         * modules/canonicalize: Likewise.
62982
62983 2007-08-26  Bruno Haible  <bruno@clisp.org>
62984
62985         * gnulib-tool (func_import): When deciding which files to remove,
62986         consider also dangling symbolic links.
62987         Reported by Eric Blake.
62988
62989 2007-08-26  Bruno Haible  <bruno@clisp.org>
62990
62991         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62992
62993 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62994
62995         * lib/readline.c: Don't include getline.h, the prototype is now
62996         found in stdio.h.
62997
62998 2007-08-23  Jim Meyering  <jim@meyering.net>
62999
63000         Getdelim touchup.
63001         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63002         around the funlockfile call, since funlockfile never sets errno.
63003         Don't set errno upon failed realloc.
63004
63005 2007-08-22  Eric Blake  <ebb9@byu.net>
63006
63007         Getline touchups.
63008         * lib/getdelim.c (getdelim): Revert regression that required *n to
63009         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63010         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63011         getdelim, rather than whether implementation is missing.
63012         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63013         * lib/stdio_.h (getline): Also declare if replacement is
63014         required.
63015         * doc/functions/getdelim.texi: New file.
63016         * doc/functions/getline.texi: Likewise.
63017         * doc/gnulib.texi (Function Substitutes): Add new files.
63018         Reported by Bruno Haible.
63019
63020 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63021
63022         * users.txt: Add Guile.
63023
63024 2007-08-22  Eric Blake  <ebb9@byu.net>
63025
63026         * tests/test-getdelim.c (main): Use remove, not unlink.
63027         * tests/test-getline.c (main): Likewise.
63028
63029         Move getline and getdelim into stdio.h, per POSIX 200x.
63030         * modules/getline (Files): Remove getline.h.
63031         (Depends-on): Add stdio.
63032         (configure.ac): Add module indicator.
63033         * modules/getdelim (Files): Remove getdelim.h.
63034         (Depends-on): Add stdio.
63035         (configure.ac): Add module indicator.
63036         * modules/stdio (Makefile.am): Work with new indicators.
63037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63038         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63039         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63040         * lib/getdelim.h: Delete.
63041         * lib/getline.h: Delete.
63042         * lib/stdio_.h (getdelim, getline): Declare.
63043         * modules/getdelim-tests: New module.
63044         * modules/getline-tests: Likewise.
63045         * tests/test-getdelim.c: New file.
63046         * tests/test-getline.c: Likewise.
63047         * NEWS: Document the change.
63048         * lib/getline.c: Update choice of header.
63049         * lib/csharpcomp.c: Likewise.
63050         * lib/getpass.c: Likewise.
63051         * lib/javacomp.c: Likewise.
63052         * lib/javaversion.c: Likewise.
63053         * lib/yesno.c: Likewise.
63054         * lib/getdelim.c: Likewise.
63055         (getdelim): Set errno on failure, and avoid memory leak.
63056
63057 2007-08-19  Bruno Haible  <bruno@clisp.org>
63058
63059         * modules/closein (Depends-on): Add freadahead.
63060         * lib/closein.c: Include freadahead.h.
63061         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63062         is zero.
63063
63064 2007-08-19  Bruno Haible  <bruno@clisp.org>
63065
63066         * modules/freadahead-tests: New file.
63067         * tests/test-freadahead.sh: New file.
63068         * tests/test-freadahead.c: New file.
63069
63070         * modules/freadahead: New file.
63071         * lib/freadahead.h: New file.
63072         * lib/freadahead.c: New file.
63073         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63074         fbufmode, fpurge, freadable, fwritable.
63075
63076 2007-08-19  Eric Blake  <ebb9@byu.net>
63077
63078         Test yesno in combination with closein.
63079         * lib/yesno.c (yesno): Document use of stdin.
63080         * modules/yesno-tests (Files): New module.
63081         * tests/test-yesno.c (main): New file.
63082         * tests/test-yesno.sh: Likewise.
63083
63084 2007-08-19  Bruno Haible  <bruno@clisp.org>
63085
63086         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63087         * lib/fseeko.c (rpl_fseeko): Likewise.
63088         * lib/fseterr.c (fseterr): Likewise.
63089
63090 2007-08-19  Bruno Haible  <bruno@clisp.org>
63091
63092         * tests/test-lseek.c (main): Disable a test for BeOS.
63093         * doc/functions/lseek.texi: Document the BeOS bug.
63094
63095 2007-08-19  Bruno Haible  <bruno@clisp.org>
63096             Eric Blake  <ebb9@byu.net>
63097
63098         * lib/lseek.c: Include <sys/stat.h>.
63099         (rpl_lseek): Add workaround code also for Unix platforms.
63100         Needed for BeOS.
63101         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63102         * doc/functions/lseek.texi: Document BeOS definiency.
63103
63104 2007-08-18  Bruno Haible  <bruno@clisp.org>
63105
63106         * modules/fstrcmp-tests: New file.
63107         * tests/test-fstrcmp.c: New file.
63108
63109 2007-08-18  Bruno Haible  <bruno@clisp.org>
63110
63111         * modules/fstrcmp: New file, from GNU gettext with modifications.
63112         * lib/fstrcmp.h: New file, from GNU gettext.
63113         * lib/fstrcmp.c: New file, from GNU gettext.
63114         * MODULES.html.sh (String handling): Add fstrcmp.
63115
63116 2007-08-18  Bruno Haible  <bruno@clisp.org>
63117
63118         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63119         'bool'.
63120         (diag, compareseq): Remove const from the ctxt argument.
63121         (USE_HEURISTIC): Undefine at the end.
63122
63123 2007-08-18  Jim Meyering  <jim@meyering.net>
63124
63125         New file: lib/idcache.h
63126         * NEWS: Mention the addition.
63127         * modules/idcache (Files): Add lib/idcache.h
63128         * lib/idcache.c: Include "idcache.h".
63129         Don't include <sys/types.h>.
63130         Add a FIXME comment.
63131         Move file-scoped "static" declarations to the top.
63132         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63133
63134 2007-08-17  Bruno Haible  <bruno@clisp.org>
63135         and Paul Eggert  <eggert@cs.ucla.edu>
63136
63137         * MODULES.html.sh: Add diffseq.
63138         * modules/diffseq: New file.
63139         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63140         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63141
63142 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63143
63144         Import changes from coreutils for bootstrap script.
63145
63146         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63147
63148         * build-aux/bootstrap (slurp): Work even in environments where
63149         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63150         current code does not slurp files whose names start with ".", and
63151         this looks like it might be a troublesome area.
63152
63153         2007-07-11  Jim Meyering  <jim@meyering.net>
63154
63155         If there's a GPL vN copyright comment, require that N == 3.
63156
63157         2007-07-08  Jim Meyering  <jim@meyering.net>
63158
63159         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63160         * build-aux/bootstrap (mam_template): Move definition out of loop.
63161
63162         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63163
63164         * build-aux/bootstrap (symlink_to_dir): Rename function from
63165         symlink_to_gnulib.  Add a directory parameter.  Update all
63166         callers.
63167         (cp_mark_as_generated): Also check for -- and link to -- files in
63168         gl/.
63169
63170         2007-07-08  Jim Meyering  <jim@meyering.net>
63171
63172         Adapt to deeper hierarchy in gnulib.
63173         * build-aux/bootstrap (symlink_to_dir): If the destination
63174         directory doesn't exist, create it. This is required at least for
63175         "lib/uniwidth/cjk.h".
63176
63177         2007-05-15  Jim Meyering  <jim@meyering.net>
63178
63179         * build-aux/bootstrap: Now that generated Makefile.am files
63180         are no longer under version control, they must be created at
63181         bootstrap time.
63182
63183 2007-08-14  Ben Pfaff  <blp@gnu.org>
63184
63185         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63186
63187 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63190         given the changes below.
63191         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63192         even on hosts that have padding bits beyond the supported 64.
63193
63194 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63197         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63198         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63199         depends on it.
63200         (xstrtol_error): Remove.
63201         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63202         but with a different signature.
63203         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63204         * lib/xstrtol-error.c: Include exitfail.h.
63205         (xstrtol_fatal): New function, with a different signature from the
63206         old xstrtol_error, so that the caller need not worry about passing
63207         in an exit status, or about storage management of the option argument.
63208         (xstrtol_error): Now a static function.  Redo signature to
63209         implement xstrtol_fatal.  Output the correct number of hyphens in
63210         front of the option so that the caller need not worry about
63211         storage management.
63212         (N_): New macro.
63213         (_): Remove; not used now.
63214         * modules/xstrtol: Depend on getopt.
63215         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63216         of old STRTOL_FATAL_ERROR macro.
63217         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63218         of test program.
63219         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63220         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63221
63222 2007-08-08  Eric Blake  <ebb9@byu.net>
63223
63224         * lib/xstrtol-error.c: Add missing include.
63225
63226         Move xstrtol messages into gnulib domain, when --pobase is used.
63227         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63228         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63229         * modules/xstrtol (Files): Distribute new file.
63230         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63231         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63232         * tests/test-xstrtol.c: ...into new file.
63233         * tests/test-xstrtoul.c: Also test xstrtoul.
63234         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63235         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63236         * tests/test-xstrtol.sh: Drive the tests.
63237         * tests/test-xstrtoimax.sh: Likewise.
63238         * tests/test-xstrtoumax.sh: Likewise.
63239         * modules/xstrtol-tests: New module.
63240         * modules/xstrtoimax-tests: Likewise.
63241         * modules/xstrtoumax-tests: Likewise.
63242
63243 2007-08-08  Jim Meyering  <jim@meyering.net>
63244
63245         New function: mfile_name_concat.
63246         * lib/filenamecat.c (mfile_name_concat): New function, just like
63247         file_name_concat, but return NULL upon failure rather than exiting
63248         with a diagnostic.
63249         * lib/filenamecat.h: Declare it.
63250
63251 2007-08-07  Bruno Haible  <bruno@clisp.org>
63252
63253         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63254         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63255         warning from gcc.
63256         Reported by Eric Blake.
63257
63258 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63259
63260         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63261         * modules/crypto/arcfour (License): Likewise.
63262         * modules/crypto/des-tests (License): Likewise.
63263         * modules/crypto/gc-arctwo-tests (License): Likewise.
63264         * modules/crypto/gc-des-tests (License): Likewise.
63265         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63266         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63267         * modules/crypto/gc-md2-tests (License): Likewise.
63268         * modules/crypto/gc-md4-tests (License): Likewise.
63269         * modules/crypto/gc-md5-tests (License): Likewise.
63270         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63271         * modules/crypto/gc-rijndael-tests (License): Likewise.
63272         * modules/crypto/gc-sha1-tests (License): Likewise.
63273         * modules/crypto/gc-tests (License): Likewise.
63274         * modules/crypto/hmac-md5 (License): Likewise.
63275         * modules/crypto/hmac-sha1 (License): Likewise.
63276         * modules/crypto/md2-tests (License): Likewise.
63277         * modules/crypto/md4-tests (License): Likewise.
63278         * modules/crypto/md5 (License): Likewise.
63279         * modules/crypto/rijndael (License): Likewise.
63280         * modules/crypto/sha1 (License): Likewise.
63281         * modules/memxor (License): Likewise.
63282
63283 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63284         and Bruno Haible  <bruno@clisp.org>
63285
63286         * NEWS: Describe interface changes to human, xstrtol.
63287         * lib/human.h: Include <xstrtol.h>.
63288         (human_options): Return enum strtol_error, not int.  Remove
63289         bool arg; take int * instead.
63290         * lib/human.c: Don't include "gettext.h".
63291         (_): Remove; no longer used.
63292         Don't include <xstrtol.h>, since human.h does it.
63293         (human_options): Adjust to abovementioned interface changes.
63294         Do not report error to stderr; that's now the caller's
63295         responsibility.
63296         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63297         interface change.
63298         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63299         Str, Argument_type_string.  All uses changed.  Put " argument"
63300         in diagnostics to make them clearer.  Change wording of suffix
63301         message for clarity.
63302         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63303         Argument_type_string.
63304         (STRTOL_FATAL_WARN): Remove; no longer used.
63305         * modules/human (Depends-on): Remove gettext-h.
63306
63307 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63308
63309         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63310
63311 2007-07-31  Bruno Haible  <bruno@clisp.org>
63312
63313         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63314         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63315         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63316
63317 2007-07-31  Bruno Haible  <bruno@clisp.org>
63318
63319         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63320         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63321
63322 2007-07-30  Bruno Haible  <bruno@clisp.org>
63323
63324         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63325         * modules/c-ctype (License): Likewise.
63326         * modules/c-strcase (License): Likewise.
63327         * modules/check-version (License): Likewise.
63328         * modules/iconv (License): Likewise.
63329         * modules/iconv_open (License): Likewise.
63330         * modules/read-file (License): Likewise.
63331         * modules/striconv (License): Likewise.
63332         * modules/strverscmp (License): Likewise.
63333         * modules/vasprintf (License): Likewise.
63334         * modules/crypto/des (License): Likewise.
63335         * modules/crypto/gc (License): Likewise.
63336         * modules/crypto/gc-arcfour (License): Likewise.
63337         * modules/crypto/gc-arctwo (License): Likewise.
63338         * modules/crypto/gc-des (License): Likewise.
63339         * modules/crypto/gc-hmac-md5 (License): Likewise.
63340         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63341         * modules/crypto/gc-md2 (License): Likewise.
63342         * modules/crypto/gc-md4 (License): Likewise.
63343         * modules/crypto/gc-md5 (License): Likewise.
63344         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63345         * modules/crypto/gc-random (License): Likewise.
63346         * modules/crypto/gc-rijndael (License): Likewise.
63347         * modules/crypto/gc-sha1 (License): Likewise.
63348         * modules/crypto/md2 (License): Likewise.
63349         * modules/crypto/md4 (License): Likewise.
63350
63351 2007-07-30  Jim Meyering  <jim@meyering.net>
63352
63353         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63354         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63355         it has valid stat data.  This bug would cause du not to count the
63356         sizes of inaccessible directories.
63357         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63358         in <http://bugzilla.redhat.com/250077>.
63359
63360 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63361             Bruno Haible  <bruno@clisp.org>
63362
63363         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63364         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63365         #include_next, gives a diagnostic about it, but reports no error in
63366         the exit code.
63367         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63368
63369 2007-07-24  Ben Pfaff  <blp@gnu.org>
63370
63371         Improve name: "count-one-bits" is better than "popcount".
63372         * MODULES.html.sh: Update name.
63373         * lib/popcount.h: Renamed lib/count-one-bits.h.
63374         (popcount): Renamed count_one_bits.
63375         (popcountl): Renamed count_one_bits_l.
63376         (popcountll): Renamed count_one_bits_ll.
63377         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63378         * modules/popcount: Renamed module/count-one-bits.
63379         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63380         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63381
63382 2007-07-23  Ben Pfaff  <blp@gnu.org>
63383
63384         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63385         better code generation, and add U to large constants to avoid
63386         warnings, in non-GCC case.
63387         Suggested by Bruno Haible.
63388
63389 2007-07-23  Ben Pfaff  <blp@gnu.org>
63390
63391         * lib/popcount.h: Use verify_true instead of if...abort.
63392         * modules/popcount: Depend on verify module.
63393         Suggested by Jim Meyering.
63394
63395 2007-07-23  Bruno Haible  <bruno@clisp.org>
63396
63397         * gnulib-tool (func_import): Create a .cvsignore file also when the
63398         directory is not yet in CVS but the toplevel directory is. When
63399         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63400         Reported by Karl Berry.
63401
63402 2007-07-22  Ben Pfaff  <blp@gnu.org>
63403
63404         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63405         case.
63406         Suggested by Eric Blake.
63407
63408 2007-07-22  Ben Pfaff  <blp@gnu.org>
63409
63410         New module: popcount.
63411         * MODULES.html.sh: Add popcount.
63412         * modules/popcount: New file.
63413         * modules/popcount-tests: New file.
63414         * tests/test-popcount.c: New file.
63415         * lib/popcount.h: New file.
63416         * m4/popcount.m4: New file.
63417
63418 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         * build-aux/announce-gen: Update to GPLv3.
63421
63422         * build-aux/config.guess: Update from config.
63423
63424 2007-07-21  Bruno Haible  <bruno@clisp.org>
63425
63426         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63427         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63428
63429 2007-07-20  Jim Meyering  <jim@meyering.net>
63430
63431         * check-module: Diagnose a self-dependency.
63432
63433 2007-07-19  Bruno Haible  <bruno@clisp.org>
63434
63435         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63436         empty.
63437         Reported by Eric Blake.
63438
63439 2007-07-18  Bruno Haible  <bruno@clisp.org>
63440
63441         * gnulib-tool: New options --po-base, --po-domain.
63442         (func_usage): Document them.
63443         (pobase, po_domain): New variables.
63444         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63445         DEFAULT_TEXT_DOMAIN.
63446         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63447         (func_import): Consider pobase and po_domain. Create a po/ directory.
63448         (func_create_testdir): Set pobase and po_domain to empty.
63449         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63450         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63451
63452 2007-07-18  Bruno Haible  <bruno@clisp.org>
63453
63454         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63455         EXTRA_DIST augmentation for files in build-aux/.
63456
63457 2007-07-16  Bruno Haible  <bruno@clisp.org>
63458
63459         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63460         * modules/getdelim (License): Likewise.
63461
63462 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63463
63464         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63465         * modules/d-type (License): Likewise.
63466         * modules/extensions (License): Likewise.
63467         * modules/fnmatch (License): Likewise.
63468         * modules/fseeko (License): Likewise.
63469         * modules/getaddrinfo (License): Likewise.
63470         * modules/getline (License): Likewise.
63471         * modules/getlogin_r (License): Likewise.
63472         * modules/getpass (License): Likewise.
63473         * modules/gettimeofday (License): Likewise.
63474         * modules/glob (License): Likewise.
63475         * modules/inet_ntop (License): Likewise.
63476         * modules/malloc (License): Likewise.
63477         * modules/malloca (License): Likewise.
63478         * modules/memmem (License): Likewise.
63479         * modules/mempcpy (License): Likewise.
63480         * modules/memset (License): Likewise.
63481         * modules/minmax (License): Likewise.
63482         * modules/mktime (License): Likewise.
63483         * modules/netinet_in (License): Likewise.
63484         * modules/pathmax (License): Likewise.
63485         * modules/poll (License): Likewise.
63486         * modules/regex (License): Likewise.
63487         * modules/snprintf (License): Likewise.
63488         * modules/stdbool (License): Likewise.
63489         * modules/stdint (License): Likewise.
63490         * modules/stdio (License): Likewise.
63491         * modules/strcase (License): Likewise.
63492         * modules/strcasestr (License): Likewise.
63493         * modules/strdup (License): Likewise.
63494         * modules/string (License): Likewise.
63495         * modules/strndup (License): Likewise.
63496         * modules/strnlen (License): Likewise.
63497         * modules/strpbrk (License): Likewise.
63498         * modules/strptime (License): Likewise.
63499         * modules/strsep (License): Likewise.
63500         * modules/sys_select (License): Likewise.
63501         * modules/sys_socket (License): Likewise.
63502         * modules/sys_stat (License): Likewise.
63503         * modules/sys_time (License): Likewise.
63504         * modules/time (License): Likewise.
63505         * modules/time_r (License): Likewise.
63506         * modules/timegm (License): Likewise.
63507         * modules/unistd (License): Likewise.
63508         * modules/vsnprintf (License): Likewise.
63509         * modules/wctype (License): Likewise.
63510
63511 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63512
63513         * modules/argz (License): LGPLv2+.
63514
63515 2007-07-15  Karl Berry  <karl@gnu.org>
63516
63517         * doc/gnulib.texi: revise node structure per new fdl.texi.
63518
63519 2007-07-14  Bruno Haible  <bruno@clisp.org>
63520
63521         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63522         the output file.
63523         * lib/uniname/uninames.h: Regenerated.
63524
63525 2007-07-14  Karl Berry  <karl@gnu.org>
63526
63527         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63528         omitting sectioning and index commands.
63529
63530 2007-07-13  Bruno Haible  <bruno@clisp.org>
63531
63532         New gnulib-tool option --more-symlinks.
63533         * gnulib-tool (func_usage): Document --more-symlinks.
63534         (do_copyrights): New variable.
63535         Recognize option --more-symlinks.
63536         (func_import): Don't add a copyright notice transform to
63537         sed_transform_lib_file if do_copyrights is empty.
63538
63539 2007-07-13  Bruno Haible  <bruno@clisp.org>
63540
63541         * lib/vasnprintf.c (decimal_point_char): Define also if
63542         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63543         && !NEED_PRINTF_DIRECTIVE_A.
63544         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63545         Gary V. Vaughan <gary@gnu.org>.
63546
63547 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63548
63549         * lib/inttypes_.h: Undo previous change, since it was fixed
63550         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63551
63552 2007-07-13  Bruno Haible  <bruno@clisp.org>
63553
63554         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63555         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63556
63557 2007-07-13  Jim Meyering  <jim@meyering.net>
63558
63559         df: Don't fail for Tru64's "file-on-file mount".
63560         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63561         so we fall through and use statfs instead.  Details here:
63562         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63563         Reported by Albert Chin.
63564
63565 2007-07-13  Bruno Haible  <bruno@clisp.org>
63566
63567         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63568         * modules/configmake (License): Likewise.
63569         * modules/gettext (License): Likewise.
63570         * modules/gettext-h (License): Likewise.
63571         * modules/include_next (License): Likewise.
63572         * modules/link-warning (License): Likewise.
63573         * modules/localcharset (License): Likewise.
63574         * modules/localename (License): Likewise.
63575         * modules/lock (License): Likewise.
63576         * modules/relocatable-lib-lgpl (License): Likewise.
63577         * modules/size_max (License): Likewise.
63578         * modules/vasnprintf (License): Likewise.
63579         * modules/wchar (License): Likewise.
63580         * modules/xsize (License): Likewise.
63581
63582 2007-07-13  Bruno Haible  <bruno@clisp.org>
63583
63584         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63585         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63586
63587 2007-07-12  Bruno Haible  <bruno@clisp.org>
63588
63589         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63590         in the modules files.
63591
63592 2007-07-11  Karl Berry  <karl@gnu.org>
63593
63594         * MODULES.html.sh (func_module): use
63595          sed -e '\|^'"${includefile}"'$|d'
63596          instead of /.../d, to avoid errors on $includefile's containing /.
63597
63598 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63599
63600         * gnulib-tool (func_import): Avoid duplication of --avoid
63601         statements
63602         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63603         names to `_' in variable names.
63604
63605 2007-07-10  Eric Blake  <ebb9@byu.net>
63606
63607         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63608         * NEWS: Document this change.
63609
63610 2007-07-08  Bruno Haible  <bruno@clisp.org>
63611
63612         Update to Unicode 5.0.
63613         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63614         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63615         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63616         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63617         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63618         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63619         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63620         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63621         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63622         U+10A3F, U+1D242..U+1D244.
63623         (nonspacing_table_ind): Update.
63624         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63625         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63626
63627 2007-07-08  Bruno Haible  <bruno@clisp.org>
63628
63629         Update to Unicode 5.0.
63630         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63631         code transform. Extend the name index field of unicode_name_to_code and
63632         unicode_code_to_name from 16 to 24 bits.
63633         * lib/uniname/uniname.c (unicode_character_name,
63634         unicode_name_character): Add the range 0x12xxx to the code transform.
63635         * lib/uniname/uninames.h: Regenerated.
63636         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63637
63638 2007-07-07  Bruno Haible  <bruno@clisp.org>
63639
63640         * modules/wcwidth-tests: New file.
63641         * tests/test-wcwidth.c: New file.
63642
63643         Work around MacOS X wcwidth() bug.
63644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63645         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63646         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63647         original wcwidth in non-UTF-8 locales.
63648         * modules/wcwidth (Depends-on): Add localcharset, streq,
63649         uniwidth/width.
63650         * doc/functions/wcwidth.texi: Update.
63651
63652 2007-07-07  Bruno Haible  <bruno@clisp.org>
63653
63654         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63655         (wcwidth): New declaration.
63656         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63657         macros.
63658         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63659         here. Prepare for creating <wchar.h> unconditionally.
63660         * modules/wchar (Depends-on): Add link-warning.
63661         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63662         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63663         * lib/wcwidth.h: Remove file.
63664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63665         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63666         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63667         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63668         (Include): Replace wcwidth.h with <wchar.h>.
63669         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63670         * lib/mbchar.h: Don't include wcwidth.h.
63671         * lib/mbswidth.c: Likewise.
63672         * NEWS: Mention the change.
63673
63674 2007-07-07  Bruno Haible  <bruno@clisp.org>
63675
63676         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63677         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63678         definition with an external declaration.
63679         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63680         defined as a function. Remove AC_C_INLINE requirement.
63681         * modules/wcwidth (Files): Add lib/wcwidth.c.
63682         (Makefile.am): Remove redundant statement.
63683
63684 2007-07-07  Bruno Haible  <bruno@clisp.org>
63685
63686         * MODULES.html.sh (Unicode string functions): Add the new modules.
63687
63688         * tests/uniwidth/test-u32-strwidth.c: New file.
63689         * modules/uniwidth/u32-strwidth-tests: New file.
63690
63691         * lib/uniwidth/u32-strwidth.c: New file.
63692         * modules/uniwidth/u32-strwidth: New file.
63693
63694         * tests/uniwidth/test-u16-strwidth.c: New file.
63695         * modules/uniwidth/u16-strwidth-tests: New file.
63696
63697         * lib/uniwidth/u16-strwidth.c: New file.
63698         * modules/uniwidth/u16-strwidth: New file.
63699
63700         * tests/uniwidth/test-u8-strwidth.c: New file.
63701         * modules/uniwidth/u8-strwidth-tests: New file.
63702
63703         * lib/uniwidth/u8-strwidth.c: New file.
63704         * modules/uniwidth/u8-strwidth: New file.
63705
63706         * tests/uniwidth/test-u32-width.c: New file.
63707         * modules/uniwidth/u32-width-tests: New file.
63708
63709         * lib/uniwidth/u32-width.c: New file.
63710         * modules/uniwidth/u32-width: New file.
63711
63712         * tests/uniwidth/test-u16-width.c: New file.
63713         * modules/uniwidth/u16-width-tests: New file.
63714
63715         * lib/uniwidth/u16-width.c: New file.
63716         * modules/uniwidth/u16-width: New file.
63717
63718         * tests/uniwidth/test-u8-width.c: New file.
63719         * modules/uniwidth/u8-width-tests: New file.
63720
63721         * lib/uniwidth/u8-width.c: New file.
63722         * modules/uniwidth/u8-width: New file.
63723
63724         * tests/uniwidth/test-uc_width.c: New file.
63725         * modules/uniwidth/width-tests: New file.
63726
63727         * lib/uniwidth/width.c: New file, from GNU libiconv.
63728         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63729         * modules/uniwidth/width: New file.
63730
63731         * lib/uniwidth.h: New file, from GNU libiconv.
63732         * modules/uniwidth/base: New file.
63733
63734 2007-07-07  Bruno Haible  <bruno@clisp.org>
63735
63736         * lib/uniname.h: New file, from GNU gettext.
63737         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63738         * lib/uniname/uninames.h: New file, from GNU gettext.
63739         * lib/uniname/uniname.c: New file, from GNU gettext.
63740         * tests/uniname/test-uninames.sh: New file.
63741         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63742         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63743         * modules/uniname/base: New file.
63744         * modules/uniname/uniname: New file.
63745         * modules/uniname/uniname-tests: New file.
63746         * MODULES.html.sh (Unicode string functions): Add the new modules.
63747
63748 2007-07-06  Bruno Haible  <bruno@clisp.org>
63749
63750         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63751
63752 2007-07-06  Bruno Haible  <bruno@clisp.org>
63753
63754         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63755         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63756         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63757         include <sys/time.h>.
63758         Reported by Eric Blake.
63759
63760 2007-07-06  Eric Blake  <ebb9@byu.net>
63761
63762         Fix testing canonicalize on cygwin.
63763         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63764         Revert patch from 2007-06-19.
63765         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63766         canonicalize module is also in use.
63767         * tests/test-canonicalize.c: New file.
63768         * tests/test-canonicalize.sh: Likewise.
63769         * modules/canonicalize-tests: Likewise.
63770
63771 2007-07-06  Jim Meyering  <jim@meyering.net>
63772
63773         * lib/getugroups.c (getugroups): Detect getgrent failure.
63774         Adjust comment to reflect reality: this function may return -1.
63775
63776 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63777
63778         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63779         the new TP address.
63780         (usage): Fix typo
63781         (gnulib_mk): New variable.
63782
63783 2007-07-05  Jim Meyering  <jim@meyering.net>
63784
63785         Don't let endgrent clobber errno, no matter how improbable.
63786         * lib/getugroups.c (getugroups): Save and restore errno around
63787         endgrent call.
63788
63789         Close the group DB even when failing with 2^31 or more members.
63790         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63791
63792 2007-07-04  Jim Meyering  <jim@meyering.net>
63793
63794         * lib/getugroups.h: New file.
63795         * lib/getugroups.c: Include "getugroups.h".
63796         Remove uses of "register" keyword.
63797         Move local variable, "cp", down into scope where used.
63798         Give "username" parameter the "const" attribute.
63799         * modules/getugroups (Files): Add lib/getugroups.h
63800
63801 2007-07-04  Karl Berry  <karl@gnu.org>
63802
63803         * MODULES.html.sh (func_all_modules): Complete rename of
63804         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63805
63806 2007-07-02  Bruno Haible  <bruno@clisp.org>
63807
63808         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63809         mode, when inttypes.h comes from gnulib.
63810         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63811
63812 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63813
63814         * NEWS: Mention lgpl module name change.
63815
63816         * modules/lgpl-2.1: Renamed from lgpl.
63817
63818         * NEWS: Mention gpl module name change.
63819
63820         * modules/gpl-3.0: New file, based on gpl-2.0.
63821
63822         * modules/gpl-2.0: Renamed from gpl.
63823
63824         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63825         doc/gpl-2.0.texi.
63826
63827 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63828
63829         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63830         #define __STDC_LIMIT_MACROS temporarily while including
63831         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63832         Problem reported by Joel E. Denny in
63833         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63834
63835 2007-07-01  Bruno Haible  <bruno@clisp.org>
63836
63837         * lib/unistdio.h: New file.
63838         * lib/unistdio/u-asnprintf.h: New file.
63839         * lib/unistdio/u-asprintf.h: New file.
63840         * lib/unistdio/u-printf-args.c: New file.
63841         * lib/unistdio/u-printf-args.h: New file.
63842         * lib/unistdio/u-printf-parse.h: New file.
63843         * lib/unistdio/u-snprintf.h: New file.
63844         * lib/unistdio/u-sprintf.h: New file.
63845         * lib/unistdio/u-vasprintf.h: New file.
63846         * lib/unistdio/u-vsnprintf.h: New file.
63847         * lib/unistdio/u-vsprintf.h: New file.
63848         * lib/unistdio/ulc-asnprintf.c: New file.
63849         * lib/unistdio/ulc-asprintf.c: New file.
63850         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63851         * lib/unistdio/ulc-printf-parse.c: New file.
63852         * lib/unistdio/ulc-snprintf.c: New file.
63853         * lib/unistdio/ulc-sprintf.c: New file.
63854         * lib/unistdio/ulc-vasnprintf.c: New file.
63855         * lib/unistdio/ulc-vasprintf.c: New file.
63856         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63857         * lib/unistdio/ulc-vsnprintf.c: New file.
63858         * lib/unistdio/ulc-vsprintf.c: New file.
63859         * lib/unistdio/u8-asnprintf.c: New file.
63860         * lib/unistdio/u8-asprintf.c: New file.
63861         * lib/unistdio/u8-printf-parse.c: New file.
63862         * lib/unistdio/u8-snprintf.c: New file.
63863         * lib/unistdio/u8-sprintf.c: New file.
63864         * lib/unistdio/u8-vasnprintf.c: New file.
63865         * lib/unistdio/u8-vasprintf.c: New file.
63866         * lib/unistdio/u8-vsnprintf.c: New file.
63867         * lib/unistdio/u8-vsprintf.c: New file.
63868         * lib/unistdio/u8-u8-asnprintf.c: New file.
63869         * lib/unistdio/u8-u8-asprintf.c: New file.
63870         * lib/unistdio/u8-u8-snprintf.c: New file.
63871         * lib/unistdio/u8-u8-sprintf.c: New file.
63872         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63873         * lib/unistdio/u8-u8-vasprintf.c: New file.
63874         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63875         * lib/unistdio/u8-u8-vsprintf.c: New file.
63876         * lib/unistdio/u16-asnprintf.c: New file.
63877         * lib/unistdio/u16-asprintf.c: New file.
63878         * lib/unistdio/u16-printf-parse.c: New file.
63879         * lib/unistdio/u16-snprintf.c: New file.
63880         * lib/unistdio/u16-sprintf.c: New file.
63881         * lib/unistdio/u16-vasnprintf.c: New file.
63882         * lib/unistdio/u16-vasprintf.c: New file.
63883         * lib/unistdio/u16-vsnprintf.c: New file.
63884         * lib/unistdio/u16-vsprintf.c: New file.
63885         * lib/unistdio/u16-u16-asnprintf.c: New file.
63886         * lib/unistdio/u16-u16-asprintf.c: New file.
63887         * lib/unistdio/u16-u16-snprintf.c: New file.
63888         * lib/unistdio/u16-u16-sprintf.c: New file.
63889         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63890         * lib/unistdio/u16-u16-vasprintf.c: New file.
63891         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63892         * lib/unistdio/u16-u16-vsprintf.c: New file.
63893         * lib/unistdio/u32-asnprintf.c: New file.
63894         * lib/unistdio/u32-asprintf.c: New file.
63895         * lib/unistdio/u32-printf-parse.c: New file.
63896         * lib/unistdio/u32-snprintf.c: New file.
63897         * lib/unistdio/u32-sprintf.c: New file.
63898         * lib/unistdio/u32-vasnprintf.c: New file.
63899         * lib/unistdio/u32-vasprintf.c: New file.
63900         * lib/unistdio/u32-vsnprintf.c: New file.
63901         * lib/unistdio/u32-vsprintf.c: New file.
63902         * lib/unistdio/u32-u32-asnprintf.c: New file.
63903         * lib/unistdio/u32-u32-asprintf.c: New file.
63904         * lib/unistdio/u32-u32-snprintf.c: New file.
63905         * lib/unistdio/u32-u32-sprintf.c: New file.
63906         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63907         * lib/unistdio/u32-u32-vasprintf.c: New file.
63908         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63909         * lib/unistdio/u32-u32-vsprintf.c: New file.
63910         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63911         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63912         * tests/unistdio/test-ulc-printf1.h: New file.
63913         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63914         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63915         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63916         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63917         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63918         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63919         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63920         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63921         * tests/unistdio/test-u8-asnprintf1.c: New file.
63922         * tests/unistdio/test-u8-asnprintf1.h: New file.
63923         * tests/unistdio/test-u8-printf1.h: New file.
63924         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63925         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63926         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63927         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63928         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63929         * tests/unistdio/test-u8-vasprintf1.c: New file.
63930         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63931         * tests/unistdio/test-u8-vsprintf1.c: New file.
63932         * tests/unistdio/test-u16-asnprintf1.c: New file.
63933         * tests/unistdio/test-u16-asnprintf1.h: New file.
63934         * tests/unistdio/test-u16-printf1.h: New file.
63935         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63936         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63937         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63938         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63939         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63940         * tests/unistdio/test-u16-vasprintf1.c: New file.
63941         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63942         * tests/unistdio/test-u16-vsprintf1.c: New file.
63943         * tests/unistdio/test-u32-asnprintf1.c: New file.
63944         * tests/unistdio/test-u32-asnprintf1.h: New file.
63945         * tests/unistdio/test-u32-printf1.h: New file.
63946         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63947         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63948         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63949         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63950         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63951         * tests/unistdio/test-u32-vasprintf1.c: New file.
63952         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63953         * tests/unistdio/test-u32-vsprintf1.c: New file.
63954         * modules/unistdio/base: New file.
63955         * modules/unistdio/u-printf-args: New file.
63956         * modules/unistdio/ulc-asnprintf: New file.
63957         * modules/unistdio/ulc-asprintf: New file.
63958         * modules/unistdio/ulc-fprintf: New file.
63959         * modules/unistdio/ulc-printf-parse: New file.
63960         * modules/unistdio/ulc-snprintf: New file.
63961         * modules/unistdio/ulc-sprintf: New file.
63962         * modules/unistdio/ulc-vasnprintf: New file.
63963         * modules/unistdio/ulc-vasprintf: New file.
63964         * modules/unistdio/ulc-vfprintf: New file.
63965         * modules/unistdio/ulc-vsnprintf: New file.
63966         * modules/unistdio/ulc-vsprintf: New file.
63967         * modules/unistdio/u8-asnprintf: New file.
63968         * modules/unistdio/u8-asprintf: New file.
63969         * modules/unistdio/u8-printf-parse: New file.
63970         * modules/unistdio/u8-snprintf: New file.
63971         * modules/unistdio/u8-sprintf: New file.
63972         * modules/unistdio/u8-vasnprintf: New file.
63973         * modules/unistdio/u8-vasprintf: New file.
63974         * modules/unistdio/u8-vsnprintf: New file.
63975         * modules/unistdio/u8-vsprintf: New file.
63976         * modules/unistdio/u8-u8-asnprintf: New file.
63977         * modules/unistdio/u8-u8-asprintf: New file.
63978         * modules/unistdio/u8-u8-snprintf: New file.
63979         * modules/unistdio/u8-u8-sprintf: New file.
63980         * modules/unistdio/u8-u8-vasnprintf: New file.
63981         * modules/unistdio/u8-u8-vasprintf: New file.
63982         * modules/unistdio/u8-u8-vsnprintf: New file.
63983         * modules/unistdio/u8-u8-vsprintf: New file.
63984         * modules/unistdio/u16-asnprintf: New file.
63985         * modules/unistdio/u16-asprintf: New file.
63986         * modules/unistdio/u16-printf-parse: New file.
63987         * modules/unistdio/u16-snprintf: New file.
63988         * modules/unistdio/u16-sprintf: New file.
63989         * modules/unistdio/u16-vasnprintf: New file.
63990         * modules/unistdio/u16-vasprintf: New file.
63991         * modules/unistdio/u16-vsnprintf: New file.
63992         * modules/unistdio/u16-vsprintf: New file.
63993         * modules/unistdio/u16-u16-asnprintf: New file.
63994         * modules/unistdio/u16-u16-asprintf: New file.
63995         * modules/unistdio/u16-u16-snprintf: New file.
63996         * modules/unistdio/u16-u16-sprintf: New file.
63997         * modules/unistdio/u16-u16-vasnprintf: New file.
63998         * modules/unistdio/u16-u16-vasprintf: New file.
63999         * modules/unistdio/u16-u16-vsnprintf: New file.
64000         * modules/unistdio/u16-u16-vsprintf: New file.
64001         * modules/unistdio/u32-asnprintf: New file.
64002         * modules/unistdio/u32-asprintf: New file.
64003         * modules/unistdio/u32-printf-parse: New file.
64004         * modules/unistdio/u32-snprintf: New file.
64005         * modules/unistdio/u32-sprintf: New file.
64006         * modules/unistdio/u32-vasnprintf: New file.
64007         * modules/unistdio/u32-vasprintf: New file.
64008         * modules/unistdio/u32-vsnprintf: New file.
64009         * modules/unistdio/u32-vsprintf: New file.
64010         * modules/unistdio/u32-u32-asnprintf: New file.
64011         * modules/unistdio/u32-u32-asprintf: New file.
64012         * modules/unistdio/u32-u32-snprintf: New file.
64013         * modules/unistdio/u32-u32-sprintf: New file.
64014         * modules/unistdio/u32-u32-vasnprintf: New file.
64015         * modules/unistdio/u32-u32-vasprintf: New file.
64016         * modules/unistdio/u32-u32-vsnprintf: New file.
64017         * modules/unistdio/u32-u32-vsprintf: New file.
64018         * modules/unistdio/ulc-asnprintf-tests: New file.
64019         * modules/unistdio/ulc-vasnprintf-tests: New file.
64020         * modules/unistdio/ulc-vasprintf-tests: New file.
64021         * modules/unistdio/ulc-vsnprintf-tests: New file.
64022         * modules/unistdio/ulc-vsprintf-tests: New file.
64023         * modules/unistdio/u8-asnprintf-tests: New file.
64024         * modules/unistdio/u8-vasnprintf-tests: New file.
64025         * modules/unistdio/u8-vasprintf-tests: New file.
64026         * modules/unistdio/u8-vsnprintf-tests: New file.
64027         * modules/unistdio/u8-vsprintf-tests: New file.
64028         * modules/unistdio/u16-asnprintf-tests: New file.
64029         * modules/unistdio/u16-vasnprintf-tests: New file.
64030         * modules/unistdio/u16-vasprintf-tests: New file.
64031         * modules/unistdio/u16-vsnprintf-tests: New file.
64032         * modules/unistdio/u16-vsprintf-tests: New file.
64033         * modules/unistdio/u32-asnprintf-tests: New file.
64034         * modules/unistdio/u32-vasnprintf-tests: New file.
64035         * modules/unistdio/u32-vasprintf-tests: New file.
64036         * modules/unistdio/u32-vsnprintf-tests: New file.
64037         * modules/unistdio/u32-vsprintf-tests: New file.
64038         * MODULES.html.sh (Unicode string functions): Add the new modules.
64039
64040 2007-07-01  Bruno Haible  <bruno@clisp.org>
64041
64042         * lib/sprintf.c (sprintf): Limit the available length estimation,
64043         to avoid address wraparound.
64044         * lib/vsprintf.c (vsprintf): Likewise.
64045         * modules/sprintf-posix (Dependencies): Add stdint.
64046         * modules/vsprintf-posix (Dependencies): Likewise.
64047
64048 2007-07-01  Bruno Haible  <bruno@clisp.org>
64049
64050         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64051         Windows PATH as well. Conservative double-quoting. Comments.
64052
64053 2007-07-01  Bruno Haible  <bruno@clisp.org>
64054             Eric Blake  <ebb9@byu.net>
64055             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64056
64057         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64058         empty components in $PATH, denoting '.'.
64059
64060 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64061
64062         * gnulib-tool: Fix indentation.
64063         (func_create_megatestdir): Likewise.
64064         Report by Bruno Haible.
64065
64066 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64067
64068         Sync from Automake.
64069         * build-aux/gnupload: Fix shell portability issues with for loops.
64070         Report by Karl Berry.
64071
64072 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64073
64074         * build-aux/maint.mk (POURL): Use translationproject.org.
64075
64076 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64077             Bruno Haible  <bruno@clisp.org>
64078
64079         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64080         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64081         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64082         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64083         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64084
64085 2007-06-27  Bruno Haible  <bruno@clisp.org>
64086
64087         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64088         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64089
64090 2007-06-26  Karl Berry  <karl@gnu.org>
64091
64092         * MODULES.html.sh: remove xreadlink-with-size.
64093
64094 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64095
64096         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64097         method that I hope also handles the double-include problem noted
64098         by Bruno Haible in
64099         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64100
64101 2007-06-23  Bruno Haible  <bruno@clisp.org>
64102
64103         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64104         Don't let the 'mostlyclean' target fail if the last subdirectory could
64105         not be removed.
64106         Reported by Karl Berry.
64107
64108 2007-06-23  Bruno Haible  <bruno@clisp.org>
64109
64110         * gnulib-tool (echo): Add a speedier workaround for ksh.
64111         * tests/test-echo.sh: Likewise.
64112
64113 2007-06-23  Bruno Haible  <bruno@clisp.org>
64114
64115         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64116         * tests/test-echo.sh: Likewise.
64117
64118 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64119
64120         * gnulib-tool (IFS): Initialize early, so we don't set it to
64121         empty later.
64122         (self_abspathname): Rewrite algorithm to set it, reindent.
64123         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64124         (func_create_megatestdir): Merge some sed scripts.
64125
64126 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64127
64128         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64129         exposed by Sun Studio 11 cc on Solaris 8.
64130
64131 2007-06-22  Bruno Haible  <bruno@clisp.org>
64132
64133         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64134         backslashes.
64135         * tests/test-echo.sh: New file.
64136
64137 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64138
64139         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64140         simplify `sed_replace_build_aux' scripts, they are portable but
64141         echoing them with `echo' is not.
64142         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64143
64144 2007-06-21  Karl Berry  <karl@gnu.org>
64145
64146         * config/srclist.txt: guess we can't handle the licenses via
64147         srclist at the moment.
64148
64149 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64150
64151         * MODULES.html.sh: Add include_next.
64152         * modules/include_next: New file.
64153
64154 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64155
64156         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64157         INCLUDE_NEXT.
64158         (gl_CHECK_NEXT_HEADERS): New macro.
64159         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64160         the obsolescent gl_ABSOLUTE_HEADER.
64161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64162         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64163         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64164         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64165         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64166         * m4/math_h.m4 (gl_MATH_H): Likewise.
64167         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64168         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64169         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64170         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64171         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64172         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64173         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64174         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64175         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64176         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64177         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64178         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64179         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64180         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64181         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64182         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64183         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64184         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64185         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64186         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64187         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64188         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64189         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64190         * lib/float_.h: Likewise.
64191         * lib/inttypes_.h: Likewise.
64192         * lib/math_.h: Likewise.
64193         * lib/search_.h: Likewise.
64194         * lib/signal_.h: Likewise.
64195         * lib/stdint_.h: Likewise.
64196         * lib/stdio_.h: Likewise.
64197         * lib/stdlib_.h: Likewise.
64198         * lib/string_.h: Likewise.
64199         * lib/sys_stat_.h: Likewise.
64200         * lib/sys_time_.h: Likewise.
64201         * lib/time_.h: Likewise.
64202         * lib/unistd_.h: Likewise.
64203         * lib/wchar_.h: Likewise.
64204         * lib/wctype_.h: Likewise.
64205         * lib/dirent_.h: Likewise.
64206         * lib/iconv_.h: Likewise.
64207         * lib/locale_.h: Likewise.
64208         * lib/netinet_in_.h: Likewise.
64209         * lib/sys_select_.h: Likewise.
64210         * lib/sys_socket_.h: Likewise.
64211         * lib/sysexits_.h: Likewise.
64212         * modules/fcntl (Depends-on): Depend on include_next, not
64213         absolute_header.
64214         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64215         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64216         * modules/fchdir: Likewise.
64217         * modules/float: Likewise.
64218         * modules/iconv_open: Likewise.
64219         * modules/inttypes: Likewise.
64220         * modules/locale: Likewise.
64221         * modules/math: Likewise.
64222         * modules/netinet_in: Likewise.
64223         * modules/search: Likewise.
64224         * modules/signal: Likewise.
64225         * modules/stdint: Likewise.
64226         * modules/stdio: Likewise.
64227         * modules/stdlib: Likewise.
64228         * modules/string: Likewise.
64229         * modules/sys_select: Likewise.
64230         * modules/sys_socket: Likewise.
64231         * modules/sys_stat: Likewise.
64232         * modules/sys_time: Likewise.
64233         * modules/sysexits: Likewise.
64234         * modules/time: Likewise.
64235         * modules/unistd: Likewise.
64236         * modules/wchar: Likewise.
64237         * modules/wctype: Likewise.
64238         * modules/sys_stat: Change maintainer to "all".
64239         * modules/unistd: Likewise.
64240
64241 2007-06-20  Karl Berry  <karl@gnu.org>
64242
64243         * config/srclist.txt: track www changes in license files.
64244
64245 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64246
64247         * build-aux/bootstrap: Remove stray dot.
64248         Make sure build_aux settings are honored when linking
64249         gnulib_extra_files.
64250
64251 2007-06-19  Eric Blake  <ebb9@byu.net>
64252
64253         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64254         Allow compilation on cygwin.
64255
64256 2007-06-19  Jim Meyering  <jim@meyering.net>
64257
64258         xreadlink-with-size: Remove module.  No longer used.
64259         Ex-callers now use xreadlink or mreadlink-with-size.
64260         * modules/xreadlink-with-size: Remove module.
64261         * lib/xreadlink-with-size.c: Remove file.
64262         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64263         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64264         just before the function definition *is* accurate.
64265
64266         Eliminate one way canonicalize_filename_mode could exit.
64267         * lib/canonicalize.c (canonicalize_filename_mode):
64268         Use mreadlink_with_size, not xreadlink_with_size.
64269
64270 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64271
64272         Detect porting problems to FreeBSD/arm, which has time_t wider than
64273         long int.  Original problem reported for GNU diff by Xin Li in
64274         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64275         * modules/getdate (Depends-on): Add intprops, verify.
64276         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64277         is an integer type no wider than long int.
64278
64279 2007-06-18  Jim Meyering  <jim@meyering.net>
64280
64281         New module: mreadlink-with-size.
64282         * MODULES.html.sh: Add mreadlink-with-size.
64283         * modules/mreadlink-with-size: New module
64284         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64285         not xreadlink-with-size.
64286         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64287
64288 2007-06-16  Bruno Haible  <bruno@clisp.org>
64289
64290         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64291         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64292         Reported by Gary V. Vaughan <gary@gnu.org>.
64293
64294 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         Revamp lchown so that it lives in unistd.h where it belongs.
64297         * lib/lchown.h: Remove.
64298         * lib/dirchownmod.c: Don't include lib/lchown.h.
64299         * lib/fchownat.c: Likewise.
64300         * lib/openat.c: Likewise.
64301         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64302         does not follow symlinks.
64303         (EOPNOTSUPP): Define if not defined.
64304         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64305         is defined to 0.
64306         (lchown): New decl.
64307         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64308         Do not check for lchown decl.
64309         Set REPLACE_LCHOWN.
64310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64311         REPLACE_LCHOWN.
64312         * modules/chown: Make it clear it follows symlinks.
64313         * modules/lchown: Make it clear it doesn't follow symlinks.
64314         (Files): Remove lib/lchown.h
64315         (Depends-on): Add unistd.
64316         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64317         (Include): Include <unistd.h>, not "lchown.h".
64318         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64319         REPLACE_LCHOWN.
64320
64321 2007-06-15  Jim Meyering  <jim@meyering.net>
64322
64323         Change license (GPL to LGPL) of fsusage and dependents.
64324         * modules/fsusage (License): Change to LGPL.
64325         * modules/full-read (License): Likewise.
64326         * modules/full-write (License): Likewise.
64327         * modules/safe-read (License): Likewise.
64328         * modules/safe-write (License): Likewise.
64329
64330 2007-06-14  Ben Pfaff  <blp@gnu.org>
64331
64332         Missing part of allocsa -> malloca transition.
64333         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64334         gl_MALLOCA.
64335
64336 2007-06-12  Bruno Haible  <bruno@clisp.org>
64337
64338         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64339         to ia64, x86_64, i386.
64340         Reported by Eric Blake.
64341
64342 2007-06-12  Bruno Haible  <bruno@clisp.org>
64343
64344         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64345         cross-compiling to x86_64.
64346
64347 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64348
64349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64350         glitch reported by Ralf Wildenhues in
64351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64352
64353         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64354         Vin Shelton.
64355
64356 2007-06-11  Bruno Haible  <bruno@clisp.org>
64357
64358         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64359         replacement string.
64360         Reported by Eric Blake.
64361
64362 2007-06-10  Bruno Haible  <bruno@clisp.org>
64363
64364         Prepare vasnprintf code for use with Unicode strings.
64365         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64366         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64367         TYPE_U32_STRING.
64368         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64369         a_u32_string variants.
64370         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64371         * lib/printf-args.c: Don't include config.h and the specification
64372         header if PRINTF_FETCHARGS is already defined.
64373         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64374         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64375         TYPE_U16_STRING, TYPE_U32_STRING.
64376         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64377         u16_directive, u16_directives, u32_directive, u32_directives): New
64378         types.
64379         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64380         New declarations.
64381         * lib/printf-parse.c: Don't include config.h and the specification
64382         header if PRINTF_PARSE is already defined. Eliminate the set of
64383         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64384         them now. Include c-ctype.h.
64385         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64386         directive and CHAR_T_ONLY_ASCII.
64387         * lib/vasnprintf.c: Don't include config.h and the specification header
64388         if VASNPRINTF is already defined.
64389         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64390         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64391         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64392         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64393         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64394         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64395         code accordingly.
64396         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64397         pad_ourselves also in this case, with the 'c' and 's' directives, and
64398         with a different notion of "width".
64399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64400
64401 2007-06-10  Bruno Haible  <bruno@clisp.org>
64402
64403         * modules/unistr/u32-mbsnlen: New file.
64404         * lib/unistr/u32-mbsnlen.c: New file.
64405
64406         * modules/unistr/u16-mbsnlen: New file.
64407         * lib/unistr/u16-mbsnlen.c: New file.
64408
64409         * modules/unistr/u8-mbsnlen: New file.
64410         * lib/unistr/u8-mbsnlen.c: New file.
64411
64412         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64413         declarations.
64414
64415 2007-06-10  Bruno Haible  <bruno@clisp.org>
64416
64417         * lib/string_.h (mbsnlen): New declaration.
64418         * lib/mbsnlen.c: New file.
64419         * m4/mbsnlen.m4: New file.
64420         * modules/mbsnlen: New file.
64421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64422         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64423         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64424
64425 2007-06-10  Bruno Haible  <bruno@clisp.org>
64426
64427         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64428
64429 2007-06-10  Bruno Haible  <bruno@clisp.org>
64430
64431         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64432         * lib/mbuiter.h: Likewise.
64433
64434 2007-06-10  Bruno Haible  <bruno@clisp.org>
64435
64436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64437         declaration.
64438
64439 2007-06-10  Karl Berry  <karl@gnu.org>
64440
64441         * config/srclist.txt: remove gettext entries, Bruno prefers
64442         to update individually.
64443
64444 2007-06-10  Bruno Haible  <bruno@clisp.org>
64445
64446         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64447         'maxlen'. Ensure only length + width bytes are allocated, not
64448         length + 1 + width.
64449
64450 2007-06-09  Bruno Haible  <bruno@clisp.org>
64451
64452         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64453         (CHAR_T): Remove macro.
64454         (VASNPRINTF): Update.
64455
64456 2007-06-09  Bruno Haible  <bruno@clisp.org>
64457
64458         * MODULES.html.sh (Unicode string functions): Add the new modules.
64459
64460         * modules/uniconv/u32-conv-to-enc: New file.
64461         * lib/uniconv/u32-conv-to-enc.c: New file.
64462         * modules/uniconv/u32-conv-to-enc-tests: New file.
64463         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64464
64465         * modules/uniconv/u16-conv-to-enc: New file.
64466         * lib/uniconv/u16-conv-to-enc.c: New file.
64467         * lib/uniconv/u-conv-to-enc.h: New file.
64468         * modules/uniconv/u16-conv-to-enc-tests: New file.
64469         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64470
64471         * modules/uniconv/u8-conv-to-enc: New file.
64472         * lib/uniconv/u8-conv-to-enc.c: New file.
64473         * modules/uniconv/u8-conv-to-enc-tests: New file.
64474         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64475
64476         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64477         u32_conv_to_encoding): New declarations.
64478
64479 2007-06-09  Bruno Haible  <bruno@clisp.org>
64480
64481         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64482
64483 2007-06-09  Bruno Haible  <bruno@clisp.org>
64484
64485         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64486         * modules/malloca: Renamed from modules/allocsa, updated.
64487         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64488         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64489         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64490         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64491         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64492         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64493         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64494         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64495         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64496         * modules/c-strcasestr (Depends-on): Update.
64497         * lib/c-strcasestr.c: Update.
64498         * modules/c-strstr (Depends-on): Update.
64499         * lib/c-strstr.c: Update.
64500         * modules/canonicalize-lgpl (Depends-on): Update.
64501         * lib/canonicalize-lgpl.c: Update.
64502         * modules/clean-temp (Depends-on): Update.
64503         * lib/clean-temp.c: Update.
64504         * modules/csharpcomp (Depends-on): Update.
64505         * lib/csharpcomp.c: Update.
64506         * modules/csharpexec (Depends-on): Update.
64507         * lib/csharpexec.c: Update.
64508         * modules/javacomp (Depends-on): Update.
64509         * lib/javacomp.c: Update.
64510         * modules/javaexec (Depends-on): Update.
64511         * lib/javaexec.c: Update.
64512         * modules/mbscasestr (Depends-on): Update.
64513         * lib/mbscasestr.c: Update.
64514         * modules/mbsstr (Depends-on): Update.
64515         * lib/mbsstr.c: Update.
64516         * modules/setenv (Depends-on): Update.
64517         * lib/setenv.c: Update.
64518         * modules/strcasestr (Depends-on): Update.
64519         * lib/strcasestr.c: Update.
64520         * modules/striconveha (Depends-on): Update.
64521         * lib/striconveha.c: Update.
64522         * modules/relocatable-prog-wrapper (Files): Update.
64523         * lib/relocwrapper.c: Update.
64524         * build-aux/install-reloc: Update.
64525         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64526
64527 2007-06-08  Bruno Haible  <bruno@clisp.org>
64528
64529         Port to uClibc.
64530         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64531         * lib/fpurge.c (fpurge): Likewise.
64532         * lib/freading.c (freading): Likewise.
64533         * lib/fseeko.c (rpl_fseeko): Likewise.
64534         * lib/fseterr.c (fseterr): Likewise.
64535         * lib/fwriting.c (fwriting): Likewise.
64536         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64537
64538 2007-06-08  Bruno Haible  <bruno@clisp.org>
64539
64540         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64541         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64542         * modules/gettext (Files): Add m4/intlmacosx.m4.
64543
64544 2007-06-07  Bruno Haible  <bruno@clisp.org>
64545
64546         * modules/localename-tests: New file.
64547         * tests/test-localename.c: New file.
64548
64549         New module 'localename'.
64550         * lib/localename.h: New file.
64551         * lib/localename.c: New file, from GNU gettext.
64552         * m4/localename.m4: New file.
64553         * modules/localename: New file.
64554
64555 2007-06-07  Bruno Haible  <bruno@clisp.org>
64556
64557         Work around the lack of <wchar.h> on some builds of uClibc.
64558         * doc/headers/wchar.texi: Update.
64559         * lib/wchar_.h: Include <wchar.h> only if it exists.
64560         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64561         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64562         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64563         doesn't exist.
64564         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64565         * modules/mbfile (Depends-on): Add wchar.
64566         * modules/mbiter (Depends-on): Likewise.
64567         * modules/mbuiter (Depends-on): Likewise.
64568         Reported by Simon Josefsson.
64569
64570 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64571
64572         Work around problem reported by Steven M. Schweda in
64573         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64574         Tru64 5.1B with the Compaq compiler environment installed declares
64575         an 'isblank' function but does not define it in the C library.
64576         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64577         * lib/regex_internal.h (isblank): Likewise.
64578         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64579         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64580
64581 2007-06-05  Bruno Haible  <bruno@clisp.org>
64582
64583         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64584         ia64.
64585         * modules/printf-safe: New file.
64586         * modules/fprintf-posix (Depends-on): Add printf-safe.
64587         * modules/printf-posix (Depends-on): Likewise.
64588         * modules/snprintf-posix (Depends-on): Likewise.
64589         * modules/sprintf-posix (Depends-on): Likewise.
64590         * modules/vasnprintf-posix (Depends-on): Likewise.
64591         * modules/vasprintf-posix (Depends-on): Likewise.
64592         * modules/vfprintf-posix (Depends-on): Likewise.
64593         * modules/vprintf-posix (Depends-on): Likewise.
64594         * modules/vsnprintf-posix (Depends-on): Likewise.
64595         * modules/vsprintf-posix (Depends-on): Likewise.
64596         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64597         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64598         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64599         "no" on i386, x86_64, ia64.
64600         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64601         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64602         on i386, x86_64, ia64.
64603         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64604         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64605         on i386, x86_64, ia64.
64606         * tests/test-vasnprintf-posix.c: Include float.h.
64607         (LDBL80_WORDS): New macro.
64608         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64609         on i386, x86_64, ia64.
64610         * tests/test-vasprintf-posix.c: Include float.h.
64611         (LDBL80_WORDS): New macro.
64612         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64613         on i386, x86_64, ia64.
64614         * tests/test-snprintf-posix.c: Include float.h.
64615         * tests/test-sprintf-posix.c: Likewise.
64616         * tests/test-vsnprintf-posix.c: Likewise.
64617         * tests/test-vsprintf-posix.c: Likewise.
64618
64619 2007-06-05  Bruno Haible  <bruno@clisp.org>
64620
64621         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64622         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64623         non-IEEE numbers on i386, x86_64, ia64.
64624         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64625         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64626         * tests/test-isnanl.h: Include float.h.
64627         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64628
64629 2007-06-05  Bruno Haible  <bruno@clisp.org>
64630
64631         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64632         also the %a / %A. Handle the %a / %A code before this extra handling.
64633
64634 2007-06-05  Bruno Haible  <bruno@clisp.org>
64635
64636         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64637         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64638
64639 2007-06-05  Bruno Haible  <bruno@clisp.org>
64640
64641         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64642         typo in variable name.
64643
64644 2007-06-05  Eric Blake  <ebb9@byu.net>
64645
64646         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64647         Reported by Simon Josefsson.
64648
64649 2007-06-04  Bruno Haible  <bruno@clisp.org>
64650
64651         Avoid test failures on some PowerPC platforms.
64652         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64653         Define differently for PowerPC.
64654         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64655         Reported by Gary V. Vaughan <gary@gnu.org>.
64656
64657 2007-06-02  Bruno Haible  <bruno@clisp.org>
64658
64659         Fix test-stdint failure on FreeBSD/ia64.
64660         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64661         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64662         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64663         * doc/headers/stdint.texi: Update.
64664
64665 2007-06-01  Bruno Haible  <bruno@clisp.org>
64666
64667         * tests/test-binary-io.c (main): Pass a third argument to open().
64668         Reported by Gary V. Vaughan <gary@gnu.org>.
64669
64670 2007-06-01  Bruno Haible  <bruno@clisp.org>
64671
64672         * doc/functions/frexpl.texi: Update for mingw.
64673
64674 2007-06-01  Bruno Haible  <bruno@clisp.org>
64675
64676         * tests/test-lseek.c (main): Disable test of errno for invalid third
64677         argument.
64678         * doc/functions/lseek.texi: Update.
64679         Reported by Gary V. Vaughan <gary@gnu.org>.
64680
64681 2007-05-28  Bruno Haible  <bruno@clisp.org>
64682
64683         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64684
64685 2007-05-31  Eric Blake  <ebb9@byu.net>
64686
64687         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64688         cross compiling.
64689
64690 2007-05-30  Eric Blake  <ebb9@byu.net>
64691         and Bruno Haible  <bruno@clisp.org>
64692
64693         Work around mingw test failures exposed by m4-1.4.9b.
64694         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64695         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64696         moment.
64697
64698 2007-05-30  Bruno Haible  <bruno@clisp.org>
64699
64700         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64701         assuming that they are closed. Needed on HP-UX 11.
64702
64703 2007-05-29  Bruno Haible  <bruno@clisp.org>
64704
64705         Fix a problem with #include_next.
64706         * lib/dirent_.h: Split the double-inclusion guard.
64707         * lib/fcntl_.h: Likewise.
64708         * lib/float_.h: Likewise.
64709         * lib/iconv_.h: Likewise.
64710         * lib/inttypes_.h: Likewise.
64711         * lib/locale_.h: Likewise.
64712         * lib/math_.h: Likewise.
64713         * lib/netinet_in_.h: Likewise.
64714         * lib/search_.h: Likewise.
64715         * lib/signal_.h: Likewise.
64716         * lib/stdint_.h: Likewise.
64717         * lib/stdio_.h: Likewise.
64718         * lib/stdlib_.h: Likewise.
64719         * lib/string_.h: Likewise.
64720         * lib/sys_select_.h: Likewise.
64721         * lib/sys_socket_.h: Likewise.
64722         * lib/sys_stat_.h: Likewise.
64723         * lib/sys_time_.h: Likewise.
64724         * lib/sysexits_.h: Likewise.
64725         * lib/time_.h: Likewise.
64726         * lib/unistd_.h: Likewise.
64727         * lib/wchar_.h: Likewise.
64728         * lib/wctype_.h: Likewise.
64729
64730 2007-05-29  Bruno Haible  <bruno@clisp.org>
64731
64732         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64733         for the moment.
64734
64735 2007-05-29  Bruno Haible  <bruno@clisp.org>
64736
64737         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64738         invocation.
64739         Reported by Eric Blake.
64740
64741 2007-05-29  Bruno Haible  <bruno@clisp.org>
64742
64743         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64744         compiling case.
64745
64746 2007-05-29  Eric Blake  <ebb9@byu.net>
64747             Bruno Haible  <bruno@clisp.org>
64748
64749         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64750         cross compiles.
64751
64752 2007-05-28  Eric Blake  <ebb9@byu.net>
64753
64754         * modules/closein-tests (test_closein_LDADD): Support test on
64755         cygwin with libtool.
64756
64757 2007-05-28  Bruno Haible  <bruno@clisp.org>
64758
64759         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64760         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64761         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64762         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64763         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64764         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64765         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64766         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64767         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64768
64769 2007-05-28  Eric Blake  <ebb9@byu.net>
64770
64771         Unconditionally include <config.h> in unit tests.
64772         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64773         * tests/test-allocsa.c, tests/test-arcfour.c,
64774         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64775         tests/test-array_list.c, tests/test-array_oset.c,
64776         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64777         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64778         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64779         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64780         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64781         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64782         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64783         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64784         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64785         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64786         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64787         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64788         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64789         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64790         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64791         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64792         test-md5.c, test-memmem.c, test-printf-posix.c,
64793         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64794         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64795         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64796         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64797         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64798         test-vasnprintf-posix2.c, test-vasnprintf.c,
64799         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64800         test-vfprintf-posix.c, test-vprintf-posix.c,
64801         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64802         test-xvasprintf.c: Likewise.
64803
64804 2007-05-28  Bruno Haible  <bruno@clisp.org>
64805
64806         * gnulib-tool (func_import): Remember the --with-tests command-line
64807         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64808         Reported by Eric Blake.
64809
64810 2007-05-28  Bruno Haible  <bruno@clisp.org>
64811
64812         * modules/ftell-tests: New file.
64813         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64814         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64815
64816         * lib/ftell.c: New file.
64817         * modules/ftell: New file.
64818         * m4/ftell.m4: New file.
64819         * doc/functions/ftell.texi: Update.
64820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64821         REPLACE_FTELL.
64822         * lib/stdio_.h (rpl_ftell): New declaration.
64823         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64824         REPLACE_FTELL.
64825
64826 2007-05-28  Eric Blake  <ebb9@byu.net>
64827
64828         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64829
64830 2007-05-28  Bruno Haible  <bruno@clisp.org>
64831
64832         * modules/fseek-tests: New file.
64833         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64834         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64835
64836         * lib/fseek.c: New file.
64837         * modules/fseek: New file.
64838         * m4/fseek.m4: New file.
64839         * doc/functions/fseek.texi: Update.
64840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64841         REPLACE_FSEEK.
64842         * lib/stdio_.h (rpl_fseek): New declaration.
64843         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64844         REPLACE_FSEEK.
64845
64846 2007-05-28  Bruno Haible  <bruno@clisp.org>
64847
64848         * lib/stdio_.h (fflush): More comments.
64849
64850 2007-05-28  Bruno Haible  <bruno@clisp.org>
64851
64852         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64853         runtime test.
64854
64855 2007-05-28  Eric Blake  <ebb9@byu.net>
64856
64857         Improve lseek module.
64858         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64859         * lib/unistd_.h (lseek): Scale back link warning message.
64860         * tests/test-lseek.c: Beef up test.
64861         * tests/test-lseek.sh: Exercise more facets of lseek.
64862         Reported by Bruno Haible.
64863
64864 2007-05-28  Bruno Haible  <bruno@clisp.org>
64865
64866         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64867         to define.
64868
64869 2007-05-27  Bruno Haible  <bruno@clisp.org>
64870
64871         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64872
64873 2007-05-27  Bruno Haible  <bruno@clisp.org>
64874
64875         * modules/openmp: New file.
64876         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64877         Noah Misch.
64878
64879 2007-05-26  Bruno Haible  <bruno@clisp.org>
64880
64881         * modules/chdir-long (Depends-on): Add fchdir.
64882         * modules/chdir-safer (Depends-on): Likewise.
64883         * modules/fts (Depends-on): Likewise.
64884         * modules/fts-lgpl (Depends-on): Likewise.
64885         * modules/openat (Depends-on): Likewise.
64886         * modules/savewd (Depends-on): Likewise.
64887
64888 2007-05-24  Eric Blake  <ebb9@byu.net>
64889
64890         Fix lseek on mingw.
64891         * modules/lseek: New module.
64892         * m4/lseek.m4: New file.
64893         * lib/lseek.c: New file.
64894         * modules/lseek-tests: New file.
64895         * tests/test-lseek.c: New file.
64896         * tests/test-lseek.sh: New file.
64897         * MODULES.html.sh: Document lseek module.
64898         * modules/fflush (Depends-on): Add lseek, fseeko.
64899         * modules/fseeko (Depends-on): Likewise.
64900         * modules/ftello (Depends-on): Likewise.
64901         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64902         broken.
64903         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64904         broken.
64905         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64906         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64907         * lib/ftello.c (rpl_ftello): Likewise.
64908         * tests/test-fseeko.c (main): Test this.
64909         * tests/test-fseeko.sh: Likewise.
64910         * tests/test-ftello.c (main): Likewise.
64911         * tests/test-ftello.sh: Likewise.
64912         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64913         implies replacing fseek.
64914         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64915         HAVE_FTELLO.
64916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64917         * modules/unistd (Makefile.am): Likewise.
64918         * lib/unistd_.h (lseek): Declare a replacement.
64919         * doc/functions/lseek.texi (lseek): Document this fix.
64920         * doc/functions/fseek.texi (fseek): Likewise.
64921         * doc/functions/ftell.texi (ftell): Likewise.
64922
64923 2007-05-24  Bruno Haible  <bruno@clisp.org>
64924
64925         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64926         in the printed representation of a NaN.
64927         * tests/test-vasprintf-posix.c (test_function): Likewise.
64928         * tests/test-snprintf-posix.h (test_function): Likewise.
64929         * tests/test-sprintf-posix.h (test_function): Likewise.
64930         Reported by Eric Blake.
64931
64932 2007-05-23  Eric Blake  <ebb9@byu.net>
64933
64934         Fix fseeko/ftello on cygwin 1.5.24.
64935         * doc/functions/fseeko.texi (fseeko): Document the fix.
64936         * doc/functions/ftello.texi (ftello): Document the fix.
64937         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64938         * doc/functions/stdout.text (stdout): New file.
64939         * doc/functions/stderr.text (stderr): New file.
64940         * doc/gnulib.texi (Function Substitutes): Use new files.
64941         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64942         prior to 1.7.0.
64943         * tests/test-ftello.c (main): Likewise for ftello.
64944         * tests/test-fseeko.sh: New file.
64945         * tests/test-ftello.sh: New file.
64946         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64947         with seekable stdin.
64948         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64949         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64950         (gl_REPLACE_FSEEKO): New macro.
64951         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64952         * modules/fseeko (Files): Distribute fseeko.c.
64953         * modules/ftello (Files): Distribute ftello.c.
64954         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64955         mode.
64956         * lib/ftello.c (rpl_ftello): New file.
64957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64958         fseeko, ftello.
64959         (gl_STDIN_LARGE_OFFSET): New macro.
64960         * modules/stdio (Makefile.am): Perform the replacement.
64961         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64962
64963 2007-05-23  Bruno Haible  <bruno@clisp.org>
64964
64965         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64966         GNULIB_POSIXCHECK is defined.
64967
64968 2007-05-21  Bruno Haible  <bruno@clisp.org>
64969
64970         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64971         Check also the output for NaN arguments. When cross-compiling, guess
64972         no on IRIX.
64973         * lib/vasnprintf.c: Update comments.
64974         * tests/test-vasnprintf-posix.c (strisnan): New function.
64975         (test_function): Use it.
64976         * tests/test-vasprintf-posix.c (strisnan): New function.
64977         (test_function): Use it.
64978         * tests/test-snprintf-posix.h (strisnan): New function.
64979         (test_function): Use it.
64980         * tests/test-sprintf-posix.h (strisnan): New function.
64981         (test_function): Use it.
64982         Reported by Eric Blake.
64983
64984 2007-05-20  Bruno Haible  <bruno@clisp.org>
64985
64986         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64987         numbers that fails on BeOS.
64988         * doc/functions/frexpl.texi: Update.
64989
64990 2007-05-20  Jim Meyering  <jim@meyering.net>
64991
64992         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64993         forced upon us by glibc-2.6.
64994
64995 2007-05-20  Bruno Haible  <bruno@clisp.org>
64996
64997         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64998         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64999         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65000         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65001         NEED_PRINTF_INFINITE.
65002         (is_infinitel): New function.
65003         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65005         gl_PREREQ_VASNPRINTF_INFINITE.
65006         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65007         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65008         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65009         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65010         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65011         gl_PREREQ_VASNPRINTF_INFINITE.
65012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65013         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65014         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65015         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65016         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65019         * doc/functions/fprintf.texi: Update.
65020         * doc/functions/printf.texi: Update.
65021         * doc/functions/snprintf.texi: Update.
65022         * doc/functions/sprintf.texi: Update.
65023         * doc/functions/vfprintf.texi: Update.
65024         * doc/functions/vprintf.texi: Update.
65025         * doc/functions/vsnprintf.texi: Update.
65026         * doc/functions/vsprintf.texi: Update.
65027
65028 2007-05-20  Bruno Haible  <bruno@clisp.org>
65029
65030         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65031         was not found in libc.
65032         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65033
65034 2007-05-20  Bruno Haible  <bruno@clisp.org>
65035
65036         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65037         printed as "-nan" instead of "nan".
65038         * tests/test-vasprintf-posix.c (test_function): Likewise.
65039         * tests/test-snprintf-posix.h (test_function): Likewise.
65040         * tests/test-sprintf-posix.h (test_function): Likewise.
65041         Needed for HP-UX 11.
65042
65043 2007-05-20  Jim Meyering  <jim@meyering.net>
65044
65045         Fix buggy test for the fchownat-deref bug.
65046         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65047         symlink required for the run-test.  Without it, this test would
65048         always declare that fchownat doesn't work, and client code would
65049         unnecessarily use the replacement function with fixed libc.
65050         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65051         Reported by Greg Schafer.
65052
65053 2007-05-19  Bruno Haible  <bruno@clisp.org>
65054
65055         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65056         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65057         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65058         Needed for IRIX 6.5 and Solaris 2.5.1.
65059
65060 2007-05-19  Bruno Haible  <bruno@clisp.org>
65061
65062         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65063         (test_function): Skip tests involving -0.0 on platforms where
65064         -0.0 = 0.0.
65065         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65066         (test_function): Skip tests involving -0.0 on platforms where
65067         -0.0 = 0.0.
65068         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65069         (test_function): Skip tests involving -0.0 on platforms where
65070         -0.0 = 0.0.
65071         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65072         (test_function): Skip tests involving -0.0 on platforms where
65073         -0.0 = 0.0.
65074         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65075         tests.
65076         * tests/test-printf-posix.h (test_function): Likewise.
65077         * tests/test-printf-posix.output: Remove all -0.0 related results.
65078         Needed for IRIX 6.5.
65079
65080 2007-05-19  Bruno Haible  <bruno@clisp.org>
65081
65082         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65083         printed as "nan0x7fffffff" instead of "nan".
65084         * tests/test-vasprintf-posix.c (test_function): Likewise.
65085         * tests/test-snprintf-posix.h (test_function): Likewise.
65086         * tests/test-sprintf-posix.h (test_function): Likewise.
65087         * tests/test-fprintf-posix.h (NaN): Remove macro.
65088         (test_function): Remove all NaN related tests.
65089         * tests/test-printf-posix.h (NaN): Remove macro.
65090         (test_function): Remove all NaN related tests.
65091         * tests/test-printf-posix.output: Remove all NaN related results.
65092         Needed for IRIX 6.5.
65093
65094 2007-05-19  Bruno Haible  <bruno@clisp.org>
65095
65096         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65097         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65098
65099 2007-05-19  Bruno Haible  <bruno@clisp.org>
65100
65101         * lib/float_.h: New file.
65102         * m4/float_h.m4: New file.
65103         * modules/float: New file.
65104         * modules/isnanl (Dependencies): Add float.
65105         * modules/isnanl-nolibm (Dependencies): Likewise.
65106         * modules/mathl (Dependencies): Likewise.
65107         * modules/printf-frexpl (Dependencies): Likewise.
65108         * modules/signbit (Dependencies): Likewise.
65109         * modules/vasnprintf (Dependencies): Likewise.
65110         * doc/headers/float.texi: Update.
65111
65112 2007-05-19  Jim Meyering  <jim@meyering.net>
65113
65114         * lib/utimens.c (gl_futimens): Rename from futimens,
65115         now that glibc-2.6 declares futimens.
65116         * lib/utimens.h: Likewise.
65117
65118 2007-05-19  Bruno Haible  <bruno@clisp.org>
65119
65120         Avoid test failures on mingw.
65121         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65122         * tests/test-printf-posix.sh: Likewise.
65123         * tests/test-vfprintf-posix.sh: Likewise.
65124         * tests/test-vprintf-posix.sh: Likewise.
65125
65126 2007-05-19  Bruno Haible  <bruno@clisp.org>
65127
65128         Fix *printf result for NaN, Inf, -0.0 on mingw.
65129         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65130         * lib/vasnprintf.c: Include math.h and isnan.h.
65131         (is_infinite_or_zero): New function.
65132         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65133         values in the %f, %F, %e, %E, %g, %G directives.
65134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65135         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65136         gl_PRINTF_INFINITE and test its result. Invoke
65137         gl_PREREQ_VASNPRINTF_INFINITE.
65138         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65139         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65140         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65141         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65142         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65143         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65144         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65145         * doc/functions/fprintf.texi: Update.
65146         * doc/functions/printf.texi: Update.
65147         * doc/functions/snprintf.texi: Update.
65148         * doc/functions/sprintf.texi: Update.
65149         * doc/functions/vfprintf.texi: Update.
65150         * doc/functions/vprintf.texi: Update.
65151         * doc/functions/vsnprintf.texi: Update.
65152         * doc/functions/vsprintf.texi: Update.
65153
65154 2007-05-19  Bruno Haible  <bruno@clisp.org>
65155
65156         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65157         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65158         Instead of multiplying with 10^k, set extra_zeroes to k.
65159         (scale10_round_long_double): Remove function.
65160
65161 2007-05-18  Bruno Haible  <bruno@clisp.org>
65162
65163         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65164         introduced on 2007-05-06.
65165
65166 2007-05-18  Bruno Haible  <bruno@clisp.org>
65167
65168         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65169         %g directives.
65170         * tests/test-vasprintf-posix.c (test_function): Likewise.
65171         * tests/test-snprintf-posix.h (test_function): Likewise.
65172         * tests/test-sprintf-posix.h (test_function): Likewise.
65173
65174 2007-05-18  Bruno Haible  <bruno@clisp.org>
65175
65176         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65177         (strmatch): New function.
65178         (test_function): Test the %f directive on numbers of various exponents.
65179         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65180         (strmatch): New function.
65181         (test_function): Test the %f directive on numbers of various exponents.
65182         * tests/test-snprintf-posix.h (strmatch): New function.
65183         (test_function): Test the %f directive on numbers of various exponents.
65184         * tests/test-sprintf-posix.h (strmatch): New function.
65185         (test_function): Test the %f directive on numbers of various exponents.
65186         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65187         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65188         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65189         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65190
65191 2007-05-18  Bruno Haible  <bruno@clisp.org>
65192
65193         Add support for 'long double' number output.
65194         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65195         * lib/vasnprintf.c: Include math.h and float+.h.
65196         (mp_limb_t): New type.
65197         (GMP_LIMB_BITS): New macro.
65198         (mp_twolimb_t): New type.
65199         (GMP_TWOLIMB_BITS): New macro.
65200         (mpn_t): New type.
65201         (multiply, divide, convert_to_decimal, decode_long_double,
65202         scale10_round_long_double, scale10_round_decimal_long_double,
65203         floorlog10l): New functions.
65204         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65205         for the %f, %F, %e, %E, %g, %G directives.
65206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65207         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65208         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65209         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65210         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65217         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65218         * modules/snprintf-posix (Depends-on): Likewise.
65219         * modules/sprintf-posix (Depends-on): Likewise.
65220         * modules/vasnprintf-posix (Depends-on): Likewise.
65221         * modules/vasprintf-posix (Depends-on): Likewise.
65222         * modules/vfprintf-posix (Depends-on): Likewise.
65223         * modules/vsnprintf-posix (Depends-on): Likewise.
65224         * modules/vsprintf-posix (Depends-on): Likewise.
65225         * modules/vasnprintf (Files): Add lib/float+.h.
65226         * doc/functions/fprintf.texi: Update.
65227         * doc/functions/printf.texi: Update.
65228         * doc/functions/snprintf.texi: Update.
65229         * doc/functions/sprintf.texi: Update.
65230         * doc/functions/vfprintf.texi: Update.
65231         * doc/functions/vprintf.texi: Update.
65232         * doc/functions/vsnprintf.texi: Update.
65233         * doc/functions/vsprintf.texi: Update.
65234
65235 2007-05-18  Bruno Haible  <bruno@clisp.org>
65236
65237         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65238
65239 2007-05-18  Bruno Haible  <bruno@clisp.org>
65240
65241         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65242         for printing 64-bit integers. Needed for mingw.
65243
65244 2007-05-18  Bruno Haible  <bruno@clisp.org>
65245
65246         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65247         gl_FUNC_FREXPL_WORKS.
65248         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65249
65250 2007-05-18  Bruno Haible  <bruno@clisp.org>
65251
65252         * modules/frexpl-nolibm-tests: New file.
65253
65254         * modules/frexpl-nolibm: New file.
65255         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65256
65257 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65258
65259         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65260         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65261         GCC 4.2, which otherwise issues a lot of warnings.
65262         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65263         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65264         Likewise.
65265         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65266         * modules/iconv_open (iconv.h): Likewise.
65267         * modules/locale (locale.h): Likewise.
65268         * modules/netinet_in (netinet/in.h): Likewise.
65269         * modules/sys_select (sys_select.h): Likewise.
65270         * modules/sys_socket (sys/socket.h): Likewise.
65271         * modules/sys_stat (sys/stat.h): Likewise.
65272         * modules/sysexits (sysexits.h): Likewise.
65273         * modules/unistd (unistd.h): Likewise.
65274
65275 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65276
65277         * modules/closein-tests (Makefile.am): Distribute
65278         `test-closein.sh'.
65279
65280 2007-05-17  Bruno Haible  <bruno@clisp.org>
65281
65282         * tests/test-printf-posix.output: Renamed from
65283         tests/test-fprintf-posix.out.
65284         * modules/fprintf-posix-tests: Update.
65285         * modules/printf-posix-tests: Update.
65286         * modules/vfprintf-posix-tests: Update.
65287         * modules/vprintf-posix-tests: Update.
65288         * tests/test-fprintf-posix.sh: Update.
65289         * tests/test-printf-posix.sh: Update.
65290         * tests/test-vfprintf-posix.sh: Update.
65291         * tests/test-vprintf-posix.sh: Update.
65292         Reported by Ralf Wildenhues.
65293
65294 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65295
65296         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65297         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65298         GCC 4.2, which otherwise issues a lot of warnings.
65299         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65300         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65301         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65302         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65303         it should no longer be needed.
65304         * lib/string_.h: Likewise.
65305         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65306         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65307         * modules/inttypes (inttypes.h): Likewise.
65308         * modules/math (math.h): Likewise.
65309         * modules/search (search.h): Likewise.
65310         * modules/signal (signal.h): Likewise.
65311         * modules/stdint (stdint.h): Likewise.
65312         * modules/stdio (stdio.h): Likewise.
65313         * modules/stdlib (stdlib.h): Likewise.
65314         * modules/string (string.h): Likewise.
65315         * modules/sys_time (sys/time.h): Likewise.
65316         * modules/time (time.h): Likewise.
65317         * modules/wchar (wchar.h): Likewise.
65318         * modules/wctype (wtype.h): Likewise.
65319
65320 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65321
65322         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65323
65324 2007-05-13  Bruno Haible  <bruno@clisp.org>
65325
65326         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65327         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65328         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65329         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65330         (gl_PREREQ_STRTOK_R): Don't require it here.
65331
65332 2007-05-13  Bruno Haible  <bruno@clisp.org>
65333
65334         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65335         when used in C++ mode.
65336
65337 2007-05-12  Bruno Haible  <bruno@clisp.org>
65338
65339         * lib/linebuffer.h: Tweak doc.
65340         * lib/linebuffer.c: Likewise.
65341
65342 2007-05-12  James Youngman  <jay@gnu.org>
65343
65344         * lib/linebuffer.c (readlinebuffer_delim): New function,
65345         like readlinebuffer, but use a caller-specified delimiter.
65346         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65347         as the delimiter.
65348         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65349
65350 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65351
65352         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65353         * modules/openat (Files): Remove openat-die.c.
65354         (Depends-on): Add openat-die.
65355         * modules/openat-die: New module.
65356
65357 2007-05-06  Bruno Haible  <bruno@clisp.org>
65358
65359         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65360         Update with info about Cygwin.
65361         * doc/functions/fprintf.texi: Update.
65362         * doc/functions/printf.texi: Update.
65363         * doc/functions/snprintf.texi: Update.
65364         * doc/functions/sprintf.texi: Update.
65365         * doc/functions/vfprintf.texi: Update.
65366         * doc/functions/vprintf.texi: Update.
65367         * doc/functions/vsnprintf.texi: Update.
65368         * doc/functions/vsprintf.texi: Update.
65369         Reported by Eric Blake.
65370
65371 2007-05-06  Bruno Haible  <bruno@clisp.org>
65372
65373         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65374         padding ourselves for the floating-point directives.
65375         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65378         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65379         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65380         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65384         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65385         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65386         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65387         * tests/test-snprintf-posix.h (test_function): Also check the width
65388         and some flags in the %f directive.
65389         * tests/test-sprintf-posix.h (test_function): Likewise.
65390         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65391         * tests/test-vasprintf-posix.c (test_function): Likewise.
65392         * doc/functions/fprintf.texi: Update.
65393         * doc/functions/printf.texi: Update.
65394         * doc/functions/snprintf.texi: Update.
65395         * doc/functions/sprintf.texi: Update.
65396         * doc/functions/vfprintf.texi: Update.
65397         * doc/functions/vprintf.texi: Update.
65398         * doc/functions/vsnprintf.texi: Update.
65399         * doc/functions/vsprintf.texi: Update.
65400
65401 2007-05-06  Bruno Haible  <bruno@clisp.org>
65402
65403         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65404         pass the ' flag character to sprintf or snprintf.
65405         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65406         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65407         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65408         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65409         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65410         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65411         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65412         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65413         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65414         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65415         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65416         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65417         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65418         flag.
65419         * tests/test-sprintf-posix.h (test_function): Likewise.
65420         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65421         * tests/test-vasprintf-posix.c (test_function): Likewise.
65422         * doc/functions/fprintf.texi: Update.
65423         * doc/functions/printf.texi: Update.
65424         * doc/functions/snprintf.texi: Update.
65425         * doc/functions/sprintf.texi: Update.
65426         * doc/functions/vfprintf.texi: Update.
65427         * doc/functions/vprintf.texi: Update.
65428         * doc/functions/vsnprintf.texi: Update.
65429         * doc/functions/vsprintf.texi: Update.
65430
65431 2007-05-01  Bruno Haible  <bruno@clisp.org>
65432
65433         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65434
65435 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65436
65437         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65438         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65439
65440 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65441
65442         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65443         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65445
65446 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65447
65448         * lib/argp-help.c (struct hol_entry): New member `ord'.
65449         (HOL_ENTRY_PTRCMP): Use ord for comparison
65450         (hol_sort): Initialize ord.
65451
65452 2007-05-01  Bruno Haible  <bruno@clisp.org>
65453
65454         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65455         Reported by Eric Blake.
65456         * doc/gnulib.texi (Function Substitutes): Update.
65457
65458 2007-05-01  Bruno Haible  <bruno@clisp.org>
65459
65460         * doc/functions.texi: Remove file, now redundant through
65461         doc/functions/*.texi.
65462
65463 2007-05-01  Bruno Haible  <bruno@clisp.org>
65464
65465         * modules/argp (Depends-on): Add sleep.
65466
65467 2007-05-01  Bruno Haible  <bruno@clisp.org>
65468
65469         * modules/sleep-tests: New file.
65470         * tests/test-sleep.c: New file.
65471
65472         * modules/sleep: New file.
65473         * lib/sleep.c: New file.
65474         * m4/sleep.m4: New file.
65475         * lib/unistd_.h (sleep): New declaration.
65476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65477         HAVE_SLEEP.
65478         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65479         * doc/functions/sleep.texi: Document the sleep module.
65480
65481 2007-05-01  Bruno Haible  <bruno@clisp.org>
65482
65483         * lib/sigprocmask.h: Remove file.
65484         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65485         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65486         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65487         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65488         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65489         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65490         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65491         HAVE_SIGSET_T as a shell variable.
65492         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65493         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65494         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65495         (Depends-on): Add signal. Remove verify.
65496         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65497         (Include): Mention <signal.h> instead of sigprocmask.h.
65498         * NEWS: Mention the change.
65499         * lib/fatal-signal.c: Don't include sigprocmask.h.
65500
65501 2007-05-01  Bruno Haible  <bruno@clisp.org>
65502
65503         * modules/signal: New file.
65504         * lib/signal_.h: New file.
65505         * m4/signal_h.m4: New file.
65506
65507 2007-05-01  Bruno Haible  <bruno@clisp.org>
65508
65509         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65510         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65511         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65512         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65513
65514 2007-05-01  Bruno Haible  <bruno@clisp.org>
65515
65516         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65517         configure time.
65518         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65519         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65520         * modules/sys_stat (Makefile.am): Substitute their values into
65521         sys/stat.h.
65522
65523 2007-05-01  Bruno Haible  <bruno@clisp.org>
65524
65525         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65526         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65527         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65528
65529 2007-05-01  Bruno Haible  <bruno@clisp.org>
65530
65531         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65532         'assert' module here.
65533
65534 2007-05-01  Bruno Haible  <bruno@clisp.org>
65535
65536         * doc/functions/*.texi: New files.
65537         * doc/functions/google-ranking.txt: New file.
65538         * doc/gnulib.texi (Function Substitutes): New chapter.
65539         (ctime, inet_ntoa): Remove sections.
65540         * doc/ctime.texi: Remove file.
65541         * doc/inet_ntoa.texi: Remove file.
65542         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65543         dependencies.
65544         (%.info): New rule, specifying a --reference-limit.
65545
65546 2007-05-01  Bruno Haible  <bruno@clisp.org>
65547
65548         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65549
65550 2007-05-01  Bruno Haible  <bruno@clisp.org>
65551
65552         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65553         the portability of 'mkdir' to mingw systems.
65554
65555 2007-05-01  Bruno Haible  <bruno@clisp.org>
65556
65557         * doc/headers/google-ranking.txt: New file.
65558
65559 2007-04-30  Eric Blake  <ebb9@byu.net>
65560
65561         Prefer fseeko to fseek.
65562         * modules/getpass (Depends-on): Add fseeko.
65563         * lib/getpass.c (getpass): Use fseeko, not fseek.
65564
65565 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65566
65567         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65568         assumes the sorting is stable, while most qsort implementations
65569         are not.  Use argument addresses to ensure they never compare as
65570         equal.
65571
65572         * tests/test-argp-2.sh (usage-indent test): Fix output
65573         (func_compare): Restore diff options
65574         * tests/test-argp.c: Restore #include "progname.h"
65575
65576 2007-04-29  Bruno Haible  <bruno@clisp.org>
65577
65578         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65580         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65582         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65583         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65584         (TESTS, check_PROGRAMS): Add test-snprintf.
65585         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65586         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65587         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65588         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65589         assertions that fail on HP-UX, OSF/1, or IRIX.
65590         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65591
65592 2007-04-29  Bruno Haible  <bruno@clisp.org>
65593
65594         * MODULES.html.sh (posix_functions): Remove 'contents'.
65595
65596 2007-04-29  Karl Berry  <karl@gnu.org>
65597
65598         * config/srclist.txt (gendocs_template_min): new entry.
65599
65600 2007-04-29  Bruno Haible  <bruno@clisp.org>
65601
65602         Work around fpurge bug on BSD systems.
65603         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65604         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65605         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65606         fpurge to rpl_fpurge if the system already has this function.
65607         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65608         the case where the system already has this function. Correct invariants
65609         on BSD systems.
65610         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65611         BSD systems.
65612
65613 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65614
65615         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65616         proposed by Sven Verdoolaege.
65617
65618         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65619         options.
65620         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65621         (usage and help tests): Update
65622
65623 2007-04-29  Bruno Haible  <bruno@clisp.org>
65624
65625         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65626         Print more information in case of failure. Disable a test on BeOS.
65627
65628 2007-04-29  Bruno Haible  <bruno@clisp.org>
65629
65630         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65631         This helps debugging on systems on which no gdb is available.
65632
65633 2007-04-29  Bruno Haible  <bruno@clisp.org>
65634
65635         * lib/freading.h: Improve comments.
65636         * lib/fwriting.h: Likewise.
65637         * tests/test-freading.c (main): Don't check freading immediately after
65638         repositioning. Needed for glibc.
65639
65640 2007-04-29  Bruno Haible  <bruno@clisp.org>
65641
65642         * lib/freading.c (freading): Trivial simplification.
65643
65644 2007-04-28  Bruno Haible  <bruno@clisp.org>
65645
65646         * tests/test-fwriting.c (main): Also test the interaction between
65647         fflush and fwriting.
65648         * modules/fwriting-tests (Depends-on): Add fflush.
65649
65650         * tests/test-freading.c (main): Also test the interaction between
65651         fflush and freading.
65652         * modules/freading-tests (Depends-on): Add fflush.
65653
65654 2007-04-28  Bruno Haible  <bruno@clisp.org>
65655
65656         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65657         fseeko and ftello.
65658         Suggested by Eric Blake.
65659
65660 2007-04-28  Jim Meyering  <jim@meyering.net>
65661
65662         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65663         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65664         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65665
65666 2007-04-27  Eric Blake  <ebb9@byu.net>
65667
65668         * doc/headers/assert.texi (assert.h): Document assert module use.
65669
65670 2007-04-27  Bruno Haible  <bruno@clisp.org>
65671
65672         * doc/headers/*.texi: New files.
65673         * doc/gnulib.texi (Header File Substitutes): New chapter.
65674         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65675         dependencies.
65676         (standards.info ,standards.html, standards.dvi): Update dependencies.
65677         (mostlyclean, clean): New targets.
65678
65679 2007-04-27  Bruno Haible  <bruno@clisp.org>
65680
65681         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65682         * modules/sysexits (Files, Makefile.am): Update.
65683
65684         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65685         * modules/sys_socket (Files, Makefile.am): Update.
65686
65687         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65688         * modules/sys_stat (Files, Makefile.am): Update.
65689
65690 2007-04-27  Eric Blake  <ebb9@byu.net>
65691
65692         * lib/freading.h: Improve comments.
65693         * lib/fwriting.h: Likewise.
65694         * lib/fflush.c: Likewise.
65695
65696         Fix closein for mingw.
65697         * modules/closein-tests: Add tests for closein.
65698         * tests/test-closein.c: New file.
65699         * tests/test-closein.sh: Likewise.
65700         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65701         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65702
65703 2007-04-27  Bruno Haible  <bruno@clisp.org>
65704
65705         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65706         version is < 6.
65707         * lib/math_.h [__DECC]: Likewise.
65708         * lib/stdio_.h [__DECC]: Likewise.
65709         * lib/stdlib_.h [__DECC]: Likewise.
65710         * lib/string_.h [__DECC]: Likewise.
65711         * lib/time_.h [__DECC]: Likewise.
65712         * lib/wchar_.h [__DECC]: Likewise.
65713         * lib/wctype_.h [__DECC]: Likewise.
65714
65715 2007-04-27  Bruno Haible  <bruno@clisp.org>
65716
65717         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65718
65719 2007-04-27  Bruno Haible  <bruno@clisp.org>
65720
65721         * lib/fflush.c: Add comments.
65722         * modules/fpurge-tests (Depends-on): Add fflush.
65723         * modules/freadable-tests (Depends-on): Likewise.
65724         * modules/fwritable-tests (Depends-on): Likewise.
65725
65726 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65727
65728         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65729         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65730         Report by Bruno Haible <bruno@clisp.org>.
65731
65732 2007-04-26  Eric Blake  <ebb9@byu.net>
65733
65734         Fix fflush on mingw.
65735         * modules/fflush (Depends-on): Add freading.
65736         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65737         but unread data.
65738
65739 2007-04-26  Eric Blake  <ebb9@byu.net>
65740         and Bruno Haible  <bruno@clisp.org>
65741
65742         Implement freading and fwriting.
65743         * lib/freading.c: New file.
65744         * lib/freading.h: Likewise.
65745         * m4/freading.m4: Likewise.
65746         * modules/freading: Likewise.
65747         * modules/freading-tests: Likewise.
65748         * tests/test-freading.c: Likewise.
65749         * lib/fwriting.c: New file.
65750         * lib/fwriting.h: Likewise.
65751         * m4/fwriting.m4: Likewise.
65752         * modules/fwriting: Likewise.
65753         * modules/fwriting-tests: Likewise.
65754         * tests/test-fwriting.c: Likewise.
65755         * MODULES.html.sh (File stream based Input/Output): Mention them.
65756
65757 2007-04-26  Bruno Haible  <bruno@clisp.org>
65758
65759         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65760         'long' when we assume it.
65761         Suggested by Eric Blake.
65762
65763 2007-04-26  Bruno Haible  <bruno@clisp.org>
65764
65765         Ensure fseeko, ftello are declared on glibc systems.
65766         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65767         * modules/fseeko (configure.ac-early): Likewise.
65768         * modules/ftello (configure.ac-early): Likewise.
65769         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65770         AC_FUNC_FSEEKO for this.
65771         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65772         (gl_CHECK_FSEEKO): Remove macro.
65773
65774 2007-04-26  Bruno Haible  <bruno@clisp.org>
65775
65776         * tests/test-fflush.c (main): Also check the ftell result after
65777         fflush and fseek/fseeko.
65778         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65779         file descriptor position cache in the stream.
65780         * lib/fseeko.c (rpl_fseeko): Likewise.
65781
65782 2007-04-26  Bruno Haible  <bruno@clisp.org>
65783
65784         * modules/fflush-tests (Depends-on): Add fseeko.
65785
65786 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65787             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65788
65789         * lib/argz_.h: ensure error_t definition is obtained in same
65790         mechanism system argz.h would have.
65791         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65792         argz facilities are known bad.  Err on the side of caution if
65793         cross-compiling.
65794
65795 2007-04-25  Eric Blake  <ebb9@byu.net>
65796
65797         * lib/fpurge.c (includes): Use stdlib.h for free.
65798         * tests/test-fflush.c (main): Also test fflush-fseeko.
65799
65800 2007-04-25  Bruno Haible  <bruno@clisp.org>
65801
65802         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65803         * lib/fseeko.c: New file.
65804         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65805         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65806         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65807         gl_FUNC_FSEEKO.
65808         (gl_FUNC_FSEEKO): Invoke it.
65809         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65810         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65811         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65812
65813 2007-04-25  Bruno Haible  <bruno@clisp.org>
65814
65815         * modules/fflush (Depends-on): Add ftello.
65816
65817 2007-04-25  Bruno Haible  <bruno@clisp.org>
65818
65819         * modules/ftello-tests: New file.
65820         * tests/test-ftello.c: New file.
65821
65822         * modules/ftello: New file.
65823         * m4/ftello.m4: New file.
65824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65825         HAVE_FTELLO.
65826         * lib/stdio_.h (ftello): New declaration.
65827         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65828         HAVE_FTELLO.
65829
65830 2007-04-25  Bruno Haible  <bruno@clisp.org>
65831
65832         * modules/fseeko-tests: New file.
65833         * tests/test-fseeko.c: New file.
65834
65835         * modules/fseeko: New file.
65836         * m4/fseeko.m4: New file.
65837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65838         HAVE_FSEEKO.
65839         * lib/stdio_.h (fseeko): New declaration.
65840         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65841         HAVE_FSEEKO.
65842
65843 2007-04-25  Bruno Haible  <bruno@clisp.org>
65844
65845         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65846
65847 2007-04-25  Bruno Haible  <bruno@clisp.org>
65848
65849         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65850         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65851         * tests/test-unistd.c: Likewise.
65852         * tests/test-fcntl.c: Likewise.
65853
65854 2007-04-23  Eric Blake  <ebb9@byu.net>
65855
65856         * lib/fflush.c: Fix missing include.
65857         Reported by Bruno Haible.
65858
65859 2007-04-23  Bruno Haible  <bruno@clisp.org>
65860
65861         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65862         Reported by Eric Blake.
65863
65864 2007-04-23  Bruno Haible  <bruno@clisp.org>
65865
65866         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65867
65868 2007-04-23  Bruno Haible  <bruno@clisp.org>
65869
65870         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65871
65872 2007-04-23  Bruno Haible  <bruno@clisp.org>
65873
65874         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65875         Needed on HP-UX 11.
65876
65877 2007-04-16  Eric Blake  <ebb9@byu.net>
65878
65879         Make fflush rely on fpurge.
65880         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65881         open coding all variants.
65882         * modules/fflush (Depends-on): Add fpurge and unistd.
65883         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65884         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65885
65886         Fix --with-tests compilation on cygwin.
65887         * modules/argmatch-tests (Makefile.am): List gnulib library first
65888         in LDADD.
65889         * modules/argp-tests (Makefile.am): Likewise.
65890         * modules/array-list-tests (Makefile.am): Likewise.
65891         * modules/array-oset-tests (Makefile.am): Likewise.
65892         * modules/avltree-list-tests (Makefile.am): Likewise.
65893         * modules/avltree-oset-tests (Makefile.am): Likewise.
65894         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65895         * modules/carray-list-tests (Makefile.am): Likewise.
65896         * modules/dirname-tests (Makefile.am): Likewise.
65897         * modules/frexp-tests (Makefile.am): Likewise.
65898         * modules/isnanl-tests (Makefile.am): Likewise.
65899         * modules/linked-list-tests (Makefile.am): Likewise.
65900         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65901         * modules/lock-tests (Makefile.am): Likewise.
65902         * modules/rbtree-list-tests (Makefile.am): Likewise.
65903         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65904         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65905         * modules/tls-tests (Makefile.am): Likewise.
65906         * modules/tsearch-tests (Makefile.am): Likewise.
65907         * modules/xvasprintf-tests (Makefile.am): Likewise.
65908
65909         Fix fpurge for cygwin.
65910         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65911         value.
65912         * modules/fpurge-tests (Depends-on): Clean up trash.
65913
65914 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65915
65916         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65917
65918         * m4/autobuild.m4: Re-indent.
65919
65920 2007-04-13  Bruno Haible  <bruno@clisp.org>
65921
65922         * modules/fpurge-tests: New file.
65923         * tests/test-fpurge.c: New file.
65924
65925         * modules/fpurge: New file.
65926         * lib/fpurge.h: New file.
65927         * lib/fpurge.c: New file.
65928         * m4/fpurge.m4: New file.
65929
65930 2007-04-13  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/fbufmode-tests: New file.
65933         * tests/test-fbufmode.c: New file.
65934
65935         * modules/fbufmode: New file.
65936         * lib/fbufmode.h: New file.
65937         * lib/fbufmode.c: New file.
65938         * m4/fbufmode.m4: New file.
65939
65940 2007-04-13  Bruno Haible  <bruno@clisp.org>
65941
65942         * modules/fwritable-tests: New file.
65943         * tests/test-fwritable.c: New file.
65944
65945         * modules/fwritable: New file.
65946         * lib/fwritable.h: New file.
65947         * lib/fwritable.c: New file.
65948         * m4/fwritable.m4: New file.
65949
65950 2007-04-13  Bruno Haible  <bruno@clisp.org>
65951
65952         * modules/freadable-tests: New file.
65953         * tests/test-freadable.c: New file.
65954
65955         * modules/freadable: New file.
65956         * lib/freadable.h: New file.
65957         * lib/freadable.c: New file.
65958         * m4/freadable.m4: New file.
65959
65960 2007-04-13  Bruno Haible  <bruno@clisp.org>
65961
65962         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65963         MOSTLYCLEANFILES.
65964
65965 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65966
65967         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65968         gzip bootstrap.conf to avoid dragging in i18n machinery.
65969         (gnulib_tool_option): Use it.
65970
65971 2007-04-13  Bruno Haible  <bruno@clisp.org>
65972
65973         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65974         %F directives.
65975         * tests/test-vasprintf-posix.c (test_function): Likewise.
65976         * tests/test-snprintf-posix.h (test_function): Likewise.
65977         * tests/test-sprintf-posix.h (test_function): Likewise.
65978         * tests/test-fprintf-posix.h (test_function): Likewise.
65979         * tests/test-printf-posix.h (test_function): Likewise.
65980         * tests/test-fprintf-posix.out: Likewise.
65981
65982 2007-04-13  Bruno Haible  <bruno@clisp.org>
65983
65984         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65985         * modules/tls-tests (configure.ac): Likewise.
65986         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65987
65988 2007-04-13  Bruno Haible  <bruno@clisp.org>
65989
65990         * lib/tls.c (glthread_tls_get): Fix return type.
65991         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65992
65993 2007-04-12  Eric Blake  <ebb9@byu.net>
65994
65995         * modules/gettime (Depends-on): Remove gettime.
65996         Reported by Dmitry V. Levin.
65997
65998 2007-04-12  Bruno Haible  <bruno@clisp.org>
65999
66000         * modules/fflush (Include): Mention <stdio.h>.
66001         * modules/strtoimax (Include): Mention <inttypes.h>.
66002         * modules/strtoumax (Include): Likewise.
66003
66004 2007-04-12  Eric Blake  <ebb9@byu.net>
66005
66006         * .cvsignore: New file.
66007         * .gitignore: Likewise.
66008
66009 2007-04-12  Bruno Haible  <bruno@clisp.org>
66010
66011         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66012         not before, since $(LDADD) often contains libgnu.a.
66013         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66014         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66015         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66016         Needed on Cygwin.
66017
66018 2007-04-12  Eric Blake  <ebb9@byu.net>
66019
66020         Work around glibc's failure to flush stdin on fclose.
66021         * lib/closein.c (close_stdin): Flush stdin before closing.
66022
66023         Work around glibc's failure to reset seekable stdin on exit.
66024         * modules/closein: New module.
66025         * lib/closein.c: New file.
66026         * lib/closein.h: Likewise.
66027         * m4/closein.m4: Likewise.
66028         * MODULES.html.sh (File stream based Input/Output): Document it.
66029
66030 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66031
66032         * gnulib-tool: Rename generated 'autobuild' script to
66033         'do-autobuild' in --create-megatestdir output.
66034
66035         * doc/gnulib.texi (Build robot for gnulib): Fix.
66036
66037 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66038
66039         * modules/sysexits (Depends-on): Add absolute-header.
66040
66041 2007-04-12  Eric Blake  <ebb9@byu.net>
66042
66043         No need to preserve errno on success.
66044         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66045         Reported by Bruno Haible.
66046
66047 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66048
66049         * MODULES.html.sh (Support for maintaining and releasing
66050         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66051
66052 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66053
66054         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66055
66056 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66057
66058         * modules/autobuild: New module.
66059
66060         * m4/autobuild.m4: New file.
66061
66062 2007-04-11  Bruno Haible  <bruno@clisp.org>
66063
66064         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66065         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66066         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66068         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66069         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66070         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66071         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66072         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66073         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66074         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66075         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66076         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66078         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66079         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66080         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66081         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66082         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66083         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66084         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66085         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66086         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66087         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66088         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66089         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66090         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66091         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66092         Reported by Eric Blake.
66093
66094 2007-04-11  Bruno Haible  <bruno@clisp.org>
66095
66096         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66097
66098 2007-04-10  Bruno Haible  <bruno@clisp.org>
66099
66100         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66101         for NaN and Infinity. Needed on FreeBSD 6.1.
66102         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66103         regarding results for "%010a" of Infinity and NaN.
66104         * tests/test-vasprintf-posix.c (test_function): Likewise.
66105         * tests/test-snprintf-posix.h (test_function): Likewise.
66106         * tests/test-sprintf-posix.h (test_function): Likewise.
66107         * tests/test-fprintf-posix.h (test_function): Likewise.
66108         * tests/test-printf-posix.h (test_function): Likewise.
66109         * tests/test-fprintf-posix.out: Likewise.
66110
66111 2007-04-10  Bruno Haible  <bruno@clisp.org>
66112
66113         * modules/locale-tests: New file.
66114         * tests/test-locale.c: New file.
66115
66116         * modules/locale: New file.
66117         * lib/locale_.h: New file.
66118         * m4/locale_h.m4: New file.
66119
66120 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66121             Bruno Haible  <bruno@clisp.org>
66122
66123         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66124         be determined, test for availability of the copysignf, copysign,
66125         copysignl functions.
66126         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66127         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66128         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66129
66130 2007-04-09  Eric Blake  <ebb9@byu.net>
66131
66132         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66133         * modules/stdio (Makefile.am): Support fflush.
66134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66135         * modules/fflush: New file.
66136         * lib/fflush.c: Likewise.
66137         * m4/fflush.m4: Likewise.
66138         * modules/fflush-tests: New test.
66139         * tests/test-fflush.c: Likewise.
66140         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66141
66142 2007-04-06  Bruno Haible  <bruno@clisp.org>
66143
66144         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66145         (VASNPRINTF): Use signbit for faster determination whether to print a
66146         minus sign.
66147         * modules/vasnprintf (Files): Remove lib/float+.h.
66148         * modules/fprintf-posix (Depends-on): Add signbit.
66149         * modules/snprintf-posix (Depends-on): Likewise.
66150         * modules/sprintf-posix (Depends-on): Likewise.
66151         * modules/vasnprintf-posix (Depends-on): Likewise.
66152         * modules/vasprintf-posix (Depends-on): Likewise.
66153         * modules/vfprintf-posix (Depends-on): Likewise.
66154         * modules/vsnprintf-posix (Depends-on): Likewise.
66155         * modules/vsprintf-posix (Depends-on): Likewise.
66156
66157 2007-04-06  Bruno Haible  <bruno@clisp.org>
66158
66159         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66160         * tests/test-frexpl.c (main): Likewise.
66161         * tests/test-ldexpl.c (main): Likewise.
66162         * modules/frexp-tests (Depends-on): Add signbit.
66163         * modules/frexpl-tests (Depdends-on): Likewise.
66164         * modules/ldexpl-tests (Depdends-on): Likewise.
66165
66166 2007-04-06  Bruno Haible  <bruno@clisp.org>
66167
66168         * modules/signbit-tests: New file.
66169         * tests/test-signbit.c: New file.
66170
66171         * modules/signbit: New file.
66172         * lib/signbitf.c: New file.
66173         * lib/signbitd.c: New file.
66174         * lib/signbitl.c: New file.
66175         * m4/signbit.m4: New file.
66176         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66177         (signbit): New macro.
66178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66179         REPLACE_SIGNBIT.
66180         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66181         REPLACE_FREXPL into math.h.
66182
66183 2007-04-06  Bruno Haible  <bruno@clisp.org>
66184
66185         * modules/isnanf-nolibm-tests: New file.
66186         * tests/test-isnanf.c: New file.
66187
66188         * modules/isnanf-nolibm: New file.
66189         * lib/isnanf.h: New file.
66190         * lib/isnanf.c: New file.
66191         * lib/isnan.c: Consider the USE_FLOAT macro.
66192         * m4/isnanf.m4: New file.
66193
66194 2007-04-06  Bruno Haible  <bruno@clisp.org>
66195
66196         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66197         (Link): New section.
66198
66199         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66200
66201 2007-04-06  Bruno Haible  <bruno@clisp.org>
66202
66203         Assume the 'long double' type.
66204         * m4/longdouble.m4: Remove file.
66205         * config/srclist.txt: Don't mention longdouble.m4.
66206         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66207         * lib/float+.h: Likewise.
66208         * lib/frexp.c: Likewise.
66209         * lib/printf-args.h: Likewise.
66210         * lib/printf-args.c: Likewise.
66211         * lib/printf-frexp.c: Likewise.
66212         * lib/printf-parse.c: Likewise.
66213         * lib/vasnprintf.c: Likewise.
66214         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66215         * m4/intl.m4: Likewise.
66216         * m4/isnanl.m4: Likewise.
66217         * m4/printf.m4: Likewise.
66218         * m4/printf-frexpl.m4: Likewise.
66219         * m4/vasnprintf.m4: Likewise.
66220         * modules/allocsa (Files): Remove m4/longdouble.m4.
66221         * modules/gettext (Files): Likewise.
66222         * modules/relocatable-prog-wrapper (Files): Likewise.
66223         * modules/vasnprintf (Files): Likewise.
66224         * modules/isnanl (Files): Likewise.
66225         (Include): Simplify.
66226         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66227         (Include): Simplify.
66228         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66229         (Include): Simplify.
66230         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66231         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66232         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66233         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66234         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66235         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66236         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66237         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66238         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66239         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66240         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66241         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66242         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66243         * tests/test-isnanl.c: Likewise.
66244         * tests/test-snprintf-posix.h: Likewise.
66245         * tests/test-sprintf-posix.h: Likewise.
66246         * tests/test-vasnprintf-posix.c: Likewise.
66247         * tests/test-vasnprintf-posix2.c: Likewise.
66248         * tests/test-vasprintf-posix.c: Likewise.
66249
66250 2007-04-06  Bruno Haible  <bruno@clisp.org>
66251
66252         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66253         * lib/math_.h [__DECC]: Include the overridden include file through
66254         #include_next, outside the double-inclusion guard.
66255         * lib/stdio_.h [__DECC]: Likewise.
66256         * lib/stdlib_.h [__DECC]: Likewise.
66257         * lib/string_.h [__DECC]: Likewise.
66258         * lib/time_.h [__DECC]: Likewise.
66259         * lib/wchar_.h [__DECC]: Likewise.
66260         * lib/wctype_.h [__DECC]: Likewise.
66261         * lib/inttypes_.h [__DECC]: Likewise.
66262         Reported by Albert Chin <china@thewrittenword.com> in
66263         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66264
66265 2007-04-04  Eric Blake  <ebb9@byu.net>
66266
66267         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66268         1.5.x.
66269
66270 2007-04-04  Bruno Haible  <bruno@clisp.org>
66271
66272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66273         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66274
66275 2007-04-04  Bruno Haible  <bruno@clisp.org>
66276
66277         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66278         results for "%010a" of Infinity and NaN.
66279         * tests/test-vasprintf-posix.c (test_function): Likewise.
66280         * tests/test-snprintf-posix.h (test_function): Likewise.
66281         * tests/test-sprintf-posix.h (test_function): Likewise.
66282         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66283         * tests/test-printf-posix.h (test_function): Likewise.
66284         * tests/test-fprintf-posix.out: Update.
66285         Needed for FreeBSD 6.1.
66286
66287 2007-04-04  Bruno Haible  <bruno@clisp.org>
66288
66289         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66290         directly used by the gnulib modules nor by gnulib-tool.
66291
66292 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66293
66294         * DEPENDENCIES: Give overall description of version dependency
66295         desirability.  Use more-typical names for apps.
66296         Add shell, coreutils, diffutils, grep, tar, gzip.
66297
66298 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66299
66300         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66301
66302 2007-04-04  Karl Berry  <karl@gnu.org>
66303
66304         * MODULES.html.sh (func_module): missing '.
66305
66306 2007-04-03  Bruno Haible  <bruno@clisp.org>
66307
66308         * modules/argmatch-tests (Makefile.am): New variable
66309         test_argmatch_LDADD.
66310         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66311         * modules/array-list-tests (Makefile.am): New variable
66312         test_array_list_LDADD.
66313         * modules/array-oset-tests (Makefile.am): New variable
66314         test_array_oset_LDADD.
66315         * modules/avltree-list-tests (Makefile.am): New variable
66316         test_avltree_list_LDADD.
66317         * modules/avltree-oset-tests (Makefile.am): New variable
66318         test_avltree_oset_LDADD.
66319         * modules/avltreehash-list-tests (Makefile.am): New variable
66320         test_avltreehash_list_LDADD.
66321         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66322         test_canonicalize_lgpl_LDADD.
66323         * modules/carray-list-tests (Makefile.am): New variable
66324         test_carray_list_LDADD.
66325         * modules/dirname-tests (Makefile.am): New variable
66326         test_dirname_LDADD.
66327         * modules/linked-list-tests (Makefile.am): New variable
66328         test_linked_list_LDADD.
66329         * modules/linkedhash-list-tests (Makefile.am): New variable
66330         test_linkedhash_list_LDADD.
66331         * modules/rbtree-list-tests (Makefile.am): New variable
66332         test_rbtree_list_LDADD.
66333         * modules/rbtree-oset-tests (Makefile.am): New variable
66334         test_rbtree_oset_LDADD.
66335         * modules/rbtreehash-list-tests (Makefile.am): New variable
66336         test_rbtreehash_list_LDADD.
66337         * modules/xvasprintf-tests (Makefile.am): New variable
66338         test_xvasprintf_LDADD.
66339         Reported by Eric Blake.
66340
66341 2007-04-03  Eric Blake  <ebb9@byu.net>
66342
66343         * DEPENDENCIES: Weaken m4 requirements.
66344
66345 2007-04-03  Bruno Haible  <bruno@clisp.org>
66346
66347         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66348         * modules/isnanl-tests (configure.ac): Likewise.
66349
66350 2007-04-03  Ben Pfaff  <blp@gnu.org>
66351
66352         * modules/iconv_open: Add $(srcdir)/ to source directory
66353         references in Makefile fragments that call gperf, to fix VPATH
66354         builds.
66355
66356 2007-04-03  Bruno Haible  <bruno@clisp.org>
66357
66358         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66359         * lib/ldexpl.c: Undo last change.
66360
66361 2007-04-03  Bruno Haible  <bruno@clisp.org>
66362
66363         * modules/printf-frexpl (Depends-on): Undo last change.
66364         (Files): Add m4/ldexpl.m4.
66365
66366 2007-04-03  Bruno Haible  <bruno@clisp.org>
66367
66368         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66369         * modules/isnanl (Link): New section.
66370
66371         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66372         * modules/frexp (Link): New section.
66373
66374         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66375         * modules/frexpl (Link): New section.
66376
66377         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66378         * modules/ldexpl (Link): New section.
66379
66380 2007-04-03  Bruno Haible  <bruno@clisp.org>
66381
66382         * modules/TEMPLATE-EXTENDED: New file.
66383         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66384
66385 2007-04-03  Bruno Haible  <bruno@clisp.org>
66386
66387         * DEPENDENCIES: New file.
66388         Suggested by Simon Josefsson.
66389
66390 2007-04-03  Bruno Haible  <bruno@clisp.org>
66391
66392         * doc/gnulib.texi: Escape @.
66393
66394 2007-04-03  James Youngman  <jay@gnu.org>
66395         and Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66398         birthtime on all systems that have birthtime, not just those which
66399         use st_birthtimensec rather than st_birthtim.  Putting zero in
66400         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66401         that the birth time is not available for files on an NFS mount.
66402
66403 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66404
66405         * modules/memxor: Move back from crypto/, suggested by Bruno.
66406         * modules/crypto/hmac-sha1: Fix memxor dependency.
66407
66408         * modules/crypto/gc: Moved from ../.
66409
66410 2007-04-02  Eric Blake  <ebb9@byu.net>
66411
66412         * lib/ldexpl.c (includes): Avoid libm.
66413
66414         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66415
66416 2007-04-02  Bruno Haible  <bruno@clisp.org>
66417
66418         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66419         on IRIX.
66420
66421 2007-04-02  Bruno Haible  <bruno@clisp.org>
66422
66423         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66424         x86 or x86_64 platforms running MacOS X.
66425         Reported by Ryan Schmidt <@ryandesign.com>.
66426
66427 2007-04-02  Bruno Haible  <bruno@clisp.org>
66428
66429         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66430         i386.
66431
66432 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66433
66434         * modules/crypto/arcfour: Moved from ../.
66435         * modules/crypto/arcfour-tests: Moved from ../.
66436         * modules/crypto/arctwo: Moved from ../.
66437         * modules/crypto/arctwo-tests: Moved from ../.
66438         * modules/crypto/des: Moved from ../.
66439         * modules/crypto/des-tests: Moved from ../.
66440         * modules/crypto/gc-arcfour: Moved from ../.
66441         * modules/crypto/gc-arcfour-tests: Moved from ../.
66442         * modules/crypto/gc-arctwo: Moved from ../.
66443         * modules/crypto/gc-arctwo-tests: Moved from ../.
66444         * modules/crypto/gc-des: Moved from ../.
66445         * modules/crypto/gc-des-tests: Moved from ../.
66446         * modules/crypto/gc-hmac-md5: Moved from ../.
66447         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66448         * modules/crypto/gc-hmac-sha1: Moved from ../.
66449         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66450         * modules/crypto/gc-md2: Moved from ../.
66451         * modules/crypto/gc-md2-tests: Moved from ../.
66452         * modules/crypto/gc-md4: Moved from ../.
66453         * modules/crypto/gc-md4-tests: Moved from ../.
66454         * modules/crypto/gc-md5: Moved from ../.
66455         * modules/crypto/gc-md5-tests: Moved from ../.
66456         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66457         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66458         * modules/crypto/gc-random: Moved from ../.
66459         * modules/crypto/gc-rijndael: Moved from ../.
66460         * modules/crypto/gc-rijndael-tests: Moved from ../.
66461         * modules/crypto/gc-sha1: Moved from ../.
66462         * modules/crypto/gc-sha1-tests: Moved from ../.
66463         * modules/crypto/gc-tests: Moved from ../.
66464         * modules/crypto/hmac-md5: Moved from ../.
66465         * modules/crypto/hmac-md5-tests: Moved from ../.
66466         * modules/crypto/hmac-sha1: Moved from ../.
66467         * modules/crypto/hmac-sha1-tests: Moved from ../.
66468         * modules/crypto/md2: Moved from ../.
66469         * modules/crypto/md2-tests: Moved from ../.
66470         * modules/crypto/md4: Moved from ../.
66471         * modules/crypto/md4-tests: Moved from ../.
66472         * modules/crypto/md5: Moved from ../.
66473         * modules/crypto/md5-tests: Moved from ../.
66474         * modules/crypto/memxor: Moved from ../.
66475         * modules/crypto/rijndael: Moved from ../.
66476         * modules/crypto/rijndael-tests: Moved from ../.
66477         * modules/crypto/sha1: Moved from ../.
66478
66479 2007-03-30  James Youngman  <jay@gnu.org>
66480
66481         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66482         rename() to change the ctime of a file (because ctime is unaffected
66483         by rename on jfs2 on AIX 5.1).
66484         (main): Start by doing cleanup, in case a previous run failed leaving
66485         test files behind.
66486
66487 2007-03-31  Bruno Haible  <bruno@clisp.org>
66488
66489         Support old proprietary implementations of iconv.
66490         * modules/iconv_open: New file.
66491         * lib/iconv_.h: New file.
66492         * m4/iconv_h.m4: New file.
66493         * lib/iconv_open.c: New file.
66494         * lib/iconv_open-aix.gperf: New file.
66495         * lib/iconv_open-hpux.gperf: New file.
66496         * lib/iconv_open-irix.gperf: New file.
66497         * lib/iconv_open-osf.gperf: New file.
66498         * m4/iconv_open.m4: New file.
66499         * modules/linebreak (Depends-on): Add iconv_open.
66500         * modules/striconv (Depends-on): Likewise.
66501         * modules/striconveh (Depends-on): Likewise.
66502         * modules/unicodeio (Depends-on): Likewise.
66503         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66504         (iconv_t)(-1).
66505         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66506         conversion if cd is (iconv_t)(-1).
66507         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66508         is not possible.
66509
66510 2007-03-31  Bruno Haible  <bruno@clisp.org>
66511
66512         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66513         work on Solaris either. Protect also second use of "autodetect_jp".
66514
66515 2007-03-31  Bruno Haible  <bruno@clisp.org>
66516
66517         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66518         the function is not present.
66519
66520 2007-03-31  Bruno Haible  <bruno@clisp.org>
66521
66522         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66523         the function is not present.
66524
66525 2007-03-31  Bruno Haible  <bruno@clisp.org>
66526
66527         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66528         a bug in HP-UX iconv_open().
66529
66530 2007-03-31  Bruno Haible  <bruno@clisp.org>
66531
66532         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66533         (Mathematics <math.h>): New section, add fpieee.
66534         (Input/output <stdio.h>): Add fseterr.
66535         (Mathematics <math.h>): New section, add printf-frexp.
66536         (Container data structures): Add sublist.
66537         (Core language properties): Add fpucw, inline.
66538         (Functions for greatest-width integer types <inttypes.h>): Add
66539         imaxabs, imaxdiv, inttypes.
66540         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66541         isnanl-nolibm, ldexp.
66542         (Mathematics <math.h>): New section, add printf-frexpl.
66543         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66544         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66545         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66546         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66547         (Unicode string functions): Add unistr/u*-mbtoucr.
66548         (Java): Add javacomp-script, javaexec-script.
66549         (C#): Add csharpcomp-script, csharpexec-script.
66550         (Support for building libraries and executables): Add havelib,
66551         relocatable-*.
66552         (Support for maintaining and releasing projects): Renamed from
66553         'Support for maintaining and release projects'. Add announce-gen.
66554
66555 2007-03-31  Bruno Haible  <bruno@clisp.org>
66556
66557         * README: Talk primarily about git.
66558         (git and CVS): Renamed from CVS.
66559         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66560         gnulib is available through git.
66561         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66562
66563 2007-03-30  Bruno Haible  <bruno@clisp.org>
66564
66565         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66566         * lib/poll_.h: Likewise.
66567         * lib/stat_.h: Likewise.
66568         * lib/sys_time_.h: Likewise.
66569         * lib/sysexit_.h: Likewise.
66570         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66571         * lib/stdbool_.h: Likewise.
66572         * lib/byteswap_.h: Add double-inclusion guard.
66573
66574 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66575
66576         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66577
66578 2007-03-30  Karl Berry  <karl@gnu.org>
66579
66580         * config/srclist-update: double space after USA in the license
66581         substitution, since that's how it's usually (?) written.
66582
66583 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66586         reported by Bruno Haible.
66587
66588 2007-03-29  Bruno Haible  <bruno@clisp.org>
66589
66590         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66591         a bug in AIX iconv().
66592
66593 2007-03-29  Bruno Haible  <bruno@clisp.org>
66594
66595         * modules/ldexpl-tests: New file.
66596         * tests/test-ldexpl.c: New file.
66597
66598 2007-03-29  Bruno Haible  <bruno@clisp.org>
66599
66600         * lib/ldexpl.c: Include fpucw.h.
66601         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66602         multiplication.
66603         * modules/ldexpl (Depends-on): Add fpucw.
66604
66605 2007-03-29  Bruno Haible  <bruno@clisp.org>
66606
66607         * modules/ldexpl: New file.
66608         * m4/ldexpl.m4: New file.
66609         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66610         set.
66611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66612         REPLACE_LDEXPL.
66613         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66614         REPLACE_LDEXPL.
66615         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66616         gl_FUNC_LDEXPL_WORKS.
66617         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66618         * modules/mathl (Files): Remove lib/ldexpl.c.
66619         (Depends-on): Add ldexpl.
66620
66621 2007-03-29  Bruno Haible  <bruno@clisp.org>
66622
66623         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66624
66625 2007-03-29  Bruno Haible  <bruno@clisp.org>
66626
66627         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66628         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66629         and possibly also HP-UX.
66630         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66631         work on AIX, IRIX, HP-UX, OSF/1.
66632         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66633         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66634         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66635         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66636         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66637         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66638
66639 2007-03-29  Bruno Haible  <bruno@clisp.org>
66640
66641         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66642
66643 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66644
66645         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66646         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66647
66648 2007-03-29  Eric Blake  <ebb9@byu.net>
66649
66650         * lib/acl-internal.h: Remove redundant include.
66651         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66652         Cygwin when a file is locked.
66653
66654 2007-03-29  Bruno Haible  <bruno@clisp.org>
66655
66656         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66657         file.
66658         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66659
66660 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66661
66662         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66663         try to remove a parent directory if the child couldn't be removed
66664         (except for the first rmdir, which could fail because the child
66665         doesn't exist).  Problem reported by Jeff Blaine in
66666         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66667
66668 2007-03-28  Bruno Haible  <bruno@clisp.org>
66669
66670         * lib/striconveh.c (utf8conv_carefully): New function.
66671         (mem_cd_iconveh_internal): Invoke it.
66672
66673 2007-03-28  Bruno Haible  <bruno@clisp.org>
66674
66675         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66676         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66677         input.
66678         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66679         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66680         unistr/u8-uctomb.
66681
66682 2007-03-28  Bruno Haible  <bruno@clisp.org>
66683
66684         * modules/unistr/u8-mbtoucr: New file.
66685         * lib/unistr/u8-mbtoucr.c: New file.
66686         * modules/unistr/u16-mbtoucr: New file.
66687         * lib/unistr/u16-mbtoucr.c: New file.
66688         * modules/unistr/u16-mbtoucr: New file.
66689         * lib/unistr/u16-mbtoucr.c: New file.
66690         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66691
66692 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66693             Bruno Haible  <bruno@clisp.org>
66694
66695         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66696         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66697         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66698
66699         * m4/stdio_h.m4: Add stubs for vasprintf too.
66700
66701         * modules/stdio: Support vasprintf in sed command.
66702
66703         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66704         vasprintf.h.  Add stdio module indicator.
66705
66706         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66707         vasprintf.h.
66708
66709         * lib/vasprintf.h: File removed.
66710
66711         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66712         * lib/vasprintf.c: Ditto.
66713         * lib/xvasprintf.c: Ditto.
66714         * tests/test-vasprintf-posix.c: Ditto.
66715         * tests/test-vasprintf.c: Ditto.
66716
66717 2007-03-27  Bruno Haible  <bruno@clisp.org>
66718
66719         Make vasnprintf multithread-safe.
66720         * lib/vasnprintf.c (decimal_point_char): New function.
66721         (VASNPRINTF): Use it.
66722         Suggested by Simon Josefsson.
66723
66724 2007-03-27  Eric Blake  <ebb9@byu.net>
66725
66726         Support sub-second birthtime on cygwin.
66727         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66728         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66729         (get_stat_birthtime): Also work with st_birthtim.
66730
66731 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66734         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66735         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66736         (get_stat_birthtime_ns): Simplify compile-time tests.
66737         (get_stat_birthtime): Change the API to look like
66738         get_stat_mtime etc., except return a negative tv_nsec on error.
66739         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66740         Don't check for "spare" fields.
66741         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66742         or for struct stat.st_birthtime, as these tests aren't used.
66743         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66744
66745 2007-03-27  Bruno Haible  <bruno@clisp.org>
66746
66747         * lib/stat-time.h: Include <sys/stat.h>.
66748
66749 2007-03-27  James Youngman  <jay@gnu.org>
66750
66751         * lib/stat-time.h (get_stat_birthtime): New function for
66752           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66753         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66754           and its variants.
66755         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66756         * modules/stat-time-test: New file.
66757         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66758
66759 2007-03-26  Bruno Haible  <bruno@clisp.org>
66760
66761         Better support of signalling NaNs.
66762         * lib/atanl.c: Include isnanl.h.
66763         (atanl): Perform test for NaN at the beginning of the function and
66764         through a call to isnanl.
66765         * lib/cosl.c: Include isnanl.h.
66766         (cosl): Perform test for NaN at the beginning of the function and
66767         through a call to isnanl.
66768         * lib/ldexpl.c: Include isnanl.h.
66769         (ldexpl): Perform test for NaN through a call to isnanl.
66770         * lib/logl.c: Include isnanl.h.
66771         (logl): Perform test for NaN at the beginning of the function and
66772         through a call to isnanl.
66773         * lib/sinl.c: Include isnanl.h.
66774         (sinl): Perform test for NaN at the beginning of the function and
66775         through a call to isnanl.
66776         * lib/sqrtl.c: Include isnanl.h.
66777         (sqrtl): Perform test for NaN at the beginning of the function and
66778         through a call to isnanl.
66779         * lib/tanl.c: Include isnanl.h.
66780         (tanl): Perform test for NaN at the beginning of the function and
66781         through a call to isnanl.
66782         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66783         * modules/mathl (Depends-on): Add isnanl.
66784
66785 2007-03-26  Eric Blake  <ebb9@byu.net>
66786
66787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66788         regression in logic sense of previous patch.
66789
66790 2007-03-26  Bruno Haible  <bruno@clisp.org>
66791
66792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66793         unportable shell command "if ! ...".
66794         Reported by Ralf Wildenhues.
66795
66796 2007-03-25  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66799         <sysexits.h> file, and only add EX_CONFIG.
66800         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66801         absolute file name and whether it is sufficient. Substitute also
66802         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66803         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66804         ABSOLUTE_SYSEXITS_H into sysexits.h.
66805
66806 2007-03-25  Bruno Haible  <bruno@clisp.org>
66807
66808         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66809         hints is NULL.
66810
66811 2007-03-25  Bruno Haible  <bruno@clisp.org>
66812
66813         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66814         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66815
66816 2007-03-25  Bruno Haible  <bruno@clisp.org>
66817
66818         * lib/vasnprintf.c: Include langinfo.h.
66819         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66820         multithread-safe.
66821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66824         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66827         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66830         Reported by Simon Josefsson.
66831
66832 2007-03-25  Bruno Haible  <bruno@clisp.org>
66833
66834         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66835         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66836         * modules/vasnprintf (Depends-on): Add stdint.
66837
66838 2007-03-25  Bruno Haible  <bruno@clisp.org>
66839
66840         * modules/fpieee: New file.
66841         * m4/fpieee.m4: New file.
66842         * modules/isnan-nolibm (Depends-on): Add fpieee.
66843         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66844         * modules/isnanl (Depends-on): Add fpieee.
66845
66846 2007-03-25  Bruno Haible  <bruno@clisp.org>
66847
66848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66849
66850 2007-03-25  Bruno Haible  <bruno@clisp.org>
66851
66852         Avoid test failures on IRIX 6.5.
66853         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66854         (main): Use it.
66855         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66856         macros.
66857         (main): Use them.
66858
66859 2007-03-25  Bruno Haible  <bruno@clisp.org>
66860
66861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66862         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66863         exists but doesn't work.
66864         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66865         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66867         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66868         math.h.
66869
66870 2007-03-25  Bruno Haible  <bruno@clisp.org>
66871
66872         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66873         returns inf. Needed on IRIX 6.5.
66874
66875 2007-03-25  Bruno Haible  <bruno@clisp.org>
66876
66877         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66878         (main): Use isnanl instead of x != x idiom.
66879         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66880
66881         * tests/test-frexp.c: Include isnan.h.
66882         (main): Use isnan instead of x != x idiom.
66883         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66884
66885 2007-03-25  Bruno Haible  <bruno@clisp.org>
66886
66887         * tests/test-frexp.c (NaN): New function/macro.
66888         (main): Use it instead of 0.0 / 0.0.
66889         * tests/test-isnan.c (NaN): New function/macro.
66890         (main): Use it instead of 0.0 / 0.0.
66891         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66892         (test_function): Use it instead of 0.0 / 0.0.
66893         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66894         (test_function): Use it instead of 0.0 / 0.0.
66895         * tests/test-snprintf-posix.h (NaN): New function/macro.
66896         (test_function): Use it instead of 0.0 / 0.0.
66897         * tests/test-sprintf-posix.h (NaN): New function/macro.
66898         (test_function): Use it instead of 0.0 / 0.0.
66899         * tests/test-fprintf-posix.h (NaN): New function/macro.
66900         (test_function): Use it instead of 0.0 / 0.0.
66901         * tests/test-printf-posix.h (NaN): New function/macro.
66902         (test_function): Use it instead of 0.0 / 0.0.
66903
66904         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66905
66906 2007-03-25  Bruno Haible  <bruno@clisp.org>
66907
66908         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66909
66910 2007-03-25  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/regexec.c (merge_state_with_log): Make static.
66913
66914 2007-03-25  Bruno Haible  <bruno@clisp.org>
66915
66916         * lib/trigl.c (kernel_rem_pio2): Make static.
66917
66918 2007-03-25  Bruno Haible  <bruno@clisp.org>
66919
66920         * lib/sincosl.c (sincosl_table): Make static.
66921
66922 2007-03-25  Bruno Haible  <bruno@clisp.org>
66923
66924         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66925         if the compiler does not support C99.
66926
66927 2007-03-25  Bruno Haible  <bruno@clisp.org>
66928
66929         * modules/time (Makefile.am): Ensure all rule action lines start with a
66930         tab.
66931
66932 2007-03-24  Bruno Haible  <bruno@clisp.org>
66933
66934         * modules/tsearch-tests: New file.
66935         * tests/test-tsearch.sh: New file.
66936         * tests/test-tsearch.c: New file, mostly copied from glibc.
66937
66938         * modules/search-tests: New file.
66939         * tests/test-search.c: New file.
66940
66941         * modules/search: New file.
66942         * lib/search_.h: New file, incorporating lib/tsearch.h.
66943         * m4/search_h.m4: New file.
66944         * lib/tsearch.h: Remove file.
66945         * lib/tsearch.c: Include search.h instead of tsearch.h.
66946         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66947         HAVE_TSEARCH.
66948         * modules/tsearch (Files): Remove lib/tsearch.h.
66949         (Depends-on): Add search.
66950         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66951         (Include): Change tsearch.h into search.h.
66952
66953 2007-03-24  Bruno Haible  <bruno@clisp.org>
66954
66955         * modules/fpucw: New file.
66956         * lib/fpucw.h: New file.
66957         * lib/frexp.c: Include fpucw.h.
66958         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66959         (FUNC): Use them.
66960         * lib/printf-frexp.c: Include fpucw.h.
66961         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66962         (FUNC): Use them.
66963         * lib/vasnprintf.c: Include fpucw.h.
66964         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66965         'long double' calculations.
66966         * tests/test-frexpl.c: Include fpucw.h.
66967         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66968         * tests/test-printf-frexpl.c: Include fpucw.h.
66969         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66970         * modules/frexpl (Depends-on): Add fpucw.
66971         * modules/printf-frexpl (Depends-on): Likewise.
66972         * modules/fprintf-posix (Depends-on): Likewise.
66973         * modules/snprintf-posix (Depends-on): Likewise.
66974         * modules/sprintf-posix (Depends-on): Likewise.
66975         * modules/vasnprintf-posix (Depends-on): Likewise.
66976         * modules/vasprintf-posix (Depends-on): Likewise.
66977         * modules/vfprintf-posix (Depends-on): Likewise.
66978         * modules/vsnprintf-posix (Depends-on): Likewise.
66979         * modules/vsprintf-posix (Depends-on): Likewise.
66980         * modules/frexpl-tests (Depends-on): Likewise.
66981         * modules/printf-frexpl-tests (Depends-on): Likewise.
66982
66983 2007-03-24  Bruno Haible  <bruno@clisp.org>
66984
66985         * lib/float+.h: New file.
66986         * lib/isnan.c: Include float+.h.
66987         (SIZE): New macro.
66988         (FUNC): Compare only SIZE bytes of the value.
66989         * lib/vasnprintf.c: Include float+.h.
66990         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66991         SIZEOF_LDBL or SIZEOF_DBL bytes.
66992         * modules/isnan-nolibm (Files): Add lib/float+.h.
66993         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66994         * modules/isnanl (Files): Add lib/float+.h.
66995         * modules/vasnprintf (Files): Add lib/float+.h.
66996
66997 2007-03-24  Bruno Haible  <bruno@clisp.org>
66998
66999         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67000         include isnanl-nolibm.h.
67001
67002 2007-03-24  Bruno Haible  <bruno@clisp.org>
67003
67004         * tests/test-read-file.c (main): Don't produce spurious output for
67005         expected situations. Make the test fail if it encountered unexpected
67006         results.
67007
67008 2007-03-24  Bruno Haible  <bruno@clisp.org>
67009
67010         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67011         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67012
67013 2007-03-24  Bruno Haible  <bruno@clisp.org>
67014
67015         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67016
67017 2007-03-24  Bruno Haible  <bruno@clisp.org>
67018
67019         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67020         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67021
67022         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67023         * modules/utf8-ucs4: Turn into a symbolic link to module
67024         unistr/u8-mbtouc.
67025
67026         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67027         utf8-ucs4-unsafe.
67028         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67029         unistr/u8-mbtouc-unsafe.
67030
67031         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67032         * modules/utf16-ucs4: Turn into a symbolic link to module
67033         unistr/u16-mbtouc.
67034
67035         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67036         utf16-ucs4-unsafe.
67037         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67038         unistr/u16-mbtouc-unsafe.
67039
67040         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67041         * modules/ucs4-utf8: Turn into a symbolic link to module
67042         unistr/u8-ubtomb.
67043
67044         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67045         * modules/ucs4-utf16: Turn into a symbolic link to module
67046         unistr/u16-ubtomb.
67047
67048 2007-03-24  Bruno Haible  <bruno@clisp.org>
67049
67050         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67051         Enable the function only if HAVE_INLINE.
67052         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67053         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67054         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67055         Enable the function only if HAVE_INLINE.
67056         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67057         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67058         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67059         Enable the function only if HAVE_INLINE.
67060         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67061         Enable the function only if HAVE_INLINE.
67062         * modules/utf8-ucs4: Update.
67063         * modules/utf8-ucs4-unsafe: Update.
67064         * modules/utf16-ucs4: Update.
67065         * modules/utf16-ucs4-unsafe: Update.
67066         * modules/ucs4-utf8: Update.
67067         * modules/ucs4-utf16: Update.
67068
67069 2007-03-24  Bruno Haible  <bruno@clisp.org>
67070
67071         * lib/utf8-ucs4.h: Remove file.
67072         * lib/utf8-ucs4-unsafe.h: Remove file.
67073         * lib/utf16-ucs4.h: Remove file.
67074         * lib/utf16-ucs4-unsafe.h: Remove file.
67075         * lib/ucs4-utf8.h: Remove file.
67076         * lib/ucs4-utf16.h: Remove file.
67077         * lib/unistr.h: Include their previous contents.
67078         * m4/utf-ucs4.m4: Remove file.
67079         * m4/ucs4-utf.m4: Remove file.
67080         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67081         (Depends-on): Add unistr/base.
67082         (configure.ac): Remove gl_UTF_UCS4.
67083         (Makefile.am): Update.
67084         (Include): Change to unistr.h.
67085         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67086         (Depends-on): Add unistr/base.
67087         (configure.ac): Remove gl_UTF_UCS4.
67088         (Makefile.am): Update.
67089         (Include): Change to unistr.h.
67090         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67091         (Depends-on): Add unistr/base.
67092         (configure.ac): Remove gl_UTF_UCS4.
67093         (Makefile.am): Update.
67094         (Include): Change to unistr.h.
67095         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67096         (Depends-on): Add unistr/base.
67097         (configure.ac): Remove gl_UTF_UCS4.
67098         (Makefile.am): Update.
67099         (Include): Change to unistr.h.
67100         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67101         (Depends-on): Add unistr/base.
67102         (configure.ac): Remove gl_UCS4_UTF.
67103         (Makefile.am): Update.
67104         (Include): Change to unistr.h.
67105         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67106         (Depends-on): Add unistr/base.
67107         (configure.ac): Remove gl_UCS4_UTF.
67108         (Makefile.am): Update.
67109         (Include): Change to unistr.h.
67110         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67111         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67112         utf8-ucs4-unsafe.h.
67113         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67114         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67115         utf16-ucs4-unsafe.h.
67116         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67117         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67118         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67119         * lib/unistr/u8-strchr.c: Likewise.
67120         * lib/unistr/u8-strrchr.c: Likewise.
67121         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67122         * lib/unistr/u16-strchr.c: Likewise.
67123         * lib/unistr/u16-strrchr.c: Likewise.
67124         * lib/striconveh.c: Update.
67125         * lib/linebreak.c: Update.
67126
67127 2007-03-24  Bruno Haible  <bruno@clisp.org>
67128
67129         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67130         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67131
67132 2007-03-22  Bruno Haible  <bruno@clisp.org>
67133
67134         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67135
67136 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * MODULES.html.sh (File system functions): New module write-any-file.
67139         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67140         * m4/write-any-file.m4: New files.
67141
67142 2007-03-23  Eric Blake  <ebb9@byu.net>
67143
67144         * gnulib-tool: Rearrange space-tab sequences, since some editors
67145         like to eat them.
67146
67147 2007-03-23  Eric Blake  <ebb9@byu.net>
67148
67149         * lib/version-etc.c (version_etc_va): Update license wording to
67150         be more concise.  Recommended by Richard Stallman.
67151
67152 2007-03-22  Bruno Haible  <bruno@clisp.org>
67153
67154         * lib/poll.c (MSG_PEEK): New fallback definition.
67155
67156 2007-03-22  Bruno Haible  <bruno@clisp.org>
67157
67158         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67159         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67160         (main): Update.
67161         Fixes a compilation error on BeOS.
67162
67163 2007-03-22  Bruno Haible  <bruno@clisp.org>
67164
67165         * modules/frexpl-tests: New file.
67166         * tests/test-frexpl.c: New file.
67167
67168         * modules/frexpl: New file.
67169         * m4/frexpl.m4: New file.
67170         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67171         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67173         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67174         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67175         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67176
67177 2007-03-22  Bruno Haible  <bruno@clisp.org>
67178
67179         * lib/frexpl.c: Share code with lib/frexp.c.
67180         * modules/mathl (Files): Add lib/frexp.c.
67181         (Depends-on): Add isnanl-nolibm.
67182
67183 2007-03-22  Bruno Haible  <bruno@clisp.org>
67184
67185         * modules/printf-frexp (Files): Add m4/frexp.m4.
67186         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67187         only if the found frexp function actually works.
67188
67189 2007-03-22  Bruno Haible  <bruno@clisp.org>
67190
67191         * lib/frexp.c: Remove older implementation that uses divisions.
67192
67193 2007-03-21  Bruno Haible  <bruno@clisp.org>
67194
67195         * modules/frexp-tests: New file.
67196         * tests/test-frexp.c: New file.
67197
67198         * modules/frexp: New file.
67199         * lib/frexp.c: New file.
67200         * m4/frexp.m4: New file.
67201         * lib/math_.h (frexp): New declaration.
67202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67203         REPLACE_FREXP.
67204         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67205
67206 2007-03-21  Bruno Haible  <bruno@clisp.org>
67207
67208         * modules/isnanl-tests: New file.
67209         * tests/test-isnanl.c: New file.
67210
67211         * modules/isnanl: New file.
67212         * lib/isnanl.h: New file.
67213         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67214         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67215         gl_FUNC_ISNANL_WORKS.
67216         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67217         New macros.
67218
67219 2007-03-21  Bruno Haible  <bruno@clisp.org>
67220
67221         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67222         lib/isnanl.h.
67223         (Include): Update.
67224         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67225         * lib/vasnprintf.c: Update.
67226         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67227         tests/test-isnanl.h, remove tests/test-isnanl.c.
67228         (Makefile.am): Update.
67229         * tests/test-isnanl-nolibm.c: New file.
67230         * tests/test-isnanl.h: New file.
67231         * tests/test-isnanl.c: Remove file.
67232
67233 2007-03-21  Jim Meyering  <jim@meyering.net>
67234
67235         When trying to open ".", treat ESTALE like EACCES.
67236         * lib/savewd.c (savewd_save): Resort to forking not just upon
67237         failure with EACCES, but also when errno is ESTALE.
67238
67239 2007-03-20  Bruno Haible  <bruno@clisp.org>
67240
67241         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67242         Needed on AIX 5.1. Reported by Matthew Woehlke.
67243
67244 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67245
67246         Suggestions by Bruno Haible:
67247         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67248         our own.
67249         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67250         * modules/acl (Depends-on): Add gettext.
67251
67252 2007-03-19  Bruno Haible  <bruno@clisp.org>
67253
67254         * modules/iconvme: Remove file.
67255         * lib/iconvme.h: Remove file.
67256         * lib/iconvme.c: Remove file.
67257         * m4/iconvme.m4: Remove file.
67258
67259 2007-03-19  Bruno Haible  <bruno@clisp.org>
67260
67261         * doc/relocatable-maint.texi: Break long shell script line.
67262         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67263
67264 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67265
67266         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67267         handle file_has_acl.
67268         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67269         * lib/acl.c: Move header inclusions and related macro defns into
67270         lib/acl-internal.h.
67271         (S_ISLNK): Remove defn, since that's now done for us.
67272         (file_has_acl): Move to lib/file-has-acl.c.
67273         Call acl_trivial if available.  This is the crucial part of the fix.
67274         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67275         shared within the library.  Rewrite a bit, partly to make it compatible
67276         with the GNU coding style.
67277         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67278         Remove unnecessary double-quotes.
67279         Don't test for acl_to_text; the build will catch that.
67280         Replace acl_entries if it doesn't exist and it is needed.
67281         Check for -lsec and acl_trivial (as used on Solaris 10).
67282         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67283         lib/file-has-acl.c.
67284         (Depends-on): Add sys_stat, for S_ISLNK.
67285
67286 2007-03-19  Ben Pfaff  <blp@gnu.org>
67287
67288         * doc/gnulib.texi: Fix typos.
67289         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67290
67291 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67292
67293         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67294         If size is zero here, buf must be zero.
67295
67296 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67297
67298         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67299         <bruno@clisp.org>.
67300
67301 2007-03-18  Bruno Haible  <bruno@clisp.org>
67302
67303         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67304         Suggested by Eric Blake.
67305
67306 2007-03-18  Ben Pfaff  <blp@gnu.org>
67307
67308         * doc/relocatable.texi: Recommend using as prefix a directory
67309         that does not exist and will never be created.  Based on
67310         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67311         and others.
67312
67313 2007-03-17  Bruno Haible  <bruno@clisp.org>
67314
67315         * lib/fchownat.c: Include lchown.h.
67316
67317 2007-03-17  Bruno Haible  <bruno@clisp.org>
67318
67319         Fix endless loop when the given allocated size was > INT_MAX.
67320         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67321         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67322         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67323         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67324         * lib/sprintf.c (sprintf): Likewise.
67325
67326 2007-03-17  Bruno Haible  <bruno@clisp.org>
67327
67328         * tests/test-argp-2.sh (func_compare): Output a context diff.
67329
67330 2007-03-17  Bruno Haible  <bruno@clisp.org>
67331
67332         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67333         locale's decimal-point character.
67334
67335 2007-03-17  Bruno Haible  <bruno@clisp.org>
67336
67337         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67338         before comparing it. Needed because on some platforms (e.g. x86) a
67339         'long double' occupies less bytes than sizeof (long double).
67340
67341 2007-03-17  Bruno Haible  <bruno@clisp.org>
67342
67343         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67344         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67345         * tests/test-getaddrinfo.c (simple): Likewise.
67346         * tests/test-read-file.c (main): Likewise.
67347
67348 2007-03-17  Bruno Haible  <bruno@clisp.org>
67349
67350         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67351
67352 2007-03-17  Bruno Haible  <bruno@clisp.org>
67353
67354         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67355         unused variable.
67356
67357 2007-03-17  Bruno Haible  <bruno@clisp.org>
67358
67359         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67360         * tests/test-c-strncasecmp.c: Likewise.
67361
67362 2007-03-17  Bruno Haible  <bruno@clisp.org>
67363
67364         * modules/stdlib (Depends-on): Add unistd.
67365         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67366         Needed for MacOS X 10.3.
67367
67368 2007-03-17  Bruno Haible  <bruno@clisp.org>
67369
67370         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67371
67372 2007-03-17  Bruno Haible  <bruno@clisp.org>
67373
67374         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67375
67376 2007-03-17  Bruno Haible  <bruno@clisp.org>
67377
67378         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67379         to reflect files copied from gnulib (with or without modifications).
67380         Suggested by Jim Meyering.
67381
67382 2007-03-17  Eric Blake  <ebb9@byu.net>
67383
67384         * NEWS: Document stdlib change from 2007-02-18.
67385
67386 2007-03-17  Jim Meyering  <jim@meyering.net>
67387
67388         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67389         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67390         someone uses a name containing shell meta-characters.
67391         Reported by Alfred M. Szmidt.
67392
67393         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67394
67395 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67396
67397         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67398         and copy gettext configuration files only if configure.ac contains
67399         a use of AM_GNU_GETTEXT_VERSION.
67400
67401 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67402
67403         * build-aux/bootstrap (gnulib_name): New variable.
67404         (gnulib_tool_options): Use it.
67405
67406 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67407
67408         * tests/test-des.c: Use new namespace.
67409
67410 2007-03-15  Bruno Haible  <bruno@clisp.org>
67411
67412         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67413         Reported by James Youngman <jay@gnu.org>.
67414
67415 2007-03-15  Bruno Haible  <bruno@clisp.org>
67416
67417         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67418         declared prototype. Needed with cc on OSF/1 5.1.
67419
67420 2007-03-15  Bruno Haible  <bruno@clisp.org>
67421
67422         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67423         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67424         (struct gl_list_implementation): Add dispose_fn argument to the
67425         'create_empty', 'create' methods.
67426         (struct gl_list_impl_base): Add field 'dispose_fn'.
67427         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67428         argument.
67429         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67430         dispose_fn argument.
67431         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67432         dispose_fn on the dropped values.
67433         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67434         dispose_fn argument.
67435         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67436         dropped values.
67437         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67438         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67439         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67440         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67441         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67442         argument.
67443         (gl_tree_list_free): Call dispose_fn on the dropped values.
67444         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67445         the dropped values.
67446         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67447         Add dispose_fn argument.
67448         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67449         Call dispose_fn on the dropped values.
67450         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67451         Add dispose_fn argument.
67452         (gl_sublist_create): Initialize the 'dispose_fn' field.
67453         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67454         * tests/test-array_list.c (main): Update.
67455         * tests/test-carray_list.c (main): Update.
67456         * tests/test-avltree_list.c (main): Update.
67457         * tests/test-rbtree_list.c (main): Update.
67458         * tests/test-avltreehash_list.c (main): Update.
67459         * tests/test-rbtreehash_list.c (main): Update.
67460         * tests/test-linked_list.c (main): Update.
67461         * tests/test-linkedhash_list.c (main): Update.
67462         * tests/test-array_oset.c (main): Update.
67463
67464 2007-03-15  Bruno Haible  <bruno@clisp.org>
67465
67466         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67467         (gl_oset_create_empty): Add dispose_fn argument.
67468         (struct gl_oset_implementation): Add dispose_fn argument to
67469         'create_empty' method.
67470         (struct gl_oset_impl_base): Add dispose_fn field.
67471         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67472         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67473         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67474         values.
67475         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67476         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67477         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67478         dropped value.
67479         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67480         dropped value.
67481         * tests/test-array_oset.c (main): Update.
67482         * tests/test-avltree_oset.c (main): Update.
67483         * tests/test-rbtree_oset.c (main): Update.
67484         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67485
67486 2007-03-13  Bruno Haible  <bruno@clisp.org>
67487
67488         * tests/test-stdbool.c (i): Update after last patch.
67489
67490 2007-03-12  Bruno Haible  <bruno@clisp.org>
67491
67492         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67493         the iswprint macro. Needed on Solaris 2.5.1.
67494
67495 2007-03-12  Bruno Haible  <bruno@clisp.org>
67496
67497         * tests/test-printf-frexp.c (main): Declare x as volatile.
67498
67499 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67500
67501         * doc/gnulib.texi (Build robot for gnulib): New section.
67502
67503 2007-03-12  Jim Meyering  <jim@meyering.net>
67504
67505         * build-aux/bootstrap: New file.
67506         * build-aux/bootstrap.conf: New file, from coreutils.
67507
67508 2007-03-11  Bruno Haible  <bruno@clisp.org>
67509
67510         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67511
67512 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67513
67514         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67515         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67516         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67517
67518 2007-03-11  Bruno Haible  <bruno@clisp.org>
67519
67520         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67521         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67522
67523 2007-03-11  Bruno Haible  <bruno@clisp.org>
67524
67525         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67526         formula. Needed for SunPRO C 5.0.
67527
67528 2007-03-11  Bruno Haible  <bruno@clisp.org>
67529
67530         * modules/long-options (Depends-on): Add getopt.
67531
67532 2007-03-11  Bruno Haible  <bruno@clisp.org>
67533
67534         * modules/modechange (Depends-on): Add stdbool.
67535
67536 2007-03-11  Bruno Haible  <bruno@clisp.org>
67537
67538         * modules/i-ring (Depends-on): Add stdbool.
67539
67540 2007-03-11  Bruno Haible  <bruno@clisp.org>
67541
67542         * modules/gc-des (Depends-on): Add stdbool.
67543
67544 2007-03-11  Bruno Haible  <bruno@clisp.org>
67545
67546         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67547
67548 2007-03-11  Bruno Haible  <bruno@clisp.org>
67549
67550         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67551
67552 2007-03-11  Bruno Haible  <bruno@clisp.org>
67553
67554         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67555
67556 2007-03-11  Bruno Haible  <bruno@clisp.org>
67557
67558         * lib/vasnprintf.c (sprintf): Undefine.
67559
67560 2007-03-11  Bruno Haible  <bruno@clisp.org>
67561
67562         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67563         initializers in SunPRO C and Compaq C compilers.
67564
67565 2007-03-11  Bruno Haible  <bruno@clisp.org>
67566
67567         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67568         decrementing code ANSI C compliant.
67569
67570 2007-03-11  Bruno Haible  <bruno@clisp.org>
67571
67572         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67573         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67574
67575 2007-03-11  Bruno Haible  <bruno@clisp.org>
67576
67577         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67578         <stdbool.h> substitute doesn't pass.
67579
67580 2007-03-11  Bruno Haible  <bruno@clisp.org>
67581
67582         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67583
67584 2007-03-11  Bruno Haible  <bruno@clisp.org>
67585
67586         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67587         script, for submission to autobuild.josefsson.org.
67588
67589 2007-03-10  Bruno Haible  <bruno@clisp.org>
67590
67591         * modules/canonicalize-lgpl-tests: New file.
67592         * tests/test-canonicalize-lgpl.sh: New file.
67593         * tests/test-canonicalize-lgpl.c: New file.
67594
67595         * modules/c-strcase-tests: New file.
67596         * tests/test-c-strcase.sh: New file.
67597         * tests/test-c-strcasecmp.c: New file.
67598         * tests/test-c-strncasecmp.c: New file.
67599
67600         * modules/atexit-tests: New file.
67601         * tests/test-atexit.sh: New file.
67602         * tests/test-atexit.c: New file.
67603
67604 2007-03-10  Bruno Haible  <bruno@clisp.org>
67605
67606         * tests/test-binary-io.sh: Use temporary filenames that are not so
67607         likely to clash with those of other tests (in a parallel make).
67608         * tests/test-binary-io.c: Likewise.
67609
67610 2007-03-10  Bruno Haible  <bruno@clisp.org>
67611
67612         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67613         fallback; use #error instead.
67614         Suggested by Simon Josefsson.
67615
67616 2007-03-10  Bruno Haible  <bruno@clisp.org>
67617
67618         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67619         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67620         first and the last.
67621
67622 2007-03-10  Bruno Haible  <bruno@clisp.org>
67623
67624         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67625
67626 2007-03-10  Bruno Haible  <bruno@clisp.org>
67627
67628         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67629         "make distcheck".
67630         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67631         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67632         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67633
67634 2007-03-10  Bruno Haible  <bruno@clisp.org>
67635
67636         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67637         variable.
67638         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67639         variable.
67640
67641 2007-03-09  Eric Blake  <ebb9@byu.net>
67642         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67643
67644         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67645         types are not being provided by gnulib.
67646         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67647         types are supported.
67648
67649 2007-03-10  Bruno Haible  <bruno@clisp.org>
67650
67651         * lib/stdio_.h (__attribute__): New macro.
67652         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67653         vsprintf): Specify __attribute__ __format__ for GCC.
67654         Suggested by Eric Blake.
67655
67656 2007-03-09  Bruno Haible  <bruno@clisp.org>
67657
67658         * modules/printf-posix-tests: New file.
67659         * tests/test-printf-posix.sh: New file.
67660         * tests/test-printf-posix.c: New file.
67661
67662         * modules/printf-posix: New file.
67663         * lib/printf.c: New file.
67664         * m4/printf-posix-rpl.m4: New file.
67665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67666         REPLACE_PRINTF.
67667         * lib/stdio_.h (printf): New declaration.
67668         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67669         ____strfmon____): New macros.
67670         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67671         REPLACE_PRINTF.
67672
67673 2007-03-09  Bruno Haible  <bruno@clisp.org>
67674
67675         * tests/test-vasnprintf-posix2.sh: New file.
67676         * tests/test-vasnprintf-posix2.c: New file.
67677         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67678         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67679         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67680
67681         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67682         a locale dependent decimal point, rather than always '.'.
67683
67684 2007-03-09  Eric Blake  <ebb9@byu.net>
67685
67686         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67687         spite of platforms like Tandem/NSK that define it to -1.
67688
67689 2007-03-08  Bruno Haible  <bruno@clisp.org>
67690
67691         * modules/vprintf-posix-tests: New file.
67692         * tests/test-vprintf-posix.sh: New file.
67693         * tests/test-vprintf-posix.c: New file.
67694         * tests/test-printf-posix.h: New file.
67695
67696         * modules/vprintf-posix: New file.
67697         * lib/vprintf.c: New file.
67698         * m4/vprintf-posix.m4: New file.
67699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67700         REPLACE_VPRINTF.
67701         * lib/stdio_.h (vprintf): New declaration.
67702         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67703         REPLACE_VPRINTF.
67704
67705 2007-03-08  Bruno Haible  <bruno@clisp.org>
67706
67707         * modules/fprintf-posix-tests: New file.
67708         * tests/test-fprintf-posix.sh: New file.
67709         * tests/test-fprintf-posix.c: New file.
67710
67711         * modules/fprintf-posix: New file.
67712         * lib/fprintf.c: New file.
67713         * m4/fprintf-posix.m4: New file.
67714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67715         REPLACE_FPRINTF.
67716         * lib/stdio_.h (fprintf): New declaration.
67717         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67718         REPLACE_FPRINTF.
67719
67720 2007-03-08  Bruno Haible  <bruno@clisp.org>
67721
67722         * modules/vfprintf-posix-tests: New file.
67723         * tests/test-vfprintf-posix.sh: New file.
67724         * tests/test-vfprintf-posix.c: New file.
67725         * tests/test-fprintf-posix.h: New file.
67726         * tests/test-fprintf-posix.out: New file.
67727
67728         * modules/vfprintf-posix: New file.
67729         * lib/vfprintf.c: New file.
67730         * m4/vfprintf-posix.m4: New file.
67731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67732         REPLACE_VFPRINTF.
67733         * lib/stdio_.h (vfprintf): New declaration.
67734         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67735         REPLACE_VFPRINTF.
67736
67737 2007-03-08  Bruno Haible  <bruno@clisp.org>
67738
67739         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67740
67741 2007-03-08  Bruno Haible  <bruno@clisp.org>
67742
67743         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67744         instead of 'expr' invocations.
67745         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67746         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67747         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67748         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67749         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67750         Suggested by Paul Eggert.
67751
67752 2007-03-08  Bruno Haible  <bruno@clisp.org>
67753
67754         * modules/fseterr-tests: New file.
67755         * tests/test-fseterr.c: New file.
67756
67757         * modules/fseterr: New file.
67758         * lib/fseterr.h: New file.
67759         * lib/fseterr.c: New file.
67760
67761 2007-03-08  Bruno Haible  <bruno@clisp.org>
67762
67763         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67764         * lib/getopt_.h: Likewise.
67765         * lib/mbswidth.h: Likewise.
67766         * lib/setenv.h: Likewise.
67767         * lib/vasnprintf.h: Likewise.
67768         * lib/vasprintf.h: Likewise.
67769         * lib/verror.h: Likewise.
67770         * lib/xsetenv.h: Likewise.
67771         * lib/xvasprintf.h: Likewise.
67772
67773 2007-03-08  Jim Meyering  <jim@meyering.net>
67774
67775         * users.txt: Add parted.
67776
67777         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67778
67779 2007-03-07  Bruno Haible  <bruno@clisp.org>
67780
67781         * m4/printf.m4: Make the shell script snippets copy&pastable.
67782
67783 2007-03-02  Bruno Haible  <bruno@clisp.org>
67784
67785         * lib/netinet_in_.h: New file.
67786         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67787         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67788         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67789         (Depends-on): Add absolute-header.
67790         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67791         into netinet/in.h.
67792
67793 2007-03-03  Bruno Haible  <bruno@clisp.org>
67794
67795         * lib/sys_select_.h: New file.
67796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67797         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67798         * modules/sys_select (Files): Add lib/sys_select_.h.
67799         (Depends-on): Add absolute-header.
67800         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67801         into sys/select.h.
67802
67803 2007-03-02  Bruno Haible  <bruno@clisp.org>
67804
67805         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67806         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67807         values.
67808         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67809         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67810         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67811         * modules/sys_socket (Depends-on): Add absolute-header.
67812         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67813         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67814         (Include): Remove requirement of inclusion of <sys/types.h>.
67815
67816 2007-03-02  Bruno Haible  <bruno@clisp.org>
67817
67818         * lib/byteswap_.h (bswap_32): Fix formula.
67819
67820 2007-03-06  Bruno Haible  <bruno@clisp.org>
67821
67822         * modules/sprintf-posix-tests: New file.
67823         * tests/test-sprintf-posix.c: New file.
67824
67825         * modules/sprintf-posix: New file.
67826         * lib/sprintf.c: New file.
67827         * m4/sprintf-posix.m4: New file.
67828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67829         REPLACE_SPRINTF.
67830         * lib/stdio_.h (sprintf): New declaration.
67831         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67832         REPLACE_SPRINTF.
67833
67834 2007-03-06  Bruno Haible  <bruno@clisp.org>
67835
67836         * modules/vsprintf-posix-tests: New file.
67837         * tests/test-vsprintf-posix.c: New file.
67838         * tests/test-sprintf-posix.h: New file.
67839
67840         * modules/vsprintf-posix: New file.
67841         * lib/vsprintf.c: New file.
67842         * m4/vsprintf-posix.m4: New file.
67843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67844         REPLACE_VSPRINTF.
67845         * lib/stdio_.h (vsprintf): New declaration.
67846         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67847         REPLACE_VSPRINTF.
67848
67849 2007-03-06  Bruno Haible  <bruno@clisp.org>
67850
67851         * modules/vsnprintf (Depend-on): Remove minmax.
67852
67853 2007-03-06  Bruno Haible  <bruno@clisp.org>
67854
67855         * modules/snprintf-posix-tests: New file.
67856         * tests/test-snprintf-posix.c: New file.
67857
67858         * modules/snprintf-posix: New file.
67859         * m4/snprintf-posix.m4: New file.
67860         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67861         gl_FUNC_SNPRINTF.
67862         (gl_FUNC_SNPRINTF): Invoke it.
67863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67864         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67865         is set.
67866         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67867
67868 2007-03-06  Bruno Haible  <bruno@clisp.org>
67869
67870         * modules/vsnprintf-posix-tests: New file.
67871         * tests/test-vsnprintf-posix.c: New file.
67872         * tests/test-snprintf-posix.h: New file.
67873
67874         * modules/vsnprintf-posix: New file.
67875         * m4/vsnprintf-posix.m4: New file.
67876         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67877         gl_FUNC_VSNPRINTF.
67878         (gl_FUNC_VSNPRINTF): Invoke it.
67879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67880         * lib/stdio_.h (vsnprintf): Define as a replacement if
67881         REPLACE_VSNPRINTF is set.
67882         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67883
67884 2007-03-06  Bruno Haible  <bruno@clisp.org>
67885
67886         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67887         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67888
67889 2007-03-06  Bruno Haible  <bruno@clisp.org>
67890
67891         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67892         (asinl): Declare also if HAVE_DECL_ASINL is set.
67893         (atanl): Declare also if HAVE_DECL_ATANL is set.
67894         (ceill): Declare also if HAVE_DECL_CEILL is set.
67895         (cosl): Declare also if HAVE_DECL_COSL is set.
67896         (expl): Declare also if HAVE_DECL_EXPL is set.
67897         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67898         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67899         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67900         (logl): Declare also if HAVE_DECL_LOGL is set.
67901         (sinl): Declare also if HAVE_DECL_SINL is set.
67902         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67903         (tanl): Declare also if HAVE_DECL_TANL is set.
67904         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67906         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67907         declaration of frexpl, ldexpl.
67908         * modules/printf-frexpl (Depends-on): Add math.
67909         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67910
67911 2007-03-05  Bruno Haible  <bruno@clisp.org>
67912
67913         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67914         frexpl and ldexpl are declared.
67915         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67916
67917 2007-03-05  Bruno Haible  <bruno@clisp.org>
67918
67919         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67920         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67921
67922 2007-03-05  Bruno Haible  <bruno@clisp.org>
67923
67924         * lib/stdio_.h: Include <stddef.h>.
67925
67926 2007-03-05  Bruno Haible  <bruno@clisp.org>
67927
67928         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67929
67930 2007-03-05  Bruno Haible  <bruno@clisp.org>
67931
67932         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67933         NetBSD 4, from Ralf Wildenhues.
67934
67935 2007-03-04  Bruno Haible  <bruno@clisp.org>
67936
67937         * lib/vasprintf.h: Update #if logic for the case when the functions
67938         exist but are overridden.
67939
67940 2007-03-04  Bruno Haible  <bruno@clisp.org>
67941
67942         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67943         implementations: glibc-2.4 and MacOS X 10.3.
67944         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67945         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67946         * tests/test-vasprintf-posix.c (test_function): Likewise.
67947
67948 2007-03-04  Bruno Haible  <bruno@clisp.org>
67949
67950         * modules/vasprintf-posix-tests: New file.
67951         * tests/test-vasprintf-posix.c: New file.
67952
67953         * modules/vasprintf-posix: New file.
67954         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67955         defined.
67956         * m4/vasprintf-posix.m4: New file.
67957         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67958         gl_FUNC_VASPRINTF.
67959         (gl_FUNC_VASPRINTF): Invoke it.
67960         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67961         here.
67962         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67963
67964 2007-03-04  Bruno Haible  <bruno@clisp.org>
67965
67966         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67967         REPLACE_GETTIMEOFDAY.
67968         * modules/sys_time (Makefile.am): Likewise.
67969         * m4/sys_time_h.m4: Likewise.
67970         * m4/gettimeofday.m4: Likewise.
67971
67972 2007-03-04  Bruno Haible  <bruno@clisp.org>
67973
67974         * modules/vasnprintf-posix-tests: New file.
67975         * tests/test-vasnprintf-posix.c: New file.
67976
67977         * modules/vasnprintf-posix: New file.
67978         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67979         printf-frexpl.h.
67980         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67981         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67982         REPLACE_VASNPRINTF is defined.
67983         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67984         gl_FUNC_VASNPRINTF.
67985         (gl_FUNC_VASNPRINTF): Invoke it.
67986         * m4/vasnprintf-posix.m4: New file.
67987         * m4/printf.m4: New file.
67988
67989 2007-03-04  Bruno Haible  <bruno@clisp.org>
67990
67991         Compile progreloc.c only if --enable-relocatable is specified.
67992         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67993         if --enable-relocatable was specified.
67994         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67995         lib_SOURCES.
67996
67997 2007-03-04  Jim Meyering  <jim@meyering.net>
67998
67999         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68000         Use it consistently, rather than enumerating errno constants.
68001
68002 2007-03-04  Bruno Haible  <bruno@clisp.org>
68003
68004         * modules/xvasprintf-tests: New file.
68005         * tests/test-xvasprintf.c: New file.
68006
68007         * modules/vasprintf-tests: New file.
68008         * tests/test-vasprintf.c: New file.
68009
68010         * modules/vasnprintf-tests: New file.
68011         * tests/test-vasnprintf.c: New file.
68012
68013         * modules/vsnprintf-tests: New file.
68014         * tests/test-vsnprintf.c: New file.
68015
68016         * modules/snprintf-tests: New file.
68017         * tests/test-snprintf.c: New file.
68018
68019 2007-03-04  Bruno Haible  <bruno@clisp.org>
68020
68021         Compile relocatable.c only if --enable-relocatable is specified.
68022         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68023         gl_RELOCATABLE_LIBRARY.
68024         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68025         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68026         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68027         gl_RELOCATABLE_LIBRARY.
68028         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68029         (Makefile.am): Remove lib_SOURCES.
68030         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68031         gl_RELOCATABLE_LIBRARY.
68032         (Makefile.am): Remove lib_SOURCES.
68033         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68034         always.
68035         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68036         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68037
68038 2007-03-04  Bruno Haible  <bruno@clisp.org>
68039
68040         * modules/argmatch-tests: New file.
68041         * tests/test-argmatch.c: New file.
68042
68043         * tests/test-allocsa.c (main): Halve the number of loop runs.
68044
68045         * modules/alloca-opt-tests: New file.
68046         * tests/test-alloca-opt.c: New file.
68047
68048 2007-03-04  Jim Meyering  <jim@meyering.net>
68049
68050         Work around difference between Linux ACLs and Solaris 10 ZFS.
68051         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68052         for EINVAL.
68053
68054 2007-03-03  Bruno Haible  <bruno@clisp.org>
68055
68056         * modules/relocatable-prog (Depends-on): Add back progreloc's
68057         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68058
68059 2007-03-03  Bruno Haible  <bruno@clisp.org>
68060
68061         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68062         * modules/relocatable-lib: New file.
68063
68064 2007-03-03  Bruno Haible  <bruno@clisp.org>
68065
68066         * modules/relocatable-prog: Renamed from modules/relocatable.
68067         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68068
68069 2007-03-03  Bruno Haible  <bruno@clisp.org>
68070
68071         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68072         m4/relocatable-lib.m4.
68073         (Depends-on): Remove 'relocatable'.
68074         (configure.ac): Add gl_RELOCATABLE_NOP.
68075
68076 2007-03-03  Bruno Haible  <bruno@clisp.org>
68077
68078         * modules/relocatable-prog-wrapper: New file.
68079         * modules/relocatable (Depends-on): Add it. Remove all other
68080         dependencies except progname.
68081         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68082
68083         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68084         (gl_FUNC_STRERROR): Nop.
68085         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68086
68087         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68088         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68089
68090         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68091         (gl_FUNC_READLINK): Update.
68092
68093         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68094
68095 2007-03-03  Bruno Haible  <bruno@clisp.org>
68096
68097         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68098         * modules/xreadlink (Depends-on): Add unistd.
68099         * modules/xreadlink-with-size (Depends-on): Likewise.
68100
68101 2007-03-03  Bruno Haible  <bruno@clisp.org>
68102
68103         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68104         extracted from gt_FUNC_SETENV.
68105         (gt_FUNC_SETENV): Remove macro.
68106         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68107         remove gt_FUNC_SETENV.
68108
68109 2007-03-03  Bruno Haible  <bruno@clisp.org>
68110
68111         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68112         ENABLE_RELOCATABLE here.
68113         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68114
68115 2007-03-03  Bruno Haible  <bruno@clisp.org>
68116
68117         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68118         * tests/test-rbtreehash_list.c: Include progname.h.
68119         (main): Call set_program_name.
68120
68121         * modules/rbtree-oset-tests (Depends-on): Add progname.
68122         * tests/test-rbtree_oset.c: Include progname.h.
68123         (main): Call set_program_name.
68124
68125         * modules/rbtree-list-tests (Depends-on): Add progname.
68126         * tests/test-rbtree_list.c: Include progname.h.
68127         (main): Call set_program_name.
68128
68129         * modules/linked-list-tests (Depends-on): Add progname.
68130         * tests/test-linked_list.c: Include progname.h.
68131         (main): Call set_program_name.
68132
68133 2007-03-03  Bruno Haible  <bruno@clisp.org>
68134
68135         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68136         All uses of __restrict changed to _Restrict_.
68137         * lib/glob_.h (__restrict): Remove macro.
68138
68139 2007-03-02  Bruno Haible  <bruno@clisp.org>
68140
68141         * modules/gettext (configure.ac): Require gettext infrastructure
68142         from version 0.16.1.
68143
68144 2007-03-02  Bruno Haible  <bruno@clisp.org>
68145
68146         * modules/linkedhash-list-tests (Depends-on): Add progname.
68147         * tests/test-linkedhash_list.c: Include progname.h.
68148         (main): Call set_program_name.
68149
68150         * modules/carray-list-tests (Depends-on): Add progname.
68151         * tests/test-carray_list.c: Include progname.h.
68152         (main): Call set_program_name.
68153
68154         * modules/avltreehash-list-tests (Depends-on): Add progname.
68155         * tests/test-avltreehash_list.c: Include progname.h.
68156         (main): Call set_program_name.
68157
68158         * modules/avltree-oset-tests (Depends-on): Add progname.
68159         * tests/test-avltree_oset.c: Include progname.h.
68160         (main): Call set_program_name.
68161
68162         * modules/avltree-list-tests (Depends-on): Add progname.
68163         * tests/test-avltree_list.c: Include progname.h.
68164         (main): Call set_program_name.
68165
68166         * modules/array-oset-tests (Depends-on): Add progname.
68167         * tests/test-array_oset.c: Include progname.h.
68168         (main): Call set_program_name.
68169
68170         * modules/array-list-tests (Depends-on): Add progname.
68171         * tests/test-array_list.c: Include progname.h.
68172         (main): Call set_program_name.
68173
68174         * modules/argp-tests (Depends-on): Add progname.
68175         * tests/test-argp.c: Include argp.h first. Include progname.h.
68176         (main): Call set_program_name.
68177
68178 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68179
68180         * doc/gnulib-tool.texi (Initial import): Reword description of
68181         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68182         limited effect even if defined after the first system include.
68183
68184 2007-03-01  Bruno Haible  <bruno@clisp.org>
68185
68186         * build-aux/config.libpath: Update to libtool-1.5.22.
68187         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68188
68189 2007-03-01  Bruno Haible  <bruno@clisp.org>
68190
68191         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68192         foo_CFLAGS.
68193         Reported by Ralf Wildenhues.
68194
68195 2007-03-01  Bruno Haible  <bruno@clisp.org>
68196
68197         * build-aux/install-reloc: Remove object files left over by some
68198         compilers.
68199         Reported by Ralf Wildenhues.
68200
68201 2007-03-01  Bruno Haible  <bruno@clisp.org>
68202
68203         * build-aux/install-reloc: Break long lines.
68204
68205 2007-03-01  Bruno Haible  <bruno@clisp.org>
68206
68207         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68208         Reported by Ralf Wildenhues.
68209
68210 2007-03-01  Bruno Haible  <bruno@clisp.org>
68211
68212         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68213         include ordering constraints.
68214
68215 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68216
68217         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68218         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68219         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68220         as another example.
68221         * lib/time_.h: Fix misspelling.
68222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68223         Require gl_HEADER_TIME_H_DEFAULTS.
68224         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68225         * m4/time_r.m4 (gl_TIME_R): Likewise.
68226         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68227
68228 2007-03-01  Bruno Haible  <bruno@clisp.org>
68229
68230         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68231         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68232
68233 2007-03-01  Jim Meyering  <jim@meyering.net>
68234
68235         * modules/xreadlink (Maintainer): Add my name.
68236         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68237
68238 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68239             Bruno Haible  <bruno@clisp.org>
68240
68241         * build-aux/install-reloc: Compile also c-ctype.c.
68242         * build-aux/relocatable.sh.in: New file.
68243         * doc/relocatable.texi: New file.
68244         * doc/relocatable-maint.texi: New file.
68245         * doc/gnulib.texi: Include relocatable-maint.texi.
68246         * lib/progreloc.c: Include unistd.h unconditionally.
68247         * lib/relocwrapper.c: Include unistd.h unconditionally.
68248         Include c-ctype.h.
68249         (add_dotbin): Use c_tolower.
68250         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68251         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68252         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68253         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68254         to m4/relocatable-lib.m4.
68255         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68256         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68257         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68258         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68259         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68260         * modules/relocatable: New file.
68261         * modules/relocatable-lib: New file.
68262         * modules/relocatable-script: New file.
68263
68264 2007-02-28  Bruno Haible  <bruno@clisp.org>
68265
68266         Import --enable-relocatable infrastructure.
68267         * build-aux/config.libpath: New file, from GNU gettext.
68268         * build-aux/install-reloc: New file, from GNU gettext.
68269         * build-aux/reloc-ldflags: New file, from GNU gettext.
68270         * lib/relocatable.h: New file, from GNU gettext.
68271         * lib/relocatable.c: New file, from GNU gettext.
68272         * lib/relocwrapper.c: New file, from GNU gettext.
68273         * m4/relocatable.m4: New file, from GNU gettext.
68274
68275 2007-02-28  Bruno Haible  <bruno@clisp.org>
68276
68277         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68278
68279         * modules/xreadlink: New file, from GNU gettext with modifications.
68280         * lib/xreadlink.c: New file, from GNU gettext.
68281         * lib/xreadlink.h: Add comments.
68282         (xreadlink): New declaration.
68283
68284         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68285         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68286         lib/xreadlink-with-size.c.
68287         (configure.ac): Remove gl_XREADLINK invocation.
68288         (Makefile.am): Augment lib_SOURCES.
68289         * m4/xreadlink.m4: Remove file.
68290         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68291         (xreadlink_with_size): Renamed from xreadink.
68292         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68293         * modules/canonicalize (Depends-on): Replace xreadlink with
68294         xreadlink-with-size.
68295         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68296
68297 2007-02-25  Jim Meyering  <jim@meyering.net>
68298
68299         * build-aux/announce-gen: When complaining about excess arguments,
68300         list them.
68301
68302 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68303
68304         * README: Document signed integer overflow situation more
68305         accurately.
68306
68307 2007-02-25  Bruno Haible  <bruno@clisp.org>
68308
68309         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68310         'a' or 'A' conversion.
68311
68312 2007-02-25  Bruno Haible  <bruno@clisp.org>
68313
68314         * modules/filename: Renamed from modules/pathname.
68315         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68316         lib/concatpath.c with lib/concat-filename.c.
68317         (Makefile.am): Update.
68318         (Include): Replace pathname.h with filename.h.
68319         * lib/filename.h: Renamed from lib/pathname.h.
68320         (concatenated_filename): Renamed from concatenated_pathname.
68321         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68322         (concatenated_filename): Renamed from concatenated_pathname.
68323         * lib/findprog.c: Include filename.h instead of pathname.h.
68324         (find_in_path): Update.
68325         * lib/javacomp.c: Include filename.h instead of pathname.h.
68326         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68327         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68328         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68329         is_oldgcj_14_13_usable, is_javac_usable): Update.
68330         * lib/javaexec.c: Include filename.h instead of pathname.h.
68331         (execute_java_class): Update.
68332         * modules/findprog: Update.
68333         * modules/javacomp: Update.
68334         * modules/javaexec: Update.
68335         * MODULES.html.sh (File system functions): Add 'filename', remove
68336         'pathname'.
68337
68338 2007-02-25  Bruno Haible  <bruno@clisp.org>
68339
68340         * modules/printf-frexpl-tests: New file.
68341         * tests/test-printf-frexpl.c: New file.
68342
68343         * modules/printf-frexpl: New file.
68344         * lib/printf-frexpl.h: New file.
68345         * lib/printf-frexpl.c: New file.
68346         * m4/printf-frexpl.m4: New file.
68347
68348 2007-02-25  Bruno Haible  <bruno@clisp.org>
68349
68350         * modules/printf-frexp-tests: New file.
68351         * tests/test-printf-frexp.c: New file.
68352
68353         * modules/printf-frexp: New file.
68354         * lib/printf-frexp.h: New file.
68355         * lib/printf-frexp.c: New file.
68356         * m4/printf-frexp.m4: New file.
68357
68358 2007-02-25  Bruno Haible  <bruno@clisp.org>
68359
68360         Assume automake >= 1.10 for the tests.
68361         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68362         * modules/arctwo-tests: Likewise.
68363         * modules/argp-tests: Likewise.
68364         * modules/avltree-list-tests: Likewise.
68365         * modules/avltree-oset-tests: Likewise.
68366         * modules/avltreehash-list-tests: Likewise.
68367         * modules/carray-list-tests: Likewise.
68368         * modules/crc-tests: Likewise.
68369         * modules/des-tests: Likewise.
68370         * modules/gc-arcfour-tests: Likewise.
68371         * modules/gc-arctwo-tests: Likewise.
68372         * modules/gc-des-tests: Likewise.
68373         * modules/gc-hmac-md5-tests: Likewise.
68374         * modules/gc-hmac-sha1-tests: Likewise.
68375         * modules/gc-md2-tests: Likewise.
68376         * modules/gc-md4-tests: Likewise.
68377         * modules/gc-md5-tests: Likewise.
68378         * modules/gc-pbkdf2-sha1-tests: Likewise.
68379         * modules/gc-rijndael-tests: Likewise.
68380         * modules/gc-sha1-tests: Likewise.
68381         * modules/gc-tests: Likewise.
68382         * modules/getaddrinfo-tests: Likewise.
68383         * modules/hmac-md5-tests: Likewise.
68384         * modules/hmac-sha1-tests: Likewise.
68385         * modules/linked-list-tests: Likewise.
68386         * modules/linkedhash-list-tests: Likewise.
68387         * modules/lock-tests: Likewise.
68388         * modules/md2-tests: Likewise.
68389         * modules/md4-tests: Likewise.
68390         * modules/md5-tests: Likewise.
68391         * modules/rbtree-list-tests: Likewise.
68392         * modules/rbtree-oset-tests: Likewise.
68393         * modules/rbtreehash-list-tests: Likewise.
68394         * modules/read-file-tests: Likewise.
68395         * modules/rijndael-tests: Likewise.
68396         * modules/stdint-tests: Likewise.
68397         * modules/tls-tests: Likewise.
68398
68399 2007-02-24  Bruno Haible  <bruno@clisp.org>
68400
68401         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68402         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68403         function; instead check whether isnan with a double argument links.
68404         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68405         function; instead check whether isnan with a 'long double' argument
68406         links.
68407         Reported by Eric Blake <ebb9@byu.net>.
68408
68409 2007-02-24  Bruno Haible  <bruno@clisp.org>
68410
68411         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68412         defined.
68413         * lib/isnanl.c: Remove all code. Just include isnan.c.
68414         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68415
68416 2007-02-25  Jim Meyering  <jim@meyering.net>
68417
68418         Avoid conflicting types for 'unsetenv' on FreeBSD.
68419         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68420         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68421         in stdlib.h.
68422
68423 2007-02-24  Bruno Haible  <bruno@clisp.org>
68424
68425         * modules/isnanl-nolibm-tests: New file.
68426         * tests/test-isnanl.c: New file.
68427
68428         * modules/isnanl-nolibm: New file.
68429         * lib/isnanl.h: New file.
68430         * lib/isnanl.c: New file.
68431         * m4/isnanl.m4: New file.
68432
68433 2007-02-24  Bruno Haible  <bruno@clisp.org>
68434
68435         * modules/isnan-nolibm-tests: New file.
68436         * tests/test-isnan.c: New file.
68437
68438         * modules/isnan-nolibm: New file.
68439         * lib/isnan.h: New file.
68440         * lib/isnan.c: New file.
68441         * m4/isnan.m4: New file.
68442
68443 2007-02-24  Bruno Haible  <bruno@clisp.org>
68444
68445         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68446         assume that an exponent fits in 20 bits.
68447
68448 2007-02-24  Jim Meyering  <jim@meyering.net>
68449
68450         * m4/regex.m4: Update the description of the configure-time option,
68451         --without-included-regex, to state accurately what the defaults are,
68452         and perhaps to give people an idea why using this option is risky.
68453
68454 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68455
68456         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68457         loops on small arguments.  This attempts to avoid the problem
68458         Bruno Haible reported for AIX 4.3.2 in
68459         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68460
68461 2007-02-23  Bruno Haible  <bruno@clisp.org>
68462
68463         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68464         Needed for help2man.
68465
68466 2007-02-23  Karl Berry  <karl@gnu.org>
68467
68468         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68469         exists, foo.h should be cvs-ignored, not committed.
68470
68471 2007-02-23  Eric Blake  <ebb9@byu.net>
68472
68473         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68474         * lib/stat-time.h (includes): Likewise.
68475         * lib/utimecmp.c (includes): Likewise.
68476         * lib/utimens.h (includes): Likewise.
68477         * lib/getdate.y (includes): Also include "timespec.h" for use
68478         internal to the module.
68479         * modules/utimens (Depends-on): Revert yesterday's patch.
68480         * modules/nanosleep (Depends-on): Add missing dependency.
68481
68482 2007-02-22  Bruno Haible  <bruno@clisp.org>
68483
68484         * lib/glob.c: Don't include getlogin_r.h.
68485
68486 2007-02-22  Jim Meyering  <jim@meyering.net>
68487
68488         * modules/utimens (Depends-on): Add timespec, required for
68489         utimens.h's inclusion of timespec.h.
68490
68491 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68492
68493         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68494         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68495         Schwab in
68496         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68497         I'll try to think of a better way to fix the Solaris problem.
68498
68499         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68500         like glibc; on Solaris 10, it fails with errno == EINVAL.
68501         POSIX says the behavior is unspecified if the first argument is NULL,
68502         so play it safe and never pass NULL to the system getcwd.
68503
68504 2007-02-21  Jim Meyering  <jim@meyering.net>
68505
68506         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68507         of gettimeofday.  It would conflict with the one now always
68508         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68509         an IRIX 6.5 build failure.
68510
68511 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68512
68513         Minor fixups to port to Solaris 10 with Sun C 5.8.
68514         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68515         * modules/getcwd (Depends-on): Add dirfd.
68516         * lib/putenv.c (putenv): #undef it.
68517         (rpl_putenv): New decl.
68518         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68519
68520 2007-02-20  Bruno Haible  <bruno@clisp.org>
68521
68522         * modules/stdio-tests: New file.
68523         * tests/test-stdio.c: New file.
68524
68525         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68526         (Depends-on): Add stdio.
68527         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68528         (Include): Use <stdio.h> instead of vsnprintf.h.
68529         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68530         HAVE_DECL_VSNPRINTF.
68531         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68532
68533         * modules/snprintf (Files): Remove lib/snprintf.h.
68534         (Depends-on): Add stdio.
68535         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68536         (Include): Use <stdio.h> instead of snprintf.h.
68537         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68538         HAVE_DECL_SNPRINTF.
68539         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68540         * lib/getaddrinfo.c: Likewise.
68541
68542         * modules/stdio: New file.
68543         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68544         * lib/snprintf.h: Remove file.
68545         * lib/vsnprintf.h: Remove file.
68546         * lib/.cppi-disable: Remove snprintf.h.
68547         * m4/stdio_h.m4: New file.
68548         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68549
68550 2007-02-20  Jim Meyering  <jim@meyering.net>
68551
68552         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68553         used by e.g., mingw.  From Bruno Haible.
68554
68555 2007-02-19  Bruno Haible  <bruno@clisp.org>
68556
68557         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68558         warnings.
68559         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68560
68561 2007-02-19  Bruno Haible  <bruno@clisp.org>
68562
68563         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68564         from mingw users.
68565
68566 2007-02-19  Bruno Haible  <bruno@clisp.org>
68567
68568         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68569         warnings.
68570         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68571
68572 2007-02-19  Jim Meyering  <jim@meyering.net>
68573
68574         Don't use FD after a successful "fdopendir (fd)".
68575         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68576         Reset it by calling dirfd on the just-obtained DIR*.
68577
68578         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68579         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68580
68581 2007-02-18  Bruno Haible  <bruno@clisp.org>
68582
68583         * lib/readlink.c: Include <unistd.h>.
68584         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68585         HAVE_READLINK.
68586         * modules/readlink (Depends-on): Add unistd.
68587         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68588         (Include): Add <unistd.h>.
68589
68590         * lib/getlogin_r.h: Remove file.
68591         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68592         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68593         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68594         HAVE_DECL_GETLOGIN_R.
68595         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68596         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68597         (Include): Use <unistd.h> instead of getlogin_r.h.
68598
68599         * lib/getcwd.h: Remove file.
68600         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68601         * lib/xgetcwd.c: Likewise.
68602         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68603         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68604         * modules/getcwd (Files): Remove lib/getcwd.h.
68605         (Depends-on): Add unistd.
68606         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68607         (Include): Use <unistd.h> instad of getcwd.h.
68608
68609         * lib/ftruncate.c: Include <unistd.h> first.
68610         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68611         Set HAVE_FTRUNCATE.
68612         * modules/ftruncate (Depends-on): Add unistd.
68613         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68614
68615         * lib/fchdir.c: Include <unistd.h> first.
68616         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68618         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68619         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68620         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68621
68622         * lib/dup2.c: Include <unistd.h> first.
68623         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68624         HAVE_DUP2.
68625         * modules/dup2 (Depends-on): Add unistd.
68626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68627
68628         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68629         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68630         REPLACE_CHOWN. Don't define chown as a macro here.
68631         * modules/chown (Depends-on): Add unistd.
68632         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68633
68634         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68635         Add definition for GL_LINK_WARNING.
68636         (chown, dup2): New declarations.
68637         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68638         link warning.
68639         (ftruncate): New declaration.
68640         (getcwd): New declaration, taken from old getcwd.h.
68641         (getlogin_r): New declaration, taken from old getlogin_r.h.
68642         (readlink): New declaration.
68643         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68644         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68645         (gl_PREREQ_UNISTD): Remove macro.
68646         (gl_UNISTD_MODULE_INDICATOR): New macro.
68647         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68648         many new variables. Don't set UNISTD_H.
68649         * modules/unistd (Description): Change.
68650         (Depends-on): Add link-warning.
68651         (configure.ac): Update.
68652         (Makefile.am): Create unistd.h always. Substitute many new variables
68653         into it.
68654
68655 2007-02-18  Bruno Haible  <bruno@clisp.org>
68656
68657         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68658         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68659         HAVE_GETSUBOPT.
68660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68661         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68662         * lib/getsubopt.h: Remove file.
68663         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68664         (Depends-on): Add stdlib.
68665         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68666         (Includes): Use <stdlib.h> instead of getsubopt.h.
68667         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68668         Set HAVE_GETSUBOPT.
68669         * lib/getsubopt.c: Don't include getsubopt.h.
68670
68671 2007-02-18  Bruno Haible  <bruno@clisp.org>
68672
68673         * modules/fchdir (Depends-on): Add dup2.
68674
68675 2007-02-18  Bruno Haible  <bruno@clisp.org>
68676
68677         * lib/stdlib_.h: Handle glibc's special invocation convention
68678         specially.
68679
68680 2007-02-18  Bruno Haible  <bruno@clisp.org>
68681
68682         * modules/stdlib-tests: New file.
68683         * tests/test-stdlib.c: New file.
68684
68685         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68686         (Depends-on): Add stdlib.
68687         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68688         (Includes): Use <stdlib.h> instead of mkstemp.h.
68689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68690         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68691         * lib/mkstemp.c: Don't include mkstemp.h.
68692         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68693         * lib/stdlib--.h: Don't include mkstemp.h.
68694
68695         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68696         (Depends-on): Add stdlib.
68697         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68698         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68699         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68700         HAVE_MKDTEMP.
68701         * lib/mkdtemp.c: Don't include mkdtemp.h.
68702         * lib/clean-temp.c: Don't include mkdtemp.h.
68703
68704         * modules/exit (Files): Remove lib/exit.h.
68705         (Depends-on): Add stdlib.
68706         (Makefile.am): Remove lib_SOURCES.
68707         (Include): Use <stdlib.h> instead of exit.h.
68708         * lib/argmatch.c: Don't include exit.h.
68709         * lib/execute.c: Likewise.
68710         * lib/pagealign_alloc.c: Likewise.
68711         * lib/pipe.c: Likewise.
68712         * lib/wait-process.c: Likewise.
68713         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68714         * lib/exitfail.c: Likewise.
68715         * lib/savewd.c: Likewise.
68716         * lib/xsetenv.c: Likewise.
68717
68718         * modules/stdlib: New file.
68719         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68720         and extra comments about mkstemp().
68721         * lib/exit.h: Remove file.
68722         * lib/mkdtemp.h: Remove file.
68723         * lib/mkstemp.h: Remove file.
68724         * m4/stdlib_h.m4: New file.
68725         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68726
68727 2007-02-18  Bruno Haible  <bruno@clisp.org>
68728
68729         * modules/math-tests: New file.
68730         * tests/test-math.c: New file.
68731
68732         * modules/math: New file.
68733         * modules/mathl (Files): Remove lib/mathl.h.
68734         (Depends-on): Add math.
68735         (Makefile.am): Don't mention mathl.h.
68736         (Include): Use <math.h> instead of mathl.h.
68737         * lib/math_.h: New file.
68738         * lib/mathl.h: Remove file.
68739         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68740         mathl.h.
68741         * lib/asinl.c: Likewise.
68742         * lib/atanl.c: Likewise.
68743         * lib/ceill.c: Likewise.
68744         * lib/cosl.c: Likewise.
68745         * lib/expl.c: Likewise.
68746         * lib/floorl.c: Likewise.
68747         * lib/frexpl.c: Likewise.
68748         * lib/ldexpl.c: Likewise.
68749         * lib/logl.c: Likewise.
68750         * lib/sincosl.c: Likewise.
68751         * lib/sinl.c: Likewise.
68752         * lib/sqrtl.c: Likewise.
68753         * lib/tanl.c: Likewise.
68754         * lib/trigl.c: Likewise.
68755         * m4/math_h.m4: New file.
68756         * MODULES.html.sh (Mathematics): Add math.
68757
68758 2007-02-17  Bruno Haible  <bruno@clisp.org>
68759
68760         * modules/wctype-tests: New file.
68761         * tests/test-wctype.c: New file.
68762
68763         * modules/wchar-tests: New file.
68764         * tests/test-wchar.c: New file.
68765
68766         * modules/unistd-tests: New file.
68767         * tests/test-unistd.c: New file.
68768
68769         * modules/time-tests: New file.
68770         * tests/test-time.c: New file.
68771
68772         * modules/sysexits-tests: New file.
68773         * tests/test-sysexits.c: New file.
68774
68775         * modules/sys_time-tests: New file.
68776         * tests/test-sys_time.c: New file.
68777
68778         * modules/sys_stat-tests: New file.
68779         * tests/test-sys_stat.c: New file.
68780
68781         * modules/sys_socket-tests: New file.
68782         * tests/test-sys_socket.c: New file.
68783
68784         * modules/sys_select-tests: New file.
68785         * tests/test-sys_select.c: New file.
68786
68787         * modules/string-tests: New file.
68788         * tests/test-string.c: New file.
68789
68790         * modules/stdbool-tests: New file.
68791         * tests/test-stdbool.c: New file.
68792
68793         * modules/netinet_in-tests: New file.
68794         * tests/test-netinet_in.c: New file.
68795
68796         * modules/inttypes-tests: New file.
68797         * tests/test-inttypes.c: New file.
68798
68799         * modules/fcntl-tests: New file.
68800         * tests/test-fcntl.c: New file.
68801
68802         * modules/byteswap-tests: New file.
68803         * tests/test-byteswap.c: New file.
68804
68805         * modules/arpa_inet-tests: New file.
68806         * tests/test-arpa_inet.c: New file.
68807
68808 2007-02-17  Bruno Haible  <bruno@clisp.org>
68809
68810         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68811         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68812         if the corresponding module is not enabled. Emit link warnings if
68813         the function is used nevertheless.
68814         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68815         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68816         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68817         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68818         * modules/inttypes (Depends-on): Add link-warning.
68819         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68820         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68821         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68822         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68823         * modules/imaxdiv (configure.ac): Likewise.
68824         * modules/strtoimax (configure.ac): Likewise.
68825         * modules/strtoumax (configure.ac): Likewise.
68826
68827 2007-02-17  Bruno Haible  <bruno@clisp.org>
68828
68829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68830         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68831         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68832         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68833
68834 2007-02-17  Bruno Haible  <bruno@clisp.org>
68835
68836         * modules/link-warning: New file.
68837         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68838         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68839         * modules/string (Depends-on): Add link-warning.
68840         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68841         string.h.
68842         * MODULES.html.sh (Support for building libraries and executables): Add
68843         link-warning.
68844
68845 2007-02-17  Bruno Haible  <bruno@clisp.org>
68846
68847         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68848         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68849         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68850         long lines.
68851
68852 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68853             Bruno Haible  <bruno@clisp.org>
68854
68855         * modules/tmpfile: New file.
68856         * lib/tmpfile.c: New file.
68857         * m4/tmpfile.m4: New file.
68858         * MODULES.html.sh (func_all_modules): New section "Input/output".
68859
68860 2007-02-15  Bruno Haible  <bruno@clisp.org>
68861
68862         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68863         (supports_delete_on_close): New function.
68864         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68865
68866 2007-02-14  Bruno Haible  <bruno@clisp.org>
68867
68868         * modules/mbspcasecmp-tests: New file.
68869         * tests/test-mbspcasecmp.sh: New file.
68870         * tests/test-mbspcasecmp.c: New file.
68871
68872         New module mbspcasecmp.
68873         * modules/mbspcasecmp: New file.
68874         * lib/mbspcasecmp.c: New file.
68875         * lib/string_.h (strncasecmp): Change warning message.
68876         (mbspcasecmp): New declaration.
68877         * m4/mbspcasecmp.m4: New file.
68878         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68879         GNULIB_MBSPCASECMP.
68880         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68881         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68882
68883 2007-02-14  Bruno Haible  <bruno@clisp.org>
68884
68885         * modules/mbsncasecmp-tests: New file.
68886         * tests/test-mbsncasecmp.sh: New file.
68887         * tests/test-mbsncasecmp.c: New file.
68888
68889         New module mbsncasecmp.
68890         * modules/mbsncasecmp: New file.
68891         * lib/mbsncasecmp.c: New file.
68892         * lib/string_.h (mbsncasecmp): New declaration.
68893         * m4/mbsncasecmp.m4: New file.
68894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68895         GNULIB_MBSNCASECMP.
68896         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68897         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68898
68899 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68900
68901         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68902         Verify that it doesn't overlap with our flags.
68903         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68904         do not have the desired effect in multibyte locales; instead, use
68905         mbscasecmp.
68906         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68907         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68908         we don't require GNU fnmatch ourselves (if our users require it, they
68909         should do so explicitly).
68910
68911         Fix regex code so it doesn't rely on strcasecmp.
68912         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68913         Otherwise, include gnulib's langinfo.h.
68914         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68915         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68916         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68917         * modules/regex (FILES): Remove m4/codeset.m4.
68918         (Depends-on): Add localcharset.  Remove strcase.
68919
68920 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68921
68922         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68923         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68924
68925 2007-02-13  Bruno Haible  <bruno@clisp.org>
68926
68927         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68928         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68929
68930 2007-02-12  Bruno Haible  <bruno@clisp.org>
68931
68932         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68933         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68934         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68935         time warning rather than a link error.
68936
68937 2007-02-12  Bruno Haible  <bruno@clisp.org>
68938
68939         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68940         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68941         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68942
68943 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68944
68945         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68946         args, not 2.
68947
68948 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68949
68950         New module 'time', so that apps can include <time.h> as per
68951         POSIX and GNU instead of separate include files like time_r.h
68952         and timegm.h.  This implementation tries out a simpler approach
68953         for replacing decls in standard include files (as compared to
68954         the string module), somewhat as an experiment.
68955
68956         * config/srclist.txt: Comment out mktime.c for now.
68957         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68958         since it doesn't apply any more.  Use generic wording instead.
68959         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68960         'time'.
68961         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68962         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68963         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68964         Don't include <sys/types.h>; no longer needed since we assume C89.
68965         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68966         * lib/strftime.c: Likewise.
68967         * lib/time_r.c: Likewise.
68968         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68969         * lib/nanosleep.c: Include <time.h> first, to check interface.
68970         * lib/strptime.c: Likewise.
68971         * lib/time_r.c: Likewise.
68972         * lib/timegm.c: Likewise.
68973         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68974         needed.
68975         * lib/timegm.c: Don't include timegm.h; no longer needed.
68976         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68977         time.h now handles any problems in that area.
68978         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68979         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68980         that time.h defines struct timespec.
68981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68982         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68983         handles that.
68984         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68985         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68986         needed.  Set REPLACE_LOCALTIME.
68987         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68988         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68989         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68990         nanosleep; time_h.m4 now does that.  Don't require
68991         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68992         module handles this now.
68993         * modules/getdate (Depends-on): Remove timespec.  Add time.
68994         * modules/nanosleep (Depends-on): Likewise.
68995         * modules/stat-time (Depends-on): Likewise.
68996         * modules/nanosleep (Include): Include time.h, not timespec.h.
68997         * modules/strptime (Files): Remove lib/strptime.h.
68998         (Depends-on): Add extensions, time.
68999         (Include): Include time.h, not strptime.h.
69000         * modules/time_r (Files): Remove lib/time_r.h.
69001         (Depends-on): Add time.
69002         (Include): Include time.h, not time_r.h.
69003         * modules/timegm: Likewise.
69004         * modules/timespec (Description): Now does timespec-related decls
69005         of our own, instead of struct timespec itself.
69006         (Depends-on): Add time; remove extensions.
69007         (Maintainer): Add self.
69008         * modules/utimecmp (Depends-on): Add time; remove timespec.
69009         * modules/utimens (Depends-on): Likewise.
69010         * modules/xnanosleep (Depends-on): Likewise.
69011
69012 2007-02-11  Bruno Haible  <bruno@clisp.org>
69013
69014         * lib/c-strstr.c: Include allocsa.h.
69015         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69016         * lib/c-strcasestr.c: Include allocsa.h.
69017         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69018         * lib/strcasestr.c: Include allocsa.h.
69019         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69020         * lib/mbsstr.c: Include allocsa.h.
69021         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69022         allocsa/freesa instead of malloc/free.
69023         * lib/mbscasestr.c: Include allocsa.h.
69024         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69025         allocsa/freesa instead of malloc/free.
69026         * modules/c-strstr (Depends-on): Add allocsa.
69027         * modules/c-strcasestr (Depends-on): Likewise.
69028         * modules/strcasestr (Depends-on): Likewise.
69029         * modules/mbsstr (Depends-on): Likewise.
69030         * modules/mbscasestr (Depends-on): Likewise.
69031
69032 2007-02-11  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69035
69036         * modules/mbsspn-tests: New file.
69037         * tests/test-mbsspn.sh: New file.
69038         * tests/test-mbsspn.c: New file.
69039
69040 2007-02-11  Bruno Haible  <bruno@clisp.org>
69041
69042         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69043
69044         * modules/mbspbrk-tests: New file.
69045         * tests/test-mbspbrk.sh: New file.
69046         * tests/test-mbspbrk.c: New file.
69047
69048 2007-02-11  Bruno Haible  <bruno@clisp.org>
69049
69050         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69051         unneeded cast.
69052
69053         * modules/mbscspn-tests: New file.
69054         * tests/test-mbscspn.sh: New file.
69055         * tests/test-mbscspn.c: New file.
69056
69057 2007-02-11  Bruno Haible  <bruno@clisp.org>
69058
69059         * modules/mbscasecmp-tests: New file.
69060         * tests/test-mbscasecmp.sh: New file.
69061         * tests/test-mbscasecmp.c: New file.
69062
69063 2007-02-11  Bruno Haible  <bruno@clisp.org>
69064
69065         Ensure O(n) worst-case complexity of mbscasestr.
69066         * lib/mbscasestr.c: Include stdbool.h.
69067         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69068         functions.
69069         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69070         the bookkeeping indicates that it's worth it.
69071         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69072
69073         * modules/mbscasestr-tests: New file.
69074         * tests/test-mbscasestr1.c: New file.
69075         * tests/test-mbscasestr2.sh: New file.
69076         * tests/test-mbscasestr2.c: New file.
69077         * tests/test-mbscasestr3.sh: New file.
69078         * tests/test-mbscasestr3.c: New file.
69079         * tests/test-mbscasestr4.sh: New file.
69080         * tests/test-mbscasestr4.c: New file.
69081         * m4/locale-tr.m4: New file.
69082
69083 2007-02-11  Bruno Haible  <bruno@clisp.org>
69084
69085         Ensure O(n) worst-case complexity of mbsstr.
69086         * lib/mbsstr.c: Include stdbool.h.
69087         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69088         functions.
69089         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69090         bookkeeping indicates that it's worth it.
69091         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69092
69093         * modules/mbsstr-tests: New file.
69094         * tests/test-mbsstr1.c: New file.
69095         * tests/test-mbsstr2.sh: New file.
69096         * tests/test-mbsstr2.c: New file.
69097         * tests/test-mbsstr3.sh: New file.
69098         * tests/test-mbsstr3.c: New file.
69099         * m4/locale-fr.m4: New file.
69100
69101 2007-02-11  Bruno Haible  <bruno@clisp.org>
69102
69103         * lib/mbsrchr.c (mbsrchr): Fix bug.
69104
69105         * modules/mbsrchr-tests: New file.
69106         * tests/test-mbsrchr.sh: New file.
69107         * tests/test-mbsrchr.c: New file.
69108
69109 2007-02-11  Bruno Haible  <bruno@clisp.org>
69110
69111         * lib/mbschr.c (mbschr): Fix bug.
69112
69113         * modules/mbschr-tests: New file.
69114         * tests/test-mbschr.sh: New file.
69115         * tests/test-mbschr.c: New file.
69116         * m4/locale-zh.m4: New file.
69117
69118 2007-02-11  Bruno Haible  <bruno@clisp.org>
69119
69120         Support for copying multibyte string iterators.
69121         * lib/mbiter.h: Include <string.h>.
69122         (mbiter_multi_copy): New function.
69123         (mbi_copy): New macro.
69124         * lib/mbuiter.h: Include <string.h>.
69125         (mbuiter_multi_copy): New function.
69126         (mbui_copy): New macro.
69127
69128 2007-02-11  Bruno Haible  <bruno@clisp.org>
69129
69130         New module mbslen.
69131         * modules/mbslen: New file.
69132         * lib/mbslen.c: New file.
69133         * lib/string_.h (mbslen): New declaration.
69134         * m4/mbslen.m4: New file.
69135         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69136         GNULIB_MBSLEN.
69137         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69138         * MODULES.html.sh (Internationalization functions): Add mbslen.
69139
69140 2007-02-11  Bruno Haible  <bruno@clisp.org>
69141
69142         Ensure O(n) worst-case complexity of strcasestr substitute.
69143         * lib/strcasestr.c: Include stdbool.h.
69144         (knuth_morris_pratt): New function.
69145         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69146         bookkeeping indicates that it's worth it.
69147         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69148
69149         * modules/strcasestr-tests: New file.
69150         * tests/test-strcasestr.c: New file.
69151
69152 2007-02-11  Bruno Haible  <bruno@clisp.org>
69153
69154         Ensure O(n) worst-case complexity of c_strcasestr.
69155         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69156         (knuth_morris_pratt): New function.
69157         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69158         the bookkeeping indicates that it's worth it.
69159         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69160
69161         * modules/c-strcasestr-tests: New file.
69162         * tests/test-c-strcasestr.c: New file.
69163
69164 2007-02-11  Bruno Haible  <bruno@clisp.org>
69165
69166         Ensure O(n) worst-case complexity of c_strstr.
69167         * lib/c-strstr.c: Include stdbool.h, string.h.
69168         (knuth_morris_pratt): New function.
69169         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69170         bookkeeping indicates that it's worth it.
69171         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69172
69173         * lib/c-strstr.c: Complete rewrite for maintainability.
69174
69175         * modules/c-strstr-tests: New file.
69176         * tests/test-c-strstr.c: New file.
69177
69178 2007-02-11  Bruno Haible  <bruno@clisp.org>
69179
69180         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69181         5.2.1 and earlier, whereby \055 was treated just like the range
69182         delimiter '-'.
69183         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69184
69185 2007-02-08  Bruno Haible  <bruno@clisp.org>
69186
69187         * modules/regex (Depends-on): Add stdbool.
69188         Reported by Dalibor Topic <robilad@kaffe.org>.
69189
69190 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69191
69192         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69193         Prefer returning from main to exiting from it.
69194         Remove unnecessary parens after sizeof.
69195
69196 2007-02-05  Bruno Haible  <bruno@clisp.org>
69197
69198         New module mbssep.
69199         * modules/mbssep: New file.
69200         * lib/mbssep.c: New file.
69201         * lib/string_.h (strsep): Add a conditional link warning.
69202         (mbssep): New declaration.
69203         * m4/mbssep.m4: New file.
69204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69205         GNULIB_MBSSEP.
69206         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69207         * MODULES.html.sh (Internationalization functions): Add mbssep.
69208
69209 2007-02-05  Bruno Haible  <bruno@clisp.org>
69210
69211         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69212         Optimize search in case of 1 delimiter.
69213
69214 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69215
69216         * lib/acl.h: Include sys/types.h before sys/acl.h.
69217
69218 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69219
69220         Merge upstream fix for glibc bugzilla #3957:
69221
69222         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69223
69224         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69225         bit for RE_HAT_LISTS_NOT_NEWLINE.
69226         (build_charclass_op): Remove bogus comment.
69227
69228 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69229
69230         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69231
69232 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69235         * lib/memmem.c [!defined _LIBC]: Include config.h.
69236
69237 2007-02-04  Bruno Haible  <bruno@clisp.org>
69238
69239         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69240         warning message.
69241
69242 2007-02-04  Bruno Haible  <bruno@clisp.org>
69243
69244         New module mbstok_r.
69245         * modules/mbstok_r: New file.
69246         * lib/mbstok_r.c: New file.
69247         * lib/string_.h (strtok_r): Change argument names to match the
69248         comments. Add a conditional link warning.
69249         (mbstok_r): New declaration.
69250         * m4/mbstok_r.m4: New file.
69251         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69252         GNULIB_MBSTOK_R.
69253         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69254         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69255
69256 2007-02-04  Bruno Haible  <bruno@clisp.org>
69257
69258         New module mbsspn.
69259         * modules/mbsspn: New file.
69260         * lib/mbsspn.c: New file.
69261         * lib/string_.h (strspn): Add a conditional link warning.
69262         (mbsspn): New declaration.
69263         * m4/mbsspn.m4: New file.
69264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69265         GNULIB_MBSSPN.
69266         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69267         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69268
69269 2007-02-04  Bruno Haible  <bruno@clisp.org>
69270
69271         New module mbspbrk.
69272         * modules/mbspbrk: New file.
69273         * lib/mbspbrk.c: New file.
69274         * lib/string_.h (strpbrk): Add a conditional link warning.
69275         (mbspbrk): New declaration.
69276         * m4/mbspbrk.m4: New file.
69277         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69278         GNULIB_MBSPBRK.
69279         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69280         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69281
69282 2007-02-04  Bruno Haible  <bruno@clisp.org>
69283
69284         New module mbscspn.
69285         * modules/mbscspn: New file.
69286         * lib/mbscspn.c: New file.
69287         * lib/string_.h (strcspn): Add a conditional link warning.
69288         (mbscspn): New declaration.
69289         * m4/mbscspn.m4: New file.
69290         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69291         GNULIB_MBSCSPN.
69292         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69293         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69294
69295 2007-02-04  Bruno Haible  <bruno@clisp.org>
69296
69297         New module mbscasestr, reduced goal of strcasestr.
69298         * modules/mbscasestr: New file.
69299         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69300         (mbscasestr): Renamed from strcasestr.
69301         * lib/strcasestr.c: Don't include mbuiter.h.
69302         (strcasestr): Remove support for multibyte locales.
69303         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69304         Change the conditional link warning.
69305         (mbscasestr): New declaration.
69306         * m4/mbscasestr.m4: New file.
69307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69308         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69309         REPLACE_STRCASESTR.
69310         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69312         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69313         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69314         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69315         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69316         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69317         (Depends-on): Remove mbuiter.
69318         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69319
69320 2007-02-04  Bruno Haible  <bruno@clisp.org>
69321
69322         Simplify handling of strncasecmp.
69323         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69324         the conditional link warning.
69325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69326         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69327         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69328         * modules/strcase (configure.ac): Don't invoke
69329         gl_STRING_MODULE_INDICATOR.
69330         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69331
69332 2007-02-04  Bruno Haible  <bruno@clisp.org>
69333
69334         New module mbscasecmp, reduced goal of strcasecmp.
69335         * modules/mbscasecmp: New file.
69336         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69337         (mbscasecmp): Renamed from strcasecmp.
69338         * lib/strcasecmp.c: Don't include mbuiter.h.
69339         (strcasecmp): Remove support for multibyte locales.
69340         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69341         Change the conditional link warning.
69342         (mbscasecmp): New declaration.
69343         * m4/mbscasecmp.m4: New file.
69344         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69345         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69346         REPLACE_STRCASECMP.
69347         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69348         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69349         GNULIB_MBSCASECMP.
69350         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69351         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69352         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69353         (Depends-on): Remove mbuiter.
69354         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69355
69356 2007-02-04  Bruno Haible  <bruno@clisp.org>
69357
69358         New module mbsstr. Remove module strstr.
69359         * modules/mbsstr: New file.
69360         * modules/strstr: Remove file.
69361         * lib/mbsstr.c: Renamed from lib/strstr.c.
69362         (mbsstr): Renamed from strstr.
69363         * lib/string_.h (strstr): Remove declaration. Change the conditional
69364         link warning.
69365         (mbsstr): New declaration.
69366         * m4/mbsstr.m4: New file.
69367         * m4/strstr.m4: Remove file.
69368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69369         REPLACE_STRSTR.
69370         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69371         Don't initialize GNULIB_STRSTR.
69372         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69373         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69374         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69375         (Support for systems lacking ANSI C 89): Remove strstr.
69376
69377 2007-02-04  Bruno Haible  <bruno@clisp.org>
69378
69379         New module mbsrchr.
69380         * modules/mbsrchr: New file.
69381         * lib/mbsrchr.c: New file.
69382         * lib/string_.h (strrchr): Add a conditional link warning.
69383         (mbsrchr): New declaration.
69384         * m4/mbsrchr.m4: New file.
69385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69386         GNULIB_MBSRCHR.
69387         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69388         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69389
69390 2007-02-04  Bruno Haible  <bruno@clisp.org>
69391
69392         New module mbschr.
69393         * modules/mbschr: New file.
69394         * lib/mbschr.c: New file.
69395         * lib/string_.h (strchr): Add a conditional link warning.
69396         (mbschr): New declaration.
69397         * m4/mbschr.m4: New file.
69398         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69399         GNULIB_MBSCHR.
69400         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69401         * MODULES.html.sh (Internationalization functions): Add mbschr.
69402
69403 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69404
69405         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69406
69407         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69408
69409 2007-02-04  Bruno Haible  <bruno@clisp.org>
69410
69411         New module description section 'configure.ac-early'.
69412         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69413         (func_get_autoconf_early_snippet): New function.
69414         (func_import, func_create_testdir): Use it. Remove special cases for
69415         modules 'extensions' and 'lock'.
69416         * modules/extensions (configure.ac-early): Require
69417         gl_USE_SYSTEM_EXTENSIONS.
69418         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69419
69420 2007-02-04  Bruno Haible  <bruno@clisp.org>
69421
69422         Make use of gcj-4.3's -fsource and -ftarget option.
69423         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69424         and if so try the options -fsource and -ftarget.
69425         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69426         source_version, ftarget_option, target_version arguments.
69427         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69428         (is_envjavac_oldgcj_14_14_usable): Renamed from
69429         is_envjavac_gcj_14_14_usable.
69430         (is_envjavac_oldgcj_14_13_usable): Renamed from
69431         is_envjavac_gcj_14_13_usable.
69432         (is_gcj_present): Update.
69433         (is_gcj_43, is_gcj43_usable): New functions.
69434         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69435         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69436         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69437         try the options -fsource and -ftarget.
69438
69439 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69440
69441         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69442         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69443         larger value.
69444
69445 2007-02-03  Jim Meyering  <jim@meyering.net>
69446
69447         Give tools a better chance to allocate space for very large buffers.
69448         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69449
69450         Make pwd and readlink work also when run with an unreadable parent dir
69451         on systems with openat support.
69452         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69453         provided getcwd function, even when we have openat support.
69454         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69455
69456 2007-02-02  Bruno Haible  <bruno@clisp.org>
69457
69458         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69459         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69460         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69461         portability problems if one of these functions is only used on specific
69462         platforms.
69463         Reported by Paul Eggert.
69464
69465 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69466
69467         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69468         is causing more trouble than it's curing.
69469         * lib/regex_internal.h (__mempcpy): Remove.
69470         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69471         (and make the code a tad smaller to boot).
69472         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69473
69474 2007-02-02  Jim Meyering  <jim@meyering.net>
69475
69476         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69477         section, not in the Makefile.am: one.
69478
69479 2007-02-02  Eric Blake  <ebb9@byu.net>
69480
69481         * lib/strchrnul.c: Always include config.h first.
69482
69483         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69484         gnulib strstr is not necessary here.
69485
69486 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69487
69488         * m4/socklen.m4: Fix typo.
69489
69490 2007-02-02  Eric Blake  <ebb9@byu.net>
69491
69492         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69493         * modules/netinet_in (Makefile.am): Likewise.
69494
69495 2007-02-01  Bruno Haible  <bruno@clisp.org>
69496
69497         * lib/string_.h (GL_LINK_WARNING): New macro.
69498         (strcasecmp, strstr, strcasestr): If provided by the system,
69499         conditionally define as a macro that leads to a warning instead of to
69500         an error.
69501         (strncasecmp): Conditionally define as a macro that leads to a warning.
69502
69503 2007-02-01  Karl Berry  <karl@gnu.org>
69504
69505         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69506
69507 2007-02-01  Bruno Haible  <bruno@clisp.org>
69508
69509         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69510         renamings.
69511
69512 2007-02-01  Eric Blake  <ebb9@byu.net>
69513
69514         * modules/regex (Depends-on): Revert dependence on mempcpy.
69515         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69516         module's definition of mempcpy.
69517         Reported by Paul Eggert.
69518
69519 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69520
69521         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69522         the symbol XYZ before redefining it.  This fixes a problem with
69523         programs that don't use XYZ, when compiled on systems that define
69524         XYZ to something else.
69525
69526 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69527
69528         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69529         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69530         writeable to group or other and (2) is intended to have a special
69531         mode bit that is set or cleared.  In such a case, the directory
69532         should be neither group- nor other-writeable until the special
69533         mode bits are right.
69534
69535 2007-01-31  Eric Blake  <ebb9@byu.net>
69536
69537         * modules/mountlist (Depends-on): Add strstr.
69538
69539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69540         bug.
69541         * modules/string (Makefile.am): Remove redundant replacement.
69542         * modules/regex (Depends-on): Add mempcpy.
69543
69544 2007-01-31  Bruno Haible  <bruno@clisp.org>
69545
69546         New module description field 'Link'.
69547         * gnulib-tool (func_usage): Document --extract-link-directive.
69548         (sed_extract_prog): Recognize 'Link' directive.
69549         (func_get_link_directive): New function.
69550         (func_import): Show summary of link directives.
69551         Handle --extract-link-directive option.
69552         * modules/acl (Link): New section.
69553         * modules/clock-time (Link): New section.
69554         * modules/euidaccess (Link): New section.
69555         * modules/gettext (Link): New section.
69556         * modules/iconv (Link): New section.
69557         * modules/lock (Link): New section.
69558         * modules/nanosleep (Link): New section.
69559         * modules/readline (Link): New section.
69560
69561 2007-01-27  Bruno Haible  <bruno@clisp.org>
69562
69563         Enforce the use of gnulib modules for unportable <string.h> functions.
69564         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69565         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69566         (gl_HEADER_STRING_H_BODY): Require it.
69567         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69568         the symbol XYZ to one that gives a link error.
69569         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69570         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69571         * modules/mempcpy (configure.ac): Likewise.
69572         * modules/memrchr (configure.ac): Likewise.
69573         * modules/stpcpy (configure.ac): Likewise.
69574         * modules/stpncpy (configure.ac): Likewise.
69575         * modules/strcase (configure.ac): Likewise.
69576         * modules/strcasestr (configure.ac): Likewise.
69577         * modules/strchrnul (configure.ac): Likewise.
69578         * modules/strdup (configure.ac): Likewise.
69579         * modules/strndup (configure.ac): Likewise.
69580         * modules/strnlen (configure.ac): Likewise.
69581         * modules/strpbrk (configure.ac): Likewise.
69582         * modules/strsep (configure.ac): Likewise.
69583         * modules/strstr (configure.ac): Likewise.
69584         * modules/strtok_r (configure.ac): Likewise.
69585
69586 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69587
69588         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69589
69590 2007-01-30  Jim Meyering  <jim@meyering.net>
69591
69592         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69593
69594 2007-01-29  Bruno Haible  <bruno@clisp.org>
69595
69596         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69597         * lib/execute.c: Likewise.
69598         * lib/pipe.c: Likewise.
69599         * lib/printf-args.h: Likewise.
69600         * lib/printf-args.c: Likewise.
69601         * lib/printf-parse.c: Likewise.
69602         * lib/vasnprintf.c: Likewise.
69603
69604 2007-01-29  Eric Blake  <ebb9@byu.net>
69605
69606         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69607         declaration.
69608
69609 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69610
69611         * lib/strptime.h (strptime): Use 'restrict' for args where
69612         POSIX requires this.
69613         * lib/strptime.c (strptime): Likewise.
69614         Change license notice from LGPL to GPL, since gnulib-tool will
69615         change this as needed.
69616         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69617         defined.
69618         Include "strptime.h" first, to check interface.
69619         Do not #undef _LIBC and _NL_CURRENT.
69620         Do not include <stdlib.h>; no longer needed.
69621         Include "time_r.h" and declare ptime_locale_status
69622         only if _LIBC is not defined.
69623         (__P): Remove unused macro.
69624         (match_string): Bring back glibc version, but use it only if _LIBC
69625         is defined.
69626         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69627         Remove unnecessary assertion and abort() call.
69628         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69629         * m4/strptime.m4: Fix serial number comment.
69630         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69631         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69632         (Depends-on): Add time_r.
69633
69634 2007-01-29  Bruno Haible  <bruno@clisp.org>
69635
69636         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69637         strptime.
69638         * modules/strptime (Depends-on): Add stdbool.
69639         * lib/strptime.h: Include <time.h> always. Add comments.
69640
69641 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69642
69643         * modules/strptime: New file.
69644         * lib/strptime.h: New file.
69645         * lib/strptime.c: New file.
69646         * m4/strptime.m4: New file.
69647
69648 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69649
69650         * MODULES.html.sh: New module mpsort.
69651         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69652
69653         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69654         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69655         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69656         All uses changed.
69657         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69658         All uses changed.
69659         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69660         to _Restrict_.
69661         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69662         the parameter matches the prototype.
69663
69664 2007-01-28  Jim Meyering  <jim@meyering.net>
69665
69666         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69667         sys/time.h here, reverting that part of the previous patch:
69668         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69669
69670 2007-01-28  Bruno Haible  <bruno@clisp.org>
69671
69672         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69673         value of $(SYS_TIME_H).
69674         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69675         remove it conditionally, too. [added by Jim Meyering]
69676         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69678         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69679         GETTIMEOFDAY_REPLACEMENT to 1.
69680
69681 2007-01-28  Bruno Haible  <bruno@clisp.org>
69682
69683         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69684         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69686         Set UNISTD_H instead of UNISTD_H2.
69687         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69688
69689 2007-01-28  Bruno Haible  <bruno@clisp.org>
69690
69691         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69692         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69693
69694 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69695
69696         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69697         (func_create_testdir): Ensure C locale for `grep' and `tr'
69698         character ranges.
69699         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69700         ACLOCAL_AMFLAGS parsing state machine.
69701
69702 2007-01-27  Bruno Haible  <bruno@clisp.org>
69703
69704         * modules/unistr/base: Update.
69705
69706 2007-01-27  Bruno Haible  <bruno@clisp.org>
69707
69708         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69709         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69710         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69711         modules/unistr/u32-mbtouc.
69712         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69713         * lib/unistr.h: Update.
69714         * lib/linebreak.c: Update.
69715         * modules/unistr/u32-mbtouc: Renamed from
69716         modules/unistr/u32-mbtouc-safe.
69717         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69718         * lib/unistr.h: Update.
69719         * lib/unistr/u32-to-u8.c: Update.
69720         * lib/unistr/u32-to-u16.c: Update.
69721
69722 2007-01-27  Bruno Haible  <bruno@clisp.org>
69723
69724         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69725         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69726         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69727         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69728         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69729         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69730         modules/unistr/u16-mbtouc.
69731         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69732         * lib/unistr.h: Update.
69733         * lib/linebreak.c: Update.
69734         * modules/linebreak: Update.
69735         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69736         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69737         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69738         * modules/unistr/u16-mbtouc: Renamed from
69739         modules/unistr/u16-mbtouc-safe.
69740         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69741         * lib/unistr.h: Update.
69742         * lib/unistr/u16-to-u8.c: Update.
69743         * modules/unistr/u16-to-u8: Update.
69744         * lib/unistr/u16-to-u32.c: Update.
69745         * modules/unistr/u16-to-u32: Update.
69746
69747 2007-01-27  Bruno Haible  <bruno@clisp.org>
69748
69749         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69750         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69751         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69752         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69753         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69754         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69755         modules/unistr/u8-mbtouc.
69756         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69757         * lib/unistr.h: Update.
69758         * lib/striconveh.c: Update.
69759         * modules/striconveh: Update.
69760         * lib/linebreak.c: Update.
69761         * modules/linebreak: Update.
69762         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69763         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69764         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69765         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69766         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69767         * lib/unistr.h: Update.
69768         * lib/striconveh.c: Update.
69769         * modules/striconveh: Update.
69770         * lib/unistr/u8-to-u16.c: Update.
69771         * modules/unistr/u8-to-u16: Update.
69772         * lib/unistr/u8-to-u32.c: Update.
69773         * modules/unistr/u8-to-u32: Update.
69774
69775 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69776
69777         Sync from Libtool.
69778         * lib/argz.c: Do not include strings.h nor memory.h, include
69779         string.h unconditionally.  Patch by Simon Josefsson.
69780
69781 2007-01-27  Bruno Haible  <bruno@clisp.org>
69782
69783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69784         from gl_HEADER_STRING_H_BODY.
69785         (gl_HEADER_STRING_H_BODY): Require it.
69786         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69787         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69788         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69789         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69790         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69791         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69792         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69793         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69794         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69795         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69796         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69797         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69798         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69799         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69800         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69801
69802 2007-01-27  Bruno Haible  <bruno@clisp.org>
69803
69804         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69805         check_PROGRAMS into noinst_PROGRAMS.
69806         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69807         check_PROGRAMS in this case.
69808         (func_import): Set for_test to false.
69809         (func_create_testdir): Set for_test to true.
69810
69811 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69812             Bruno Haible  <bruno@clisp.org>
69813
69814         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69815         (Depends-on): Add string.
69816         (Includes): Use <string.h> instead of strcasestr.h.
69817         * modules/string (Makefile.am): Also substitute the value of
69818         REPLACE_STRCASESTR.
69819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69820         assume strcasestr is declared in <string.h> not <strings.h>. Also
69821         set REPLACE_STRCASESTR.
69822         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69823         REPLACE_STRCASESTR.
69824         * lib/strcasestr.h: Remove file.
69825         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69826         * lib/string_.h (strcasestr): New declaration.
69827
69828 2007-01-27  Bruno Haible  <bruno@clisp.org>
69829
69830         * lib/string_.h: Use 'extern'.
69831
69832 2007-01-27  Jim Meyering  <jim@meyering.net>
69833
69834         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69835         of set-but-not-used local, "q".
69836
69837         * lib/mempcpy.c: Include <config.h> before <string.h>.
69838         This fixes a compilation error on HP-UX, due to the system's
69839         "restrict"-using mempcpy prototype.
69840
69841 2007-01-26  Bruno Haible  <bruno@clisp.org>
69842
69843         Small optimization.
69844         * lib/javacomp.c: Include c-strstr.h.
69845          (is_envjavac_gcj): Use c_strstr instead of strstr.
69846         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69847
69848 2007-01-26  Bruno Haible  <bruno@clisp.org>
69849
69850         * MODULES.html.sh (Unicode string functions): Add the new modules.
69851
69852         * modules/uniconv/u32-strconv-to-locale: New file.
69853         * lib/uniconv/u32-strconv-to-locale.c: New file.
69854
69855         * modules/uniconv/u16-strconv-to-locale: New file.
69856         * lib/uniconv/u16-strconv-to-locale.c: New file.
69857
69858         * modules/uniconv/u8-strconv-to-locale: New file.
69859         * lib/uniconv/u8-strconv-to-locale.c: New file.
69860
69861         * modules/uniconv/u32-strconv-from-locale: New file.
69862         * lib/uniconv/u32-strconv-from-locale.c: New file.
69863
69864         * modules/uniconv/u16-strconv-from-locale: New file.
69865         * lib/uniconv/u16-strconv-from-locale.c: New file.
69866
69867         * modules/uniconv/u8-strconv-from-locale: New file.
69868         * lib/uniconv/u8-strconv-from-locale.c: New file.
69869
69870         * modules/uniconv/u32-strconv-to-enc: New file.
69871         * lib/uniconv/u32-strconv-to-enc.c: New file.
69872         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69873         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69874
69875         * modules/uniconv/u16-strconv-to-enc: New file.
69876         * lib/uniconv/u16-strconv-to-enc.c: New file.
69877         * lib/uniconv/u-strconv-to-enc.h: New file.
69878         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69879         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69880
69881         * modules/uniconv/u8-strconv-to-enc: New file.
69882         * lib/uniconv/u8-strconv-to-enc.c: New file.
69883         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69884         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69885
69886         * modules/uniconv/u32-strconv-from-enc: New file.
69887         * lib/uniconv/u32-strconv-from-enc.c: New file.
69888         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69889         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69890
69891         * modules/uniconv/u16-strconv-from-enc: New file.
69892         * lib/uniconv/u16-strconv-from-enc.c: New file.
69893         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69894         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69895
69896         * modules/uniconv/u8-strconv-from-enc: New file.
69897         * lib/uniconv/u8-strconv-from-enc.c: New file.
69898         * lib/uniconv/u-strconv-from-enc.h: New file.
69899         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69900         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69901
69902         * modules/uniconv/u32-conv-from-enc: New file.
69903         * lib/uniconv/u32-conv-from-enc.c: New file.
69904         * modules/uniconv/u32-conv-from-enc-tests: New file.
69905         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69906
69907         * modules/uniconv/u16-conv-from-enc: New file.
69908         * lib/uniconv/u16-conv-from-enc.c: New file.
69909         * lib/uniconv/u-conv-from-enc.h: New file.
69910         * modules/uniconv/u16-conv-from-enc-tests: New file.
69911         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69912
69913         * modules/uniconv/u8-conv-from-enc: New file.
69914         * lib/uniconv/u8-conv-from-enc.c: New file.
69915         * modules/uniconv/u8-conv-from-enc-tests: New file.
69916         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69917
69918         * modules/uniconv/base: New file.
69919         * lib/uniconv.h: New file.
69920
69921 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         * doc/gnulib-tool.texi (Initial import): Update to match current
69924         behavior with strdup module.
69925         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69926         * lib/memmem.h: Remove; all uses removed.  This is now done
69927         by <string.h>.
69928         * lib/mempcpy.h: Likewise.
69929         * lib/memrchr.h: Likewise.
69930         * lib/stpcpy.h: Likewise.
69931         * lib/stpncpy.h: Likewise.
69932         * lib/strcase.h: Likewise.
69933         * lib/strchrnul.h: Likewise.
69934         * lib/strdup.h: Likewise.
69935         * lib/strndup.h: Likewise.
69936         * lib/strnlen.h: Likewise.
69937         * lib/strpbrk.h: Likewise.
69938         * lib/strsep.h: Likewise.
69939         * lib/strstr.h: Likewise.
69940         * lib/strtok_r.h: Likewise.
69941         * lib/string_.h: New file.
69942         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69943         Rely on <string.h> instead.
69944         * lib/canon-host.c: Likewise.
69945         * lib/chdir-long.c: Likewise.
69946         * lib/concatpath.c: Likewise.
69947         * lib/exclude.c: Likewise.
69948         * lib/fchdir.c: Likewise.
69949         * lib/getaddrinfo.c: Likewise.
69950         * lib/getcwd.c: Likewise.
69951         * lib/getsubopt.c: Likewise.
69952         * lib/glob.c: Likewise.
69953         * lib/hard-locale.c: Likewise.
69954         * lib/iconvme.c: Likewise.
69955         * lib/javacomp.c: Likewise.
69956         * lib/mempcpy.c: Likewise.
69957         * lib/memrchr.c: Likewise.
69958         * lib/regex_internal.h: Likewise.
69959         * lib/stpncpy.c: Likewise.
69960         * lib/strcasecmp.c: Likewise.
69961         * lib/strchrnul.c: Likewise.
69962         * lib/strdup.c: Likewise.
69963         * lib/striconv.c: Likewise.
69964         * lib/striconveh.c: Likewise.
69965         * lib/striconveha.c: Likewise.
69966         * lib/strncasecmp.c: Likewise.
69967         * lib/strndup.c: Likewise.
69968         * lib/strnlen.c: Likewise.
69969         * lib/strsep.c: Likewise.
69970         * lib/strstr.c: Likewise.
69971         * lib/strtok_r.c: Likewise.
69972         * lib/userspec.c: Likewise.
69973         * lib/w32spawn.h: Likewise.
69974         * lib/xstrndup.c: Likewise.
69975         * lib/mountlist.c (strstr): Remove decl.
69976         * m4/string_h.m4: New file.
69977         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69978         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69979         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69980         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69981         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69982         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69983         Set REPLACE_STRCASECMP if necessary.
69984         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69985         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69986         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69987         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69988         HAVE_DECL_STRDUP if necessary.
69989         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69990         since gl_FUNC_STRNDUP does that now.
69991         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69992         Check for decl here...
69993         (gl_PREREQ_STRNLEN): ... not here.
69994         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69995         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69996         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69997         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69998         necessary.
69999         * modules/string: New file.
70000         * modules/memmem (Files): Remove special-purpose include file.
70001         (Depends-on): Add string.
70002         (Include): Include <string.h>, not the removed file.
70003         * modules/mempcpy: Likewise.
70004         * modules/memrchr: Likewise.
70005         * modules/stpcpy: Likewise.
70006         * modules/stpncpy: Likewise.
70007         * modules/strcase: Likewise.
70008         * modules/strchrnul: Likewise.
70009         * modules/strdup: Likewise.
70010         * modules/strndup: Likewise.
70011         * modules/strnlen: Likewise.
70012         * modules/strpbrk: Likewise.
70013         * modules/strsep: Likewise.
70014         * modules/strstr: Likewise.
70015         * modules/strtok_r: Likewise.
70016         * tests/test-dirname.c: Don't include "strdup.h", since
70017         <string.h> now suffices.
70018         * tests/test-memmem.c: Don't include "memmem.h", since
70019         <string.h> now suffices.
70020
70021 2007-01-25  Bruno Haible  <bruno@clisp.org>
70022
70023         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70024         *resultp is 0.
70025
70026         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70027         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70028         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70029         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70030
70031         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70032         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70033         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70034         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70035         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70036         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70037
70038 2007-01-24  Bruno Haible  <bruno@clisp.org>
70039
70040         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70042         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70043         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70044         gl_FUNC_FTS_CORE.
70045         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70046         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70047         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70048         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70049         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70050         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70051         gl_FUNC_FCHOWNAT.
70052         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70053         gl_FUNC_STRFTIME.
70054         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70055         Reported by Ralf Wildenhues.
70056
70057 2007-01-24  Bruno Haible  <bruno@clisp.org>
70058
70059         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70060         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70061         gl_GETADDRINFO.
70062         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70063         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70064         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70065
70066 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70067
70068         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70069         Don't use 'exit'; just return from 'main'.
70070         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70071
70072         * lib/fnmatch_.h: Readjust white space and comments to match
70073         glibc, to avoid spurious diffs.
70074
70075 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70076
70077         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70078         2004-12-01 change by Jakub Jelinek, since this code won't compile
70079         if !LIBC.  Problem reported by Bob Proulx.
70080
70081 2007-01-23  Bruno Haible  <bruno@clisp.org>
70082
70083         * lib/striconveh.c: Include c-strcaseeq.h.
70084         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70085         * modules/striconveh (Depends-on): Add c-strcaseeq.
70086
70087 2007-01-23  Bruno Haible  <bruno@clisp.org>
70088
70089         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70090
70091         * modules/c-strcaseeq: New file.
70092         * lib/c-strcaseeq.h: New file.
70093
70094         * modules/streq: New file.
70095         * lib/streq.h: New file.
70096
70097 2007-01-23  Bruno Haible  <bruno@clisp.org>
70098
70099         * modules/striconveha-tests: New file.
70100         * tests/test-striconveha.c: New file.
70101
70102         * lib/striconveha.h: Include <stdbool.h>.
70103         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70104         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70105         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70106         (mem_iconveha): New function.
70107         (str_iconveha_notranslit): Renamed from str_iconveha.
70108         (str_iconveha): New function.
70109         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70110         c-strcase.
70111
70112 2007-01-23  Bruno Haible  <bruno@clisp.org>
70113
70114         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70115         encodings without forgiving before trying any encoding with handler.
70116         (str_iconveha): Try all encodings without forgiving before trying any
70117         encoding with handler.
70118
70119 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70120
70121         Import the following changes from libc.
70122
70123         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70124
70125         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70126
70127         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70128
70129         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70130         normal_bracket label.
70131
70132         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70133
70134         [BZ #361]
70135         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70136         to normal_bracket after fetching the next character.
70137
70138 2007-01-22  Bruno Haible  <bruno@clisp.org>
70139
70140         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70141         argument.
70142         * lib/striconveh.c (iconv_carefully_1): New function.
70143         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70144         argument.
70145         (str_cd_iconveh): Update.
70146         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70147         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70148         * tests/test-striconveh.c (MAGIC): New macro.
70149         (new_offsets): New function.
70150         (main): Test call with and without offsets.
70151
70152 2007-01-22  Bruno Haible  <bruno@clisp.org>
70153
70154         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70155         * modules/sys_select (Makefile.am): Likewise.
70156         * modules/sys_socket (Makefile.am): Likewise.
70157         * modules/sys_time (Makefile.am): Likewise.
70158
70159 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * modules/gettimeofday (License): Change from GPL to LGPL, since
70162         gettimeofday is a library function.
70163
70164 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70165
70166         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70167
70168 2007-01-21  Bruno Haible  <bruno@clisp.org>
70169
70170         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70171
70172 2007-01-21  Bruno Haible  <bruno@clisp.org>
70173
70174         * modules/striconveha: New file.
70175         * lib/striconveha.h: New file.
70176         * lib/striconveha.c: New file.
70177         * MODULES.html.sh (Internationalization functions): Add striconveha.
70178         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70179         string.
70180         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70181
70182 2007-01-21  Bruno Haible  <bruno@clisp.org>
70183
70184         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70185         * lib/striconveh.c (str_iconveh): Likewise.
70186
70187 2007-01-21  Bruno Haible  <bruno@clisp.org>
70188
70189         * lib/striconveh.h (mem_iconveh): New declaration.
70190         * lib/striconveh.c (mem_iconveh): New function.
70191         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70192
70193 2007-01-21  Bruno Haible  <bruno@clisp.org>
70194
70195         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70196
70197         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70198         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70199         original result buffer.
70200         (str_cd_iconveh): Update.
70201         * tests/test-striconveh.c (main): Update.
70202
70203         * lib/striconv.h (mem_cd_iconv): Change specification.
70204         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70205         result buffer.
70206         (str_cd_iconv): Update.
70207         * tests/test-striconv.c (main): Update.
70208
70209 2007-01-21  Bruno Haible  <bruno@clisp.org>
70210
70211         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70212
70213 2007-01-20  Jim Meyering  <jim@meyering.net>
70214
70215         * lib/userspec.c (parse_with_separator): If a user or group string
70216         starts with "+", skip the corresponding name-to-ID look-up, since
70217         such a look-up must fail: user and group names may not include "+".
70218
70219 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70220
70221         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70222         since we now assume the sys_time module.
70223         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70224         check for sys/time.h; no longer needed.
70225         * modules/poll (Depends-on): Depend on sys_time.
70226
70227 2007-01-18  Bruno Haible  <bruno@clisp.org>
70228
70229         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70230         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70231
70232         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70233         gettimeofday.
70234
70235         * tests/test-gettimeofday.c: Include <time.h>.
70236         (dummy): Remove variable.
70237
70238         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70239         gl_HEADER_SYS_TIME_H.
70240         (gl_HEADER_SYS_TIME_H): New macro.
70241
70242         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70243         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70244         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70245         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70246         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70247         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70248         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70249         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70250         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70251         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70252         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70253
70254         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70255         last change; it caused a compilation error when cross-compiling to
70256         Cygwin.
70257
70258 2007-01-18  Jim Meyering  <jim@meyering.net>
70259
70260         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70261         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70262         than the race-prone "test -d sys || mkdir sys".
70263         (configure.ac): Use AC_PROG_MKDIR_P.
70264         * modules/sys_select: Likewise.
70265         * modules/sys_socket: Likewise.
70266         * modules/sys_time: Likewise.
70267
70268 2007-01-18  Eric Blake  <ebb9@byu.net>
70269
70270         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70271         replace gettimeofday.
70272         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70273         name, to avoid infinite recursion.
70274
70275 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70276
70277         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70278         module sys_time.
70279         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70280         assume timespec.h defines struct timeval.
70281         * lib/settime.c: Likewise.
70282         * lib/utimens.c: Likewise.
70283         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70284         since we now assume the gettimeofday module.
70285         * lib/tempname.c (__gen_tempname): Likewise.
70286         * lib/gettimeofday.h: Remove.
70287         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70288         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70289         Include <time.h>, for 'time()'.
70290         (localtime_buffer_addr): Also use this workaround if
70291         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70292         to simplify the uses.  All uses changed.
70293         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70294         that #undef is inside {}, and 'const' follows type name consistently.
70295         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70296         (gettimeofday): Do not use the maximum possible value for
70297         tv->tv_usec, since that might break usages other than ls.c.
70298         Instead, we'll leave ls.c alone.  This undoes today's patch
70299         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70300         we've never observed the problem but might as well keep the
70301         canary.
70302         * lib/nanosleep.c: Include timespec.h first, for interface check.
70303         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70304         now assume the sys_time module.
70305         * lib/tempname.c: Likewise.
70306         * lib/timespec.h: Likewise.
70307         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70308         needed.
70309         * lib/strftime.c: Likewise.
70310         * lib/timespec.h: Likewise.
70311         * lib/posixtm.c: Include posixtm.h first, for interface check.
70312         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70313         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70314         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70315         * lib/sys_time_.h: New file.
70316         * lib/timespec.h (struct timespec): Use long int, not long.
70317         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70318         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70319         Remove obsolescent call to AC_HEADER_TIME.
70320         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70321         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70322         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70323         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70324         Likewise.
70325         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70326         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70327         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70328         into the sys_time module.  Check for gettimeofday just once.
70329         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70330         for gettimeofday signature to just check the signature.  Merely
70331         compile it, since linking doesn't test signature.  Improve test for
70332         whether gettimeofday.o is actually needed.
70333         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70334         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70335         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70336         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70337         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70338         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70339         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70340         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70341         than worrying about sys/time.h.
70342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70343         Don't bother worrying about TIME_WITH_SYS_TIME.
70344         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70345         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70346         * m4/sys_time_h.m4: New file.
70347         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70348         Don't include sys/time.h.  Return from main rather than exiting.
70349         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70350         all uses changed.
70351         * modules/gethrxtime (Depends-on): Add sys_time.
70352         * modules/gettime (Depends-on): Likewise.
70353         * modules/gettimeofday (Depends-on): Likewise.
70354         * modules/nanosleep (Depends-on): Likewise.
70355         * modules/settime (Depends-on): Likewise.
70356         * modules/tempname (Depends-on): Likewise.
70357         * modules/utimens (Depends-on): Likewise.
70358         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70359         (Include): Change back to <sys/time.h>.
70360         (Maintainer): Add self.
70361         * modules/sys_time: New file.
70362         * modules/tempname (Depends-on): Add gettimeofday.
70363         * tests/test-gettimeofday.c: Include <sys/time.h>
70364         rather than gettimeofday.h.
70365
70366 2007-01-17  Bruno Haible  <bruno@clisp.org>
70367
70368         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70369         the license default to GPL.
70370         (func_create_testdir): Don't complain if a module is LGPL and its
70371         tests module depends on GPLed modules.
70372
70373 2007-01-17  Bruno Haible  <bruno@clisp.org>
70374
70375         * lib/gettimeofday.c (gettimeofday): Add code for the case
70376         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70377         maximum possible value for tv->tv_usec, rather than the minimum one.
70378
70379 2005-10-08  Martin Lambers  <marlam@marlam.de>
70380 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70381 2007-01-16  Bruno Haible  <bruno@clisp.org>
70382
70383         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70384         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70385         gl_FUNC_GETTIMEOFDAY.
70386         (Include): Add gettimeofday.h.
70387         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70388         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70389         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70390         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70391         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70392         * lib/gettimeofday.h: New file.
70393         * lib/gettimeofday.c: Include <sys/timeb.h>.
70394         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70395         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70396         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70397         fall back on time().
70398
70399         * tests/test-gettimeofday.c: New file.
70400         * modules/gettimeofday-tests: New file.
70401
70402 2007-01-16  Eric Blake  <ebb9@byu.net>
70403
70404         * modules/fnmatch (Depends-on): Depend on wchar.
70405         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70406         * m4/fnmatch.m4: Likewise.
70407         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70408         * m4/mbchar.m4: Likewise.
70409         * modules/mbswidth (Depends-on): Depend on wchar.
70410         * lib/mbswidth.c: Assume <wchar.h>.
70411         * m4/mbswidth.m4: Likewise.
70412         * modules/quotearg (Depends-on): Depend on wchar.
70413         * lib/quotearg.c: Assume <wchar.h>.
70414         * m4/quotearg.m4: Likewise.
70415         * modules/regex (Depends-on): Depend on wchar.
70416         * lib/regex_internal.h: Assume <wchar.h>.
70417         * m4/regex.m4: Likewise.
70418         * modules/stdint (Depends-on): Depend on wchar.
70419         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70420         * m4/stdint.m4: Likewise.
70421         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70422         * modules/strftime (Depends-on): Depend on wchar.
70423         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70424         * modules/strtol (Depends-on): Depend on wchar.
70425         * lib/strtol.c: Assume <wchar.h>.
70426         * modules/wcwidth (Depends-on): Depend on wchar.
70427         * lib/wcwidth.h: Assume <wchar.h>.
70428         * m4/wcwidth.m4: Likewise.
70429
70430 2007-01-16  Bruno Haible  <bruno@clisp.org>
70431
70432         * modules/csharpexec-script: New, created from...
70433         * modules/csharpexec: ... this.
70434
70435 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70436
70437         * modules/javaexec-script: New, created from...
70438         * modules/javaexec: ... this.
70439
70440 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70441
70442         * modules/poll (Dependencies): Add sys_select.
70443
70444 2007-01-15  Jim Meyering  <jim@meyering.net>
70445
70446         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70447         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70448         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70449         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70450
70451 2007-01-15  Bruno Haible  <bruno@clisp.org>
70452
70453         * modules/striconveh: New file.
70454         * lib/striconveh.h: New file.
70455         * lib/striconveh.c: New file.
70456         * MODULES.html.sh (Internationalization functions): Add striconveh.
70457
70458         * modules/striconveh-tests: New file.
70459         * tests/test-striconveh.c: New file.
70460
70461 2007-01-15  Bruno Haible  <bruno@clisp.org>
70462
70463         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70464         not from GNU libiconv or GNU libc.
70465
70466 2007-01-15  Bruno Haible  <bruno@clisp.org>
70467
70468         * doc/gnulib-intro.texi (Copyright): Explain the different license
70469         terms for module descriptions, autoconf macros, tests, documentation.
70470
70471 2007-01-14  Bruno Haible  <bruno@clisp.org>
70472
70473         * modules/striconv-tests: New file.
70474         * tests/test-striconv.c: New file.
70475
70476 2007-01-14  Bruno Haible  <bruno@clisp.org>
70477
70478         * modules/iconv-tests: New file.
70479         * tests/test-iconv.c: New file.
70480
70481 2007-01-14  Bruno Haible  <bruno@clisp.org>
70482
70483         * gnulib-tool (func_get_license): For test modules, use the license of
70484         the main module.
70485
70486 2007-01-14  Bruno Haible  <bruno@clisp.org>
70487
70488         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70489         if iconv is found to exist.
70490
70491 2007-01-14  Bruno Haible  <bruno@clisp.org>
70492
70493         * modules/c-ctype-tests: New file.
70494         * tests/test-c-ctype.c: New file.
70495
70496 2007-01-14  Bruno Haible  <bruno@clisp.org>
70497
70498         * modules/binary-io-tests: New file.
70499         * tests/test-binary-io.sh: New file.
70500         * tests/test-binary-io.c: New file.
70501
70502 2007-01-14  Bruno Haible  <bruno@clisp.org>
70503
70504         * modules/array-oset-tests: New file.
70505         * tests/test-array_oset.c: New file.
70506
70507 2007-01-14  Bruno Haible  <bruno@clisp.org>
70508
70509         * modules/array-list-tests: New file.
70510         * tests/test-array_list.c: New file.
70511
70512 2007-01-14  Bruno Haible  <bruno@clisp.org>
70513
70514         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70515         and make.
70516         Reported by Simon Josefsson in
70517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70518
70519 2007-01-14  Bruno Haible  <bruno@clisp.org>
70520
70521         * modules/allocsa-tests: New file.
70522         * tests/test-allocsa.c: New file.
70523
70524 2007-01-14  Bruno Haible  <bruno@clisp.org>
70525
70526         * modules/fchdir (Depends-on): Add absolute-header.
70527         * modules/unistd (Depends-on): Likewise.
70528
70529 2006-12-30  Bruno Haible  <bruno@clisp.org>
70530
70531         * modules/fchdir: New file.
70532         * modules/unistd (Files): Add lib/unistd_.h.
70533         (Makefile.am): Generate unistd.h from unistd_.h.
70534         * lib/fchdir.c: New file.
70535         * lib/dirent_.h: New file.
70536         * lib/unistd_.h: New file.
70537         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70538         * m4/fchdir.m4: New file.
70539         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70540         (gl_HEADER_UNISTD): Invoke it.
70541         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70542         function.
70543         * lib/backupfile.c (opendir, closedir): Undefine.
70544         * lib/chown.c (open, close): Undefine.
70545         * lib/clean-temp.c (open, close): Undefine.
70546         * lib/copy-file.c (open, close): Undefine.
70547         * lib/execute.c (open, close): Undefine.
70548         * lib/fsusage.c (open, close): Undefine.
70549         * lib/gc-gnulib.c (open, close): Undefine.
70550         * lib/getcwd.c (opendir, closedir): Undefine.
70551         * lib/glob.c (opendir, closedir): Undefine.
70552         * lib/javacomp.c (open, close): Undefine.
70553         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70554         * lib/openat-proc.c (open, close): Undefine.
70555         * lib/pagealign_alloc.c (open, close): Undefine.
70556         * lib/pipe.c (open, close): Undefine.
70557         * lib/progreloc.c (open, close): Undefine.
70558         * lib/savedir.c (opendir, closedir): Undefine.
70559         * lib/utime.c (open, close): Undefine.
70560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70561
70562 2007-01-10  Bruno Haible  <bruno@clisp.org>
70563
70564         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70565
70566 2007-01-12  Eric Blake  <ebb9@byu.net>
70567
70568         Provide a robust <wchar.h>.  Further simplifications are now
70569         possible in other modules, but not included here.
70570         * modules/wchar: New module.
70571         * m4/wchar.m4: New file.
70572         * lib/wchar_.h: Likewise.
70573         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70574         of the new module.
70575         * MODULES.html.sh (Extended multibyte and wide character utilities):
70576         New section.
70577
70578 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70579
70580         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70581         to a reasonable default for memory allocation.
70582         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70583         file system that reports garbage st_size values for symlinks.
70584         Problem reported by Liyang Hu.
70585
70586 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70587
70588         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70589         Emacs .#* auto-save files).
70590
70591 2007-01-11  Bruno Haible  <bruno@clisp.org>
70592
70593         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70594         directory.
70595
70596 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         Use @...@ consistently in lib/wctype_.h.
70599         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70600         on it being set to 1 or 0.
70601         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70602         go back to AC_SUBSTing it.
70603         * modules/wctype (Makefile.am): Undo previous change.
70604
70605 2007-01-10  Eric Blake  <ebb9@byu.net>
70606
70607         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70608         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70609         * modules/wctype (Makefile.am): Likewise.
70610         Reported by Chris McGuire.
70611
70612 2007-01-10  Jim Meyering  <jim@meyering.net>
70613
70614         fts.c: a small readability/maintainability improvement
70615         * lib/fts.c (fts_read): Make this code slightly more readable and
70616         maintainable by hoisting the "sp->fts_cur = p" assignments to
70617         immediately follow the statements that set P.  Derived from
70618         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70619
70620 2007-01-10  Eric Blake  <ebb9@byu.net>
70621
70622         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70623         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70625         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70626         Reported by Chris McGuire.
70627
70628 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70629
70630         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70631         in sed script.
70632
70633 2007-01-09  Bruno Haible  <bruno@clisp.org>
70634
70635         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70636         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70637         variables.
70638         (func_module): Use them.
70639
70640 2007-01-09  Bruno Haible  <bruno@clisp.org>
70641
70642         * modules/unistr/base: New file.
70643         * lib/unistr.h: New file.
70644
70645         * modules/unistr/u8-to-u16: New file.
70646         * lib/unistr/u8-to-u16.c: New file.
70647
70648         * modules/unistr/u8-to-u32: New file.
70649         * lib/unistr/u8-to-u32.c: New file.
70650
70651         * modules/unistr/u16-to-u8: New file.
70652         * lib/unistr/u16-to-u8.c: New file.
70653
70654         * modules/unistr/u16-to-u32: New file.
70655         * lib/unistr/u16-to-u32.c: New file.
70656
70657         * modules/unistr/u32-to-u8: New file.
70658         * lib/unistr/u32-to-u8.c: New file.
70659
70660         * modules/unistr/u32-to-u16: New file.
70661         * lib/unistr/u32-to-u16.c: New file.
70662
70663         * modules/unistr/u8-check: New file.
70664         * modules/unistr/u16-check: New file.
70665         * modules/unistr/u32-check: New file.
70666         * lib/unistr/u8-check.c: New file.
70667         * lib/unistr/u16-check.c: New file.
70668         * lib/unistr/u32-check.c: New file.
70669
70670         * modules/unistr/u8-chr: New file.
70671         * modules/unistr/u16-chr: New file.
70672         * modules/unistr/u32-chr: New file.
70673         * lib/unistr/u8-chr.c: New file.
70674         * lib/unistr/u16-chr.c: New file.
70675         * lib/unistr/u32-chr.c: New file.
70676
70677         * modules/unistr/u8-cmp: New file.
70678         * modules/unistr/u16-cmp: New file.
70679         * modules/unistr/u32-cmp: New file.
70680         * lib/unistr/u8-cmp.c: New file.
70681         * lib/unistr/u16-cmp.c: New file.
70682         * lib/unistr/u32-cmp.c: New file.
70683
70684         * modules/unistr/u8-cpy: New file.
70685         * modules/unistr/u16-cpy: New file.
70686         * modules/unistr/u32-cpy: New file.
70687         * lib/unistr/u8-cpy.c: New file.
70688         * lib/unistr/u16-cpy.c: New file.
70689         * lib/unistr/u32-cpy.c: New file.
70690         * lib/unistr/u-cpy.h: New file.
70691
70692         * modules/unistr/u8-cpy-alloc: New file.
70693         * modules/unistr/u16-cpy-alloc: New file.
70694         * modules/unistr/u32-cpy-alloc: New file.
70695         * lib/unistr/u8-cpy-alloc.c: New file.
70696         * lib/unistr/u16-cpy-alloc.c: New file.
70697         * lib/unistr/u32-cpy-alloc.c: New file.
70698         * lib/unistr/u-cpy-alloc.h: New file.
70699
70700         * modules/unistr/u8-endswith: New file.
70701         * modules/unistr/u16-endswith: New file.
70702         * modules/unistr/u32-endswith: New file.
70703         * lib/unistr/u8-endswith.c: New file.
70704         * lib/unistr/u16-endswith.c: New file.
70705         * lib/unistr/u32-endswith.c: New file.
70706         * lib/unistr/u-endswith.h: New file.
70707
70708         * modules/unistr/u8-mblen: New file.
70709         * modules/unistr/u16-mblen: New file.
70710         * modules/unistr/u32-mblen: New file.
70711         * lib/unistr/u8-mblen.c: New file.
70712         * lib/unistr/u16-mblen.c: New file.
70713         * lib/unistr/u32-mblen.c: New file.
70714
70715         * modules/unistr/u8-mbtouc: New file.
70716         * modules/unistr/u16-mbtouc: New file.
70717         * modules/unistr/u32-mbtouc: New file.
70718         * lib/unistr/u8-mbtouc.c: New file.
70719         * lib/unistr/u16-mbtouc.c: New file.
70720         * lib/unistr/u32-mbtouc.c: New file.
70721
70722         * modules/unistr/u8-mbtouc-safe: New file.
70723         * modules/unistr/u16-mbtouc-safe: New file.
70724         * modules/unistr/u32-mbtouc-safe: New file.
70725         * lib/unistr/u8-mbtouc-safe.c: New file.
70726         * lib/unistr/u16-mbtouc-safe.c: New file.
70727         * lib/unistr/u32-mbtouc-safe.c: New file.
70728
70729         * modules/unistr/u8-move: New file.
70730         * modules/unistr/u16-move: New file.
70731         * modules/unistr/u32-move: New file.
70732         * lib/unistr/u8-move.c: New file.
70733         * lib/unistr/u16-move.c: New file.
70734         * lib/unistr/u32-move.c: New file.
70735         * lib/unistr/u-move.h: New file.
70736
70737         * modules/unistr/u8-next: New file.
70738         * modules/unistr/u16-next: New file.
70739         * modules/unistr/u32-next: New file.
70740         * lib/unistr/u8-next.c: New file.
70741         * lib/unistr/u16-next.c: New file.
70742         * lib/unistr/u32-next.c: New file.
70743
70744         * modules/unistr/u8-prev: New file.
70745         * modules/unistr/u16-prev: New file.
70746         * modules/unistr/u32-prev: New file.
70747         * lib/unistr/u8-prev.c: New file.
70748         * lib/unistr/u16-prev.c: New file.
70749         * lib/unistr/u32-prev.c: New file.
70750
70751         * modules/unistr/u8-set: New file.
70752         * modules/unistr/u16-set: New file.
70753         * modules/unistr/u32-set: New file.
70754         * lib/unistr/u8-set.c: New file.
70755         * lib/unistr/u16-set.c: New file.
70756         * lib/unistr/u32-set.c: New file.
70757         * lib/unistr/u-set.h: New file.
70758
70759         * modules/unistr/u8-startswith: New file.
70760         * modules/unistr/u16-startswith: New file.
70761         * modules/unistr/u32-startswith: New file.
70762         * lib/unistr/u8-startswith.c: New file.
70763         * lib/unistr/u16-startswith.c: New file.
70764         * lib/unistr/u32-startswith.c: New file.
70765         * lib/unistr/u-startswith.h: New file.
70766
70767         * modules/unistr/u8-stpcpy: New file.
70768         * modules/unistr/u16-stpcpy: New file.
70769         * modules/unistr/u32-stpcpy: New file.
70770         * lib/unistr/u8-stpcpy.c: New file.
70771         * lib/unistr/u16-stpcpy.c: New file.
70772         * lib/unistr/u32-stpcpy.c: New file.
70773         * lib/unistr/u-stpcpy.h: New file.
70774
70775         * modules/unistr/u8-stpncpy: New file.
70776         * modules/unistr/u16-stpncpy: New file.
70777         * modules/unistr/u32-stpncpy: New file.
70778         * lib/unistr/u8-stpncpy.c: New file.
70779         * lib/unistr/u16-stpncpy.c: New file.
70780         * lib/unistr/u32-stpncpy.c: New file.
70781         * lib/unistr/u-stpncpy.h: New file.
70782
70783         * modules/unistr/u8-strcat: New file.
70784         * modules/unistr/u16-strcat: New file.
70785         * modules/unistr/u32-strcat: New file.
70786         * lib/unistr/u8-strcat.c: New file.
70787         * lib/unistr/u16-strcat.c: New file.
70788         * lib/unistr/u32-strcat.c: New file.
70789         * lib/unistr/u-strcat.h: New file.
70790
70791         * modules/unistr/u8-strchr: New file.
70792         * modules/unistr/u16-strchr: New file.
70793         * modules/unistr/u32-strchr: New file.
70794         * lib/unistr/u8-strchr.c: New file.
70795         * lib/unistr/u16-strchr.c: New file.
70796         * lib/unistr/u32-strchr.c: New file.
70797
70798         * modules/unistr/u8-strcmp: New file.
70799         * modules/unistr/u16-strcmp: New file.
70800         * modules/unistr/u32-strcmp: New file.
70801         * lib/unistr/u8-strcmp.c: New file.
70802         * lib/unistr/u16-strcmp.c: New file.
70803         * lib/unistr/u32-strcmp.c: New file.
70804
70805         * modules/unistr/u8-strcpy: New file.
70806         * modules/unistr/u16-strcpy: New file.
70807         * modules/unistr/u32-strcpy: New file.
70808         * lib/unistr/u8-strcpy.c: New file.
70809         * lib/unistr/u16-strcpy.c: New file.
70810         * lib/unistr/u32-strcpy.c: New file.
70811         * lib/unistr/u-strcpy.h: New file.
70812
70813         * modules/unistr/u8-strcspn: New file.
70814         * modules/unistr/u16-strcspn: New file.
70815         * modules/unistr/u32-strcspn: New file.
70816         * lib/unistr/u8-strcspn.c: New file.
70817         * lib/unistr/u16-strcspn.c: New file.
70818         * lib/unistr/u32-strcspn.c: New file.
70819         * lib/unistr/u-strcspn.h: New file.
70820
70821         * modules/unistr/u8-strdup: New file.
70822         * modules/unistr/u16-strdup: New file.
70823         * modules/unistr/u32-strdup: New file.
70824         * lib/unistr/u8-strdup.c: New file.
70825         * lib/unistr/u16-strdup.c: New file.
70826         * lib/unistr/u32-strdup.c: New file.
70827         * lib/unistr/u-strdup.h: New file.
70828
70829         * modules/unistr/u8-strlen: New file.
70830         * modules/unistr/u16-strlen: New file.
70831         * modules/unistr/u32-strlen: New file.
70832         * lib/unistr/u8-strlen.c: New file.
70833         * lib/unistr/u16-strlen.c: New file.
70834         * lib/unistr/u32-strlen.c: New file.
70835         * lib/unistr/u-strlen.h: New file.
70836
70837         * modules/unistr/u8-strmblen: New file.
70838         * modules/unistr/u16-strmblen: New file.
70839         * modules/unistr/u32-strmblen: New file.
70840         * lib/unistr/u8-strmblen.c: New file.
70841         * lib/unistr/u16-strmblen.c: New file.
70842         * lib/unistr/u32-strmblen.c: New file.
70843
70844         * modules/unistr/u8-strmbtouc: New file.
70845         * modules/unistr/u16-strmbtouc: New file.
70846         * modules/unistr/u32-strmbtouc: New file.
70847         * lib/unistr/u8-strmbtouc.c: New file.
70848         * lib/unistr/u16-strmbtouc.c: New file.
70849         * lib/unistr/u32-strmbtouc.c: New file.
70850
70851         * modules/unistr/u8-strncat: New file.
70852         * modules/unistr/u16-strncat: New file.
70853         * modules/unistr/u32-strncat: New file.
70854         * lib/unistr/u8-strncat.c: New file.
70855         * lib/unistr/u16-strncat.c: New file.
70856         * lib/unistr/u32-strncat.c: New file.
70857         * lib/unistr/u-strncat.h: New file.
70858
70859         * modules/unistr/u8-strncmp: New file.
70860         * modules/unistr/u16-strncmp: New file.
70861         * modules/unistr/u32-strncmp: New file.
70862         * lib/unistr/u8-strncmp.c: New file.
70863         * lib/unistr/u16-strncmp.c: New file.
70864         * lib/unistr/u32-strncmp.c: New file.
70865
70866         * modules/unistr/u8-strncpy: New file.
70867         * modules/unistr/u16-strncpy: New file.
70868         * modules/unistr/u32-strncpy: New file.
70869         * lib/unistr/u8-strncpy.c: New file.
70870         * lib/unistr/u16-strncpy.c: New file.
70871         * lib/unistr/u32-strncpy.c: New file.
70872         * lib/unistr/u-strncpy.h: New file.
70873
70874         * modules/unistr/u8-strnlen: New file.
70875         * modules/unistr/u16-strnlen: New file.
70876         * modules/unistr/u32-strnlen: New file.
70877         * lib/unistr/u8-strnlen.c: New file.
70878         * lib/unistr/u16-strnlen.c: New file.
70879         * lib/unistr/u32-strnlen.c: New file.
70880         * lib/unistr/u-strnlen.h: New file.
70881
70882         * modules/unistr/u8-strpbrk: New file.
70883         * modules/unistr/u16-strpbrk: New file.
70884         * modules/unistr/u32-strpbrk: New file.
70885         * lib/unistr/u8-strpbrk.c: New file.
70886         * lib/unistr/u16-strpbrk.c: New file.
70887         * lib/unistr/u32-strpbrk.c: New file.
70888         * lib/unistr/u-strpbrk.h: New file.
70889
70890         * modules/unistr/u8-strrchr: New file.
70891         * modules/unistr/u16-strrchr: New file.
70892         * modules/unistr/u32-strrchr: New file.
70893         * lib/unistr/u8-strrchr.c: New file.
70894         * lib/unistr/u16-strrchr.c: New file.
70895         * lib/unistr/u32-strrchr.c: New file.
70896
70897         * modules/unistr/u8-strspn: New file.
70898         * modules/unistr/u16-strspn: New file.
70899         * modules/unistr/u32-strspn: New file.
70900         * lib/unistr/u8-strspn.c: New file.
70901         * lib/unistr/u16-strspn.c: New file.
70902         * lib/unistr/u32-strspn.c: New file.
70903         * lib/unistr/u-strspn.h: New file.
70904
70905         * modules/unistr/u8-strstr: New file.
70906         * modules/unistr/u16-strstr: New file.
70907         * modules/unistr/u32-strstr: New file.
70908         * lib/unistr/u8-strstr.c: New file.
70909         * lib/unistr/u16-strstr.c: New file.
70910         * lib/unistr/u32-strstr.c: New file.
70911         * lib/unistr/u-strstr.h: New file.
70912
70913         * modules/unistr/u8-strtok: New file.
70914         * modules/unistr/u16-strtok: New file.
70915         * modules/unistr/u32-strtok: New file.
70916         * lib/unistr/u8-strtok.c: New file.
70917         * lib/unistr/u16-strtok.c: New file.
70918         * lib/unistr/u32-strtok.c: New file.
70919         * lib/unistr/u-strtok.h: New file.
70920
70921         * modules/unistr/u8-uctomb: New file.
70922         * modules/unistr/u16-uctomb: New file.
70923         * modules/unistr/u32-uctomb: New file.
70924         * lib/unistr/u8-uctomb.c: New file.
70925         * lib/unistr/u16-uctomb.c: New file.
70926         * lib/unistr/u32-uctomb.c: New file.
70927
70928         * MODULES.html.sh (Unicode string functions): Add the new modules.
70929
70930 2007-01-08  Bruno Haible  <bruno@clisp.org>
70931
70932         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70933         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70934         subdirectories.
70935
70936 2007-01-08  Karl Berry  <karl@gnu.org>
70937
70938         * doc/error.texi: mention that main() fns must set program_name
70939         when progname is used.
70940
70941 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70942
70943         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70944         WCTYPE_H is empty, for the benefit of builds from non-distclean
70945         directories.  Problem reported by Eric Blake in
70946         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70947
70948 2007-01-08  Bruno Haible  <bruno@clisp.org>
70949
70950         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70951         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70952         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70953         PROVIDE_CANONICALIZE_FILENAME_MODE.
70954         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70955
70956 2007-01-08  Bruno Haible  <bruno@clisp.org>
70957
70958         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70959         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70960         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70961         * lib/fts.c: Likewise.
70962         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70963
70964 2006-12-25  Bruno Haible  <bruno@clisp.org>
70965
70966         * modules/utf8-ucs4-safe: New file.
70967         * lib/utf8-ucs4-safe.h: New file.
70968         * lib/unistr/utf8-ucs4-safe.c: New file.
70969
70970         * modules/utf16-ucs4-safe: New file.
70971         * lib/utf16-ucs4-safe.h: New file.
70972         * lib/unistr/utf16-ucs4-safe.c: New file.
70973
70974         * MODULES.html.sh (Unicode string functions): Add the new modules.
70975
70976 2007-01-08  Bruno Haible  <bruno@clisp.org>
70977
70978         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70979         (Depends-on): Add unitypes.
70980         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70981         (u8_mbtouc_aux): Move out to separate file.
70982         (u8_mbtouc): Use ucs4_t, uint8_t types.
70983         * lib/unistr/utf8-ucs4.c: New file.
70984
70985         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70986         (Depends-on): Add unitypes.
70987         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70988         (u16_mbtouc_aux): Move out to separate file.
70989         (u16_mbtouc): Use ucs4_t, uint16_t types.
70990         * lib/unistr/utf16-ucs4.c: New file.
70991
70992         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70993         (Depends-on): Add unitypes.
70994         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70995         (u8_uctomb_aux): Move out to separate file.
70996         (u8_uctomb): Use ucs4_t, uint8_t types.
70997         * lib/unistr/ucs4-utf8.c: New file.
70998
70999         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71000         (Depends-on): Add unitypes.
71001         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71002         (u16_uctomb_aux): Move out to separate file.
71003         (u16_uctomb): Use ucs4_t, uint16_t types.
71004         * lib/unistr/ucs4-utf16.c: New file.
71005
71006 2006-12-25  Bruno Haible  <bruno@clisp.org>
71007
71008         * modules/unitypes: New file.
71009         * lib/unitypes.h: New file.
71010         * MODULES.html.sh (func_all_modules): New section "Unicode string
71011         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71012         this section. Add unitypes.
71013
71014 2007-01-08  Bruno Haible  <bruno@clisp.org>
71015
71016         Avoid variable names that conflict with those from libtool.
71017         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71018         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71019         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71020         library_names_spec to acl_library_names_spec, hardcode_* to
71021         acl_hardcode_*.
71022         Reported by Ralf Wildenhues.
71023
71024 2007-01-08  Bruno Haible  <bruno@clisp.org>
71025
71026         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71027         definition.
71028         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71029         definition.
71030         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71031         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71032         definition.
71033         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71034         definition.
71035         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71036         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71037         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71038         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71039         definition.
71040         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71041         definition.
71042         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71043         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71044         GC_USE_<algorithm>.
71045         * lib/gc-libgcrypt.c: Likewise.
71046         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71047         * modules/gc-arctwo (configure.ac): Likewise.
71048         * modules/gc-des (configure.ac): Likewise.
71049         * modules/gc-hmac-md5 (configure.ac): Likewise.
71050         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71051         * modules/gc-md2 (configure.ac): Likewise.
71052         * modules/gc-md4 (configure.ac): Likewise.
71053         * modules/gc-md5 (configure.ac): Likewise.
71054         * modules/gc-random (configure.ac): Likewise.
71055         * modules/gc-rijndael (configure.ac): Likewise.
71056         * modules/gc-sha1 (configure.ac): Likewise.
71057
71058 2007-01-08  Bruno Haible  <bruno@clisp.org>
71059
71060         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71061         macro definition.
71062         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71063         definition.
71064         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71065         definition.
71066         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71067         * modules/fcntl-safer (configure.ac): Likewise.
71068         * modules/fopen-safer (configure.ac): Likewise.
71069         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71070         GNULIB_FWRITEERROR macro definition.
71071
71072 2007-01-08  Bruno Haible  <bruno@clisp.org>
71073
71074         * m4/gnulib-common.m4: New file.
71075         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71076         (func_get_filelist): Add m4/gnulib-common.m4.
71077
71078 2007-01-08  Bruno Haible  <bruno@clisp.org>
71079
71080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71081         command.
71082
71083 2007-01-08  Jim Meyering  <jim@meyering.net>
71084
71085         Use a more robust test for a "can't happen" condition.
71086         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71087         narrowed the st_size value.  Presuming the "can't happen" condition
71088         is true, that narrowing could conceivably convert an invalid st_size
71089         value into a valid one.  Instead, use a change based on Matthew
71090         Woehlke's original patch.
71091
71092         Slight readability improvement: use an assert-like macro
71093         in place of literal "abort ()" uses.
71094         * lib/fts.c (fts_assert): Define.
71095         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71096         Use this macro instead of a bare 'abort'.
71097
71098 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71099
71100         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71101         simply work around them.
71102         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71103         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71104         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71105         declaring.
71106         Don't bother to define as macros, since the standard doesn't require it.
71107         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71108         longer worry about IRIX 5.3.
71109         (HAVE_WCTYPE_CTMP_BUG): Remove.
71110
71111 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71112
71113         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71114         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71115         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71116         Problems reported by Georg Schwarz for IRIX 5.3.
71117
71118         * gnulib-tool (autoconf_minversion): Take the maximum version number
71119         found, not the minimum.  Problem reported by James Youngman.
71120
71121 2007-01-03  Karl Berry  <karl@gnu.org>
71122
71123         * doc/error.texi: new file, explaining interaction with progname.
71124         * doc/gnulib.texi: include it.  Update copyright.
71125
71126 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71127
71128         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71129         AC_CANONICAL_HOST, to improve autobuild outputs.
71130
71131 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71132             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71133
71134         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71135         sockets, server sockets, and other file descriptors.  Count errors
71136         to compute the return value.  Reorder the code a bit to be easier
71137         to follow.  Don't set event bits that were not requested (except
71138         POLLERR and POLLHUP).
71139
71140 2007-01-01  Bruno Haible  <bruno@clisp.org>
71141
71142         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71143
71144 2007-01-03  Jim Meyering  <jim@meyering.net>
71145
71146         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71147
71148 2007-01-02  Bruno Haible  <bruno@clisp.org>
71149
71150         * modules/settime (Include): Require timespec.h.
71151         * modules/nanosleep (Include): Likewise.
71152
71153 2007-01-01  Bruno Haible  <bruno@clisp.org>
71154
71155         * gnulib-tool (func_emit_copyright_notice): Bump year.
71156         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71157
71158 2007-01-01  Bruno Haible  <bruno@clisp.org>
71159
71160         Improve support for OpenBSD.
71161         * build-aux/config.rpath (libname_spec): Export.
71162         (library_names_spec): New variable. Export.
71163         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71164         library_names_spec from the config.rpath output. Locate shared library
71165         through the name pattern in library_names_spec.
71166
71167 2007-01-01  Eric Blake  <ebb9@byu.net>
71168
71169         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71170
71171 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71172
71173         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71174         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71175         assume the C locale, and avoid an "eval" that could cause trouble.
71176         Problem with SORT reported by Bob Proulx.
71177
71178         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71179         Define.  Trivial patch from Henning Nielsen Lund, originally
71180         sent to bug-grep@gnu.org today.
71181
71182 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71183
71184         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71185         struct stat.  Problem reported by Henning Nielsen Lund.
71186         * lib/acl.c: Include acl.h first, to check interface.  Don't
71187         bother to include sys/types.h and sys/stat.h again.
71188
71189 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         Import the following change from libc; problem reported by
71192         Sven Verdoolaege.
71193
71194         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71195
71196         [BZ #1373]
71197         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71198
71199 2006-12-28  Jim Meyering  <jim@meyering.net>
71200
71201         * build-aux/announce-gen: Do not assume that the package
71202         builds any of tar.gz, tar.bz2, and .xdelta files.
71203         Suggestion from Simon Josefsson.
71204
71205 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71206
71207         * modules/announce-gen: New file.
71208
71209 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71210
71211         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71212         handles its gotchas now.
71213         * lib/mbswidth.c: Likewise.
71214         * lib/wcwidth.h: Likewise.
71215         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71216         and iswcntrl; the wctype module does this stuff now.
71217         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71219         * modules/mbchar (Depends-on): Add wctype.
71220         * modules/mbswidth (Depends-on): Likewise.
71221         * modules/wcwidth (Depends-on): Likewise.
71222
71223 2006-12-27  Eric Blake  <ebb9@byu.net>
71224
71225         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71226         module uses more than what <wctype.h> is required to provide.
71227
71228 2006-12-26  Eric Blake  <ebb9@byu.net>
71229
71230         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71231
71232 2006-12-26  Eric Blake  <ebb9@byu.net>
71233
71234         * modules/absolute-header: New module.
71235         * modules/fcntl (Depends-on): Depend on it.
71236         * modules/inttypes (Depends-on): Likewise.
71237         * modules/stdint (Depends-on): Likewise.
71238         * modules/sys_stat (Depends-on): Likewise.
71239         * modules/wctype (Depends-on): Likewise.
71240         * MODULES.html.sh (Support for building libraries and
71241         executables): Document it.
71242
71243 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71244
71245         * gnulib-tool (SED): Remove, undoing previous change.
71246         The problem was that it broke coreutils on Solaris, because
71247         "sed --posix" leaked into a makefile.
71248         (sed): New alias, if 'alias' and GNU sed.
71249
71250 2006-12-24  Jim Meyering  <jim@meyering.net>
71251
71252         Work around an fchownat bug in glibc-2.4:
71253         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71254         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71255         in spite of the -P option.
71256         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71257         New macros.
71258         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71259         * modules/openat (Files): Add lib/fchownat.c.
71260         * lib/openat.c (fchownat): Don't define here.  Move to...
71261         * lib/fchownat.c: ...this new file.
71262
71263 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71264
71265         Fix bug reported by Bruno Haible in
71266         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71267         where quotearg.c didn't compile on Mac OS X 10.2 because it
71268         lacks <wchar.h> and wint_t.
71269         * lib/wctype_.h (__wctype_wint_t): New type.
71270         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71271         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71272         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71273         Arg is now of type __wctype_wint_t, not wint_t.
71274         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71275         substitute HAVE_WINT_T.
71276         * modules/wctype (Files): Add m4/wint_t.m4.
71277         (wctype.h): Substitute HAVE_WINT_T.
71278
71279 2006-12-23  Bruno Haible  <bruno@clisp.org>
71280
71281         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71282
71283 2006-12-23  Bruno Haible  <bruno@clisp.org>
71284
71285         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71286         S_ISLNK.
71287         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71288         mingw.
71289
71290 2006-12-22  Bruno Haible  <bruno@clisp.org>
71291
71292         * lib/copy-file.c: Include acl.h.
71293         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71294         Close the file descriptors only after being done with copy_acl.
71295         * modules/copy-file (Depends-on): Add acl.
71296
71297 2006-12-22  Bruno Haible  <bruno@clisp.org>
71298
71299         * gnulib-tool (SED): New variable.
71300         Use $SED instead of sed everywhere.
71301
71302 2006-12-22  Bruno Haible  <bruno@clisp.org>
71303
71304         * modules/no-c++: New file.
71305         * m4/no-c++.m4: New file.
71306         * MODULES.html.sh (Support for building libraries and executables):
71307         Add no-c++.
71308
71309 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71312         Include <limits.h>, and use its INT_MAX to rewrite the
71313         j loop so that it does not overflow 'int'.  Problem reported by
71314         Ralf Wildenhues in
71315         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71316         Play it safe by shifting left by 1 rather than multiplying by 2,
71317         as GCC is less likely to optimize this away when the value
71318         is signed (when it assumes overflow leads to undefined behavior).
71319         Also, don't assume time_t uses two's complement.
71320
71321 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71322
71323         * MODULES.html.sh: New module wctype.
71324         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71325         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71326         <wctype.h>, since the new wctype module should fix this.
71327         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71328         the wctype module should arrange for it.
71329         * lib/regex_internal.h: Likewise.
71330         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71331         since the wctype module should handle this now.
71332         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71333         * modules/fnmatch (Depends-on): Add wctype.
71334         * modules/quotearg (Depends-on): Likewise.
71335         * modules/regex (Depends-on): Likewise.
71336
71337 2006-12-19  Bruno Haible  <bruno@clisp.org>
71338
71339         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71340         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71341
71342 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71343
71344         * modules/savewd (Depends-on): Fix dependency on fcntl.
71345
71346 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71347
71348         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71349         conforms to C99, rather than relying on the user's environment
71350         setting of STDINT_H.
71351
71352 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71353         and Eric Blake  <ebb9@byu.net>
71354
71355         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71356         This is more consistent with the other defines here.
71357         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71358         Port to z/OS.  Problem reported by Paul Gilmartin.
71359         Change local vars to use gl_ prefix rather than ac_.
71360         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71361         with other defines.
71362         * modules/double-slash-root: New module.
71363         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71364         (Depends-on): Add double-slash-root.
71365         * MODULES.html.sh (File system functions): Mention new module.
71366
71367 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71368
71369         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71370         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71371         This is for the benefit of gzip, which doesn't do i18n.
71372
71373 2006-12-12  Jim Meyering  <jim@meyering.net>
71374
71375         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71376         Reported by Andreas Schwab <schwab@suse.de>.
71377
71378 2006-12-12  Bruno Haible  <bruno@clisp.org>
71379
71380         Merge these changes.
71381         2006-09-05  Bruno Haible  <bruno@clisp.org>
71382         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71383         iconv_alloc succeeded.
71384         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71385         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71386         test for " && dest " at the end - dest is always != NULL there. Call
71387         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71388         with 2xNULL arguments, also to flush the state storage. Handle the
71389         IRIX iconv behaviour. Realloc the final result, to throw away unused
71390         memory.
71391
71392 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71393
71394         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71395         and fchmodat unconditionally, since glibc 2.4 has them.
71396         Problem reported by Arkadiusz Miskiewicz.
71397
71398 2006-12-10  Bruno Haible  <bruno@clisp.org>
71399
71400         * gnulib-tool (func_import): Show the include files only for those
71401         modules that are copied and specified.
71402         Reported by Karl Berry.
71403
71404 2006-12-08  Jim Meyering  <jim@meyering.net>
71405
71406         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71407         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71408
71409         * build-aux/announce-gen: Add two new options, both optional:
71410         --bootstrap-tools=TOOL_LIST
71411               a comma-separated list of tools, e.g.,
71412               autoconf,automake,bison,gnulib
71413         --gnulib-snapshot-date=DATE
71414               if gnulib is in the bootstrap tool list,
71415               then report this as the snapshot date.
71416               If not specified, use the current date/time.
71417               If you specify a date here, be sure it's UTC.
71418
71419 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71420
71421         * tests/test-argp-2.sh: Fix test to match actual output.
71422         (func_compare): Fix sed script to be portable.
71423
71424 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71425
71426         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71427         workaround for this case.  It is not autoconfigured now; offhand
71428         it's hard to see how to autoconfigure it.
71429
71430 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71433         a directory that is about to be chowned.  Such a directory's
71434         initial file permissions should permit the owner only and this
71435         should not be changed until after the chown, since the group and
71436         other bits would be incorrect if they granted permission before
71437         the chown.
71438
71439         Fix porting problem for iswctype reported by Georg Schwarz in:
71440         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71441         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71442         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71443         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71444         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71445
71446 2006-12-03  Jim Meyering  <jim@meyering.net>
71447
71448         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71449         p->fts_statp may not yet be defined.
71450         (fts_read): Instead, set it in the caller, once p->fts_statp is
71451         sure to be defined, and corresponds to a top-level directory.
71452         This bug made du -x fail.  Here's the coreutils test case:
71453         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71454         Reported by Mike Frysinger.
71455
71456 2006-12-01  Jim Meyering  <jim@meyering.net>
71457
71458         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71459         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71460         Reported by Simon Josefsson.
71461
71462 2006-11-30  Jim Meyering  <jim@meyering.net>
71463
71464         * m4/warning.m4: Use the all-permissive copyright notice
71465         recommended by RMS (rather than LGPL).
71466         * m4/vararrays.m4: Likewise.
71467         * m4/flexmember.m4: Likewise.
71468
71469 2006-11-29  Bruno Haible  <bruno@clisp.org>
71470
71471         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71472         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71473         using +=.
71474         Reported by Simon Josefsson <simon@josefsson.org>.
71475
71476 2006-11-28  James Youngman <jay@gnu.org>
71477
71478         * README: Advise users that they might find the bug-gnulib@gnu.org
71479         and autotools-announce@gnu.org mailing lists useful.
71480
71481 2006-11-28  Bruno Haible  <bruno@clisp.org>
71482
71483         * m4/ptrdiff_max.m4: Remove file.
71484
71485 2006-11-21  Bruno Haible  <bruno@clisp.org>
71486
71487         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71488         _AC_COMPUTE_INT.
71489         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71490         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71491         _AC_COMPUTE_INT.
71492         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71493         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71494         _AC_COMPUTE_INT.
71495         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71496
71497 2006-11-28  Jim Meyering  <jim@meyering.net>
71498
71499         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71500         warning from "gcc -Wshadow" about shadowing the builtin.
71501
71502 2006-11-27  Bruno Haible  <bruno@clisp.org>
71503
71504         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71505         _AC_COMPUTE_INT.
71506         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71507
71508 2006-11-27  Bruno Haible  <bruno@clisp.org>
71509             Paul Eggert  <eggert@cs.ucla.edu>
71510
71511         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71512
71513 2006-11-26  Bruno Haible  <bruno@clisp.org>
71514
71515         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71516         noinst_LTLIBRARIES.
71517
71518 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71519             Bruno Haible  <bruno@clisp.org>
71520
71521         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71522         if compiling with "gcc -ansi".
71523
71524 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71525
71526         Fix some incompatibilities with gcc -ansi -pedantic.
71527         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71528         if compiling pedantically with GCC, unless it's C99 or later.
71529         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71530         it mishandles gcc -ansi -pedantic as well.
71531         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71532         if gcc -pedantic.
71533         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71534         initializers for struct if -pedantic, unless it's C99 or later.
71535
71536 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71537
71538         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71539         Don't close an fd more than once. Identical atimes indicate
71540         success, not failure.
71541
71542 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71543
71544         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71545
71546 2006-11-23  Jim Meyering  <jim@meyering.net>
71547
71548         * build-aux/announce-gen: New file.  From coreutils.
71549
71550 2006-11-22  Jim Meyering  <jim@meyering.net>
71551
71552         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71553         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71554         (fts_read): Use a temporary to narrow the overused st_size member
71555         before using it in a switch statement.  Reported by Matthew Woehlke.
71556
71557         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71558         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71559
71560 2006-11-20  Bruno Haible  <bruno@clisp.org>
71561
71562         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71563         changequote instead of pairs of brackets.
71564         Reported by Andreas Schwab <schwab@suse.de>.
71565
71566 2006-11-21  Jim Meyering  <jim@meyering.net>
71567
71568         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71569         so as to remain compatible with older compilers.
71570         Patch from Michael Deutschmann.
71571
71572 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * MODULES.html.sh (File system functions): Add openat.
71575
71576         * lib/openat.h (rpl_fstatat): New macro, if
71577         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71578         (fstatat): Define to rpl_fstatat under the same conditions,
71579         unless COMPILING_FSTATAT.
71580         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71581         seems to have the bug.
71582         * lib/fstatat.c: New file.
71583         * modules/openat (Files): Add it.
71584
71585 2006-11-20  Bruno Haible  <bruno@clisp.org>
71586
71587         * Makefile: New file.
71588
71589 2006-11-20  Jim Meyering  <jim@meyering.net>
71590
71591         The beginnings of syntax-related checks for gnulib.
71592         * lib/Makefile: New file.
71593         * lib/t-idcache: New script.  Ensure that the two halves of
71594         idcache.c stay in sync.
71595
71596         * lib/idcache.c: Adjust comments in user- and group- portions to
71597         be more accurate, and to be consistent with one another.
71598
71599 2006-11-20  Jim Meyering  <jim@meyering.net>
71600
71601         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71602         continue using the flexible array member (thus, this module performs
71603         half as many malloc calls), with the addition that...
71604         (getgroup, getuser): Consistently record a non-match via an empty
71605         "name" string, and map an empty string match to a NULL return value.
71606         * modules/idcache (Depends-on): Re-add flexmember.
71607
71608         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71609         (getuidbyname, getgroup, getgidbyname): Likewise.
71610
71611         Use cleaner syntax: NULL rather than 0.
71612         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71613
71614 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71615
71616         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71617         It mishandled the case where the group was missing.
71618         Problem reported by Greg Schafer.
71619         * modules/idcache: Likewise.
71620
71621 2006-11-18  Jim Meyering  <jim@meyering.net>
71622
71623         * check-module (%exempt_header): Add exception for some
71624         conditionally-included headers.
71625
71626         * modules/i-ring (Depends-on): Add verify.
71627         (License): Change to LGPL.
71628
71629 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71630
71631         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71632         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71633         and inttostr.h.  Use snprintf rather than uinttostr, so that
71634         LGPLed code doesn't depend on GPLed.
71635
71636 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * modules/inline (License): Change from GPL to LGPL.
71639
71640 2006-11-17  Jim Meyering  <jim@meyering.net>
71641
71642         * modules/d-type (License): Switch to LGPL.
71643
71644 2006-11-15  Bruno Haible  <bruno@clisp.org>
71645
71646         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71647
71648 2006-11-15  Eric Blake  <ebb9@byu.net>
71649
71650         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71651         the module dependency.
71652
71653 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71654             Bruno Haible  <bruno@clisp.org>
71655
71656         * gnulib-tool (func_create_testdir): Add license consistency check.
71657
71658 2006-11-15  Eric Blake  <ebb9@byu.net>
71659
71660         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71661         random "(cached)" in configure output.
71662
71663 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71664
71665         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71666         test for conforming inttypes.h is both announced and cached.
71667
71668         * MODULES.html.sh (seen_modules, seen_files): New variables.
71669         (func_module): Rewrite to use a few less gnulib-tool and sed
71670         invocations.  Avoid a couple of quadratic algorithms for ...
71671         (missed_modules, missed_files): ... these, with ...
71672         (func_append, func_tmpdir): ... these new functions, from
71673         gnulib-tool.  Analogously, install traps for cleanup.
71674
71675         * tests/test-gc.c (main): Remove unused variables.
71676         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71677
71678 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71679
71680         * modules/inttostr (License): Change to LGPL.
71681
71682 2006-11-14  Eric Blake  <ebb9@byu.net>
71683
71684         * modules/tempname (License): Change to LGPL.
71685
71686 2006-11-14  Eric Blake  <ebb9@byu.net>
71687
71688         * doc/functions.texi (Function Portability): *printf functions on
71689         Cygwin now understand all POSIX size specifiers.
71690
71691 2006-11-14  Bruno Haible  <bruno@clisp.org>
71692
71693         * modules/c-ctype (License): Change to LGPL.
71694
71695 2006-11-12  Bruno Haible  <bruno@clisp.org>
71696
71697         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71698         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71699         for GNOME libraries, for which the include files are installed in
71700         subdirectories of $prefix/include.
71701
71702 2006-11-12  Bruno Haible  <bruno@clisp.org>
71703
71704         * m4/lib-link.m4: Require at least autoconf-2.54.
71705         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71706         name to underscores for the --with option.
71707
71708 2006-11-13  Bruno Haible  <bruno@clisp.org>
71709
71710         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71711         the tests directory.
71712         Reported by Ralf Wildenhues.
71713
71714 2006-11-13  Bruno Haible  <bruno@clisp.org>
71715
71716         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71717         (func_emit_initmacro_end): Undo the override here.
71718         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71719         Works around the famous automake error in coreutils.
71720
71721 2006-11-13  Eric Blake  <ebb9@byu.net>
71722
71723         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71724         element, not its node.
71725
71726 2006-11-12  Bruno Haible  <bruno@clisp.org>
71727
71728         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71729         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71730
71731 2006-11-12  Bruno Haible  <bruno@clisp.org>
71732
71733         * gnulib-tool: New option --local-symlink.
71734         (func_usage): Document it.
71735         (lsymbolic): New variable.
71736         (func_import, func_create_testdir): If --symlink was not specified,
71737         test whether --local-symlink was specified and the file comes from
71738         the local_gnulib_dir.
71739
71740 2006-11-12  Bruno Haible  <bruno@clisp.org>
71741
71742         * gnulib-tool (func_ln): New function.
71743         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71744
71745 2006-11-12  Bruno Haible  <bruno@clisp.org>
71746
71747         Finish support for source files in subdirectories.
71748         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71749         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71750         AUTOMAKE_OPTIONS.
71751         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71752
71753 2006-11-12  Bruno Haible  <bruno@clisp.org>
71754
71755         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71756         EXTRA_lib_SOURCES augmentation.
71757         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71758
71759 2006-11-12  Jim Meyering  <jim@meyering.net>
71760
71761         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71762         file descriptors.  This also averts a failure on systems with
71763         native openat support when a traversed directory lacks "x" access.
71764         * lib/fts_.h: Include "i-ring.h"
71765         (struct FTS) [fts_fd_ring]: New member.
71766         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71767         (FCHDIR): Add parentheses.
71768         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71769         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71770         When descending, rather than simply closing the previous
71771         fts_cwd_fd value, push that file descriptor onto the ring.
71772         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71773         (fts_open): Initialize the new fd_ring member.
71774         (fts_close): Clear the ring.
71775         (fts_safe_changedir): When possible, use our new fd_ring to skip
71776         the diropen and fstat and dev/ino comparison that would normally
71777         accompany a virtual `chdir ("..")'.
71778
71779         * modules/fts (Depends-on): Add i-ring.
71780         * modules/i-ring: New module.
71781         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71782         * m4/i-ring.m4: New file.
71783
71784 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71785
71786         * gnulib-tool (func_create_testdir): Fix replacement of
71787         `build-aux' in configure.ac.  Run autotools in gltests
71788         subdirectory.
71789         (func_create_testdir, func_create_megatestdir, test): There is
71790         no need for '--force' in most autotool invocations in a new
71791         tree.  Actually fail the whole test if any of the tools, or the
71792         configure or make stages fail.
71793
71794         Sync from Automake.
71795         * build-aux/gnupload: Revert last change.  Add pointer to upload
71796         instructions of the GNU Maintenance Instructions.
71797         Suggestion by Karl Berry.
71798
71799 2006-11-10  Jim Meyering  <jim@meyering.net>
71800
71801         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71802
71803 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71806         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71807         (bind_textdomain_codeset) [! ENABLE_NLS]:
71808         Evaluate all the arguments.  That way, callers get compatible behavior
71809         if the arguments have side effects.  Also, it avoids some GCC
71810         diagnostics in some cases; Joel E. Denny reported problems when Bison
71811         was configured with --enable-gcc-warnigs.
71812
71813 2006-11-10  Jim Meyering  <jim@meyering.net>
71814
71815         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71816         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71817         account.
71818
71819 2006-11-10  Jim Meyering  <jim@meyering.net>
71820
71821         * modules/inline: New file/module.
71822         * modules/xalloc (Files): Remove m4/inline.m4.
71823         (Depends-on): Add inline, instead.
71824         * modules/oset: Likewise.
71825         * modules/list: Likewise.
71826
71827 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71828
71829         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71830         Problem reported by Matthew Woehlke.
71831
71832 2006-11-09  Bruno Haible  <bruno@clisp.org>
71833
71834         * lib/tempname.c (gen_tempname): Remove variant that invokes
71835         __gen_tempname.
71836         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71837         __gen_tempname.
71838
71839 2006-11-08  Bruno Haible  <bruno@clisp.org>
71840
71841         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71842         to 'yes' instead of 'cross-compiling'.
71843
71844 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71845
71846         * lib/quotearg.h (quotearg_free): New decl.
71847         * lib/quotearg.c (quotearg_free): New function.
71848         (slot0, nslots, slotvec0, slotvec):
71849         Now file-scope so that quotearg_free can get at them.
71850
71851 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71852
71853         Sync from Automake.
71854         * build-aux/gnupload: Add missing 'gnu' to example URL.
71855         Report by Karl Berry.
71856
71857 2006-11-08  Bruno Haible  <bruno@clisp.org>
71858
71859         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71860         Suggested by Paul Eggert.
71861
71862 2006-11-08  Jim Meyering  <jim@meyering.net>
71863
71864         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71865         It's already included if !_LIBC.
71866         (fts_safe_changedir): Add a comment.
71867
71868 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71869
71870         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71871         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71872         Matthew Woehlke.
71873
71874         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71875         definitions up, to avoid colliding with change below.
71876         (static_inline) [HAVE_INLINE]: New macro.
71877         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71878         Provide extern decls when !HAVE_INLINE.  Do not define unless
71879         static_inline is defined, either by us or by xmalloc.c.  Use
71880         static_inline rather than static inline.
71881         (XCALLOC): Optimize sizeof(T) = 1 case.
71882         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71883
71884 2006-11-07  Bruno Haible  <bruno@clisp.org>
71885
71886         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71887         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71888         AC_C_INLINE.
71889         * modules/xalloc (Files): Add m4/inline.m4.
71890
71891 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71892
71893         * README: Fix typo.
71894         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71895         (Miscellanous Notes): ...from this.
71896
71897 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71898
71899         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71900         Mention that offsetof should be used instead of sizeof.
71901         From Bruno Haible.
71902
71903 2006-11-07  Bruno Haible  <bruno@clisp.org>
71904
71905         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71906
71907 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71910         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71911         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71912         (gl_tree_add_before, gl_tree_add_after):
71913         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71914         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71915         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71916         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71917         (gl_linked_add_after, gl_linked_add_at): Likewise.
71918         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71919         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71920         (gl_tree_add_before, gl_tree_add_after): Likewise.
71921         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71922         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71923         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71924
71925 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71926
71927         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71928
71929 2006-11-06  Bruno Haible  <bruno@clisp.org>
71930
71931         * m4/inline.m4: New file.
71932         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71933         * modules/list (Files): Add m4/inline.m4.
71934         * modules/oset (Files): Likewise.
71935
71936 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71937
71938         * lib/idcache.c: Include <stddef.h>, for offsetof.
71939         (struct userid.name): Change from char * to a flexible array member.
71940         All uses changed.
71941         * modules/idcache (Depends-on): Add flexmember.
71942
71943         * MODULES.html.sh (Core language properties): New module flexmember.
71944         * modules/flexmember, m4/flexmember.m4: New files.
71945
71946         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71947         inline functions that are identical with the old xnmalloc_inline,
71948         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71949         that we can avoid some unnecessary integer multiplications and
71950         divisions in the common case where the element size is known at
71951         compile time.
71952         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71953         needed.
71954         (xnboundedmalloc): Remove.
71955         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71956         arguments, for consistency with rest of this header.
71957         (xcharalloc): Rewrite using XNMALLOC.
71958         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71959         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71960         versions have been moved to lib/xalloc.h and renamed to be the
71961         non-*_inline versions.
71962         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71963         and xnrealloc functions, since those functions are now inline and
71964         now call us.
71965         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71966         renaming described above.
71967         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71968         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71969         captures the dependency in AC_C_INLINE.
71970
71971         New module canonicalize-lgpl, proposed by Charles Wilson in
71972         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71973         with a few small changes afterwards.
71974         * MODULES.html.sh (File system functions): New module
71975         canonicalize-lgpl.
71976         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71977         and canonicalize_file_name.
71978         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71979         * modules/canonicalize-lgpl: New files.
71980
71981 2006-11-05  Bruno Haible  <bruno@clisp.org>
71982
71983         * gnulib-tool (func_import, func_create_testdir): Create directories
71984         also for files in subdirectories of lib/.
71985
71986 2006-11-05  Bruno Haible  <bruno@clisp.org>
71987
71988         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71989         ANSI C compliant.
71990
71991 2006-11-03  Bruno Haible  <bruno@clisp.org>
71992
71993         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71994         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71995         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71996         (xnboundedmalloc): New inline function.
71997         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71998         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71999         xmalloc.
72000         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72001         xmalloc.
72002         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72003         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72004         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72005         xmalloc.
72006         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72007         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72008         xmalloc.
72009         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72010         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72011         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72012         xmalloc.
72013         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72014         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72015         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72016         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72017         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72018         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72019         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72020
72021 2006-11-03  Bruno Haible  <bruno@clisp.org>
72022
72023         * lib/c-ctype.h [C++]: Define functions without name mangling.
72024         * lib/fwriteerror.h [C++]: Likewise.
72025         * lib/gcd.h [C++]: Likewise.
72026         * lib/linebreak.h [C++]: Likewise.
72027
72028 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72031         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72032         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72033         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72034         Check for functions and headers just once.
72035         Check for declaration of canonicalize_file_name.
72036         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72037
72038 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72039
72040         * gnulib-tool (func_import): Fix typo in actioncmd.
72041
72042 2006-11-02  Bruno Haible  <bruno@clisp.org>
72043
72044         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72045         newline sequence in the Makefile.am snippet as a space, like "make"
72046         does.
72047         Reported by Roger Persson <perrog@gmail.com>.
72048
72049 2006-11-01  Bruno Haible  <bruno@clisp.org>
72050
72051         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72052         already declared in <string.h>.
72053         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72054
72055 2006-11-01  Bruno Haible  <bruno@clisp.org>
72056
72057         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72058         * lib/strcase.h: Include <string.h>.
72059         (strcasecmp): Define to rpl_strcasecmp here.
72060
72061 2006-11-01  Bruno Haible  <bruno@clisp.org>
72062
72063         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72064
72065 2006-11-01  Eric Blake  <ebb9@byu.net>
72066
72067         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72068
72069         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72070
72071 2006-10-29  Bruno Haible  <bruno@clisp.org>
72072
72073         Make it compile in C++ mode.
72074         * lib/full-write.c (full_rw): Add a cast.
72075
72076 2006-11-01  Bruno Haible  <bruno@clisp.org>
72077
72078         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72079         be POSIX compliant.
72080         Reported by Roger Persson <perrog@gmail.com>.
72081
72082 2006-11-01  Eric Blake  <ebb9@byu.net>
72083
72084         * lib/getopt_.h: Fix comments.
72085
72086 2006-10-31  Eric Blake  <ebb9@byu.net>
72087
72088         * modules/tmpdir (Depends-on): Add sys_stat.
72089         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72090         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72091         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72092         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72093         tempname.
72094
72095 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72096
72097         Avoid some C++ diagnostics reported by Bruno Haible.
72098         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72099         xmalloc.
72100         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72101         (struct slotvec): Move to top level.
72102         (quotearg_n_options): Rewrite to avoid xmalloc.
72103         * lib/xalloc.h (xcharalloc): New function.
72104         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72105         [defined __cplusplus]: Add function template that provides result
72106         type propagation.  This part of the change is from Bruno Haible.
72107
72108 2006-10-29  Bruno Haible  <bruno@clisp.org>
72109
72110         Make it compile in C++ mode.
72111         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72112         * lib/strnlen1.c (strnlen1): Cast memchr result.
72113         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72114         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72115         (create_temp_dir): Rename local variable 'template'.
72116         (compile_csharp_using_sscli): Add cast.
72117         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72118         * lib/findprog.c (find_in_path): Likewise.
72119         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72120         * lib/wait-process.c (register_slave_subprocess): Likewise.
72121
72122 2006-10-22  Bruno Haible  <bruno@clisp.org>
72123
72124         * modules/tsearch: New file.
72125         * lib/tsearch.h: New file.
72126         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72127         * m4/tsearch.m4: New file.
72128         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72129
72130 2006-10-29  Eric Blake  <ebb9@byu.net>
72131
72132         * lib/arcfour.c: Assume config.h.
72133         * lib/arctwo.c: Likewise.
72134         * lib/base64.c: Likewise.
72135         * lib/check-version.c: Likewise.
72136         * lib/crc.c: Likewise.
72137         * lib/des.c: Likewise.
72138         * lib/gc-gnulib.c: Likewise.
72139         * lib/gc-libgcrypt.c: Likewise.
72140         * lib/gc-pbkdf2-sha1.c: Likewise.
72141         * lib/getaddrinfo.c: Likewise.
72142         * lib/getdelim.c: Likewise.
72143         * lib/getline.c: Likewise.
72144         * lib/hmac-md5.c: Likewise.
72145         * lib/hmac-sha1.c: Likewise.
72146         * lib/iconvme.c: Likewise.
72147         * lib/md2.c: Likewise.
72148         * lib/md4.c: Likewise.
72149         * lib/memxor.c: Likewise.
72150         * lib/read-file.c: Likewise.
72151         * lib/readline.c: Likewise.
72152         * lib/rijndael-alg-fst.c: Likewise.
72153         * lib/rijndael-api-fst.c: Likewise.
72154         * lib/xgetdomainname.c: Likewise.
72155
72156 2006-10-28  Eric Blake  <ebb9@byu.net>
72157
72158         * lib/xstrndup.c: Assume config.h.
72159
72160 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72163         stat-macros.h is now for our own macros, whereas stat_h is for
72164         macros in the <sys/stat.h> name space.
72165         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72166         (STAT_MACROS_H): Remove.
72167         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72168         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72169         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72170         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72171         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72172         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72173         Move these macros to ...
72174         * lib/stat_.h: here.  Don't include stat-macros.h.
72175         * lib/canonicalize.c: Don't include stat-macros.h.
72176         * lib/chown.c: Likewise.
72177         * lib/euidaccess.c: Likewise.
72178         * lib/file-type.c: Likewise.
72179         * lib/filemode.c: Likewise.
72180         * lib/glob.c: Likewise.
72181         * lib/isapipe.c: Likewise.
72182         * lib/lchown.c: Likewise.
72183         * lib/lstat.c: Likewise.
72184         * lib/mkdir-p.c: Likewise.
72185         * lib/rmdir.c: Likewise.
72186         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72187         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72188         unless mkdir isn't declared, to speed up 'configure'.
72189         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72190         would define all the S_* symbols.
72191         * modules/canonicalize (Depends-on):
72192         Depend on sys_stat, not stat-macros.
72193         * modules/chown: Likewise.
72194         * modules/euidaccess: Likewise.
72195         * modules/filemode: Likewise.
72196         * modules/file-type: Likewise.
72197         * modules/glob: Likewise.
72198         * modules/isapipe: Likewise.
72199         * modules/lchown: Likewise.
72200         * modules/lstat: Likewise.
72201         * modules/mkancesdirs: Likewise.
72202         * modules/rmdir: Likewise.
72203         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72204         * modules/modechange: Likewise.
72205         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72206         (configure.ac): Remove gl_STAT_MACROS.
72207         * modules/sys_stat (Depends-on): Remove stat-macros.
72208
72209 2006-10-27  Bruno Haible  <bruno@clisp.org>
72210
72211         * m4/signed.m4: Remove file.
72212         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72213         invocation.
72214         * modules/vasnprintf (Files): Remove m4/signed.m4.
72215
72216 2006-10-27  Bruno Haible  <bruno@clisp.org>
72217
72218         Update to GNU gettext 0.16.
72219         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72220         m4/inttypes-h.m4, m4/signed.m4.
72221         * m4/gettext.m4: Update to GNU gettext 0.16.
72222         * m4/intl.m4: New file, from GNU gettext.
72223         * m4/intldir.m4: New file, from GNU gettext.
72224         * config/srclist.txt: Update
72225
72226 2006-10-27  Eric Blake  <ebb9@byu.net>
72227
72228         * MODULES.html.sh: Document tempname.
72229         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72230         dependencies.
72231         (Files): Move lib/tempname.c...
72232         * modules/tempname: ...to this new module.
72233         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72234         (gl_PREREQ_TEMPNAME): Move...
72235         * m4/tempname.m4: ...to this new file.
72236         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72237         * modules/sys_stat (Depends-on): Add stat-macros.
72238         * lib/stat_.h (includes): Pick up stat macros.
72239         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72240         if stat macros are broken.
72241         * lib/tempname.c (includes): No need to include "stat-macros.h".
72242         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72243         (direxists, __path_search) [!_LIBC]: Don't compile these in
72244         gnulib; the tmpdir module covers that.
72245         * lib/tempname.h: New file.
72246
72247 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72248
72249         * COPYING: Explain how gnulib-tool converts licence headers.
72250         Almost all wording by Eric Blake.
72251
72252 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72253
72254         * lib/mbchar.h (is_basic_table): Make read-only.
72255         * lib/mbchar.c (is_basic_table): Likewise.
72256         Reported by John Darrington.
72257
72258 2006-10-25  Bruno Haible  <bruno@clisp.org>
72259
72260         * lib/progname.h (set_program_name): Undefine before defining.
72261
72262 2006-10-25  Bruno Haible  <bruno@clisp.org>
72263
72264         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72265         false for non-gcc C++ compilers.
72266         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72267
72268 2006-10-24  Bruno Haible  <bruno@clisp.org>
72269
72270         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72271         iconv implementations like Irix iconv.
72272
72273 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * modules/vararrays: New file.
72276         * m4/vararrays.m4: New file, taken from diffutils.
72277         * MODULES.html.sh: New module vararrays.
72278
72279 2006-10-24  Karl Berry  <karl@gnu.org>
72280
72281         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72282         Don't call GNU Unix.
72283
72284 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72285
72286         * users.txt: Add Libtool.
72287
72288         Sync from Libtool:
72289
72290         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72291
72292         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72293         to gnulib's policy of including config.h unconditionally.
72294
72295 2006-10-24  Bruno Haible  <bruno@clisp.org>
72296
72297         * modules/wcwidth (Files): Add m4/wint_t.m4.
72298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72299         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72300
72301 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72304         to pacify GCC with some -W flags enabled.  Problem reported by
72305         Bruno Haible.
72306
72307 2006-10-24  Jim Meyering  <jim@meyering.net>
72308
72309         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72310         Reported by Karl Berry.
72311
72312 2006-10-23  Bruno Haible  <bruno@clisp.org>
72313
72314         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72315
72316 2006-10-24  Bruno Haible  <bruno@clisp.org>
72317
72318         * lib/gl_list.h: Use C comment style, not C++ comment style.
72319
72320 2006-10-23  Eric Blake  <ebb9@byu.net>
72321
72322         * lib/getaddrinfo.c (includes): Add missing include.
72323
72324 2006-10-23  Bruno Haible  <bruno@clisp.org>
72325             Paul Eggert  <eggert@cs.ucla.edu>
72326
72327         Ability to rename obstack_free.
72328         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72329         obstack_free.
72330         (obstack_free): Invoke the __obstack_free macro.
72331         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72332
72333 2006-10-23  Bruno Haible  <bruno@clisp.org>
72334             Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72337         __argc, __argv from the declaration. (They are defined as macros on
72338         mingw.)
72339
72340 2006-10-22  Bruno Haible  <bruno@clisp.org>
72341
72342         * doc/gnulib-intro.texi: New file.
72343         * doc/gnulib.texi: Include it.
72344
72345 2006-10-21  Bruno Haible  <bruno@clisp.org>
72346
72347         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72348         "Introduction", "Miscellanous Notes", "Particular Modules".
72349
72350 2006-10-21  Bruno Haible  <bruno@clisp.org>
72351
72352         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72353         Change mostlyclean-local rule to avoid sh syntax error from bash
72354         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72355
72356 2006-10-23  Jim Meyering  <jim@meyering.net>
72357
72358         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72359         in place of snprintf.
72360
72361         * modules/inttostr (Files): Add lib/uinttostr.c.
72362         * lib/uinttostr.c (inttostr): New file/function.
72363         * lib/inttostr.h (uinttostr): Declare.
72364         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72365         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72366         Add uinttostr.
72367         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72368
72369 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72370
72371         * lib/canonicalize.c (ELOOP): Define if not already defined.
72372         Problem reported by Bruno Haible in
72373         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72374
72375 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72378         Problem reported by Perry Smith and Ville Laurikari.
72379
72380         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72381         uses.
72382
72383 2006-10-19  Bruno Haible  <bruno@clisp.org>
72384
72385         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72386         for mingw.
72387
72388 2006-10-19  Bruno Haible  <bruno@clisp.org>
72389
72390         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72391         Needed for mingw.
72392
72393 2006-10-19  Bruno Haible  <bruno@clisp.org>
72394
72395         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72396
72397 2006-10-19  Bruno Haible  <bruno@clisp.org>
72398
72399         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72400         it.
72401
72402 2006-10-19  Bruno Haible  <bruno@clisp.org>
72403
72404         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72405         invocation.
72406
72407 2006-10-19  Bruno Haible  <bruno@clisp.org>
72408
72409         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72410         mountlist by default.
72411
72412 2006-10-16  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/c-strstr.c: Include c-strstr.h.
72415
72416 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72417
72418         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72419         in a slash.
72420
72421 2006-10-18  Bruno Haible  <bruno@clisp.org>
72422
72423         * lib/lock.h [C++]: Wrap definitions in extern "C".
72424
72425 2006-10-18  Bruno Haible  <bruno@clisp.org>
72426
72427         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72428         gl_LIBOBJS list.
72429
72430 2006-10-18  Bruno Haible  <bruno@clisp.org>
72431
72432         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72433
72434 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72435
72436         * lib/xstrtol.h: Include gettext.h.
72437         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72438         Problem reported by Eric Blake.
72439         * modules/xstrtol (Depends-on): Add gettext-h.
72440
72441 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72442
72443         * lib/strftime.c (advance): New macro.
72444         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72445         incomplete type, so you can't add 0 to it.  Problem and patch
72446         reported by Eelco Dolstra for dietlibc.
72447
72448 2006-10-18  Jim Meyering  <jim@meyering.net>
72449
72450         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72451         type for a local, and rename it: s/up/user_proc/.
72452
72453 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72454
72455         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72456         READ_UTMP_USER_PROCESS.
72457         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72458
72459 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72462         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72463
72464 2006-10-17  Eric Blake  <ebb9@byu.net>
72465
72466         * lib/sigprocmask.c (sigprocmask): Fix typo.
72467
72468         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72469
72470         * modules/clean-temp (Makefile.am): Don't add to make output...
72471         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72472         config.h.
72473
72474 2006-10-17  Bruno Haible  <bruno@clisp.org>
72475
72476         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72477         differently if DEFAULT_TEXT_DOMAIN is set.
72478
72479 2006-10-16  Bruno Haible  <bruno@clisp.org>
72480
72481         * lib/clean-temp.c: Include fwriteerror.h.
72482
72483 2006-10-16  Bruno Haible  <bruno@clisp.org>
72484
72485         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72486
72487 2006-10-16  Bruno Haible  <bruno@clisp.org>
72488
72489         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72490         * lib/sigprocmask.h: Include <sys/types.h>.
72491         (sigset_t): Use the system's definition if present.
72492
72493 2006-10-17  Eric Blake  <ebb9@byu.net>
72494
72495         * lib/xvasprintf.c (includes): Assume config.h.
72496         * lib/xasprintf.c (includes): Likewise.
72497
72498 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72499
72500         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72501         at least as wide as intmax_t.
72502
72503 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72504
72505         (Imported from Automake.)
72506         * build-aux/gnupload: Update to version 1.1 of directive file.
72507
72508 2006-10-16  Eric Blake  <ebb9@byu.net>
72509
72510         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72511         match Automake 1.10a.
72512
72513 2006-10-14  Bruno Haible  <bruno@clisp.org>
72514
72515         * modules/sigprocmask: New file.
72516         * lib/sigprocmask.h: New file.
72517         * lib/sigprocmask.c: New file.
72518         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72519         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72520         request sigprocmask.o.
72521         (gl_PREREQ_SIGPROCMASK): New macro.
72522         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72523         (Depends-on): Add sigprocmask.
72524         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72525         gt_SIGNALBLOCKING. Test for 'raise' only once.
72526         * lib/fatal-signal.c: Include sigprocmask.h.
72527         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72528         unblock_fatal_signals): Define always.
72529         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72530         sigprocmask.
72531
72532 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72533
72534         Sync from Automake.
72535         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72536         which incorrectly sets the mode of an existing destination
72537         directory.  In some cases the unpatched install-sh could do the
72538         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72539         system.  We hope this is rare in practice, but it's clearly worth
72540         fixing.  Problem reported by Alex Unleashed in
72541         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72542         Also, don't bother to check for -m bugs unless we're using -m;
72543         suggested by Stepan Kasal.
72544
72545 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72546
72547         Sync from Automake.
72548         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72549         `-c' flag, so they appear at the same position as in %FASTDEP%
72550         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72551         which ignores unknown options only after the first non-option.
72552         Bug report against M4 by Nelson H. F. Beebe.
72553
72554 2006-10-13  Jim Meyering  <jim@meyering.net>
72555
72556         Fix a bug in yesterday's change.
72557         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72558         p->fts_statp->st_dev would be used uninitialized.
72559         Ensures that we always call fts_stat on the very first entry.
72560         Miklos Szeredi reported that find -xdev stopped working.
72561
72562 2006-10-12  Bruno Haible  <bruno@clisp.org>
72563
72564         * gnulib-tool (func_get_automake_snippet): Append an automatically
72565         computed EXTRA_DIST augmentation.
72566         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72567         * modules/alloca-opt (Makefile.am): Likewise.
72568         * modules/allocsa (Makefile.am): Likewise.
72569         * modules/arcfour (Makefile.am): Likewise.
72570         * modules/arctwo (Makefile.am): Likewise.
72571         * modules/argmatch (Makefile.am): Likewise.
72572         * modules/argz (Makefile.am): Likewise.
72573         * modules/atexit (Makefile.am): Likewise.
72574         * modules/backupfile (Makefile.am): Likewise.
72575         * modules/byteswap (Makefile.am): Likewise.
72576         * modules/c-strtod (Makefile.am): Likewise.
72577         * modules/c-strtold (Makefile.am): Likewise.
72578         * modules/calloc (Makefile.am): Likewise.
72579         * modules/canon-host (Makefile.am): Likewise.
72580         * modules/canonicalize (Makefile.am): Likewise.
72581         * modules/chdir-long (Makefile.am): Likewise.
72582         * modules/chdir-safer (Makefile.am): Likewise.
72583         * modules/check-version (Makefile.am): Likewise.
72584         * modules/chown (Makefile.am): Likewise.
72585         * modules/cloexec (Makefile.am): Likewise.
72586         * modules/close-stream (Makefile.am): Likewise.
72587         * modules/closeout (Makefile.am): Likewise.
72588         * modules/crc (Makefile.am): Likewise.
72589         * modules/csharpexec (Makefile.am): Likewise.
72590         * modules/cycle-check (Makefile.am): Likewise.
72591         * modules/des (Makefile.am): Likewise.
72592         * modules/dev-ino (Makefile.am): Likewise.
72593         * modules/dirfd (Makefile.am): Likewise.
72594         * modules/dirname (Makefile.am): Likewise.
72595         * modules/dup2 (Makefile.am): Likewise.
72596         * modules/eealloc (Makefile.am): Likewise.
72597         * modules/error (Makefile.am): Likewise.
72598         * modules/euidaccess (Makefile.am): Likewise.
72599         * modules/exclude (Makefile.am): Likewise.
72600         * modules/exitfail (Makefile.am): Likewise.
72601         * modules/fcntl-safer (Makefile.am): Likewise.
72602         * modules/fcntl (Makefile.am): Likewise.
72603         * modules/file-type (Makefile.am): Likewise.
72604         * modules/fileblocks (Makefile.am): Likewise.
72605         * modules/filemode (Makefile.am): Likewise.
72606         * modules/filenamecat (Makefile.am): Likewise.
72607         * modules/fnmatch (Makefile.am): Likewise.
72608         * modules/fopen-safer (Makefile.am): Likewise.
72609         * modules/fpending (Makefile.am): Likewise.
72610         * modules/fprintftime (Makefile.am): Likewise.
72611         * modules/free (Makefile.am): Likewise.
72612         * modules/fsusage (Makefile.am): Likewise.
72613         * modules/ftruncate (Makefile.am): Likewise.
72614         * modules/fts (Makefile.am): Likewise.
72615         * modules/gc-arcfour (Makefile.am): Likewise.
72616         * modules/gc-des (Makefile.am): Likewise.
72617         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72618         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72619         * modules/gc-md4 (Makefile.am): Likewise.
72620         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72621         * modules/gc-sha1 (Makefile.am): Likewise.
72622         * modules/gc (Makefile.am): Likewise.
72623         * modules/getaddrinfo (Makefile.am): Likewise.
72624         * modules/getcwd (Makefile.am): Likewise.
72625         * modules/getdelim (Makefile.am): Likewise.
72626         * modules/getdomainname (Makefile.am): Likewise.
72627         * modules/getgroups (Makefile.am): Likewise.
72628         * modules/gethostname (Makefile.am): Likewise.
72629         * modules/gethrxtime (Makefile.am): Likewise.
72630         * modules/getline (Makefile.am): Likewise.
72631         * modules/getloadavg (Makefile.am): Likewise.
72632         * modules/getlogin_r (Makefile.am): Likewise.
72633         * modules/getndelim2 (Makefile.am): Likewise.
72634         * modules/getopt (Makefile.am): Likewise.
72635         * modules/getpagesize (Makefile.am): Likewise.
72636         * modules/getpass-gnu (Makefile.am): Likewise.
72637         * modules/getpass (Makefile.am): Likewise.
72638         * modules/getsubopt (Makefile.am): Likewise.
72639         * modules/gettime (Makefile.am): Likewise.
72640         * modules/gettimeofday (Makefile.am): Likewise.
72641         * modules/getugroups (Makefile.am): Likewise.
72642         * modules/getusershell (Makefile.am): Likewise.
72643         * modules/glob (Makefile.am): Likewise.
72644         * modules/group-member (Makefile.am): Likewise.
72645         * modules/hard-locale (Makefile.am): Likewise.
72646         * modules/hash (Makefile.am): Likewise.
72647         * modules/hmac-md5 (Makefile.am): Likewise.
72648         * modules/hmac-sha1 (Makefile.am): Likewise.
72649         * modules/human (Makefile.am): Likewise.
72650         * modules/idcache (Makefile.am): Likewise.
72651         * modules/imaxabs (Makefile.am): Likewise.
72652         * modules/imaxdiv (Makefile.am): Likewise.
72653         * modules/inet_ntop (Makefile.am): Likewise.
72654         * modules/inet_pton (Makefile.am): Likewise.
72655         * modules/intprops (Makefile.am): Likewise.
72656         * modules/inttostr (Makefile.am): Likewise.
72657         * modules/inttypes (Makefile.am): Likewise.
72658         * modules/isapipe (Makefile.am): Likewise.
72659         * modules/javaversion (Makefile.am): Likewise.
72660         * modules/lchmod (Makefile.am): Likewise.
72661         * modules/lchown (Makefile.am): Likewise.
72662         * modules/localcharset (Makefile.am): Likewise.
72663         * modules/long-options (Makefile.am): Likewise.
72664         * modules/lstat (Makefile.am): Likewise.
72665         * modules/malloc (Makefile.am): Likewise.
72666         * modules/mathl (Makefile.am): Likewise.
72667         * modules/mbchar (Makefile.am): Likewise.
72668         * modules/md2 (Makefile.am): Likewise.
72669         * modules/md4 (Makefile.am): Likewise.
72670         * modules/md5 (Makefile.am): Likewise.
72671         * modules/memcasecmp (Makefile.am): Likewise.
72672         * modules/memchr (Makefile.am): Likewise.
72673         * modules/memcmp (Makefile.am): Likewise.
72674         * modules/memcoll (Makefile.am): Likewise.
72675         * modules/memcpy (Makefile.am): Likewise.
72676         * modules/memmem (Makefile.am): Likewise.
72677         * modules/memmove (Makefile.am): Likewise.
72678         * modules/mempcpy (Makefile.am): Likewise.
72679         * modules/memrchr (Makefile.am): Likewise.
72680         * modules/memset (Makefile.am): Likewise.
72681         * modules/memxor (Makefile.am): Likewise.
72682         * modules/mkancesdirs (Makefile.am): Likewise.
72683         * modules/mkdir-p (Makefile.am): Likewise.
72684         * modules/mkdir (Makefile.am): Likewise.
72685         * modules/mkdtemp (Makefile.am): Likewise.
72686         * modules/mkstemp (Makefile.am): Likewise.
72687         * modules/mktime (Makefile.am): Likewise.
72688         * modules/modechange (Makefile.am): Likewise.
72689         * modules/mountlist (Makefile.am): Likewise.
72690         * modules/nanosleep (Makefile.am): Likewise.
72691         * modules/obstack (Makefile.am): Likewise.
72692         * modules/openat (Makefile.am): Likewise.
72693         * modules/pagealign_alloc (Makefile.am): Likewise.
72694         * modules/pathmax (Makefile.am): Likewise.
72695         * modules/physmem (Makefile.am): Likewise.
72696         * modules/poll (Makefile.am): Likewise.
72697         * modules/posixtm (Makefile.am): Likewise.
72698         * modules/posixver (Makefile.am): Likewise.
72699         * modules/putenv (Makefile.am): Likewise.
72700         * modules/quote (Makefile.am): Likewise.
72701         * modules/quotearg (Makefile.am): Likewise.
72702         * modules/raise (Makefile.am): Likewise.
72703         * modules/read-file (Makefile.am): Likewise.
72704         * modules/readline (Makefile.am): Likewise.
72705         * modules/readlink (Makefile.am): Likewise.
72706         * modules/readtokens (Makefile.am): Likewise.
72707         * modules/readutmp (Makefile.am): Likewise.
72708         * modules/realloc (Makefile.am): Likewise.
72709         * modules/regex (Makefile.am): Likewise.
72710         * modules/rename-dest-slash (Makefile.am): Likewise.
72711         * modules/rename (Makefile.am): Likewise.
72712         * modules/rijndael (Makefile.am): Likewise.
72713         * modules/rmdir (Makefile.am): Likewise.
72714         * modules/rpmatch (Makefile.am): Likewise.
72715         * modules/safe-read (Makefile.am): Likewise.
72716         * modules/safe-write (Makefile.am): Likewise.
72717         * modules/same-inode (Makefile.am): Likewise.
72718         * modules/same (Makefile.am): Likewise.
72719         * modules/save-cwd (Makefile.am): Likewise.
72720         * modules/savedir (Makefile.am): Likewise.
72721         * modules/setenv (Makefile.am): Likewise.
72722         * modules/settime (Makefile.am): Likewise.
72723         * modules/sha1 (Makefile.am): Likewise.
72724         * modules/sig2str (Makefile.am): Likewise.
72725         * modules/snprintf (Makefile.am): Likewise.
72726         * modules/stat-macros (Makefile.am): Likewise.
72727         * modules/stat-time (Makefile.am): Likewise.
72728         * modules/stdbool (Makefile.am): Likewise.
72729         * modules/stdint (Makefile.am): Likewise.
72730         * modules/stdlib-safer (Makefile.am): Likewise.
72731         * modules/stpcpy (Makefile.am): Likewise.
72732         * modules/stpncpy (Makefile.am): Likewise.
72733         * modules/strcase (Makefile.am): Likewise.
72734         * modules/strcasestr (Makefile.am): Likewise.
72735         * modules/strchrnul (Makefile.am): Likewise.
72736         * modules/strcspn (Makefile.am): Likewise.
72737         * modules/strdup (Makefile.am): Likewise.
72738         * modules/strerror (Makefile.am): Likewise.
72739         * modules/strftime (Makefile.am): Likewise.
72740         * modules/strndup (Makefile.am): Likewise.
72741         * modules/strnlen (Makefile.am): Likewise.
72742         * modules/strpbrk (Makefile.am): Likewise.
72743         * modules/strsep (Makefile.am): Likewise.
72744         * modules/strstr (Makefile.am): Likewise.
72745         * modules/strtod (Makefile.am): Likewise.
72746         * modules/strtoimax (Makefile.am): Likewise.
72747         * modules/strtok_r (Makefile.am): Likewise.
72748         * modules/strtol (Makefile.am): Likewise.
72749         * modules/strtoll (Makefile.am): Likewise.
72750         * modules/strtoul (Makefile.am): Likewise.
72751         * modules/strtoull (Makefile.am): Likewise.
72752         * modules/strtoumax (Makefile.am): Likewise.
72753         * modules/strverscmp (Makefile.am): Likewise.
72754         * modules/sys_socket (Makefile.am): Likewise.
72755         * modules/sys_stat (Makefile.am): Likewise.
72756         * modules/sysexits (Makefile.am): Likewise.
72757         * modules/time_r (Makefile.am): Likewise.
72758         * modules/timegm (Makefile.am): Likewise.
72759         * modules/timespec (Makefile.am): Likewise.
72760         * modules/tmpfile-safer (Makefile.am): Likewise.
72761         * modules/trim (Makefile.am): Likewise.
72762         * modules/unistd-safer (Makefile.am): Likewise.
72763         * modules/unlinkdir (Makefile.am): Likewise.
72764         * modules/unlocked-io (Makefile.am): Likewise.
72765         * modules/userspec (Makefile.am): Likewise.
72766         * modules/utime (Makefile.am): Likewise.
72767         * modules/utimecmp (Makefile.am): Likewise.
72768         * modules/utimens (Makefile.am): Likewise.
72769         * modules/vasnprintf (Makefile.am): Likewise.
72770         * modules/vasprintf (Makefile.am): Likewise.
72771         * modules/vsnprintf (Makefile.am): Likewise.
72772         * modules/xalloc (Makefile.am): Likewise.
72773         * modules/xgetcwd (Makefile.am): Likewise.
72774         * modules/xnanosleep (Makefile.am): Likewise.
72775         * modules/xreadlink (Makefile.am): Likewise.
72776         * modules/xstrtod (Makefile.am): Likewise.
72777         * modules/xstrtol (Makefile.am): Likewise.
72778         * modules/xstrtold (Makefile.am): Likewise.
72779         * modules/yesno (Makefile.am): Likewise.
72780         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72781
72782 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72783
72784         * modules/error (Makefile.am): Distribute files through
72785         EXTRA_DIST, not lib_SOURCES.
72786
72787 2006-10-12  Eric Blake  <ebb9@byu.net>
72788
72789         * modules/error (Makefile.am): Distribute files in /lib.
72790         * modules/obstack (Makefile.am): Likewise.
72791
72792 2006-10-12  Bruno Haible  <bruno@clisp.org>
72793
72794         * modules/acl (Makefile.am): Distribute all files in lib/ through
72795         EXTRA_DIST.
72796         * modules/arcfour (Makefile.am): Likewise.
72797         * modules/arctwo (Makefile.am): Likewise.
72798         * modules/argmatch (Makefile.am): Likewise.
72799         * modules/argz (Makefile.am): Likewise.
72800         * modules/atexit (Makefile.am): Likewise.
72801         * modules/backupfile (Makefile.am): Likewise.
72802         * modules/c-strtod (Makefile.am): Likewise.
72803         * modules/c-strtold (Makefile.am): Likewise.
72804         * modules/calloc (Makefile.am): Likewise.
72805         * modules/canon-host (Makefile.am): Likewise.
72806         * modules/canonicalize (Makefile.am): Likewise.
72807         * modules/chdir-long (Makefile.am): Likewise.
72808         * modules/chdir-safer (Makefile.am): Likewise.
72809         * modules/check-version (Makefile.am): Likewise.
72810         * modules/chown (Makefile.am): Likewise.
72811         * modules/cloexec (Makefile.am): Likewise.
72812         * modules/close-stream (Makefile.am): Likewise.
72813         * modules/closeout (Makefile.am): Likewise.
72814         * modules/crc (Makefile.am): Likewise.
72815         * modules/cycle-check (Makefile.am): Likewise.
72816         * modules/des (Makefile.am): Likewise.
72817         * modules/dirfd (Makefile.am): Likewise.
72818         * modules/dirname (Makefile.am): Likewise.
72819         * modules/dup2 (Makefile.am): Likewise.
72820         * modules/euidaccess (Makefile.am): Likewise.
72821         * modules/exclude (Makefile.am): Likewise.
72822         * modules/exitfail (Makefile.am): Likewise.
72823         * modules/fcntl-safer (Makefile.am): Likewise.
72824         * modules/file-type (Makefile.am): Likewise.
72825         * modules/fileblocks (Makefile.am): Likewise.
72826         * modules/filemode (Makefile.am): Likewise.
72827         * modules/filenamecat (Makefile.am): Likewise.
72828         * modules/fnmatch (Makefile.am): Likewise.
72829         * modules/fopen-safer (Makefile.am): Likewise.
72830         * modules/fpending (Makefile.am): Likewise.
72831         * modules/fprintftime (Makefile.am): Likewise.
72832         * modules/free (Makefile.am): Likewise.
72833         * modules/fsusage (Makefile.am): Likewise.
72834         * modules/ftruncate (Makefile.am): Likewise.
72835         * modules/fts (Makefile.am): Likewise.
72836         * modules/gc (Makefile.am): Likewise.
72837         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72838         * modules/getaddrinfo (Makefile.am): Likewise.
72839         * modules/getcwd (Makefile.am): Likewise.
72840         * modules/getdelim (Makefile.am): Likewise.
72841         * modules/getdomainname (Makefile.am): Likewise.
72842         * modules/getgroups (Makefile.am): Likewise.
72843         * modules/gethostname (Makefile.am): Likewise.
72844         * modules/gethrxtime (Makefile.am): Likewise.
72845         * modules/getline (Makefile.am): Likewise.
72846         * modules/getloadavg (Makefile.am): Likewise.
72847         * modules/getlogin_r (Makefile.am): Likewise.
72848         * modules/getopt (Makefile.am): Likewise.
72849         * modules/getpass (Makefile.am): Likewise.
72850         * modules/getpass-gnu (Makefile.am): Likewise.
72851         * modules/getsubopt (Makefile.am): Likewise.
72852         * modules/gettime (Makefile.am): Likewise.
72853         * modules/gettimeofday (Makefile.am): Likewise.
72854         * modules/getugroups (Makefile.am): Likewise.
72855         * modules/getusershell (Makefile.am): Likewise.
72856         * modules/glob (Makefile.am): Likewise.
72857         * modules/group-member (Makefile.am): Likewise.
72858         * modules/hard-locale (Makefile.am): Likewise.
72859         * modules/hash (Makefile.am): Likewise.
72860         * modules/hmac-md5 (Makefile.am): Likewise.
72861         * modules/hmac-sha1 (Makefile.am): Likewise.
72862         * modules/human (Makefile.am): Likewise.
72863         * modules/idcache (Makefile.am): Likewise.
72864         * modules/imaxabs (Makefile.am): Likewise.
72865         * modules/imaxdiv (Makefile.am): Likewise.
72866         * modules/inet_ntop (Makefile.am): Likewise.
72867         * modules/inet_pton (Makefile.am): Likewise.
72868         * modules/inttostr (Makefile.am): Likewise.
72869         * modules/isapipe (Makefile.am): Likewise.
72870         * modules/lchown (Makefile.am): Likewise.
72871         * modules/long-options (Makefile.am): Likewise.
72872         * modules/lstat (Makefile.am): Likewise.
72873         * modules/malloc (Makefile.am): Likewise.
72874         * modules/mathl (Makefile.am): Likewise.
72875         * modules/mbchar (Makefile.am): Likewise.
72876         * modules/md2 (Makefile.am): Likewise.
72877         * modules/md4 (Makefile.am): Likewise.
72878         * modules/md5 (Makefile.am): Likewise.
72879         * modules/memcasecmp (Makefile.am): Likewise.
72880         * modules/memchr (Makefile.am): Likewise.
72881         * modules/memcmp (Makefile.am): Likewise.
72882         * modules/memcoll (Makefile.am): Likewise.
72883         * modules/memcpy (Makefile.am): Likewise.
72884         * modules/memmem (Makefile.am): Likewise.
72885         * modules/memmove (Makefile.am): Likewise.
72886         * modules/mempcpy (Makefile.am): Likewise.
72887         * modules/memrchr (Makefile.am): Likewise.
72888         * modules/memset (Makefile.am): Likewise.
72889         * modules/memxor (Makefile.am): Likewise.
72890         * modules/mkancesdirs (Makefile.am): Likewise.
72891         * modules/mkdir (Makefile.am): Likewise.
72892         * modules/mkdir-p (Makefile.am): Likewise.
72893         * modules/mkdtemp (Makefile.am): Likewise.
72894         * modules/mkstemp (Makefile.am): Likewise.
72895         * modules/mktime (Makefile.am): Likewise.
72896         * modules/modechange (Makefile.am): Likewise.
72897         * modules/mountlist (Makefile.am): Likewise.
72898         * modules/nanosleep (Makefile.am): Likewise.
72899         * modules/openat (Makefile.am): Likewise.
72900         * modules/pagealign_alloc (Makefile.am): Likewise.
72901         * modules/physmem (Makefile.am): Likewise.
72902         * modules/poll (Makefile.am): Likewise.
72903         * modules/posixtm (Makefile.am): Likewise.
72904         * modules/posixver (Makefile.am): Likewise.
72905         * modules/putenv (Makefile.am): Likewise.
72906         * modules/quote (Makefile.am): Likewise.
72907         * modules/quotearg (Makefile.am): Likewise.
72908         * modules/raise (Makefile.am): Likewise.
72909         * modules/read-file (Makefile.am): Likewise.
72910         * modules/readline (Makefile.am): Likewise.
72911         * modules/readlink (Makefile.am): Likewise.
72912         * modules/readtokens (Makefile.am): Likewise.
72913         * modules/readutmp (Makefile.am): Likewise.
72914         * modules/realloc (Makefile.am): Likewise.
72915         * modules/regex (Makefile.am): Likewise.
72916         * modules/rename (Makefile.am): Likewise.
72917         * modules/rename-dest-slash (Makefile.am): Likewise.
72918         * modules/rijndael (Makefile.am): Likewise.
72919         * modules/rmdir (Makefile.am): Likewise.
72920         * modules/rpmatch (Makefile.am): Likewise.
72921         * modules/safe-read (Makefile.am): Likewise.
72922         * modules/safe-write (Makefile.am): Likewise.
72923         * modules/same (Makefile.am): Likewise.
72924         * modules/save-cwd (Makefile.am): Likewise.
72925         * modules/savedir (Makefile.am): Likewise.
72926         * modules/setenv (Makefile.am): Likewise.
72927         * modules/settime (Makefile.am): Likewise.
72928         * modules/sha1 (Makefile.am): Likewise.
72929         * modules/sig2str (Makefile.am): Likewise.
72930         * modules/snprintf (Makefile.am): Likewise.
72931         * modules/stdlib-safer (Makefile.am): Likewise.
72932         * modules/stpcpy (Makefile.am): Likewise.
72933         * modules/stpncpy (Makefile.am): Likewise.
72934         * modules/strcase (Makefile.am): Likewise.
72935         * modules/strcasestr (Makefile.am): Likewise.
72936         * modules/strchrnul (Makefile.am): Likewise.
72937         * modules/strcspn (Makefile.am): Likewise.
72938         * modules/strdup (Makefile.am): Likewise.
72939         * modules/strerror (Makefile.am): Likewise.
72940         * modules/strftime (Makefile.am): Likewise.
72941         * modules/strndup (Makefile.am): Likewise.
72942         * modules/strnlen (Makefile.am): Likewise.
72943         * modules/strpbrk (Makefile.am): Likewise.
72944         * modules/strsep (Makefile.am): Likewise.
72945         * modules/strstr (Makefile.am): Likewise.
72946         * modules/strtod (Makefile.am): Likewise.
72947         * modules/strtoimax (Makefile.am): Likewise.
72948         * modules/strtok_r (Makefile.am): Likewise.
72949         * modules/strtol (Makefile.am): Likewise.
72950         * modules/strtoll (Makefile.am): Likewise.
72951         * modules/strtoul (Makefile.am): Likewise.
72952         * modules/strtoull (Makefile.am): Likewise.
72953         * modules/strtoumax (Makefile.am): Likewise.
72954         * modules/strverscmp (Makefile.am): Likewise.
72955         * modules/time_r (Makefile.am): Likewise.
72956         * modules/timegm (Makefile.am): Likewise.
72957         * modules/tmpfile-safer (Makefile.am): Likewise.
72958         * modules/unistd-safer (Makefile.am): Likewise.
72959         * modules/unlinkdir (Makefile.am): Likewise.
72960         * modules/userspec (Makefile.am): Likewise.
72961         * modules/utime (Makefile.am): Likewise.
72962         * modules/utimecmp (Makefile.am): Likewise.
72963         * modules/utimens (Makefile.am): Likewise.
72964         * modules/vasnprintf (Makefile.am): Likewise.
72965         * modules/vasprintf (Makefile.am): Likewise.
72966         * modules/vsnprintf (Makefile.am): Likewise.
72967         * modules/xalloc (Makefile.am): Likewise.
72968         * modules/xgetcwd (Makefile.am): Likewise.
72969         * modules/xnanosleep (Makefile.am): Likewise.
72970         * modules/xreadlink (Makefile.am): Likewise.
72971         * modules/xstrtod (Makefile.am): Likewise.
72972         * modules/xstrtol (Makefile.am): Likewise.
72973         * modules/xstrtold (Makefile.am): Likewise.
72974         * modules/yesno (Makefile.am): Likewise.
72975
72976 2006-10-12  Jim Meyering  <jim@meyering.net>
72977
72978         * m4/getloadavg.m4: Revert the change below.
72979
72980         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72981         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72982         fail with a symlink, which is what coreutils' ./bootstrap now
72983         creates by default.
72984
72985 2006-10-12  Bruno Haible  <bruno@clisp.org>
72986
72987         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72988         mingw.
72989         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72990         MSVC and mingw explicitly.
72991
72992 2006-10-11  Simon Josefsson  <jas@extundo.com>
72993             Bruno Haible  <bruno@clisp.org>
72994
72995         Add support for multiple gnulib-tool invocations in the scope of a
72996         single configure.ac file.
72997         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72998         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72999         with the same contents as the _LIBADD variable.
73000         (func_emit_initmacro_start, func_emit_initmacro_end,
73001         func_emit_initmacro_done): New functions.
73002         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73003         gl_LIBOBJS and gl_LTLIBOBJS.
73004
73005 2006-10-11  Bruno Haible  <bruno@clisp.org>
73006
73007         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73008         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73009         autoreconf. Instead, invoke autopoint explicitly but move back the
73010         *.m4 files from gnulib.
73011
73012 2006-10-11  Bruno Haible  <bruno@clisp.org>
73013
73014         * gnulib-tool (func_usage): Make module names after --create-testdir
73015         optional.
73016         (func_create_testdir): If no module was specified, use nearly all
73017         modules.
73018
73019 2006-10-12  Jim Meyering  <jim@meyering.net>
73020
73021         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73022         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73023         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73024         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73025         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73026         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73027         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73028         (fts_set_stat_required): New function.
73029         (fts_open): Defer the calls to fts_stat, if possible or requested.
73030         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73031         into fts_stat itself.
73032         (fts_read): Perform any required (deferred) fts_stat call.
73033         (fts_build): Likewise, for the directory we're about to open and read.
73034         In the readdir loop, carefully decide whether each entry will require
73035         an eventual call to fts_stat, using dirent.d_type info if available.
73036         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73037         a command line argument into this function.  Update all callers.
73038         Map a return value of FTS_DOT to FTS_D for a command line argument.
73039         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73040         Thanks to Miklos Szeredi for his tenacity and for the initial
73041         bug report about "find" failing on a FUSE-based file system.
73042
73043         * lib/fts.c (fts_open): Use consistent indentation.
73044
73045 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73046
73047         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73048         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73049         reported by Jim Meyering.  All uses of cache variables renamed
73050         to match Autoconf's.
73051         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73052         the other one.
73053
73054         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73055         Fix misspelling in diagnostic.
73056
73057 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73058
73059         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73060         defined.  Problem reported by Matthew Woehlke.
73061
73062         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73063         Add support for Tandem NonStop R series.
73064         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73065         Use new macro.
73066
73067         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73068         (has_trailing_slash): Omit size arg; all callers changed.
73069         Omit 'inline', since it doesn't help performance and we'd
73070         need to configure it.
73071         Don't count //, ///, etc. as having a trailing slash.
73072         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73073         (rpl_rename_dest_slash): On failure, use rename's errno rather
73074         than (in some cases) an incorrect or junk errno.
73075         Simplify code by removing need to compute length; this does
73076         cause it to make two passes instead of one over the file name,
73077         but it's worth it.
73078
73079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73080         change, since Autoconf's version may no longer be appropriate now
73081         that we are using CVS Autoconf's version.  Add support for Tandem.
73082
73083 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73084             Bruno Haible  <bruno@clisp.org>
73085
73086         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73087         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73088         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73089         gl_AC_TYPE_LONG_LONG.
73090
73091         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73092         instead of HAVE_LONG_LONG.
73093         * lib/printf-args.c (printf_fetchargs): Likewise.
73094         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73095         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73096         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73097         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73098         gl_AC_TYPE_LONG_LONG.
73099
73100 2006-10-11  Bruno Haible  <bruno@clisp.org>
73101
73102         * m4/longlong.m4: Add comments.
73103         * m4/ulonglong.m4: Likewise.
73104
73105 2006-10-10  Bruno Haible  <bruno@clisp.org>
73106
73107         Make it possible to #define stpcpy, strdup to aliases.
73108         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73109         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73110
73111 2006-10-10  Bruno Haible  <bruno@clisp.org>
73112
73113         Make it possible to #define gcd to an alias.
73114         * lib/gcd.c: Include config.h.
73115
73116 2006-10-10  Bruno Haible  <bruno@clisp.org>
73117
73118         Make it possible to #define c_isascii to an alias.
73119         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73120         defined. Undefine the macros before defining them, to avoid gcc
73121         warnings.
73122         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73123         define NO_C_CTYPE_MACROS early.
73124
73125 2006-10-10  Bruno Haible  <bruno@clisp.org>
73126
73127         Make it possible to #define set_program_name to an alias.
73128         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73129         ENABLE_RELOCATABLE early.
73130
73131 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73132
73133         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73134         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73135         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73136         More generally, don't assume that 64-bit signed int is available
73137         if unsigned int is, and vice versa.
73138         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73139         unsigned symbols, not on their signed counterparts.
73140         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73141         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73142         (UINT64_C, UINTMAX_C):
73143         Likewise.
73144         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73145         unsigned counterparts.
73146         (Have_long_long, Unsigned): New macros.
73147         (Int): Renamed from INT.
73148         (strtoimax): Use the new macros.
73149         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73150         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73151         * modules/inttypes (inttypes.h): Substitute
73152         HAVE_UNSIGNED_LONG_LONG_INT.
73153         * modules/stdint (stdint.h): Likewise.
73154         (Files): Add m4/ulonglong.m4.
73155
73156 2006-10-10  Bruno Haible  <bruno@clisp.org>
73157
73158         Fix a gcc -Wshadow warning.
73159         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73160         to 'bucket'.
73161         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73162         gl_linked_indexof_from_to): Likewise.
73163         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73164         Likewise.
73165         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73166         Likewise.
73167         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73168         Reported by Eric Blake.
73169
73170 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73171
73172         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73173         for NetBSD.  Problem reported by Bruno Haible.
73174
73175 2006-10-09  Jim Meyering  <jim@meyering.net>
73176
73177         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73178         Patch from Bruno Haible.
73179
73180 2006-10-09  Jim Meyering  <jim@meyering.net>
73181
73182         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73183         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73184         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73185
73186 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73187
73188         Don't include <config.h> twice; this doesn't work in some cases,
73189         e.g., when config.h has "#define intmax_t long long int" and
73190         we include <config.h>, <inttypes.h>, <config.h> in that order.
73191         Problem reported by Matthew Woehlke in:
73192         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73193         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73194         * lib/fts-cycle.c: Don't include config.h.
73195         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73196         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73197         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73198         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73199         inttypes.h.
73200         * lib/xstrtoumax.c: Likewise.
73201         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73202         __strtol and the like, so that this module is more like its siblings.
73203         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73204         Remove; no longer needed now that we assume gnulib inttypes.h.
73205
73206 2006-10-08  Bruno Haible  <bruno@clisp.org>
73207
73208         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73209         option.
73210
73211 2006-10-07  Jim Meyering  <jim@meyering.net>
73212
73213         * modules/inttypes (inttypes.h): Revert what seems to have been
73214         an inadvertent part of today's change: use "|", not "/" in the
73215         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73216
73217 2006-10-07  Bruno Haible  <bruno@clisp.org>
73218
73219         * modules/sublist: New file.
73220
73221 2006-10-07  Bruno Haible  <bruno@clisp.org>
73222
73223         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73224         * modules/argz (argz.h): Likewise.
73225         * modules/arpa_inet (arpa/inet.h): Likewise.
73226         * modules/byteswap (byteswap.h): Likewise.
73227         * modules/configmake (configmake.h): Likewise.
73228         * modules/fcntl (fcntl.h): Likewise.
73229         * modules/fnmatch (fnmatch.h): Likewise.
73230         * modules/getopt (getopt.h): Likewise.
73231         * modules/glob (glob.h): Likewise.
73232         * modules/inttypes (inttypes.h): Likewise.
73233         * modules/netinet_in (netinet/in.h): Likewise.
73234         * modules/poll (poll.h): Likewise.
73235         * modules/stdbool (stdbool.h): Likewise.
73236         * modules/stdint (stdint.h): Likewise.
73237         * modules/sys_select (sys/select.h): Likewise.
73238         * modules/sys_socket (sys/socket.h): Likewise.
73239         * modules/sys_stat (sys/stat.h): Likewise.
73240         * modules/sysexits (sysexits.h): Likewise.
73241         * modules/unistd (unistd.h): Likewise.
73242         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73243         Add a "DO NOT EDIT" comment to the generated file.
73244         (func_import): Likewise for gnulib-comp.m4.
73245
73246 2006-10-07  Bruno Haible  <bruno@clisp.org>
73247
73248         * lib/gl_sublist.h: New file.
73249         * lib/gl_sublist.c: New file.
73250
73251 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73252
73253         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73254         name (relative to the original working directory) and the file
73255         name component (relative to the temporary working directory).  All
73256         callers changed.
73257         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73258         * lib/mkdir-p.c (make_dir_parents): Likewise.
73259         * lib/mkdir-p.h (make_dir_parents): Likewise.
73260
73261 2006-10-06  Eric Blake  <ebb9@byu.net>
73262
73263         Define several macros for use by the clean-temp module.
73264         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73265         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73266         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73267
73268         * lib/clean-temp.h (close_stream_temp): New declaration.
73269         * lib/clean-temp.c (includes): Pull in headers according to what
73270         other modules are in use.
73271         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73272
73273 2006-10-06  Bruno Haible  <bruno@clisp.org>
73274
73275         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73276         instead of fopen, fwriteerror.
73277
73278 2006-10-06  Bruno Haible  <bruno@clisp.org>
73279
73280         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73281         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73282         int.
73283         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73284         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73285         Return an error indicator.
73286         Suggested by Eric Blake.
73287
73288 2006-10-06  Bruno Haible  <bruno@clisp.org>
73289
73290         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73291         Reported by Eric Blake.
73292
73293 2006-10-06  Bruno Haible  <bruno@clisp.org>
73294
73295         * modules/closeout (Description): Mention stderr too.
73296
73297 2006-10-06  Bruno Haible  <bruno@clisp.org>
73298         and Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         * lib/closeout.c (close_stdout): Also close stderr.
73301         * lib/closeout.h: Update comment.
73302
73303 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73304
73305         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73306         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73307         * lib/dirchownmod.c: Include lchown.h.
73308         * lib/lchown.c: Don't include files that lchown.h now includes.
73309         Don't declare chown, since lchown.h now does that.
73310         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73311         (lchown): Define to rpl_chown if lchown is declared but
73312         does not exist.  Declare using a prototype if lchown is not
73313         declared.  Add a copyright notice.
73314         * lib/mkstemp.h: Include <unistd.h>.
73315         * lib/openat.c: Include lchown.h.
73316
73317         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73318         we now test for that separately.
73319         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73320         rather than O_NOFOLLOW, when testing whether it's possible to
73321         avoid a race condition reliably.
73322         * lib/savewd.c (savewd_chdir): Likewise.
73323
73324         Remove macros that are no longer needed now that stdint.h is
73325         reliable.
73326         * lib/fsusage.c (UINTMAX_MAX): Remove.
73327         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73328         * lib/utimecmp.c (SIZE_MAX): Remove.
73329
73330         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73331
73332         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73333         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73334         O_NOATIME works.
73335
73336 2006-10-05  Bruno Haible  <bruno@clisp.org>
73337
73338         * lib/gl_list.h (gl_sortedlist_search_from_to,
73339         gl_sortedlist_indexof_from_to): New declarations.
73340         (gl_list_implementation): New fields sortedlist_search_from_to,
73341         sortedlist_indexof_from_to.
73342         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73343         inline functions.
73344         * lib/gl_list.c (gl_sortedlist_search_from_to,
73345         gl_sortedlist_indexof_from_to): New functions.
73346         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73347         function.
73348         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73349         (gl_array_sortedlist_search_from_to): New function.
73350         (gl_array_list_implementation): Update.
73351         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73352         function.
73353         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73354         (gl_carray_sortedlist_search_from_to): New function.
73355         (gl_carray_list_implementation): Update.
73356         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73357         gl_linked_sortedlist_indexof_from_to): New functions.
73358         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73359         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73360         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73361         gl_tree_sortedlist_indexof_from_to): New functions.
73362         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73363         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73364         Update.
73365         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73366         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73367         Update.
73368
73369 2006-10-05  Bruno Haible  <bruno@clisp.org>
73370
73371         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73372         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73373         (struct gl_list_implementation): Add fields search_from_to,
73374         indexof_from_to. Remove fields search, indexof.
73375         (gl_list_search): Use the search_from_to method.
73376         (gl_list_search_from, gl_list_search_from_to): New functions.
73377         (gl_list_indexof): Use the indexof_from_to method.
73378         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73379         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73380         (gl_list_search_from, gl_list_search_from_to): New functions.
73381         (gl_list_indexof): Use the indexof_from_to method.
73382         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73383         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73384         gl_array_indexof. Add start_index, end_index arguments.
73385         (gl_array_search_from_to): Renamed from gl_array_search. Add
73386         start_index, end_index arguments.
73387         (gl_array_remove, gl_array_list_implementation): Update.
73388         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73389         gl_carray_indexof. Add start_index, end_index arguments.
73390         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73391         start_index, end_index arguments.
73392         (gl_carray_remove, gl_carray_list_implementation): Update.
73393         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73394         gl_linked_search. Add start_index, end_index arguments.
73395         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73396         start_index, end_index arguments.
73397         (gl_linked_remove): Update.
73398         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73399         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73400         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73401         field to 'size_t'.
73402         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73403         gl_tree_search. Add start_index, end_index arguments.
73404         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73405         start_index, end_index arguments.
73406         (gl_tree_remove): Update.
73407         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73408         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73409         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73410         function.
73411         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73412         gl_tree_search. Add start_index, end_index arguments.
73413         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73414         start_index, end_index arguments.
73415         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73416         Update.
73417         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73418
73419 2006-10-05  Bruno Haible  <bruno@clisp.org>
73420
73421         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73422
73423         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73424         fwriteerror_temp): New declarations.
73425         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73426         (descriptors): New variable.
73427         (cleanup): First, close the descriptors.
73428         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73429         fclose_temp, fwriteerror_temp): New functions.
73430
73431 2006-10-04  Jim Meyering  <jim@meyering.net>
73432
73433         * lib/fts.c (fts_open): Tiny comment change.
73434
73435 2006-10-04  Bruno Haible  <bruno@clisp.org>
73436
73437         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73438         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73439         gl_LOCK_BODY.
73440         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73441         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73442         gl_LOCK_EARLY_BODY.
73443         (gl_LOCK): Require gl_LOCK_BODY.
73444
73445 2006-10-04  Bruno Haible  <bruno@clisp.org>
73446
73447         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73448         (gl_oset_search_atleast): New declaration.
73449         (struct gl_oset_implementation): Add field 'search_atleast'.
73450         (gl_oset_search_atleast): New inline function.
73451         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73452         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73453         (gl_array_oset_implementation): Update.
73454         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73455         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73456         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73457
73458 2006-10-04  Bruno Haible  <bruno@clisp.org>
73459
73460         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73461
73462 2006-10-03  Bruno Haible  <bruno@clisp.org>
73463
73464         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73465         from gl_avltreehash_list_implementation.
73466
73467 2006-10-03  Bruno Haible  <bruno@clisp.org>
73468
73469         * lib/gl_oset.c (gl_oset_add): Fix return type.
73470
73471 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73472
73473         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73474
73475 2006-10-02  Eric Blake  <ebb9@byu.net>
73476
73477         * modules/strnlen (Depends-on): Add extensions.
73478
73479 2006-10-02  Eric Blake  <ebb9@byu.net>
73480
73481         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73482         definition in 2.60+.
73483
73484 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73485
73486         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73487         checks.
73488
73489 2006-10-02  Bruno Haible  <bruno@clisp.org>
73490
73491         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73492         to the AUTOMAKE_OPTIONS.
73493         Reported by Jim Meyering.
73494
73495 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73496
73497         Work around bug in Solaris 10 /proc file system:
73498         /proc/self/fd/NNN/.. isn't the parent directory of
73499         the directory whose file descriptor is NNN.  This needs to
73500         be worked around at run time, not compile time, since a
73501         program might be built on Solaris 8, where things work, and
73502         run on Solaris 10.
73503         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73504         to use the following interface instead:
73505         (OPENAT_BUFFER_SIZE): New macro.
73506         (openat_proc_name): New function.
73507         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73508         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73509         Likewise.
73510         * lib/openat-proc.c: New file.
73511         * modules/openat (Files): Add lib/openat-proc.c.
73512         (Depends-on): Add same-inode, stdbool.
73513         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73514
73515 2006-09-29  Bruno Haible  <bruno@clisp.org>
73516
73517         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73518         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73519         argument. Set stdout_closed before testing for ferror, not after.
73520         (fwriteerror, fwriteerror_no_ebadf): New functions.
73521
73522 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73523
73524         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73525
73526 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73527
73528         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73529         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73530
73531 2006-09-28  Jim Meyering  <jim@meyering.net>
73532
73533         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73534         Include <unistd.h>.
73535
73536 2006-09-28  Bruno Haible  <bruno@clisp.org>
73537
73538         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73539         * modules/linkedhash-list (Depends-on): Likewise.
73540         * modules/rbtreehash-list (Depends-on): Likewise.
73541
73542 2006-09-28  Bruno Haible  <bruno@clisp.org>
73543
73544         * lib/strndup.h: Simplify the redefinition of strndup.
73545         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73546         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73547
73548 2006-09-28  Bruno Haible  <bruno@clisp.org>
73549
73550         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73551         * lib/gl_linkedhash_list.c: Likewise.
73552         * lib/gl_rbtreehash_list.c: Likewise.
73553
73554 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73557         getaddrinfo.
73558
73559         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73560         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73561         it causes <stdio_ext.h> to cause a compile-time error.
73562         Problem reported by Nelson H. F. Beebe.
73563         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73564         of HAVE_DECL___PENDING.
73565
73566         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73567         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73568         declaration.
73569
73570 2006-09-27  Jim Meyering  <jim@meyering.net>
73571
73572         This file could end up with a definition for a function
73573         named __strndup, rather than rpl_strndup on a system with
73574         incomplete weak_alias support.
73575         * lib/strndup.c (strndup): Rename from __strndup.
73576         Remove #defines that used to map __strndup to strndup.
73577         Don't use K&R prototypes.
73578         Remove LIBC-related code, since this file is not sync'd with glibc.
73579         * lib/strndup.h: Revamp, accordingly.
73580         * m4/strndup.m4: Modernize.
73581
73582 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73583
73584         * modules/savewd (Depends-on): Add 'raise'.
73585         * lib/savewd.c: Include <signal.h>, for 'raise'.
73586
73587 2006-09-26  Jim Meyering  <jim@meyering.net>
73588
73589         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73590         when we detect Darwin 8.7.0's acl_get_file bug.
73591         Rearrange to perform the new (below) run-test while $LIBS
73592         contains any acl-related library.  Set USE_ACL at the end.
73593         (gl_ACL_GET_FILE): New function.
73594
73595 2006-09-26  Eric Blake  <ebb9@byu.net>
73596
73597         * lib/verror.c: Include <config.h> unconditionally.
73598
73599 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73600
73601         * modules/clock-time (Maintainer): Add self.
73602         * modules/getlogin_r (Depends-on): Add extensions.
73603
73604 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73605
73606         * modules/clock-time: New module.
73607         * modules/nanosleep (Depends-on): Add clock-time.
73608         * modules/gethrxtime (Depends-on): Likewise.
73609         * modules/gettime (Depends-on): Likewise.
73610         * modules/settime (Depends-on): Likewise.
73611
73612         * modules/fts-lgpl: Depend on openat.
73613         * modules/mkancesdirs: Depend on savewd.
73614         * modules/mkdir-p: Likewise.
73615
73616 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73617
73618         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73619
73620         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73621         `gl_have_arbitrary_file_name_length_limit' to
73622         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73623         actually works between configure runs.
73624
73625 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73626             Bruno Haible  <bruno@clisp.org>
73627
73628         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73629
73630 2006-09-25  Jim Meyering  <jim@meyering.net>
73631
73632         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73633         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73634
73635 2006-09-25  Eric Blake  <ebb9@byu.net>
73636
73637         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73638         exec's in 2006-09-18 patch when shuffling fds.
73639
73640 2006-09-25  Bruno Haible  <bruno@clisp.org>
73641
73642         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73643         Reported by Jim Meyering.
73644
73645 2006-09-24  Jim Meyering  <jim@meyering.net>
73646
73647         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73648         compare a pointer against a literal "0".  That caused failures with
73649         at least HP-UX's hpcc.
73650
73651 2006-09-22  Simon Josefsson  <jas@extundo.com>
73652
73653         * modules/gc-sha1:
73654         * modules/gc-md4:
73655         * modules/gc-hmac-sha1:
73656         * modules/gc-hmac-md5:
73657         * modules/gc-des:
73658         * modules/gc-arcfour: Distribute more files.
73659
73660 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73661
73662         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73663         (gl_linked_iterator_from_to): Initialize struct completely.
73664         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73665         (gl_tree_iterator_from_to): Likewise
73666         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73667         * lib/gl_array_list.c [lint] (gl_array_iterator)
73668         (gl_array_iterator_from_to): Likewise.
73669         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73670         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73671         (gl_carray_iterator_from_to): Likewise.
73672
73673         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73674         * lib/md4.c (md4_process_block): Remove unused variable.
73675         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73676         parentheses for clarity.
73677
73678 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73679
73680         * modules/bison-i18n (Depends-on): Add gettext.
73681
73682 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73683
73684         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73685         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73686         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73687         also add missing comma that caused broken test.
73688         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73689         stdlib.h, for `abort'.
73690         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73691         variables.
73692         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73693         include unistd.h if present, for `rmdir'.
73694         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73695         variables.
73696         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73697         in the process include standard headers for prototypes.
73698         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73699         gets declared on GNU/Linux.
73700         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73701         unistd.h, for `rmdir'.
73702         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73703
73704         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73705         always true.
73706         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73707
73708         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73709
73710 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73711
73712         * gnulib-tool (func_version): Create output all at once.  This
73713         may help avoid triggering unnecessary SIGPIPEs, and at any
73714         rate it doesn't hurt.
73715
73716 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73717             Bruno Haible  <bruno@clisp.org>
73718
73719         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73720         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73721         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73722
73723         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73724         (gl_FUNC_VASPRINTF): Invoke it.
73725
73726 2006-09-22  Bruno Haible  <bruno@clisp.org>
73727
73728         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73729         getloadavg.c as first argument.
73730
73731 2006-09-22  Bruno Haible  <bruno@clisp.org>
73732
73733         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73734         at the beginning of the gl_INIT macro.
73735         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73736         gl_GETLOADAVG.
73737
73738 2006-09-22  Bruno Haible  <bruno@clisp.org>
73739
73740         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73741         module.
73742         Suggested by Ralf Wildenhues.
73743
73744 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73745
73746         Import this patch from libc:
73747
73748         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73749
73750         * lib/regex_internal.c (re_string_reconstruct): Handle
73751         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73752         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73753         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73754         re_string_context_at.
73755
73756         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73757         now requires it.
73758         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73759         gl_REGEX now does it for us.
73760         (gl_REGEX): Add test taken from
73761         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73762
73763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73764         Check that large offsets work.  Modernize Autoconf usages.
73765         Prefer "yes" to mean a good thing rather than a bad.
73766         Don't put "#define mkstemp" in config.h, as this might interfere
73767         with standard system headers that "#define mkstemp mkstemp64".
73768
73769         * modules/mkstemp (Depends-on): Add extensions, so that
73770         mkstemp is visible on some platforms.
73771         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73772         (Include): Change to "mkstemp.h" from <stdlib.h>.
73773         (Files): Add mkstemp.h.
73774
73775         * lib/mkstemp.h: New file, since some standard headers
73776         #define mkstemp.
73777         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73778         Include "mkstemp.h".
73779         Make the _LIBC code resemble glibc original more,
73780         e.g., use K&R style.
73781         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73782         (mkstemp): Remove, since mkstemp.h does this for us.
73783         * lib/stdlib--.h: Include mkstemp.h.
73784
73785         Import this patch from libc:
73786
73787         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73788
73789         * lib/tempname.c (__gen_tempname): Change attempts_min
73790         into a macro.  Use preprocessor to decide how to initialize
73791         attempts [Coverity CID 67].
73792
73793 2006-09-20  Bruno Haible  <bruno@clisp.org>
73794
73795         * lib/mkdtemp.c: Import from libc.
73796         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73797                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73798                 attempts_min into a macro.  Use preprocessor to decide how to
73799                 initialize attempts [Coverity CID 67].
73800         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73801                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73802                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73803
73804 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73805
73806         * gnulib-tool (func_exit): New function, to allow to pass the
73807         exit status portably through the trap.  Use everywhere.
73808         (--help, --version): Signal a write error.
73809         (trap): catch SIGPIPE, for write errors.
73810         Exit at the end of the trap, with the correct exit status.
73811
73812 2006-09-19  Karl Berry  <karl@gnu.org>
73813
73814         * doc/gnulib.texi: note about the license texinfo files.
73815
73816 2006-09-19  Eric Blake  <ebb9@byu.net>
73817
73818         * gnulib-tool: Avoid space-tab.
73819
73820 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73821
73822         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73823         that prevented coreutils 6.1 from building.  Problem reported
73824         by Petter Reinholdtsen.
73825
73826 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73827
73828         * gnulib-tool (avoidlist): Fix typo that broke options like
73829         --avoid=lock that are used by coreutils bootstrap.
73830
73831 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73832
73833         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73834         more systematically.
73835
73836 2006-09-18  Jim Meyering  <jim@meyering.net>
73837
73838         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73839
73840 2006-09-18  Bruno Haible  <bruno@clisp.org>
73841
73842         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73843
73844 2006-09-18  Bruno Haible  <bruno@clisp.org>
73845
73846         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73847         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73848         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73849         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73850         * m4/gettext.m4: Require autoconf >= 2.52.
73851         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73852         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73853         of gl_cv_header_inttypes_h.
73854
73855 2006-09-18  Bruno Haible  <bruno@clisp.org>
73856
73857         * lib/javaversion.c: Include configmake.h.
73858
73859 2006-09-18  Bruno Haible  <bruno@clisp.org>
73860
73861         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73862         avoid that the while loops be executed in a subshell.
73863
73864 2006-09-18  Bruno Haible  <bruno@clisp.org>
73865
73866         * MODULES.html.sh (func_module): Break long lines.
73867         Suggested by Bruce Korb <bkorb@gnu.org>.
73868
73869 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73870
73871         Speed up by a factor of 1.12.
73872         * gnulib-tool (nl): New variable.
73873         (func_import): Rewrite include directive extraction to only read each
73874         directive once.
73875
73876 2006-09-17  Bruno Haible  <bruno@clisp.org>
73877
73878         * modules/javaversion (Makefile.am): Remove DEFS setting.
73879         (Depends-on): Add configmake, for PKGDATADIR definition.
73880
73881 2006-09-17  Bruno Haible  <bruno@clisp.org>
73882
73883         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73884
73885 2006-09-17  Bruno Haible  <bruno@clisp.org>
73886
73887         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73888         (func_modules_transitive_closure, func_modules_add_dummy,
73889         func_modules_to_filelist, func_import, func_create_testdir,
73890         func_create_megatestdir, ...): Use it wherever possible.
73891         Suggested by Ralf Wildenhues.
73892
73893 2006-09-16  Karl Berry  <karl@gnu.org>
73894
73895         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73896         to avoid sectioning errors.
73897         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73898         [ifinfo]: blank line after @center-ed titles.
73899         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73900         Spell FSF address consistently with others.
73901         (These changes approved by rms.)
73902
73903 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73904
73905         Speed up by a factor of 1.61.
73906         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73907         already checked module names again.
73908
73909 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73910
73911         Speed up by a factor of 1.13.
73912         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73913         for new_files, and the input to func_add_or_update.
73914
73915 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73916
73917         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73918         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73919
73920 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73921
73922         * modules/mkancesdirs (Depends-on): Add fcntl.
73923         * modules/savewd: New file.
73924         * MODULES.html.sh (File system functions): Add savewd.
73925
73926         * modules/configmake (Makefile.am): Add support for the
73927         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73928
73929 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73930
73931         * m4/savewd.m4: New file.
73932
73933 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73936         (dirchownmod): New arg FD.  All callers changed.
73937         Use FD rather than opening the directory ourself, as opening is
73938         now the caller's responsibility.
73939         * lib/dirchownmod.h: Likewise.
73940         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73941         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73942         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73943         (test_dir): Remove.
73944         (mkancesdirs): Return length of prefix of FILE that has already
73945         been made, or -2 if there is a child doing the work.  Redo
73946         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73947         ".", and treat ".." specially since it might stray back into
73948         already-created areas.  Use a subprocess if necessary.  New arg
73949         WD; all users changed.  MAKE_DIR function should now return 1
73950         if it creates a directory that is not readable.  Return -2 if
73951         a child process is spun off.
73952         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73953         Adjust signature to match code.
73954         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73955         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73956         all users changed.
73957         * lib/savewd.c, lib/savewd.h: New files.
73958
73959 2006-09-15  Jim Meyering  <jim@meyering.net>
73960
73961         * modules/rename-dest-slash: New module.
73962         * MODULES.html.sh (posix_compat): Add it here.
73963
73964         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73965
73966 2006-09-15  Jim Meyering  <jim@meyering.net>
73967
73968         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73969         file.
73970
73971         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73972
73973 2006-09-15  Jim Meyering  <jim@meyering.net>
73974
73975         * lib/rename-dest-slash.c (has_trailing_slash): Use
73976         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73977         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73978         test before testing whether SRC is a directory.
73979         Suggestions from Bruno Haible.
73980
73981         Avoid a warning about an unused variable.
73982         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73983         into the #ifdef block where it's used.
73984
73985         * lib/rename-dest-slash.c: New file.
73986
73987 2006-09-14  Bruno Haible  <bruno@clisp.org>
73988
73989         * lib/allocsa.c: Include <config.h> unconditionally.
73990         * lib/asnprintf.c: Likewise.
73991         * lib/asprintf.c: Likewise.
73992         * lib/c-strcasecmp.c: Likewise.
73993         * lib/c-strcasestr.c: Likewise.
73994         * lib/c-strncasecmp.c: Likewise.
73995         * lib/c-strstr.c: Likewise.
73996         * lib/classpath.c: Likewise.
73997         * lib/clean-temp.c: Likewise.
73998         * lib/concatpath.c: Likewise.
73999         * lib/copy-file.c: Likewise.
74000         * lib/csharpcomp.c: Likewise.
74001         * lib/csharpexec.c: Likewise.
74002         * lib/execute.c: Likewise.
74003         * lib/fatal-signal.c: Likewise.
74004         * lib/findprog.c: Likewise.
74005         * lib/fwriteerror.c: Likewise.
74006         * lib/gl_array_list.c: Likewise.
74007         * lib/gl_array_oset.c: Likewise.
74008         * lib/gl_avltree_list.c: Likewise.
74009         * lib/gl_avltree_oset.c: Likewise.
74010         * lib/gl_avltreehash_list.c: Likewise.
74011         * lib/gl_carray_list.c: Likewise.
74012         * lib/gl_linked_list.c: Likewise.
74013         * lib/gl_linkedhash_list.c: Likewise.
74014         * lib/gl_list.c: Likewise.
74015         * lib/gl_oset.c: Likewise.
74016         * lib/gl_rbtree_list.c: Likewise.
74017         * lib/gl_rbtree_oset.c: Likewise.
74018         * lib/gl_rbtreehash_list.c: Likewise.
74019         * lib/imaxabs.c: Likewise.
74020         * lib/imaxdiv.c: Likewise.
74021         * lib/javacomp.c: Likewise.
74022         * lib/javaexec.c: Likewise.
74023         * lib/javaversion.c: Likewise.
74024         * lib/linebreak.c: Likewise.
74025         * lib/localcharset.c: Likewise.
74026         * lib/lock.c: Likewise.
74027         * lib/mbchar.c: Likewise.
74028         * lib/mbswidth.c: Likewise.
74029         * lib/mkdtemp.c: Likewise.
74030         * lib/pipe.c: Likewise.
74031         * lib/printf-args.c: Likewise.
74032         * lib/printf-parse.c: Likewise.
74033         * lib/progname.c: Likewise.
74034         * lib/progreloc.c: Likewise.
74035         * lib/readlink.c: Likewise.
74036         * lib/sh-quote.c: Likewise.
74037         * lib/stpcpy.c: Likewise.
74038         * lib/stpncpy.c: Likewise.
74039         * lib/strcasecmp.c: Likewise.
74040         * lib/strcasestr.c: Likewise.
74041         * lib/strcspn.c: Likewise.
74042         * lib/striconv.c: Likewise.
74043         * lib/strncasecmp.c: Likewise.
74044         * lib/strnlen1.c: Likewise.
74045         * lib/strstr.c: Likewise.
74046         * lib/strtok_r.c: Likewise.
74047         * lib/tls.c: Likewise.
74048         * lib/tmpdir.c: Likewise.
74049         * lib/unicodeio.c: Likewise.
74050         * lib/unsetenv.c: Likewise.
74051         * lib/vasnprintf.c: Likewise.
74052         * lib/vasprintf.c: Likewise.
74053         * lib/wait-process.c: Likewise.
74054         * lib/xallocsa.c: Likewise.
74055         * lib/xsetenv.c: Likewise.
74056         * lib/xstriconv.c: Likewise.
74057
74058 2006-09-13  Simon Josefsson  <jas@extundo.com>
74059
74060         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74061         that internally, suggested by Ralf Wildenhues
74062         <Ralf.Wildenhues@gmx.de>.
74063
74064 2006-09-13  Simon Josefsson  <jas@extundo.com>
74065
74066         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74067         @LIBOBJS@.
74068         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74069
74070 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74071
74072         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74073         longer worry about uses that don't define HAVE_CONFIG_H.
74074         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74075         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74076         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74077         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74078         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74079         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74080         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74081         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74082         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74083         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74084         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74085         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74086         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74087         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74088         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74089         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74090         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74091         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74092         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74093         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74094         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74095         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74096         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74097         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74098         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74099         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74100         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74101         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74102         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74103         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74104         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74105         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74106         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74107         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74108         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74109         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74110         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74111         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74112         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74113         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74114         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74115         Likewise.
74116
74117 2006-09-13  Eric Blake  <ebb9@byu.net>
74118
74119         * lib/getopt.c: Fix typo in last commit.
74120
74121 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74122
74123         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74124         dgettext.
74125
74126 2006-09-12  Jim Meyering  <jim@meyering.net>
74127
74128         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74129         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74130         Reported by Nelson H. F. Beebe.
74131
74132 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74133
74134         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74135         program_invocation_name and program_invocation_short_name are
74136         initialized.
74137         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74138         and program_invocation_short_name to argp.h, so they are visible
74139         to user programs.
74140         * lib/argp.h: Likewise
74141
74142 2006-09-10  Bruno Haible  <bruno@clisp.org>
74143
74144         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74145         m4/inttypes_h.m4, m4/uintmax_t.m4.
74146
74147 2006-09-10  Bruno Haible  <bruno@clisp.org>
74148
74149         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74150         gl_AC_TYPE_UINTMAX_T.
74151
74152 2006-09-10  Bruno Haible  <bruno@clisp.org>
74153
74154         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74155
74156 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74157
74158         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74159         convention.  Text proposed by Bruno Haible.
74160         (struct argp_option): Document the use of N_() wrappers.
74161
74162         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74163         '\v', and translate the two parts separately, instead of feeding
74164         the whole string to gettext.  This allows to exclude
74165         '\v' from the strings visible to the translator by writing doc
74166         strings as N_("..") "\v" N_("..").
74167
74168 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74169
74170         * config/srclist.txt: Undo latest change; the bug was fixed.
74171
74172 2006-09-09  Bruno Haible  <bruno@clisp.org>
74173
74174         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74175         assignments if building a library without libtool.
74176         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74177         in func_emit_lib_Makefile_am.
74178         (func_import): When building a static library libfoo.a, arrange to
74179         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74180         (func_create_testdir): Likewise.
74181         * modules/gc (configure.ac, Makefile.am): If building statically,
74182         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74183         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74184         * modules/striconv (configure.ac, Makefile.am): Likewise.
74185         Based on a suggestion by Ralf Wildenhues.
74186
74187 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74188
74189         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74190         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74191         Also:
74192
74193         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74194         Add year_2050_test to catch glibc bug 2821
74195         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74196
74197         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74198         Prefer #ifdef to #if.
74199
74200         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74201         Return from 'main' instead of calling 'exit'.
74202
74203 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74204
74205         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74206         returned the maximum time_t value rather than (time_t) -1.
74207         Problem originally reported by William Bardwell
74208         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74209
74210         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74211         Moved to here ...
74212         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74213         ... from here.
74214
74215 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74216
74217         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74218         2821 is fixed.
74219
74220 2006-09-08  Jim Meyering  <jim@meyering.net>
74221
74222         Don't make generated files read-only.  That would bother too many
74223         people.  However, do retain the ability to work when targets are
74224         read-only: remove the destination and temporary files before writing
74225         them (when generated via sed or echo), or by using the -f option for
74226         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74227         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74228         * modules/byteswap, modules/configmake, modules/fcntl:
74229         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74230         * modules/localcharset, modules/netinet_in, modules/poll:
74231         * modules/stdbool, modules/stdint, modules/sys_select:
74232         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74233
74234 2006-09-08  Jim Meyering  <jim@meyering.net>
74235
74236         Avoid new build failure on FreeBSD 6.0.
74237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74238         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74239         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74240
74241 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74242
74243         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74244
74245 2006-09-07  Jim Meyering  <jim@meyering.net>
74246
74247         Fix global typo in last change: use chmod u-w, not chmod u-x.
74248         Spotted by Paul Eggert and Bruce Korb.
74249         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74250         * modules/byteswap, modules/configmake, modules/fcntl:
74251         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74252         * modules/localcharset, modules/netinet_in, modules/poll:
74253         * modules/stdbool, modules/stdint, modules/sys_select:
74254         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74255
74256 2006-09-06  Jim Meyering  <jim@meyering.net>
74257
74258         Make generated files be read-only.
74259         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74260         Ensure that each generated file is now read-only.
74261         * modules/argz: Likewise.
74262         * modules/arpa_inet: Likewise.
74263         * modules/byteswap: Likewise.
74264         * modules/configmake: Likewise.
74265         * modules/fcntl: Likewise.
74266         * modules/fnmatch: Likewise.
74267         * modules/getopt: Likewise.
74268         * modules/glob: Likewise.
74269         * modules/inttypes: Likewise.
74270         * modules/netinet_in: Likewise.
74271         * modules/poll: Likewise.
74272         * modules/stdbool: Likewise.
74273         * modules/stdint: Likewise.
74274         * modules/sys_select: Likewise.
74275         * modules/sys_socket: Likewise.
74276         * modules/sys_stat: Likewise.
74277         * modules/sysexits: Likewise.
74278         * modules/localcharset: Same as above, but continue using temporary
74279         file named "t-$@" (why different?) rather than the "$@-t" used
74280         everywhere else.
74281
74282         * modules/sysexits (Makefile.am): Replace literal occurrences
74283         of "sysexit.h" more readable, and more consistent, "$@".
74284
74285 2006-09-06  Bruno Haible  <bruno@clisp.org>
74286
74287         * modules/striconv: New file.
74288         * modules/xstriconv: New file.
74289         * MODULES.html.sh (Internationalization functions): Add striconv,
74290         xstriconv.
74291
74292 2006-09-06  Bruno Haible  <bruno@clisp.org>
74293
74294         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74295         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74296         not using libtool correctly.
74297
74298 2006-09-06  Bruno Haible  <bruno@clisp.org>
74299
74300         * lib/striconv.h: New file.
74301         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74302         iconvstring.c.
74303         * lib/xstriconv.h: New file.
74304         * lib/xstriconv.c: New file.
74305
74306 2006-09-06  Bruno Haible  <bruno@clisp.org>
74307
74308         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74309         lib_..._LDFLAGS.
74310
74311 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74312
74313         * lib/argz_.h: Sync from Libtool.
74314
74315         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74316                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74317
74318         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74319
74320 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74321
74322         * modules/trim: New file.
74323
74324 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74325
74326         * lib/trim.h: New file.
74327         * lib/trim.c: New file.
74328
74329 2006-09-05  Bruno Haible  <bruno@clisp.org>
74330
74331         * MODULES.html.sh (String handling): Add trim.
74332
74333 2006-09-04  Karl Berry  <karl@gnu.org>
74334
74335         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74336         until next release.
74337
74338 2006-09-03  Bruno Haible  <bruno@clisp.org>
74339
74340         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74341         correctly.
74342
74343 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74346         not gl_GETLOADAVG.  Omit unneeded semicolons.
74347         Problems reported by Ralf Wildenhues in
74348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74349         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74350         at the end, which is the usual gnulib style.
74351
74352         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74353         of doing all the work ourselves.
74354         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74355         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74356
74357 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74358
74359         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74360         Problem reported by Ralf Wildenhues in
74361         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74362
74363         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74364         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74365
74366 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74367
74368         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74369         yesterday's patch by changing test -n to test -z.
74370
74371 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74372
74373         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74374         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74375         the former is now obsolescent.
74376
74377         * modules/chdir-long (Depends-on): Add fcntl.
74378
74379 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74380
74381         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74382         obsolescent, and programs should use gnulib instead.
74383         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74384         but with prefixes changed.
74385
74386 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74389         or stdbool.h, because they might not exist while configuring.
74390
74391         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74392         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74393         does that for us.
74394         (O_DIRECTORY): Remove.
74395
74396 2006-08-31  Eric Blake  <ebb9@byu.net>
74397
74398         * gnulib-tool: Don't let emacs change spaces to TAB.
74399
74400 2006-08-31  Bruno Haible  <bruno@clisp.org>
74401
74402         * gnulib-tool: When calling func_import more than once, do it in a
74403         subshell.
74404         Reported by Eric Blake <ebb9@byu.net>.
74405
74406 2006-08-31  Bruno Haible  <bruno@clisp.org>
74407
74408         * gnulib-tool (nl): Remove variable.
74409         (sed_transform_lib_file): Use more robust test for config-h module.
74410         (func_import): Fix typo in 2006-08-25 patch.
74411
74412 2006-08-31  Bruno Haible  <bruno@clisp.org>
74413
74414         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74415         specified, augment Makefile.am variables instead of assigning them.
74416
74417 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74418
74419         Work around a bug in both the Linux and SunOS 64-bit kernels:
74420         nanosleep mishandles sleeps for longer than 2**31 seconds.
74421         Problem reported by Frank v Waveren in
74422         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74424         Check for nanosleep bug.
74425         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74426
74427 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74428
74429         Work around a bug in both the Linux and SunOS 64-bit kernels:
74430         nanosleep mishandles sleeps for longer than 2**31 seconds.
74431         Problem reported by Frank v Waveren in
74432         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74433         * lib/nanosleep.c (BILLION): New constant.
74434         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74435         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74436         implementation.
74437
74438 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         * modules/nanosleep (Depends-on): Add gettime.
74441
74442 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74443         and Simon Josefsson  <jas@extundo.com>
74444         and Oskar Liljeblad  <oskar@osk.mine.nu>
74445
74446         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74447         * gnulib-tool (func_import): New license type 'unmodifiable license
74448         text'.
74449         * modules/fdl: Use it.  Longer description.
74450         * module/gpl, module/lgpl: New files.
74451
74452 2006-08-30  Jim Meyering  <jim@meyering.net>
74453
74454         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74455         shadowing the parameter.
74456
74457 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74458
74459         Sync from Libtool:
74460
74461         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74462
74463         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74464         sharing with gnulib.  Report by Eric Blake.
74465
74466 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74467
74468         * modules/isapipe: New file.
74469         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74470
74471 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74472
74473         * modules/configmake (Makefile.am): Add a comment, and omit
74474         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74475         by Bruno Haible.
74476
74477 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74478
74479         * m4/isapipe.m4: New file.
74480
74481 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         * lib/isapipe.c, lib/isapipe.h: New files.
74484
74485 2006-08-29  Jim Meyering  <jim@meyering.net>
74486
74487         * modules/configmake (Makefile.am): Make configmake.h depend on
74488         Makefile.  Otherwise, a stale configmake.h could hang around.
74489
74490 2006-08-29  Eric Blake  <ebb9@byu.net>
74491
74492         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74493         resolution of upstream bug 3044.
74494
74495 2006-08-29  Bruno Haible  <bruno@clisp.org>
74496
74497         * modules/localcharset (Depends-on): Add configmake.
74498         (Makefile.am): Remove setting of LIBDIR through DEFS.
74499
74500 2006-08-29  Bruno Haible  <bruno@clisp.org>
74501
74502         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74503         defined.
74504
74505 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74506
74507         * modules/fcntl: New file.
74508         * modules/chdir-safer (Depends-on): Add fcntl.
74509         * modules/fts: Likewise.
74510         * modules/mkdir-p: Likewise.
74511
74512         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74513         This undoes the most recent change, since we're now addressing the
74514         problem in a different way.
74515
74516         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74517         into output, since the output might be called Makefile.am even
74518         if $makefile_name is something different.
74519         (func_import): Use $makefile_am rather than
74520         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74521         empty.
74522
74523         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74524
74525 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74526
74527         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74528         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74529         recent change to stdint.m4, since we're now addressing the problem in a
74530         different way.
74531
74532 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74533
74534         * m4/fcntl_h.m4: New file.
74535
74536 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74537
74538         * lib/fcntl_.h: New file.
74539         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74540         the fcntl module.
74541         * lib/dirchownmod.c: Likewise.
74542         * lib/fts.c: Likewise.
74543
74544         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74545         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74546         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74547         just before including <inttypes.h>, to avoid circular inclusion.
74548
74549 2006-08-28  Jim Meyering  <jim@meyering.net>
74550
74551         * doc/visibility.texi: Actually read and correct the grammar of the
74552         sentence affected by yesterday's change.
74553
74554 2006-08-28  Eric Blake  <ebb9@byu.net>
74555
74556         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74557         needs wrapper.
74558
74559 2006-08-28  Eric Blake  <ebb9@byu.net>
74560
74561         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74562
74563 2006-08-28  Eric Blake  <ebb9@byu.net>
74564
74565         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74566
74567 2006-08-28  Bruno Haible  <bruno@clisp.org>
74568
74569         * modules/c-strstr: New file, from GNU gettext.
74570         * MODULES.html.sh (String handling): Add c-strstr.
74571
74572 2006-08-28  Bruno Haible  <bruno@clisp.org>
74573
74574         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74575         macros.
74576         Reported by Eric Blake.
74577
74578 2006-08-28  Bruno Haible  <bruno@clisp.org>
74579
74580         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74581         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74582         * lib/vasprintf.c: Include errno.h, limits.h.
74583         (EOVERFLOW): New fallback definition.
74584         (vasprintf): Test here whether the string length is > INT_MAX.
74585         * lib/vsnprintf.c: Include errno.h, limits.h.
74586         (EOVERFLOW): New fallback definition.
74587         (vsnprintf): Fix bug when generated string was too long for the buffer.
74588         Test here whether the string length is > INT_MAX.
74589
74590 2006-08-28  Bruno Haible  <bruno@clisp.org>
74591
74592         * lib/inttypes_.h (SCNX*): Remove definitions.
74593         Reported by Eric Blake.
74594
74595 2006-08-28  Bruno Haible  <bruno@clisp.org>
74596
74597         * lib/c-strstr.h: New file, from GNU gettext.
74598         * lib/c-strstr.c: New file, from GNU gettext.
74599
74600 2006-08-28  Bruno Haible  <bruno@clisp.org>
74601
74602         * gnulib-tool: Reorder some statements.
74603
74604 2006-08-28  Bruno Haible  <bruno@clisp.org>
74605
74606         * gnulib-tool: New option --makefile-name.
74607         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74608         $makefile_name.
74609         (func_import): Write $makefile_name to the cache file, and read it from
74610         there unless explicitly specified. Use $makefile_name as file name
74611         instead of Makefile.am. Adjust the recommendations accordingly.
74612
74613 2006-08-28  Bruno Haible  <bruno@clisp.org>
74614
74615         * gnulib-tool (func_verify_module): Check against misapplying patch.
74616
74617 2006-08-28  Bruno Haible  <bruno@clisp.org>
74618
74619         * gnulib-tool (func_relativize, func_relconcat): New functions.
74620         Give an error if --local-dir is given with --update.
74621         Remove trailing slashes from $local_gnulib_dir.
74622         (func_import): Store the relativized $local_gnulib_dir in
74623         gnulib-cache.m4, and read it from there if not specified explicitly.
74624
74625 2006-08-28  Bruno Haible  <bruno@clisp.org>
74626
74627         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74628         is the current directory. Respect also $local_gnulib_dir.
74629
74630 2006-08-28  Bruno Haible  <bruno@clisp.org>
74631             Simon Josefsson  <jas@extundo.com>
74632
74633         BeOS portability.
74634         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74635
74636 2006-08-27  Jim Meyering  <jim@meyering.net>
74637
74638         * doc/visibility.texi: Remove duplicate word: "pointer".
74639
74640 2006-08-26  Bruno Haible  <bruno@clisp.org>
74641
74642         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74643         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74644         (Makefile.am): Create inttypes.h from inttypes_.h.
74645         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74646
74647         * modules/imaxabs: New file.
74648
74649         * modules/imaxdiv: New file.
74650
74651 2006-08-26  Bruno Haible  <bruno@clisp.org>
74652
74653         * m4/inttypes.m4: New file.
74654         * m4/_inttypes_h.m4: Remove file.
74655         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74656         PRI_MACROS_BROKEN.
74657         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74658
74659         * m4/imaxabs.m4: New file.
74660
74661         * m4/imaxdiv.m4: New file.
74662
74663 2006-08-26  Bruno Haible  <bruno@clisp.org>
74664
74665         * lib/inttypes_.h: New file.
74666         * lib/inttypes.h: Remove file.
74667         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74668
74669         * lib/imaxabs.c: New file.
74670
74671         * lib/imaxdiv.c: New file.
74672
74673 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         New config-h module, so that "make" output needn't be cluttered
74676         by -DHAVE_CONFIG_H.
74677         * MODULES.html.sh (Support for building libraries and executables):
74678         Add config-h.
74679         * modules/config-h: New file.
74680         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74681         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74682         the config-h module is used.
74683
74684         New configmake module, so that "make" output needn't be cluttered
74685         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74686         * MODULES.html.sh (Support for building libraries and executables):
74687         Add configmake.
74688         * modules/configmake: New file.
74689
74690 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74691
74692         * m4/config-h.m4: New file.
74693
74694 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74695
74696         * config/srclist.txt: Add elisp-comp.
74697
74698 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74699
74700         * MODULES.html.sh (Support for building libraries and executables):
74701         Add elisp-comp.
74702         * build-aux/elisp-comp: New file.
74703         * modules/elisp-comp: New file.
74704
74705 2006-08-24  Bruno Haible  <bruno@clisp.org>
74706
74707         * gnulib-tool (func_create_testdir): Use non-default values of
74708         sourcebase and m4base.
74709
74710 2006-08-24  Bruno Haible  <bruno@clisp.org>
74711
74712         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74713         HTML structure.
74714
74715 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74716
74717         * modules/openat (Depends-on): Add lchown.
74718
74719 2006-08-23  Bruno Haible  <bruno@clisp.org>
74720
74721         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74722         of gl_LOCK_EARLY instead of gl_LOCK.
74723
74724 2006-08-23  Bruno Haible  <bruno@clisp.org>
74725
74726         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74727         on OSF/1 to no.
74728         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74729
74730 2006-08-23  Bruno Haible  <bruno@clisp.org>
74731
74732         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74733         as unusable.
74734
74735         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74736         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74737         (gl_LOCK): New macro.
74738
74739 2006-08-22  Simon Josefsson  <jas@extundo.com>
74740
74741         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74742         to md5 module.
74743
74744 2006-08-22  Simon Josefsson  <jas@extundo.com>
74745
74746         * MODULES.html.sh: Add "Support for maintaining and release
74747         projects".
74748
74749         * build-aux/gnupload: New file, from coreutils.
74750
74751 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74752
74753         Avoid the need for AC_LIBSOURCES in m4 macros.
74754         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74755         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74756         * modules/check-version (EXTRA_DIST): Add check-version.h.
74757         * modules/crc (EXTRA_DIST): Add crc.h.
74758         * modules/des (EXTRA_DIST): Add des.h.
74759         * modules/gc (EXTRA_DIST): Add gc.h.
74760         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74761         * modules/getline (EXTRA_DIST): Add getline.h.
74762         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74763         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74764         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74765         * modules/md2 (EXTRA_DIST): Add md2.h.
74766         * modules/md4 (EXTRA_DIST): Add md4.h.
74767         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74768         * modules/read-file (EXTRA_DIST): Add read-file.h.
74769         * modules/readline (EXTRA_DIST): Add readline.h.
74770         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74771         rijndael-api-fst.h.
74772
74773 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74774
74775         * m4/rijndael.m4 (gl_ARCFOUR):
74776         * m4/arctwo.m4 (gl_ARCTWO):
74777         * m4/check-version.m4 (gl_CHECK_VERSION):
74778         * m4/crc.m4 (gl_CRC):
74779         * m4/des.m4 (gl_DES):
74780         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74781         * m4/gc.m4 (gl_GC):
74782         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74783         * m4/getline.m4 (gl_FUNC_GETLINE):
74784         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74785         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74786         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74787         * m4/md2.m4 (gl_MD2):
74788         * m4/md4.m4 (gl_MD4):
74789         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74790         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74791         * m4/readline.m4 (gl_FUNC_READLINE):
74792         * m4/rijndael.m4 (gl_RIJNDAEL):
74793         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74794         to get the necessary .h files and whatnot.
74795
74796 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74797
74798         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74799         gnulib rather than the other way around.
74800         * config/srclistvars.sh (COREUTILS): Remove.
74801
74802 2006-08-22  Jim Meyering  <jim@meyering.net>
74803
74804         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74805
74806         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74807
74808 2006-08-22  Eric Blake  <ebb9@byu.net>
74809
74810         * modules/regexprops-generic: New file.
74811         * MODULES.html.sh (Support for building documentation): List it.
74812
74813 2006-08-22  Eric Blake  <ebb9@byu.net>
74814
74815         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74816         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74817         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74818         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74819
74820 2006-08-22  Bruno Haible  <bruno@clisp.org>
74821
74822         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74823         and lib_LTLIBRARIES like the other lib_* variables.
74824
74825 2006-08-22  Bruno Haible  <bruno@clisp.org>
74826
74827         * build-aux/x-to-1.in: New file, from GNU gettext.
74828
74829 2006-08-22  Bruno Haible  <bruno@clisp.org>
74830
74831         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74832         <utmpx.h> exists.
74833
74834 2006-08-22  Bruno Haible  <bruno@clisp.org>
74835
74836         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74837         <utmpx.h> exists.
74838
74839 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         BeOS portability.
74842         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74843         exist.
74844         Problem reported by Bruno Haible.
74845
74846 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         Avoid the need for AC_LIBSOURCES in m4 macros.
74849         * modules/acl (EXTRA_DIST): Add acl.h.
74850         * modules/argmatch (Files): Add m4/argmatch.m4.
74851         (configure.ac): Add gl_ARGMATCH.
74852         (EXTRA_DIST): Renamed from lib_SOURCES, for
74853         consistency with the other modules.  Remove argmatch.c.
74854         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74855         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74856         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74857         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74858         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74859         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74860         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74861         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74862         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74863         * modules/closeout (EXTRA_DIST): Add closeout.h.
74864         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74865         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74866         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74867         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74868         dirname.h; remove basename.c and stripslash.c.
74869         * modules/exclude (EXTRA_DIST): Add exclude.h.
74870         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74871         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74872         * modules/file-type (EXTRA_DIST): Add file-type.h.
74873         * modules/filemode (EXTRA_DIST): Add filemode.h.
74874         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74875         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74876         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74877         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74878         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74879         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74880         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74881         * modules/getdate (EXTRA_DIST): Add getdate.c.
74882         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74883         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74884         * modules/getpass (EXTRA_DIST): Add getpass.h.
74885         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74886         * modules/group-member (EXTRA_DIST): Add group-member.h.
74887         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74888         * modules/hash (EXTRA_DIST): Add hash.h.
74889         * modules/human (EXTRA_DIST): Add human.h.
74890         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74891         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74892         * modules/lchown (EXTRA_DIST): Add lchown.h.
74893         * modules/long-options (EXTRA_DIST): Add long-options.h.
74894         * modules/lstat (EXTRA_DIST): Add lstat.h.
74895         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74896         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74897         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74898         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74899         * modules/memxor (EXTRA_DIST): Add memxor.h.
74900         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74901         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74902         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74903         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74904         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74905         * modules/physmem (EXTRA_DIST): Add physmem.h.
74906         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74907         * modules/posixver (EXTRA_DIST): Add posixver.h.
74908         * modules/quote (EXTRA_DIST): Add quote.h.
74909         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74910         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74911         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74912         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74913         regex_internal.h regexec.c.
74914         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74915         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74916         * modules/same (EXTRA_DIST): Add same.h.
74917         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74918         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74919         * modules/savedir (EXTRA_DIST): Add savedir.h.
74920         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74921         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74922         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74923         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74924         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74925         * modules/strdup (EXTRA_DIST): Add strdup.h.
74926         * modules/strftime (EXTRA_DIST): Add strftime.h.
74927         * modules/strndup (EXTRA_DIST): Add strndup.h.
74928         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74929         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74930         * modules/time_r (EXTRA_DIST): Add time_r.h.
74931         * modules/timespec (EXTRA_DIST): Add timespec.h.
74932         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74933         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74934         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74935         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74936         * modules/userspec (EXTRA_DIST): Add userspec.h.
74937         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74938         * modules/utimens (EXTRA_DIST): Add utimens.h.
74939         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74940         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74941         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74942         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74943         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74944         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74945         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74946         * modules/yesno (EXTRA_DIST): Add yesno.h.
74947
74948 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74949
74950         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74951
74952         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74953         * m4/dev-ino.m4, same-inode.m4: Remove.
74954
74955         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74956         * m4/acl.m4 (AC_FUNC_ACL):
74957         * m4/backupfile.m4 (gl_BACKUPFILE):
74958         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74959         * m4/canon-host.m4 (gl_CANON_HOST):
74960         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74961         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74962         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74963         * m4/cloexec.m4 (gl_CLOEXEC):
74964         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74965         * m4/closeout.m4 (gl_CLOSEOUT):
74966         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74967         * m4/dirname.m4 (gl_DIRNAME):
74968         * m4/exclude.m4 (gl_EXCLUDE):
74969         * m4/exitfail.m4 (gl_EXITFAIL):
74970         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74971         * m4/file-type.m4 (gl_FILE_TYPE):
74972         * m4/filemode.m4 (gl_FILEMODE):
74973         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74974         * m4/fpending.m4 (gl_FUNC_FPENDING):
74975         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74976         * m4/fts.m4 (gl_FUNC_FTS):
74977         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74978         * m4/getdate.m4 (gl_GETDATE):
74979         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74980         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74981         * m4/getpass.m4 (gl_FUNC_GETPASS):
74982         * m4/gettime.m4 (gl_GETTIME):
74983         * m4/getugroups.m4 (gl_GETUGROUPS):
74984         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74985         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74986         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74987         * m4/hash.m4 (gl_HASH):
74988         * m4/idcache.m4 (gl_IDCACHE):
74989         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74990         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74991         * m4/long-options.m4 (gl_LONG_OPTIONS):
74992         * m4/lstat.m4 (gl_FUNC_LSTAT):
74993         * m4/md5.m4 (gl_MD5):
74994         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74995         * m4/memcoll.m4 (gl_MEMCOLL):
74996         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74997         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74998         * m4/memxor.m4 (gl_MEMXOR):
74999         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75000         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75001         * m4/modechange.m4 (gl_MODECHANGE):
75002         * m4/mountlist.m4 (gl_MOUNTLIST):
75003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75004         * m4/openat.m4 (gl_FUNC_OPENAT):
75005         * m4/pathmax.m4 (gl_PATHMAX):
75006         * m4/physmem.m4 (gl_PHYSMEM):
75007         * m4/posixtm.m4 (gl_POSIXTM):
75008         * m4/posixver.m4 (gl_POSIXVER):
75009         * m4/quote.m4 (gl_QUOTE):
75010         * m4/quotearg.m4 (gl_QUOTEARG):
75011         * m4/readtokens.m4 (gl_READTOKENS):
75012         * m4/readutmp.m4 (gl_READUTMP):
75013         * m4/regex.m4 (gl_REGEX):
75014         * m4/safe-read.m4 (gl_SAFE_READ):
75015         * m4/safe-write.m4 (gl_SAFE_WRITE):
75016         * m4/same.m4 (gl_SAME):
75017         * m4/save-cwd.m4 (gl_SAVE_CWD):
75018         * m4/savedir.m4 (gl_SAVEDIR):
75019         * m4/settime.m4 (gl_SETTIME):
75020         * m4/sha1.m4 (gl_SHA1):
75021         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75022         * m4/stat-macros.m4 (gl_STAT_MACROS):
75023         * m4/stat-time.m4 (gl_STAT_TIME):
75024         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75025         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75026         * m4/strdup.m4 (gl_FUNC_STRDUP):
75027         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75028         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75029         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75030         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75031         * m4/time_r.m4 (gl_TIME_R):
75032         * m4/timespec.m4 (gl_TIMESPEC):
75033         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75034         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75035         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75036         * m4/userspec.m4 (gl_USERSPEC):
75037         * m4/utimecmp.m4 (gl_UTIMECMP):
75038         * m4/utimens.m4 (gl_UTIMENS):
75039         * m4/xalloc.m4 (gl_XALLOC):
75040         * m4/xgetcwd.m4 (gl_XGETCWD):
75041         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75042         * m4/xreadlink.m4 (gl_XREADLINK):
75043         * m4/xstrtod.m4 (gl_XSTRTOD):
75044         * m4/yesno.m4 (gl_YESNO):
75045         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75046         to get the necessary .h files and whatnot.
75047
75048 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75049             Bruno Haible  <bruno@clisp.org>
75050
75051         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75052         /bin/sh understanding of '!' conditional negation.
75053
75054 2006-08-21  Jim Meyering  <jim@meyering.net>
75055
75056         * modules/openat (Depends-on): Really alphabetize.
75057
75058         * modules/acl (Depends-on): Add error and quote.
75059
75060         * check-module (find_included_lib_files): Add at-func.c to the
75061         ok-to-include-more-than-once white list.
75062
75063         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75064
75065 2006-08-21  Bruno Haible  <bruno@clisp.org>
75066
75067         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75068         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75069         Reported by Martin Lambers <marlam@marlam.de>.
75070
75071 2006-08-21  Bruno Haible  <bruno@clisp.org>
75072
75073         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75074         specify an installation location, don't emit a noinst_LIBRARIES or
75075         noinst_LTLIBRARIES assignment.
75076
75077 2006-08-21  Bruno Haible  <bruno@clisp.org>
75078
75079         BeOS portability.
75080         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75081         BeOS has mbrtowc() but no <wctype.h>.
75082
75083 2006-08-21  Bruno Haible  <bruno@clisp.org>
75084
75085         BeOS portability.
75086         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75087         exist.
75088
75089 2006-08-21  Bruno Haible  <bruno@clisp.org>
75090
75091         BeOS portability.
75092         * lib/mbchar.h: Include <wctype.h> only if it exists.
75093
75094 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75095
75096         Remove files that are no longer needed by their respective modules.
75097         * m4/obstack.m4: Remove.
75098         * m4/strerror_r.m4: Remove.
75099         * m4/uint32_t.m4: Remove.
75100         * m4/uintptr_t.m4: Remove.
75101         * m4/ullong_max.m4: Remove.
75102         * m4/xstrtoimax.m4: Remove.
75103         * m4/xstrtoumax.m4: Remove.
75104
75105         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75106         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75107         dependencies now capture this.
75108
75109         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75110         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75111         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75112         * m4/human.m4 (gl_HUMAN): Likewise.
75113         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75114         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75115
75116         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75117
75118         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75119         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75120         stdint.
75121         * m4/human.m4 (gl_HUMAN): Likewise.
75122         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75123         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75124         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75125         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75126         * m4/xstrtol (gl_XSTRTOL): Likewise.
75127
75128         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75129         AC_TYPE_LONG_LONG_INT.
75130         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75131         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75132         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75133         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75134
75135         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75136         on stdbool.
75137
75138         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75139         (gl_PREREQ_XSTRTOUL): Remove.
75140
75141         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75142
75143         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75144         mode.
75145
75146 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         Add and change modules to make it easier for coreutils to use
75149         gnulib-tool.
75150         * modules/backupfile (Files): Remove m4/d-ino.m4.
75151         (Depends-on): Add d-ino.
75152         * modules/cycle-check (Depends-on): Add stdint.
75153         (lib_SOURCES): Add cycle-check.h.
75154         * modules/d-ino: New module.
75155         * modules/d-type: New module.
75156         * modules/error (Files): Remove m4/strerror_r.m4.
75157         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75158         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75159         m4/inttypes_h.m4, m4/uintmax_t.m4.
75160         (Depends-on): Add stdint.
75161         (lib_SOURCES): Add fsusage.h.
75162         * modules/getcwd (Files): Remove d-ino.m4.
75163         (Depends-on): Add d-ino.
75164         * modules/getndelim2 (Depends-on): Add stdint.
75165         * modules/glob (Files): Remove m4/d-type.m4.
75166         (Depends-on): Add d-type.
75167         * modules/host-os: New module.
75168         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75169         m4/inttypes_h.m4, m4/uintmax_t.m4.
75170         * Depends-on: Add stdint.
75171         (lib_SOURCES): Add human.h.
75172         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75173         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75174         m4/uintmax_t.m4, m4/ulonglong.m4.
75175         (Depends-on): Add stdint.
75176         (EXTRA_DIST): Add inttostr.h.
75177         * modules/lchmod: New module.
75178         * modules/link-follow: New module.
75179         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75180         (Depends-on): Add lchmod.
75181         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75182         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75183         (Depends-on): Add stdint.
75184         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75185         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75186         (Depends-on): Add stdint.
75187         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75188         * modules/perl: New module.
75189         * modules/regex (Depends-on): Add stdint.
75190         * modules/rmdir-errno: New module.
75191         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75192         m4/intmax_t.m4.
75193         (Depends-on): Add stdint.
75194         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75195         m4/uintmax_t.m4.
75196         (Depends-on): Add stdint.
75197         * modules/unlink-busy: New module.
75198         * modules/utimecmp (Depends-on): Add stdint.
75199         * modules/uptime: New module.
75200         * modules/winsz-ioctl: New module.
75201         * modules/winsz-termios: New module.
75202         * modules/xnanosleep (Depends-on): Add nanosleep.
75203         * modules/ullong_max: Remove.
75204         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75205         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75206         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75207         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75208         (Depends-on): Add inttypes.
75209         (lib_SOURCES): Add xstrtol.h.
75210         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75211         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75212         * MODULES.html.sh: Move 'assert' into the assert section.
75213         Move 'dummy' into the linking section.
75214         Remove ullong_max.
75215         Add section for compatibility checks for POSIX:2001 functions,
75216         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75217         winsz-ioctl, and winsz-termios into it.
75218         Add lchmod.
75219         Add top-level Misc section and put host-os, perl, and uptime
75220         into it.
75221
75222 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75225         now assume the stdint module.  Do not include inttypes.h.
75226         * lib/fsusage.h: Likewise.
75227         * lib/getndelim2.c: Likewise.
75228         * lib/human.h: Likewise.
75229         * lib/inttostr.h: Likewise.
75230         * lib/obstack.c: Likewise.
75231         * lib/regex_internal.h: Likewise.
75232         * lib/tempname.c: Likewise.
75233         * lib/utimecmp.c: Likewise.
75234         * lib/xstrtol.h: Likewise.
75235
75236         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75237
75238         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75239         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75240         * lib/xtime.h: Likewise.
75241
75242 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         * modules/openat (Files): Add lib/fchmodat.c.
75245         Fixes problem reported by Jay Youngman.
75246
75247 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75248
75249         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75250         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75251
75252 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75253             Bruno Haible  <bruno@clisp.org>
75254
75255         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75256         and is a script that invokes bison. Tighten the code. Add comments.
75257
75258 2006-08-18  Jim Meyering  <jim@meyering.net>
75259
75260         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75261         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75262         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75263         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75264
75265 2006-08-18  Bruno Haible  <bruno@clisp.org>
75266
75267         * modules/bison-i18n: New file.
75268         * MODULES.html.sh (Internationalization functions): Add it.
75269
75270 2006-08-18  Bruno Haible  <bruno@clisp.org>
75271
75272         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75273         sys/statvfs.h. When getmntinfo was found, check its declaration and
75274         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75275
75276 2006-08-18  Bruno Haible  <bruno@clisp.org>
75277
75278         * m4/bison-i18n.m4: New file, from bison.
75279
75280 2006-08-18  Bruno Haible  <bruno@clisp.org>
75281
75282         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75283         (ME_DUMMY): Treat "kernfs" as a dummy.
75284         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75285
75286 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75287
75288         Update from coreutils.
75289
75290         2006-08-15  Jim Meyering  <jim@meyering.net>
75291
75292         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75293
75294         2006-01-17  Jim Meyering  <jim@meyering.net>
75295
75296         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75297
75298         2006-01-11  Jim Meyering  <jim@meyering.net>
75299
75300         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75301         Check for the lchmod function.
75302
75303 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75304
75305         Update from coreutils.
75306
75307         * lib/__fpending.h: Add copyright notice.
75308         * lib/fprintftime.h: Likewise.
75309         * lib/savedir.c: Use (C) in copyright notice.
75310         * lib/savedir.h: Likewise.
75311
75312         2006-08-15  Jim Meyering  <jim@meyering.net>
75313
75314         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75315         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75316         in support of the EXPECTED_ERRNO macro.
75317         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75318         definitions.  Instead, define the appropriate symbols and include
75319         "at-func.c".
75320         * lib/mkdirat.c (mkdirat): Likewise.
75321         * lib/fchmodat.c (fchmodat): Likewise.
75322         (ENOSYS): Remove definition.
75323         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75324         it.  Don't include "unistd--.h" -- it wasn't ever used.
75325
75326         2006-01-17  Jim Meyering  <jim@meyering.net>
75327
75328         Rewrite fts.c not to change the current working directory,
75329         by using openat, fstatat, fdopendir, etc..
75330
75331         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75332         (HAVE_OPENAT_SUPPORT): Define.
75333         [_LIBC] (fchdir): Don't undef or define; no longer used.
75334         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75335         Now, this `function' always succeeds, and consumes its file descriptor
75336         parameter -- so callers must not close such FDs.  Update callers.
75337         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75338         (diropen): Add parameter, SP.  Adjust all callers.
75339         Implement using diropen_fd, rather than open.
75340         (fts_open): Initialize new member, fts_cwd_fd.
75341         Remove fts_rft-setting code.
75342         (fts_close): Close fts_cwd_fd, if necessary.
75343         (__opendir2): Define in terms of opendir or opendirat,
75344         depending on whether the FST_NOCHDIR flag is set.
75345         (fts_build): Since fts_safe_changedir consumes its FD, and since
75346         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75347         and close the dup'd file descriptor upon failure.
75348         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75349         (fts_safe_changedir): Tweak semantics to reflect that this function
75350         now calls cwd_advance_fd and hence consumes its FD argument.
75351         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75352         [struct FTS] (fts_rft): Remove now-unused member.
75353         [struct FTS] (fts_cycle.state): Improve comment.
75354
75355         * lib/openat.c (openat_needs_fchdir): New function.
75356         * lib/openat.h (openat_needs_fchdir): Declare it.
75357
75358 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75359
75360         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75361         Problem and fix reported by Pádraig Brady in
75362         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75363
75364 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75365
75366         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75367
75368 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75369
75370         * lib/memcoll.c (memcoll): Optimize for the common case where the
75371         arguments are bytewise equal.
75372
75373 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75374
75375         * doc/regexprops-generic.texi: Add a copyright notice.
75376
75377 2006-08-15  Bruno Haible  <bruno@clisp.org>
75378
75379         * modules/tmpdir (License): Change to LGPL.
75380
75381 2006-08-15  Bruno Haible  <bruno@clisp.org>
75382
75383         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75384         module.
75385
75386 2006-08-14  Simon Josefsson  <jas@extundo.com>
75387
75388         * config/srclist.txt: Add gnupload.
75389
75390 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75391
75392         Change copyright notice from LGPL 2 to GPL 2, since that's the
75393         standard form used in the gnulib repository.
75394         * tests/test-lock.c: Likewise.
75395         * tests/test-stdint.c: Likewise.
75396         * tests/test-tls.c: Likewise.
75397
75398         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75399         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75400         Add copyright notice.
75401
75402         * check-module: Add copyright notice.  Output a copyright
75403         notice if "--version" is specified.
75404         * modules/COPYING: New file.
75405         * tests/test-getaddrinfo.c: Add copyright notice.
75406         * tests/test-verify.c: Likewise.
75407
75408 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         Change copyright notice from LGPL 2 to GPL 2, since that's the
75411         standard form used in the gnulib repository.
75412         * lib/lock.c: LGPL -> GPL.
75413         * lib/lock.h: Likewise.
75414         * lib/strnlen1.c: Likewise.
75415         * lib/strnlen1.h: Likewise.
75416         * lib/tls.c: Likewise.
75417         * lib/tls.h: Likewise.
75418         * lib/tmpdir.c: Likewise.
75419
75420         * lib/TODO: Remove; this belongs only in coreutils.
75421
75422 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75423
75424         Add copyright notices to long-enough files that lack them, since
75425         otherwise the files aren't clearly free.  Use the same notice that
75426         getdate.texi already uses.
75427         * doc/alloca-opt.texi: Add copyright notice.
75428         * doc/alloca.texi: Likewise.
75429         * doc/ctime.texi: Likewise.
75430         * doc/functions.texi: Likewise.
75431         * doc/gcd.texi: Likewise.
75432         * doc/gnulib-tool.texi: Likewise.
75433         * doc/inet_ntoa.texi: Likewise.
75434         * doc/visibility.texi: Likewise.
75435
75436         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75437         * doc/quote.texi: Add copyright notice.
75438
75439         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75440         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75441         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75442         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75443         is now obsolete, and give a pointer to the Sun list.
75444         Add copyright notice.
75445
75446 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75447
75448         * config/srclistvars.sh: Add copyright notice.
75449
75450 2006-08-14  Eric Blake  <ebb9@byu.net>
75451
75452         Import the following change from libc:
75453
75454         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75455
75456         Upstream bug 2997.
75457         * lib/misc/error.c: Add space between program name and message if file
75458         name is missing.
75459
75460 2006-08-12  Karl Berry  <karl@gnu.org>
75461
75462         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75463         remove, these originate in gnulib now.
75464
75465 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75466
75467         * doc/Makefile (standards.info standards.html standards.dvi):
75468         Also depend on make-stds.texi.
75469
75470 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75471
75472         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75473         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75474
75475         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75476         in wchar_t.  Problem reported by Eric Blake.
75477
75478         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75479         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75480         Also, help the compiler to keep LEN in a register.
75481
75482 2006-08-11  Eric Blake  <ebb9@byu.net>
75483
75484         * users.txt: Sort.  Add tar.
75485
75486 2006-08-11  Bruno Haible  <bruno@clisp.org>
75487
75488         * users.txt: New file.
75489
75490 2006-08-11  Bruno Haible  <bruno@clisp.org>
75491
75492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75493         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75494
75495 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75496
75497         * modules/snprintf (Depends-on): Remove minmax.
75498         (Maintainer): Add self and Bruno.
75499
75500 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75501
75502         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75503         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75504         (EOVERFLOW): Define if the system does not.
75505         Do not include "minmax.h"; it wasn't used.
75506         (snprintf): Don't assume size_t promotes to an unsigned type.
75507         Fix bug when generated string was too long for the buffer: the
75508         buffer's contents are supposed to be the initial prefix of the
75509         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75510         exceeds INT_MAX; do the check ourselves.
75511
75512         Import the following changes from libc:
75513
75514         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75515
75516         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75517         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75518         set wc to the byte which couldn't be converted.
75519         (re_string_reconstruct): Don't clear valid_raw_len before calling
75520         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75521         tip_context using re_string_context_at.
75522
75523         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75524
75525         * lib/posix/regex.h: g++ still cannot handled [restrict].
75526
75527         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75528
75529         * lib/posix/regex.h: Remove special handling for VMS.
75530
75531 2006-08-10  Jim Meyering  <jim@meyering.net>
75532
75533         * modules/same-inode: New module.
75534         * modules/dev-ino: New module.
75535         * modules/cycle-check: Depend on these modules, rather than simply
75536         including their .h files.
75537         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75538         required via m4/cycle-check.m4.
75539         * modules/same: Depend on new same-inode module, rather than
75540         including same-inode.h.
75541         * modules/chdir-safer: New file.
75542
75543         * modules/chown (Depends-on): Add stat-macros.
75544
75545 2006-08-10  Jim Meyering  <jim@meyering.net>
75546
75547         * m4/cycle-check.m4: New file.
75548         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75549         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75550
75551 2006-08-10  Eric Blake  <ebb9@byu.net>
75552
75553         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75554         in from original proposal.
75555
75556 2006-08-10  Eric Blake  <ebb9@byu.net>
75557         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75558
75559         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75560         namespace.
75561
75562 2006-08-10  Bruno Haible  <bruno@clisp.org>
75563
75564         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75565         as well.
75566
75567 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75568
75569         Sync from coreutils.
75570
75571         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75572
75573         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75574         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75575
75576 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75577
75578         * modules/restrict: Remove; no longer needed now that we assume
75579         Autoconf 2.59 or later.
75580         * MODULES.html.sh: Remove 'restrict'.
75581         * modules/argp (Depends-on): Remove 'restrict'.
75582         * modules/base64 (Depends-on): Likewise.
75583         * modules/gc (Depends-on): Likewise.
75584         * modules/getaddrinfo (Depends-on): Likewise.
75585         * modules/glob (Depends-on): Likewise.
75586         * modules/inet_ntop (Depends-on): Likewise.
75587         * modules/inet_pton (Depends-on): Likewise.
75588         * modules/memxor (Depends-on): Likewise.
75589         * modules/regex (Depends-on): Likewise.
75590         * modules/strtok_r (Depends-on): Likewise.
75591         * modules/time_r (Depends-on): Likewise.
75592
75593 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75594
75595         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75596         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75597         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75598         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75599         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75600         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75601         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75602         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75603
75604         Merge from coreutils.
75605         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75606         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75607         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75608         * m4/time_r.m4 (gl_TIME_R): Likewise.
75609
75610 2006-08-09  Karl Berry  <karl@gnu.org>
75611
75612         * config/srclist.txt: no more gettext-tools, per Bruno.
75613
75614 2006-08-08  Eric Blake  <ebb9@byu.net>
75615
75616         * modules/verror: New module.
75617         * MODULES.html.sh: Document it.
75618
75619 2006-08-08  Eric Blake  <ebb9@byu.net>
75620
75621         * lib/verror.h, lib/verror.c: New files.
75622
75623 2006-08-08  Eric Blake  <ebb9@byu.net>
75624
75625         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75626         verror_at_line output complies with GNU Coding Standards even when
75627         file is NULL.
75628
75629 2006-08-07  Bruno Haible  <bruno@clisp.org>
75630
75631         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75632         versions of AIX.
75633         Reported by Ralf Wildenhues.
75634
75635 2006-08-07  Bruno Haible  <bruno@clisp.org>
75636
75637         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75638         in an AC_DEFUN. Needed so that the autoconf snippets can use
75639         AC_REQUIRE.
75640
75641 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75642
75643         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75644         Initialize pkgdata_DATA.
75645         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75646         overriding it.
75647
75648 2006-08-06  Eric Blake  <ebb9@byu.net>
75649
75650         * lib/error.h: Fold in some upstream changes from glibc.
75651         * lib/error.c: Likewise.
75652
75653 2006-08-04  Bruno Haible  <bruno@clisp.org>
75654
75655         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75656         Make the mostlyclean-local rule depend on mostlyclean-generic.
75657         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75658
75659 2006-07-31  Bruno Haible  <bruno@clisp.org>
75660
75661         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75662         <stdlib.h>, <string.h>.
75663
75664 2006-07-30  Bruno Haible  <bruno@clisp.org>
75665
75666         * modules/readlink (License): Change to LGPL.
75667
75668 2006-07-30  Bruno Haible  <bruno@clisp.org>
75669
75670         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75671         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75672         set PKGDATADIR to point to it.
75673
75674 2006-07-30  Bruno Haible  <bruno@clisp.org>
75675
75676         * modules/csharpexec (configure.ac): Comment out macro invocation.
75677         * modules/javaexec (configure.ac): Likewise.
75678         * modules/javacomp-script (configure.ac): Likewise.
75679
75680         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75681
75682 2006-07-30  Bruno Haible  <bruno@clisp.org>
75683
75684         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75685         linked-list.
75686
75687 2006-07-30  Bruno Haible  <bruno@clisp.org>
75688
75689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75690
75691 2006-07-30  Bruno Haible  <bruno@clisp.org>
75692
75693         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75694         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75695         get removed.
75696
75697 2006-07-29  Bruno Haible  <bruno@clisp.org>
75698
75699         Make it possible for gnulib-tool to work with locally modified or
75700         augmented gnulib repositories.
75701         * gnulib-tool (func_usage): Document --local-dir option.
75702         (local_gnulib_dir): New variable.
75703         Handle --local-dir option.
75704         (func_lookup_file): New function.
75705         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75706         (func_get_description, func_get_filelist, func_get_description,
75707         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75708         func_get_automake_snippet, func_get_include_directive,
75709         func_get_license, func_get_maintainer): Use func_lookup_file.
75710         (func_import, func_create_testdir): Use func_lookup_file.
75711
75712 2006-07-29  Bruno Haible  <bruno@clisp.org>
75713
75714         * modules/setenv (Depends-on): Add unistd.
75715
75716 2006-07-29  Bruno Haible  <bruno@clisp.org>
75717
75718         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75719
75720 2006-07-29  Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75723
75724 2006-07-29  Bruno Haible  <bruno@clisp.org>
75725
75726         * gnulib-tool (import, update): If there is no Makefile.am, look at
75727         aclocal.m4, instead of bailing out.
75728
75729 2006-07-29  Bruno Haible  <bruno@clisp.org>
75730
75731         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75732         Categorize the options by when they are useful.
75733
75734 2006-07-29  Bruno Haible  <bruno@clisp.org>
75735
75736         * gnulib-tool (func_usage): Document option --no-libtool.
75737         Handle option --no-libtool.
75738         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75739         for changed semantics of $libtool variable.
75740         (func_import): Likewise. If libtool is not used, show this through
75741         an option --no-libtool.
75742         (func_create_testdir): Update.
75743
75744 2006-07-29  Bruno Haible  <bruno@clisp.org>
75745
75746         * gnulib-tool (func_import): Extend error message about missing
75747         --doc-base.
75748
75749 2006-07-29  Bruno Haible  <bruno@clisp.org>
75750
75751         * gnulib-tool (func_import): Don't create the $docbase directory if
75752         there is no file to store there.
75753
75754 2006-07-29  Bruno Haible  <bruno@clisp.org>
75755
75756         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75757         relevant, look for configure.ac there, not in the current directory.
75758         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75759
75760 2006-07-29  Bruno Haible  <bruno@clisp.org>
75761
75762         * gnulib-tool (SORT): New variable.
75763         (func_usage): Undocument --assume-autoconf option.
75764         Remove --assume-autoconf option handling.
75765         (autoconf_minversion): Determine from the contents of configure.ac.
75766         (func_import): Remove autoconf_minversion handling.
75767         Suggested by Eric Blake.
75768
75769 2006-07-29  Bruno Haible  <bruno@clisp.org>
75770
75771         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75772
75773 2006-07-29  Bruno Haible  <bruno@clisp.org>
75774
75775         * config/srclist.txt (*setenv.[ch]): Remove rules.
75776
75777 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75778
75779         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75780
75781 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75782
75783         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75784         arpa/inet.h.
75785
75786 2006-07-28  Simon Josefsson  <jas@extundo.com>
75787
75788         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75789         * modules/inet_pton (Depends-on): Likewise.
75790
75791 2006-07-28  Simon Josefsson  <jas@extundo.com>
75792
75793         * m4/netinet_in_h.m4: New file.
75794
75795 2006-07-28  Simon Josefsson  <jas@extundo.com>
75796
75797         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75798         #include's.
75799
75800 2006-07-28  Simon Josefsson  <jas@extundo.com>
75801
75802         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75803         #include's.
75804
75805 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75806
75807         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75808         setgid on directories only if they set these bits.
75809         * lib/modechange.h: Remove obsolete comment about masks.
75810
75811 2006-07-28  Eric Blake  <ebb9@byu.net>
75812
75813         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75814         macro expansion.
75815
75816 2006-07-28  Bruno Haible  <bruno@clisp.org>
75817
75818         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75819
75820 2006-07-28  Bruno Haible  <bruno@clisp.org>
75821
75822         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75823
75824 2006-07-28  Bruno Haible  <bruno@clisp.org>
75825
75826         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75827         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75828         Define fallbacks.
75829         Avoids link error on FreeBSD 4.x.
75830         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75831
75832         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75833         encoding.
75834         * lib/mbswidth.c (iswcntrl): Likewise.
75835
75836 2006-07-27  Bruno Haible  <bruno@clisp.org>
75837
75838         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75839         test.
75840
75841 2006-07-27  Bruno Haible  <bruno@clisp.org>
75842
75843         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75844         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75845         defined.
75846
75847 2006-07-26  Eric Blake  <ebb9@byu.net>
75848
75849         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75850
75851 2006-07-26  Eric Blake  <ebb9@byu.net>
75852
75853         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75854         like mingw that lack mkstemp.
75855         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75856         avoid compilation warning on mingw.
75857
75858 2006-07-26  Bruno Haible  <bruno@clisp.org>
75859
75860         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75861         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75862         INT_FAST*_MIN, INTPTR_MIN.
75863
75864 2006-07-25  Bruno Haible  <bruno@clisp.org>
75865
75866         * modules/version-etc (Depends-on): Add stdarg.
75867
75868 2006-07-25  Bruno Haible  <bruno@clisp.org>
75869
75870         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75871         complex commands.
75872
75873 2006-07-25  Bruno Haible  <bruno@clisp.org>
75874
75875         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75876         defined in <stdarg.h> or config.h.
75877
75878 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75881         (gl_STDIO_SAFER): Remove.
75882
75883 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75884
75885         * MODULES.html.sh (File stream based Input/Output):
75886         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75887         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75888         * modules/fopen-safer, modules/tmpfile-safer: New files.
75889         * modules/stdio-safer: Remove.
75890
75891 2006-07-24  Bruno Haible  <bruno@clisp.org>
75892
75893         * modules/tmpdir: New file.
75894         * MODULES.html.sh (File system functions): Add it.
75895
75896 2006-07-24  Bruno Haible  <bruno@clisp.org>
75897
75898         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75899         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75900
75901 2006-07-24  Bruno Haible  <bruno@clisp.org>
75902
75903         * modules/clean-temp: New file.
75904
75905 2006-07-24  Bruno Haible  <bruno@clisp.org>
75906
75907         * m4/tmpdir.m4: New file, from GNU gettext.
75908
75909 2006-07-24  Bruno Haible  <bruno@clisp.org>
75910
75911         * lib/tmpdir.h: New file, from GNU gettext.
75912         * lib/tmpdir.c: New file, from GNU gettext.
75913
75914 2006-07-24  Bruno Haible  <bruno@clisp.org>
75915
75916         * lib/clean-temp.h: New file, from GNU gettext.
75917         * lib/clean-temp.c: New file, from GNU gettext.
75918
75919 2006-07-23  Eric Blake  <ebb9@byu.net>
75920
75921         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75922         (Depends-on): Add binary-io.
75923
75924 2006-07-23  Eric Blake  <ebb9@byu.net>
75925
75926         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75927
75928 2006-07-23  Eric Blake  <ebb9@byu.net>
75929
75930         * lib/tmpfile-safer.c: New file.
75931         * lib/stdio-safer.h (fopen_safer): Add prototype.
75932         * lib/stdio--.h (tmpfile): Make safer.
75933
75934 2006-07-23  Bruno Haible  <bruno@clisp.org>
75935
75936         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75937         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75938         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75939         gl_linked_remove_at): Use it.
75940
75941 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75942         and Simon Josefsson <jas@extundo.com>
75943
75944         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75945
75946         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75947
75948 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75949
75950         * modules/close-stream: New file.
75951         * modules/closeout (Description): Make it clear that it exits
75952         with a diagnostic on error.
75953         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75954         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75955
75956 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75957
75958         * m4/close-stream.m4: New file.
75959
75960 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75961
75962         * lib/close-stream.c, lib/close-stream.h: New files.
75963
75964 2006-07-22  Bruno Haible  <bruno@clisp.org>
75965
75966         Merge from GNU gettext 0.15.
75967
75968         2006-05-01  Bruno Haible  <bruno@clisp.org>
75969
75970                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75971
75972         2006-07-22  Bruno Haible  <bruno@clisp.org>
75973
75974                 * modules/javaversion: New file.
75975                 * MODULES.html.sh (Java): Add javaversion.
75976
75977         2006-03-12  Bruno Haible  <bruno@clisp.org>
75978
75979                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75980
75981         2005-12-04  Bruno Haible  <bruno@clisp.org>
75982
75983                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75984                 (untested).
75985
75986         2006-06-21  Bruno Haible  <bruno@clisp.org>
75987
75988                 Avoid warnings from recent versions of mcs.
75989                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75990                 -o, -L, -r any more. Use options documented since mcs-1.0
75991                 instead. Similarly for -g.
75992
75993         2005-12-04  Bruno Haible  <bruno@clisp.org>
75994
75995                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75996                 .resources, not .resource.
75997
75998         2005-07-09  Bruno Haible  <bruno@clisp.org>
75999
76000                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76001                 add a .dll suffix.
76002                 Reported by Mark Junker <mjscod@gmx.de>.
76003
76004         2006-07-22  Bruno Haible  <bruno@clisp.org>
76005
76006                 * modules/gettext: Upgrade to gettext-0.15.
76007                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76008                 m4/visibility.m4.
76009                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76010
76011 2006-07-22  Bruno Haible  <bruno@clisp.org>
76012
76013         Merge from GNU gettext 0.15.
76014
76015         2006-03-25  Bruno Haible  <bruno@clisp.org>
76016
76017                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76018
76019         2006-07-21  Bruno Haible  <bruno@clisp.org>
76020
76021                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76022                 "1.1".
76023
76024         2006-05-09  Bruno Haible  <bruno@clisp.org>
76025
76026                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76027                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76028                 for the conftestver execution.
76029
76030         2006-05-01  Bruno Haible  <bruno@clisp.org>
76031
76032                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76033                 optional target-version argument. Verify that the compiler
76034                 groks source of the specified source-version, or add -source
76035                 option as necessary. Verify that the compiler produces
76036                 bytecode in the specified target-version, or add -target and
76037                 -source options as necessary. Make the result of the test
76038                 available as variable CONF_JAVAC. Also log error output in
76039                 config.log.
76040
76041         2006-03-11  Bruno Haible  <bruno@clisp.org>
76042
76043                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76044
76045         2006-05-09  Bruno Haible  <bruno@clisp.org>
76046
76047                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76048                 CLASSPATH_SEPARATOR to a semicolon.
76049
76050         2006-03-12  Bruno Haible  <bruno@clisp.org>
76051
76052                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76053                 available as variable CONF_JAVA, for subsequent autoconf
76054                 tests. Also log error output in config.log.
76055
76056         2006-07-19  Bruno Haible  <bruno@clisp.org>
76057
76058                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76059                 that getline works on glibc2 systems. Needed to avoid trouble
76060                 in relocatable.c.
76061                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76062
76063         2005-12-04  Bruno Haible  <bruno@clisp.org>
76064
76065                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76066                 launcher (untested).
76067
76068         2005-12-04  Bruno Haible  <bruno@clisp.org>
76069
76070                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76071
76072         2006-07-22  Bruno Haible  <bruno@clisp.org>
76073
76074                 * gettext.m4: Update from GNU gettext-0.15.
76075                 * nls.m4: Likewise.
76076                 * po.m4: Likewise.
76077                 * inttypes-pri.m4: Likewise.
76078                 * inttypes-h.m4: Renamed from inttypes.m4.
76079                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76080
76081 2006-07-22  Bruno Haible  <bruno@clisp.org>
76082
76083         Merge from GNU gettext 0.15.
76084
76085         2005-07-05  Bruno Haible  <bruno@clisp.org>
76086
76087                 * printf-args.c (printf_fetchargs): Work around broken
76088                 definition of wint_t on mingw.
76089
76090         2005-02-12  Bruno Haible  <bruno@clisp.org>
76091
76092                 * xallocsa.h: Add extern "C" for C++.
76093
76094         2006-05-17  Bruno Haible  <bruno@clisp.org>
76095
76096                 Cygwin portability.
76097                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76098
76099         2006-04-30  Bruno Haible  <bruno@clisp.org>
76100
76101                 * progreloc.c: Include <mach-o/dyld.h> if available.
76102                 (find_executable): Use _NSGetExecutablePath when possible.
76103
76104         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76105
76106                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76107                 function.
76108
76109         2005-12-29  Bruno Haible  <bruno@clisp.org>
76110
76111                 * progreloc.c (set_program_name_and_installdir): Fix
76112                 compilation error.
76113
76114         2005-12-04  Bruno Haible  <bruno@clisp.org>
76115
76116                 Cygwin portability.
76117                 * progreloc.c: Include <windows.h> also on Cygwin.
76118                 (find_executable): Add support for Cygwin.
76119                 (set_program_name_and_installdir): Handle also platforms with
76120                 nonempty EXEEXT.
76121
76122         2006-07-11  Bruno Haible  <bruno@clisp.org>
76123
76124                 * javacomp.c: Fix a comment.
76125                 Reported by Jim Meyering.
76126
76127         2006-04-30  Bruno Haible  <bruno@clisp.org>
76128
76129                 * javacomp.h (compile_java_class): Add source_version,
76130                 target_version arguments.
76131                 * javacomp.c: Rewritten to choose only a compiler that
76132                 respects the specified source_version and target_version.
76133
76134         2006-06-27  Bruno Haible  <bruno@clisp.org>
76135
76136                 Assume correct S_ISDIR macro.
76137                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76138
76139         2006-07-22  Bruno Haible  <bruno@clisp.org>
76140
76141                 * javaversion.h: New file, from GNU gettext.
76142                 * javaversion.c: New file, from GNU gettext.
76143                 * javaversion.java: New file, from GNU gettext.
76144                 * javaversion.class: New file, from GNU gettext.
76145
76146         2006-05-17  Bruno Haible  <bruno@clisp.org>
76147
76148                 Cygwin portability.
76149                 * javaexec.c (execute_java_class): Test for jview program
76150                 also on Cygwin.
76151
76152         2006-04-09  Bruno Haible  <bruno@clisp.org>
76153
76154                 * fatal-signal.c: Don't include string.h.
76155                 (at_fatal_signal): Use a copying loop instead of memcpy.
76156
76157         2005-12-04  Bruno Haible  <bruno@clisp.org>
76158
76159                 * csharpexec.c: Add support for 'clix' launcher (untested).
76160                 (execute_csharp_using_sscli): New function.
76161                 (execute_csharp_program): Call it.
76162
76163         2006-06-21  Bruno Haible  <bruno@clisp.org>
76164
76165                 Avoid warnings from recent versions of mcs.
76166                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76167                 -o, -L, -r any more. Use options documented since mcs-1.0
76168                 instead. Similarly for -g.
76169
76170         2005-07-09  Bruno Haible  <bruno@clisp.org>
76171
76172                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76173                 add a .dll suffix.
76174                 Reported by Mark Junker <mjscod@gmx.de>.
76175
76176         2006-06-17  Bruno Haible  <bruno@clisp.org>
76177
76178                 * config.charset: Update for NetBSD 3.0.
76179
76180         2006-05-17  Bruno Haible  <bruno@clisp.org>
76181
76182                 Cygwin portability.
76183                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76184
76185         2006-05-16  Bruno Haible  <bruno@clisp.org>
76186
76187                 * localcharset.c [CYGWIN]: Include <windows.h>.
76188                 (get_charset_aliases): For Cygwin, return the same CPxxx
76189                 aliases list as under WIN32.
76190                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76191                 the environment variables. Fall back to GetACP().
76192
76193         2006-04-05  Bruno Haible  <bruno@clisp.org>
76194
76195                 * config.charset: Update Juan Manuel Guerrero's address.
76196
76197         2005-02-12  Bruno Haible  <bruno@clisp.org>
76198
76199                 * allocsa.h: Add extern "C" for C++.
76200
76201         2005-02-10  Bruno Haible  <bruno@clisp.org>
76202
76203                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76204                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76205
76206         2006-07-22  Bruno Haible  <bruno@clisp.org>
76207
76208                 * gettext.h: Update to GNU gettext-0.15.
76209
76210 2006-07-22  Bruno Haible  <bruno@clisp.org>
76211
76212         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76213         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76214         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76215
76216 2006-07-21  Eric Blake  <ebb9@byu.net>
76217
76218         * modules/stdlib-safer: New file.
76219         * MODULES.html.sh (File stream based Input/Output): Add
76220         stdlib-safer.
76221
76222 2006-07-21  Eric Blake  <ebb9@byu.net>
76223
76224         * lib/stdlib-safer.h: New file from coreutils, required by
76225         stdlib--.h.
76226
76227 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76228
76229         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76230
76231 2006-07-20  Bruno Haible  <bruno@clisp.org>
76232
76233         * gnulib-tool: Recognize new option --assume-autoconf.
76234         (autoconf_minversion): New variable.
76235         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76236
76237 2006-07-20  Bruno Haible  <bruno@clisp.org>
76238
76239         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76240
76241 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76242
76243         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76244         Reindent and repaginate.
76245
76246 2006-07-19  Derek Price  <derek@ximbiot.com>
76247
76248         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76249         Correct grammar.
76250
76251 2006-07-17  Bruno Haible  <bruno@clisp.org>
76252
76253         * modules/list: New file.
76254         * modules/array-list: New file.
76255         * modules/carray-list, modules/carray-list-tests: New files.
76256         * modules/linked-list, modules/linked-list-tests: New files.
76257         * modules/avltree-list, modules/avltree-list-tests: New files.
76258         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76259         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76260         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76261         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76262         * modules/oset: New file.
76263         * modules/array-oset: New file.
76264         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76265         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76266         * tests/test-carray_list.c: New file.
76267         * tests/test-linked_list.c: New file.
76268         * tests/test-avltree_list.c: New file.
76269         * tests/test-rbtree_list.c: New file.
76270         * tests/test-linkedhash_list.c: New file.
76271         * tests/test-avltreehash_list.c: New file.
76272         * tests/test-rbtreehash_list.c: New file.
76273         * tests/test-avltree_oset.c: New file.
76274         * tests/test-rbtree_oset.c: New file.
76275         * MODULES.html.sh (Container data structures): New section.
76276
76277 2006-07-17  Bruno Haible  <bruno@clisp.org>
76278
76279         * m4/gl_list.m4: New file.
76280
76281 2006-07-17  Bruno Haible  <bruno@clisp.org>
76282
76283         * lib/gl_list.h: New file.
76284         * lib/gl_list.c: New file.
76285         * lib/gl_array_list.h: New file.
76286         * lib/gl_array_list.c: New file.
76287         * lib/gl_carray_list.h: New file.
76288         * lib/gl_carray_list.c: New file.
76289         * lib/gl_linked_list.h: New file.
76290         * lib/gl_linked_list.c: New file.
76291         * lib/gl_anylinked_list1.h: New file.
76292         * lib/gl_anylinked_list2.h: New file.
76293         * lib/gl_avltree_list.h: New file.
76294         * lib/gl_avltree_list.c: New file.
76295         * lib/gl_anyavltree_list1.h: New file.
76296         * lib/gl_anyavltree_list2.h: New file.
76297         * lib/gl_rbtree_list.h: New file.
76298         * lib/gl_rbtree_list.c: New file.
76299         * lib/gl_anyrbtree_list1.h: New file.
76300         * lib/gl_anyrbtree_list2.h: New file.
76301         * lib/gl_anytree_list1.h: New file.
76302         * lib/gl_anytree_list2.h: New file.
76303         * lib/gl_linkedhash_list.h: New file.
76304         * lib/gl_linkedhash_list.c: New file.
76305         * lib/gl_anyhash_list1.h: New file.
76306         * lib/gl_anyhash_list2.h: New file.
76307         * lib/gl_avltreehash_list.h: New file.
76308         * lib/gl_avltreehash_list.c: New file.
76309         * lib/gl_rbtreehash_list.h: New file.
76310         * lib/gl_rbtreehash_list.c: New file.
76311         * lib/gl_anytreehash_list1.h: New file.
76312         * lib/gl_anytreehash_list2.h: New file.
76313
76314         * lib/gl_oset.h: New file.
76315         * lib/gl_oset.c: New file.
76316         * lib/gl_array_oset.h: New file.
76317         * lib/gl_array_oset.c: New file.
76318         * lib/gl_avltree_oset.h: New file.
76319         * lib/gl_avltree_oset.c: New file.
76320         * lib/gl_rbtree_oset.h: New file.
76321         * lib/gl_rbtree_oset.c: New file.
76322         * lib/gl_anytree_oset.h: New file.
76323
76324 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76325
76326         * m4/mkancesdirs.m4: New file.
76327         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76328         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76329         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76330         it.
76331
76332 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76333
76334         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76335         * lib/mkancesdirs.h: New files.
76336         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76337         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76338         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76339         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76340         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76341         callers changed.  Revamp internals significantly, by not
76342         attempting to create directories that are temporarily more
76343         permissive than the final results.  Do not attempt to use
76344         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76345         This removes some race conditions, fixes some bugs, and simplifies
76346         things.  Use new dirchownmod function to do owner and mode changes.
76347         * lib/mkdir-p.h: Likewise.
76348         * lib/modechange.c (octal_to_mode): New function.
76349         (struct mode_change): New member mentioned.
76350         (make_node_op_equals): New arg mentioned.  All callers changed.
76351         (mode_compile): Keep track of which mode bits the user has explicitly
76352         mentioned.
76353         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76354         New arg PMODE_BITS, to keep track of which mode bits the user
76355         mentioned; it treats S_ISUID and S_ISGID speciall.
76356         All callers changed.
76357         * lib/modechange.h: Likewise.
76358
76359 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76360
76361         * MODULES.html.sh: Add mkancestors.
76362         * modules/mkancesdirs: New module.
76363         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76364         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76365         The chdir-safer and afs files are now orphans; I'll remove them
76366         unless someone speaks up.
76367         Add lib/dirchownmod.c, lib/dirchownmod.h.
76368         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76369         Add lchown, mkancesdirs.
76370         (Maintainer): Add self.
76371
76372 2006-07-15  Karl Berry  <karl@gnu.org>
76373
76374         * gnulib-tool: help message wording/arrangement.
76375
76376 2006-07-14  Simon Josefsson  <jas@extundo.com>
76377
76378         * doc/gnulib.texi (Libtool and Windows): New section.
76379
76380 2006-07-12  Simon Josefsson  <jas@extundo.com>
76381
76382         * modules/gendocs (License): Fix license, approved by Karl.
76383
76384 2006-07-12  Eric Blake  <ebb9@byu.net>
76385
76386         * MODULES.html.sh: Add gendocs.
76387
76388 2006-07-11  Eric Blake  <ebb9@byu.net>
76389
76390         * modules/fdl: New module, to install doc/fdl.texi.
76391         * MODULES.html.sh: Add new section for documentation modules.
76392         * gnulib-tool: Avoid space-tab.
76393         (--doc-base): New option, to manage files from doc.
76394
76395 2006-07-11  Eric Blake  <ebb9@byu.net>
76396
76397         * m4/absolute-header.m4: Fix comments to match recent change.
76398
76399 2006-07-11  Eric Blake  <ebb9@byu.net>
76400
76401         * gnulib-tool: List --doc-base before --tests-base.
76402
76403 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76404
76405         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76406
76407 2006-07-11  Bruno Haible  <bruno@clisp.org>
76408
76409         * README: Mention where to put documentation.
76410
76411 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76412
76413         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76414
76415 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76416
76417         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76418         to stdint.m4.
76419
76420 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76421
76422         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76423         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76424         "no/such/file/stdint.h" when there is no such file, so that
76425         the resulting C code can be parsed by dodgy compilers.
76426         Problems reported by Bob Proulx.
76427
76428 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76429
76430         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76431         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76432         macros into the GNU _D_EXACT_NAMLEN.
76433         * lib/savedir.c:  Likewise.
76434         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76435
76436 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76437         and Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76440         * m4/savedir.m4:
76441         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76442         macros into the GNU _D_EXACT_NAMLEN.
76443
76444 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76445
76446         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76447         around the absolute name, to work around a problem with the HP-UX
76448         11.23 native C compiler, reported by Bob Proulx.
76449
76450 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76451
76452         * doc/maintain.texi, make-stds.texi: Sync from
76453         <http://savannah.gnu.org/projects/gnustandards>.
76454
76455 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76458
76459 2006-07-09  Jim Meyering  <jim@meyering.net>
76460
76461         * m4/glob.m4: Remove a doubled word in a comment.
76462
76463 2006-07-09  Jim Meyering  <jim@meyering.net>
76464
76465         * lib/argp-pv.c: Remove a doubled word in a comment.
76466         * lib/check-version.c (check_version): Likewise.
76467         * lib/javacomp.c (compile_java_class): Likewise.
76468
76469 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76472         for the benefit of people using Autoconf 2.60.  If you want to
76473         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76474         (or m4/onceonly.m4, if pre-2.57) manually.
76475
76476 2006-07-08  Jim Meyering  <jim@meyering.net>
76477
76478         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76479         comment.
76480         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76481         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76482         comment.
76483
76484 2006-07-08  Jim Meyering  <jim@meyering.net>
76485
76486         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76487
76488 2006-07-07  Simon Josefsson  <jas@extundo.com>
76489
76490         * tests/test-crc.c: Change expected crc value, the test vector
76491         were probably computed using the old broken crc.c?
76492
76493 2006-07-06  Simon Josefsson  <jas@extundo.com>
76494
76495         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76496         now the canonical place for the M4 file).
76497
76498         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76499         from the sys_socket dependency now.
76500
76501         * modules/inet_pton (Files): Ditto.
76502
76503         * modules/inet_ntop (Files): Ditto.
76504
76505 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76506
76507         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76508         not gl_PREREQ_GETUSERSHELL.
76509
76510 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76511
76512         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76513         with only one argument, for Autoconf 2.60.
76514         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76515         expand to nothing, so add a shell command to avoid syntax error.
76516         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76517
76518 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76519
76520         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76521
76522 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76525         no longer needed.  Check for isblank decl.
76526         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76527         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76528         of existence.
76529
76530 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * lib/getloadavg.c: Use __VMS, not VMS.
76533         * lib/getopt.c: Likewise.
76534         * lib/getpagesize.h: Likewise.
76535         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76536         and probably does not work.
76537
76538 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76539
76540         * lib/.cppi-disable: Add wcwidth.
76541         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76542         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76543         (ISGRAPH): Remove.  All uses changed to isgraph.
76544         (FOLD) [!defined _LIBC]: Remove special case.
76545         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76546         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76547         HAVE_ISBLANK.
76548         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76549         case.
76550
76551 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76552
76553         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76554         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76555         brackets.  Other minor changes to suppress some compiler
76556         warnings.
76557
76558 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76559         and Paul Eggert  <eggert@cs.ucla.edu>
76560
76561         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76562         of invoking obsolescent AC_HEADER_DIRENT macro.
76563         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76564         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76565         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76566         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76567         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76568         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76569         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76570         * m4/readdir.m4: Remove; no longer needed.
76571
76572 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76573         and Paul Eggert  <eggert@cs.ucla.edu>
76574
76575         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76576         Don't worry about this obsolete case any more.
76577         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76578         directories.
76579         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76580         worry about this obsolete case any more.
76581         * lib/fts.c: Likewise.
76582         * lib/getcwd.c: Likewise.
76583         * lib/glob.h: Likewise.
76584         * lib/savedir.c: Likewise.
76585
76586 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76587
76588         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76589         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76590         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76591         needed.
76592         All uses removed.
76593         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76594         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76595         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76596         needed.
76597         * m4/getdate.m4 (gl_GETDATE): Likewise.
76598         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76599         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76600         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76601         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76602         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76603         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76604         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76605         needed.
76606
76607 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76608
76609         * lib/memcasecmp.c: Include <limits.h>.
76610         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76611         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76612         Don't assume isdigit succeeds only on '0' through '9'.
76613
76614 2006-07-05  Eric Blake  <ebb9@byu.net>
76615
76616         * modules/getaddrinfo (Depends-on): Add snprintf.
76617
76618 2006-07-05  Eric Blake  <ebb9@byu.net>
76619
76620         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76621         to avoid 'header present but could not be compiled' on cygwin.
76622
76623 2006-07-05  Eric Blake  <ebb9@byu.net>
76624
76625         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76626         missing from netdb.h.
76627         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76628
76629 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76630
76631         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76632         no longer needed.
76633         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76634         * m4/getdate.m4 (gl_GETDATE): Likewise.
76635         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76636         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76637         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76638         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76640
76641 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76642
76643         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76644         All uses of is_space replaced by isspace.
76645         * lib/exit.h: Don't talk about STDC_HEADERS.
76646         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76647         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76648         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76649         replaced by isprint etc.
76650         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76651         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76652         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76653         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76654         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76655         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76656
76657 2006-07-05  Bruno Haible  <bruno@clisp.org>
76658
76659         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76660         the function exists, before testing against AIX.
76661         Reported by Martin Lambers <marlam@marlam.de>.
76662
76663 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76664
76665         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76666         From Mark D. Baushke.
76667
76668 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76669
76670         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76671         to the absolute name, not just one, to bypass Sun C 5.8's
76672         "warning: #include of /usr/include/... may be non-portable".
76673
76674 2006-07-04  Eric Blake  <ebb9@byu.net>
76675
76676         * modules/dirname-tests: New test module.
76677         * tests/test-dirname.c: New file, replacing dirname.c
76678         TEST_DIRNAME section that was recently deleted.
76679
76680 2006-07-04  Bruno Haible  <bruno@clisp.org>
76681
76682         Assume ANSI C header files and <ctype.h> functions.
76683         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76684         (mbsnwidth): Use isprint, iscntrl instead.
76685
76686 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76687
76688         Merge from coreutils.
76689         * MODULES.html.sh: Add xstrtold.
76690         * modules/xstrtold: New file.
76691         * modules/cycle-check (Files): Add lib/same-inode.h.
76692         * modules/dirname (Files): Add m4/double-slash-root.m4.
76693         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76694         * modules/mkdir-p (Files): Add lib/same-inode.h.
76695         * modules/same (Files): Add lib/same-inode.h.
76696
76697 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76698
76699         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76700         This is to keep the terminology clean; POSIX talks about
76701         "absolute pathnames", not "full pathnames", but the GNU
76702         Coding Standards say to use "path" for something else;
76703         so use "absolute" to keep both sides happy.
76704         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76705         Set gl_absolute_header, not gl_full_header_path.
76706         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76707         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76708         All uses changed.
76709
76710         Merge from coreutils.
76711
76712         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76713
76714         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76715         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76716         want to require the building of c-strtod.o.
76717         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76718         needs -lm directly.
76719         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76720
76721         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76722
76723         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76724         --as-needed option if available.  Problem reported by Albert Chin in
76725         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76726         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76727         cc merely issues a bunch of annoying warnings for --as-needed
76728         (this problem was reported by Bob Proulx).  Also, try linking with
76729         -lm to detect a bug in binutils 2.16 (this problem was reported
76730         by Ralf Wildenhues).
76731
76732         2006-06-18  Jim Meyering  <jim@meyering.net>
76733
76734         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76735         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76736         macro.
76737         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76738         also check for glibc-2.4's abort-inducing bug.
76739
76740         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76741         Low-probability clean-up should be to use rmdir to get rid of
76742         the just-created directory, not unlink.
76743
76744         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76745         configure fail, and request a bug report to inform us about it.
76746         Add a comment that, barring reports to the contrary, in 2007 we'll
76747         assume ftruncate is universally available.
76748
76749         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76750
76751         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76752
76753         2006-03-12  Jim Meyering  <jim@meyering.net>
76754
76755         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76756         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76757         * m4/same.m4 (gl_SAME): Likewise.
76758         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76759
76760         2006-03-11  Eric Blake  <ebb9@byu.net>
76761
76762         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76763         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76764         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76765         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76766
76767 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76768
76769         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76770         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76771         reported by Mark D. Baushke, one in
76772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76773
76774         Merge from coreutils.
76775
76776         * lib/.cppi-disable: Add stdint_.h.
76777         * lib/.cvsignore: Add stdint.h.
76778
76779         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76782         both double and long double versions.
76783         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76784         * lib/xstrtold.c: New file.
76785         * lib/xstrtod.h (xstrtold): New decl.
76786
76787         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * lib/filemode.c (setst): Remove.
76790         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76791         (arguably) clearer, and the generated code is a bit smaller on my
76792         Debian GNU/Linux stable x86 host.
76793
76794         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76797         Assume that filemode.h includes sys/types.h and sys/stat.h.
76798         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76799         (ftypelet): Reorder to put common cases first, for efficiency.
76800         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76801         to do 'M'.
76802         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76803         of 10, for compatibility with FreeBSD.  All callers changed.
76804         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76805         types that can't be deduced solely from st_mode.  First arg is now a
76806         const pointer.
76807         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76808         (strmode): Renamed from mode_string.
76809         (filemodestring): New decl.
76810         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76811         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76812         needed.
76813         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76814
76815         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76818         fsusage.h now does that.  Include fsusage.h first, to test interface.
76819         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76820         at most one method (the old code could have generated decls that
76821         didn't conform to C89, not that this was ever exercised).
76822         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76823
76824         2006-03-19  Jim Meyering  <jim@meyering.net>
76825
76826         Work even in a chroot where d_ino values for entries in "/"
76827         don't match the stat.st_ino values for the same names.
76828         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76829         number, iterate through all entries again, using lstat instead.
76830         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76831         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76832
76833         * lib/getcwd.c (__getcwd): Clarify a comment.
76834         Use memcpy in place of a call to strcpy.
76835
76836         2006-03-12  Jim Meyering  <jim@meyering.net>
76837
76838         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76839         matches that of the current directory (which we're about to chdir ".."
76840         out of), then save the dev-ino of the parent, instead.
76841
76842         * lib/same-inode.h (SAME_INODE): New file/macro.
76843         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76844         Include "same-inode.h", instead.
76845         * lib/same.c: Likewise.
76846         * lib/cycle-check.h: Include "same-inode.h".
76847         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76848         * lib/cycle-check.c (SAME_INODE): Remove definition.
76849         * lib/root-dev-ino.h: Include "same-inode.h".
76850
76851         2006-03-11  Eric Blake  <ebb9@byu.net>
76852
76853         * lib/same.c (same_name): s/base_name/last_component/
76854         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76855         * lib/filenamecat.c (file_name_concat): Likewise.
76856
76857         2006-03-11  Eric Blake  <ebb9@byu.net>,
76858                     Paul Eggert  <eggert@cs.ucla.edu>
76859
76860         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76861         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76862         drive prefix.
76863         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76864         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76865         (last_component): New method.
76866         * lib/dirname.c (dir_len): Determine when drive letters need a
76867         subsequent slash.  Preserve // when it is special.
76868         (dir_name): Don't append dot when drive letter is absolute.
76869         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76870         * lib/basename.c (base_name): New semantics - malloc the result.
76871         Preserve // when it is special.  Preserve relative files that look
76872         like drive letters.
76873         (base_len): Preserve // when it is special.
76874         (last_component): New method, similar to old base_name semantics.
76875         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76876         base_name.  Strip redundant slashes from ///.
76877
76878 2006-07-03  Jim Meyering  <jim@meyering.net>
76879
76880         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76881         macro is used before the first cycle_check call.
76882
76883 2006-07-03  Eric Blake  <ebb9@byu.net>
76884
76885         * modules/dirname (Depends-on): Add xstrndup.
76886
76887 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76890         test cases, so that config.log is a bit easier to follow.
76891
76892 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76893
76894         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76895         both are 64 bits, since this seems to be the tradition, and this
76896         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76897         we ever run into a host that prefers long long to long in this
76898         case, we'll need another configure-time test.  Problem reported by
76899         Jim Meyering.
76900
76901 2006-07-02  Eric Blake  <ebb9@byu.net>
76902
76903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76904
76905 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * modules/inttypes (Depends-on): No longer depends on stdint.
76908         * modules/stdint (Description): Say more about assumptions.
76909         Say that the fast types might differ.  Say macros are used.
76910         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76911         (Makefile.am): Revise list of substituted symbols to match
76912         new stdint.m4.
76913         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76914         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76915         * tests/test-stdint.c (verify_same_types)
76916         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76917         the code conforms to C99/C89.
76918         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76919         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76920
76921 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76922
76923         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76924         but fix a bug, by requiring at least 64 bits.
76925         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76926         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76927         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76928         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76929
76930         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76931         changes.  Make 2.59 a prerequisite.  Check and substitute for
76932         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76933         inttypes.h.  Do not use special include files; just use the
76934         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76935         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76936         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76937         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76938         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76939         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76940         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76941         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76942         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76943         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76944         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76945         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76946         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76947         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76948         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76949         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76950         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76951         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76952         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76953         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76954         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76955         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76956         not check for things that C99 does not require, e.g., int8_t.  If
76957         a test isn't needed unless <stdint.h> isn't working, and is
76958         unlikely to be needed for any other reason, then don't do it
76959         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76960         size_t, since we assume C89 freestanding at least.  Do not check
76961         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76962         the right thing even if the types are not defined.  Instead use:
76963         (gl_STDINT_TYPE_PROPERTIES): New macro.
76964         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76965         testing whether <sys/types.h> clashes, as Autoconf does this for
76966         us now.  All uses removed.
76967         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76968         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76969         (gl_CHECK_TYPE_SAME):
76970         Remove; no longer needed.
76971         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76972         exists, since we'll return 0 anyway in that case.
76973         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76974
76975 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76976
76977         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76978         possible collision with system files.
76979         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76980         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76981         WCHAR_MIN and WCHAR_MAX in this case.
76982         (<stddef.h>): Do not include; no longer needed.
76983         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76984         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76985         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76986         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76987         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76988         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76989         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76990         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76991         !defined(__c99))]: Include in this case too, since it's harmless
76992         now.
76993         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76994         dangerous to do so.
76995         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76996         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76997         (_STDINT_MIN, _STDINT_MAX): New macros.
76998         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76999         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77000         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77001         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77002         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77003         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77004         macros, not typedefs; this simplifies things quite a bit.
77005         Use long int for all types narrower than int64_t.
77006         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77007         Define in terms of long long int or int64_t or long int,
77008         not int64_t or int32_t.  This saves some compile-time testing.
77009         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77010         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77011         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77012         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77013         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77014         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77015         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77016         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77017         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77018         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77019         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77020         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77021         undef any previous version and define our own version, for
77022         simplicity and consistency with the new macros for types.
77023         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77024         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77025         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77026         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77027         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77028         @WINT_T_SUFFIX@ to keep things simple here.
77029         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77030         Simplify by assuming typical 8/16/32/64 host, since we're
77031         already doing that elsewhere anyway.
77032         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77033         and assume long long int is 64 bits if available.  This
77034         speeds up 'configure'.
77035
77036 2006-07-01  Eric Blake  <ebb9@byu.net>
77037
77038         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77039         Reported by Andreas Buening.
77040
77041 2006-07-01  Eric Blake  <ebb9@byu.net>
77042
77043         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77044
77045 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77046
77047         * lib/getaddrinfo.c: fixed typo
77048
77049 2006-06-29  Jim Meyering  <jim@meyering.net>
77050
77051         * modules/strftime (Maintainer): Add my name, since with the
77052         FPRINTFTIME changes strftime.c has forked from glibc.
77053
77054 2006-06-29  Eric Blake  <ebb9@byu.net>
77055
77056         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77057
77058 2006-06-29  Eric Blake  <ebb9@byu.net>
77059
77060         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77061
77062 2006-06-29  Eric Blake  <ebb9@byu.net>
77063
77064         * lib/stat_.h: New file.
77065
77066 2006-06-29  Eric Blake  <ebb9@byu.net>
77067
77068         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77069         unused static function.
77070
77071 2006-06-29  Eric Blake  <ebb9@byu.net>
77072
77073         * doc/functions.texi (Function Portability): Document missing lstat
77074         on mingw.
77075
77076 2006-06-29  Eric Blake  <ebb9@byu.net>
77077
77078         * MODULES.html.sh: Add sys_stat.
77079         * modules/sys_stat: New module.
77080         * modules/mkstemp (Depends-on): Add sys_stat.
77081
77082 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77083
77084         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77085
77086 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77087
77088         * m4/c-bs-a.m4: Removed.
77089
77090 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77091
77092         * lib/strftime.c: Assume strftime() exists.
77093
77094 2006-06-29  Derek Price  <derek@ximbiot.com>
77095
77096         * modules/c-bs-a: Removed - \a is C89.
77097         * MODULES.html.sh: Remove c-bs-a.
77098
77099 2006-06-29  Bruno Haible  <bruno@clisp.org>
77100
77101         * modules/wcwidth (License): Change to LGPL.
77102
77103 2006-06-28  Simon Josefsson  <jas@extundo.com>
77104
77105         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77106         on _WIN32.
77107
77108         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77109         getnameinfo.
77110
77111 2006-06-28  Simon Josefsson  <jas@extundo.com>
77112
77113         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77114
77115 2006-06-28  Simon Josefsson  <jas@extundo.com>
77116
77117         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77118         functions there.  It will succeed on Windows XP, but on Windows
77119         2000 and (presumably) earlier, it will fail, and use the internal
77120         re-implementation.
77121         (use_win32_p): New function.
77122         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77123         Support AI_NUMERICSERV to disable getservbyname.
77124         (getnameinfo): New function, only supports
77125         NI_NUMERICHOST|NI_NUMERICSERV for now.
77126
77127         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77128         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77129         getnameinfo.
77130
77131 2006-06-28  Eric Blake  <ebb9@byu.net>
77132
77133         * modules/wcwidth: New file.
77134         * modules/mbchar (Depends-on): Add wcwidth.
77135         * modules/mbswidth (Depends-on): Add wcwidth.
77136         * MODULES.html.sh: Add wcwidth.
77137
77138 2006-06-28  Eric Blake  <ebb9@byu.net>
77139
77140         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77141         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77142
77143 2006-06-28  Eric Blake  <ebb9@byu.net>
77144
77145         * lib/xvasprintf.h: Fix comments.
77146
77147 2006-06-28  Eric Blake  <ebb9@byu.net>
77148
77149         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77150         * lib/mbswidth.c (wcwidth): Move from here...
77151         * lib/wcwidth.h: ...to this new file.
77152
77153 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77154
77155         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77156
77157         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77158         it's obsolete.
77159         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77160
77161 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77162
77163         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77164         Autoconf 2.60 says this stuff was obsolete.
77165
77166 2006-06-28  Bruno Haible  <bruno@clisp.org>
77167
77168         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77169
77170 2006-06-28  Bruno Haible  <bruno@clisp.org>
77171
77172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77173         gt_TYPE_WCHAR_T.
77174
77175 2006-06-28  Bruno Haible  <bruno@clisp.org>
77176
77177         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77178         declaration for wcwidth.
77179         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77180
77181 2006-06-28  Bruno Haible  <bruno@clisp.org>
77182
77183         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77184         (mkdir): Define using _mkdir.
77185
77186 2006-06-28  Bruno Haible  <bruno@clisp.org>
77187
77188         * lib/getaddrinfo.h: Fix POSIX URL.
77189         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77190         _WIN32.
77191         (use_win32_p): Make static.
77192         (getaddrinfo): Reject service name if it is empty or does not consist
77193         solely of decimal digits, or if its value is > 65535.
77194         (getnameinfo): Remove useless casts.
77195
77196 2006-06-27  Simon Josefsson  <jas@extundo.com>
77197
77198         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77199         Eggert and Martin Lambers.
77200
77201 2006-06-27  Simon Josefsson  <jas@extundo.com>
77202
77203         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77204         Eggert and Martin Lambers.
77205
77206 2006-06-27  Bruno Haible  <bruno@clisp.org>
77207
77208         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77209         result to 0, not to empty.
77210         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77211
77212 2006-06-27  Bruno Haible  <bruno@clisp.org>
77213
77214         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77215
77216 2006-06-26  Simon Josefsson  <jas@extundo.com>
77217
77218         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77219         present.
77220
77221 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77222
77223         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77224         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77225         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77226
77227 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77228
77229         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77230
77231 2006-06-26  Bruno Haible  <bruno@clisp.org>
77232
77233         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77234
77235 2006-06-26  Bruno Haible  <bruno@clisp.org>
77236
77237         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77238
77239 2006-06-26  Bruno Haible  <bruno@clisp.org>
77240
77241         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77242         SGI C compiler in pre-C99 mode.
77243         Suggested by Mark D. Baushke and Larry Jones.
77244
77245 2006-06-26  Bruno Haible  <bruno@clisp.org>
77246
77247         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77248         WCHAR_MAX.
77249         Reported by Mark D. Baushke and Larry Jones.
77250
77251 2006-06-26  Bruno Haible  <bruno@clisp.org>
77252
77253         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77254         in pre-C99 mode.
77255         Suggested by Mark D. Baushke and Larry Jones.
77256
77257 2006-06-23  Simon Josefsson  <jas@extundo.com>
77258             Bruno Haible  <bruno@clisp.org>
77259
77260         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77261         Emit mostlyclean-local rule.
77262         (func_emit_tests_Makefile_am): Likewise.
77263         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77264
77265 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77266
77267         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77268
77269 2006-06-23  Bruno Haible  <bruno@clisp.org>
77270
77271         * tests/test-stdint.c: Update to match ISO C 99 Technical
77272         Corrigendum 1.
77273
77274 2006-06-23  Bruno Haible  <bruno@clisp.org>
77275
77276         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77277
77278 2006-06-23  Bruno Haible  <bruno@clisp.org>
77279
77280         * lib/stdint_.h: Treat IRIX like OpenBSD.
77281
77282 2006-06-23  Bruno Haible  <bruno@clisp.org>
77283
77284         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77285         ISO C 99 Technical Corrigendum 1.
77286
77287 2006-06-22  Simon Josefsson  <jas@extundo.com>
77288
77289         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77290         MinGW.
77291
77292 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77293
77294         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77295         needed.  Some compiler complained about some of them.  Problem reported
77296         by Larry Jones in
77297         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77298
77299 2006-06-21  Simon Josefsson  <jas@extundo.com>
77300
77301         * tests/test-getaddrinfo.c: New file.
77302
77303         * modules/getaddrinfo-tests: New file.
77304
77305         * MODULES.html.sh: Add inet_pton.
77306
77307         * modules/inet_pton: New file.
77308
77309 2006-06-21  Simon Josefsson  <jas@extundo.com>
77310
77311         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77312         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77313         of using the (limited) gnulib implementation on Windows XP.
77314
77315         * m4/inet_pton.m4: New file.
77316
77317 2006-06-21  Simon Josefsson  <jas@extundo.com>
77318
77319         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77320         variable.
77321
77322         * lib/socket_.h: Don't define WINVER.
77323
77324         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77325         slightly modified to work in gnulib.
77326
77327 2006-06-21  Simon Josefsson  <jas@extundo.com>
77328
77329         * doc/gnulib.texi (Windows sockets): Add.
77330
77331 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77332
77333         * lib/read-file.c (fread_file): Start with buffer allocation of
77334         0 bytes rather than 1 byte; this simplifies the code.
77335         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77336         code to free buffer and save/restore errno.
77337         (internal_read_file): Remove unused local.
77338
77339 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77340
77341         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77342         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77343         Problem reported by Denis Excoffier in
77344         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77345
77346 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77347
77348         * modules/sys_socket, modules/socklen: Include sys/types since
77349         FreeBSD 4.x's sys/socket.h needs it.
77350
77351 2006-06-19  Simon Josefsson  <jas@extundo.com>
77352
77353         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77354
77355 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77356
77357         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77358
77359 2006-06-19  Bruno Haible  <bruno@clisp.org>
77360
77361         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77362         and FULL_PATH_INTTYPES_H in angle brackets.
77363         Reported by Mark D. Baushke <mdb@gnu.org>.
77364
77365 2006-06-17  Eric Blake  <ebb9@byu.net>
77366
77367         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77368         errno.
77369
77370 2006-06-17  Bruno Haible  <bruno@clisp.org>
77371
77372         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77373         <sys/inttypes.h>.
77374
77375 2006-06-17  Bruno Haible  <bruno@clisp.org>
77376
77377         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77378         whether errno is declared. Assume <errno.h> declares errno.
77379
77380 2006-06-17  Bruno Haible  <bruno@clisp.org>
77381
77382         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77383
77384 2006-06-17  Bruno Haible  <bruno@clisp.org>
77385
77386         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77387         problem on Solaris 2.5.1.
77388
77389 2006-06-16  Eric Blake  <ebb9@byu.net>
77390
77391         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77392         * lib/unicodeio.c [!defined errno]: Likewise.
77393         * lib/strtol.c [!defined errno]: Likewise.
77394         * lib/strtod.c [!defined errno]: Likewise.
77395
77396 2006-06-15  Eric Blake  <ebb9@byu.net>
77397
77398         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77399
77400 2006-06-15  Eric Blake  <ebb9@byu.net>
77401
77402         * config/srclist.txt (ssize_t.m4): Lose sync.
77403
77404 2006-06-15  Bruno Haible  <bruno@clisp.org>
77405
77406         * modules/stdint (Files): Include m4/full-header-path.m4,
77407         m4/size_max.m4, m4/wchar_t.m4.
77408         (Makefile.am): Many more substitutions.
77409         * modules/stdint-tests: New file.
77410         * tests/test-stdint.c: New file.
77411
77412 2006-06-15  Bruno Haible  <bruno@clisp.org>
77413
77414         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77415         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77416         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77417         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77418         gl_CHECK_TYPE_SAME): New macros.
77419
77420 2006-06-15  Bruno Haible  <bruno@clisp.org>
77421
77422         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77423
77424 2006-06-15  Bruno Haible  <bruno@clisp.org>
77425
77426         * lib/stdint_.h: Rewritten to be fully auto-configured.
77427         Fixes bug on HP-UX/IA64.
77428
77429 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * lib/getdate.y (__attribute__): Don't define if already defined.
77432         Problem reported by Larry Jones.
77433         * lib/utimens.c (__attribute__): Likewise.
77434
77435 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77436
77437         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77438         reported by Andreas Schwab.
77439
77440 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77441             Bruno Haible  <bruno@clisp.org>
77442
77443         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77444         check for the declaration of strnlen and a run test that exposes the
77445         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77446         rpl_strndup.
77447
77448 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77449             Bruno Haible  <bruno@clisp.org>
77450
77451         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77452
77453 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77454
77455         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77456         compile test, for Tru64 4.0D.
77457
77458 2006-05-28  Karl Berry  <karl@gnu.org>
77459
77460         * config/srclist.txt (printf-args.c): lose sync.
77461
77462 2006-05-26  Martin Lambers  <marlam@marlam.de>
77463
77464         * lib/getpass.c: Updates the test for the native W32 API, and adds
77465         missing includes, thus fixing compilation warnings.
77466
77467 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77468
77469         * lib/exclude.c (exclude_fnmatch): New function.
77470         (excluded_file_name): Call exclude_fnmatch.
77471         * lib/exclude.h (excluded_file_name): New prototype
77472
77473 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77474
77475         * lib/tempname.c (small_open, large_open): New macros.
77476         (__open, __open64) [!_LIBC]: Remove.
77477         (__gen_tempname): Use small_open and large_open instead of __open
77478         and __open64.  This fixes a portability bug on HP-UX 11.11i
77479         reported by Simon Wing-Tang in
77480         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77481
77482 2006-05-24  Bruno Haible  <bruno@clisp.org>
77483
77484         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77485         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77486         Reported by Thorsten Maerz <torte@netztorte.de> via
77487         Aaron Stone <aaron@serendipity.cx>.
77488
77489 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77490
77491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77492         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77493         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77494         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77495         not really conditional on the cache.
77496         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77497
77498 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77499
77500         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77501         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77502         (my_usleep): Don't mishandle maximum value.
77503
77504 2006-05-19  Jim Meyering  <jim@meyering.net>
77505
77506         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77507
77508 2006-05-17  Bruno Haible  <bruno@clisp.org>
77509
77510         Cygwin portability.
77511         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77512
77513 2006-05-17  Bruno Haible  <bruno@clisp.org>
77514
77515         * lib/stdint_.h: Fix recognition of Cygwin.
77516
77517 2006-05-15  Bruno Haible  <bruno@clisp.org>
77518
77519         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77520         on libtool patch by Ralf Wildenhues.
77521
77522 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77523
77524         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77525         test for C99 conformance; (bool) 0.5 is an integer constant
77526         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77527         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77528
77529 2006-05-11  Simon Josefsson  <jas@extundo.com>
77530
77531         * m4/xvasprintf.m4: Fix obvious typo.
77532
77533 2006-05-11  Jim Meyering  <jim@meyering.net>
77534
77535         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77536         James Lemley.
77537
77538 2006-05-10  Simon Josefsson  <jas@extundo.com>
77539
77540         * lib/md4.c: Typo fix, update copyright years.
77541         (K1, K2): Don't use L because it turn computations into 64-bit on
77542         64-bit platforms.
77543
77544 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77547         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77548         unwanted sign propagation, e.g., on hosts with 64-bit int.
77549         There still are some problems with reeelly weird theoretical hosts
77550         (e.g., 33-bit int) but it's not worth worrying about now.
77551         * lib/sha1.c (rol): Likewise.
77552         (K1, K2, K3, K4): Remove unnecessary L suffix.
77553
77554 2006-05-10  Bruno Haible  <bruno@clisp.org>
77555
77556         * lib/des.c: Cast to avoid warnings.
77557
77558 2006-05-09  Bruno Haible  <bruno@clisp.org>
77559
77560         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77561         (Depends-on): Depend also on xsize, stdarg.
77562         (configure.ac): Add gl_XVASPRINTF.
77563
77564 2006-05-09  Bruno Haible  <bruno@clisp.org>
77565
77566         * m4/xvasprintf.m4: New file.
77567
77568 2006-05-09  Bruno Haible  <bruno@clisp.org>
77569
77570         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77571         (EOVERFLOW): Define fallback value.
77572         (xstrcat): New function.
77573         (xvasprintf): Recognize the special case of a string concatenation.
77574
77575 2006-05-08  Eric Blake  <ebb9@byu.net>
77576
77577         * gnulib-tool (func_version): Base copyright year on CVS date.
77578         (func_emit_copyright_notice): New function.
77579         (func_emit_lib_Makefile_am): Use it.
77580         (func_emit_tests_Makefile_am): Likewise.
77581         (func_import): Likewise.
77582
77583 2006-05-08  Bruno Haible  <bruno@clisp.org>
77584
77585         * modules/stdarg: New file.
77586         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77587
77588 2006-05-08  Bruno Haible  <bruno@clisp.org>
77589
77590         * m4/stdarg.m4: New file, from GNU gettext.
77591
77592 2006-05-08  Bruno Haible  <bruno@clisp.org>
77593
77594         * config/srclist.txt (build-aux/config.rpath): different from latest
77595         release.
77596
77597 2006-05-08  Bruno Haible  <bruno@clisp.org>
77598
77599         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77600
77601 2006-05-05  Jim Meyering  <jim@meyering.net>
77602
77603         * m4/warning.m4: New file, derived from bison's file by the same name.
77604
77605 2006-05-03  Bruno Haible  <bruno@clisp.org>
77606
77607         * lib/stdint_.h: Shorter URL.
77608         * lib/inttypes.h: Likewise.
77609
77610 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77611
77612         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77613
77614 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77615
77616         * lib/verify.h: Document the internals better.  Most of this change
77617         was written by Bruno Haible.
77618
77619 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77620
77621         * doc/verify.texi: New file, partly based on a proposal by
77622         Bruno Haible.
77623
77624 2006-05-02  Bruno Haible  <bruno@clisp.org>
77625
77626         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77627         test from here...
77628         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77629
77630 2006-04-29  Bruno Haible  <bruno@clisp.org>
77631
77632         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77633         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77634
77635 2006-04-29  Bruno Haible  <bruno@clisp.org>
77636
77637         * gnulib-tool: Make --update option actually work.
77638
77639 2006-04-29  Bruno Haible  <bruno@clisp.org>
77640
77641         * doc/gcd.texi: New file.
77642         * doc/gnulib.texi: Include it.
77643
77644 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77645
77646         * lib/getdate.y (get_date): When adding relative date, start with the
77647         initial time, not with the result of the first mktime call.
77648
77649 2006-04-25  Bruno Haible  <bruno@clisp.org>
77650
77651         * gnulib-tool (func_import): Output the include directives in three
77652         blocks, sorted separately.
77653         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77654
77655 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77658         to define main with arguments, for C++.  Reported by Eric Blake.
77659         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77660         Prefer 'int main ()' to 'int main (void)', for C++.
77661         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77662         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77663         for 'main', for C99 and C++.
77664
77665 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77666
77667         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77668         Don't assume that exit status -1 is valid.
77669         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77670         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77671         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77672         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77673         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77674         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77675         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77676         functions can be used without declaring them, or that you can
77677         exit with status -1.
77678         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77679
77680 2006-04-24  Karl Berry  <karl@gnu.org>
77681
77682         * config/srclist.txt (longdouble.m4): sync lost.
77683
77684 2006-04-24  Eric Blake  <ebb9@byu.net>
77685
77686         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77687
77688 2006-04-24  Bruno Haible  <bruno@clisp.org>
77689
77690         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77691         poll() implementation in AIX.
77692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77693
77694 2006-04-24  Bruno Haible  <bruno@clisp.org>
77695
77696         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77697         assigned exactly once.
77698
77699 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77700             Bruno Haible  <bruno@clisp.org>
77701
77702         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77703         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77704         for AM_CPPFLAGS.
77705
77706 2006-04-23  Bruno Haible  <bruno@clisp.org>
77707
77708         * modules/copy-file: Depend on unistd.
77709         * modules/execute: Likewise.
77710         * modules/fatal-signal: Likewise.
77711         * modules/findprog: Likewise.
77712         * modules/mkdtemp : Likewise.
77713         * modules/pipe: Likewise.
77714         * modules/wait-process: Likewise.
77715
77716 2006-04-23  Bruno Haible  <bruno@clisp.org>
77717
77718         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77719         condition was already detected.
77720         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77721
77722 2006-04-23  Bruno Haible  <bruno@clisp.org>
77723
77724         * lib/copy-file.c: Include <unistd.h> unconditionally.
77725         * lib/execute.c: Likewise.
77726         * lib/fatal-signal.c: Likewise.
77727         * lib/findprog.c: Likewise.
77728         * lib/mkdtemp.c: Likewise.
77729         * lib/pipe.h: Likewise.
77730         * lib/pipe.c: Likewise.
77731         * lib/wait-process.h: Likewise.
77732
77733 2006-04-23  Bruno Haible  <bruno@clisp.org>
77734
77735         * gnulib-tool (func_usage): Fix --import description. Document
77736         --update.
77737         (func_import): Create temporary file in a temporary directory, if
77738         --dry-run is specified. Silence errors from 'grep' when there are no
77739         m4 files in $m4dir.
77740         (func_create_testdir): Silence errors from 'grep' when there are no
77741         m4 files in $m4dir.
77742         Reported by Karl Berry <karl@freefriends.org>.
77743
77744 2006-04-20  Bruno Haible  <bruno@clisp.org>
77745
77746         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77747         one argument, so that the code will be portable to Autoconf 2.60.
77748         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77749         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77750         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77751
77752 2006-04-19  Derek Price  <derek@ximbiot.com>
77753             Eric Blake  <ebb9@byu.net>
77754
77755         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77756         rather than "/full/path.h".  Update comment to match.  Shorten &
77757         generalize m4_translit call via AS_TR_CPP.
77758
77759 2006-04-19  Derek Price  <derek@ximbiot.com>
77760             Eric Blake  <ebb9@byu.net>
77761
77762         * lib/inttypes.h: Correct grammar in comment.
77763
77764 2006-04-18  Derek Price  <derek@ximbiot.com>
77765             Paul Eggert  <eggert@cs.ucla.edu>
77766
77767         * modules/inttypes: New file.
77768         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77769
77770 2006-04-18  Derek Price  <derek@ximbiot.com>
77771             Paul Eggert  <eggert@cs.ucla.edu>
77772
77773         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77774         New files.
77775
77776 2006-04-18  Derek Price  <derek@ximbiot.com>
77777             Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * lib/inttypes.h: New file.
77780         * lib/strtoimax.c: Assume <inttypes.h>.
77781
77782 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77785         isn't mounted.  Problem reported by Kir Kolyshkin.
77786
77787 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77788
77789         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77790         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77791         Derek R. Price.
77792         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77793         implementation.
77794
77795 2006-04-12  Eric Blake  <ebb9@byu.net>
77796
77797         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77798         is now done automatically by the corresponding Autoconf macro.
77799
77800 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77801
77802         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77803         time_r.h.
77804
77805 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77806
77807         Merge regex changes from libc, removing some of our
77808         POSIX-conformance changes that were rejected and redoing them in a
77809         less-intrusive way.
77810
77811         * lib/regcomp.c (re_compile_internal, init_dfa):
77812         Length arg is now size_t, not Idx.  All uses changed.
77813         (peek_token): Forward decl now says internal_function.
77814         (__re_error_msgid, __re_error_msgid_idx):
77815         Now static rather than extern with attribute_hidden.
77816         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77817         For some reason libc prefers K&R style defns for external functions.
77818         (regerror) [!defined _LIBC]: Likewise.
77819         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77820         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77821         (build_range_exp, build_collating_symbol):
77822         Use K&R-style defn.
77823         (re_compile_fastmap): Use '\0' to memset, not 0.
77824         (utf8_sb_map): Make the calculations more obvious.
77825         (init_dfa, parse_bracket_exp, build_charclass_op):
77826         Call calloc and cast result, as glibc does.
77827         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77828         (build_range_exp, build_collating_symbol):
77829         Now internal functions.
77830
77831         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77832
77833         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77834         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77835         Don't depend on VMS; depend on __VMS instead, for POSIX
77836         namespace cleanness.
77837         (regoff_t): Define to ssize_t, not long int.
77838
77839         Remove the REG_ macros named below.  Instead, make the old names
77840         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77841         __USE_GNU_REGEX.
77842         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77843         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77844         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77845         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77846         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77847         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77848         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77849         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77850         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77851         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77852         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77853         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77854         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77855         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77856         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77857         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77858         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77859         (REG_NREGS):
77860         Remove.  All uses replaced by the old RE_* names.
77861         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77862         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77863         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77864         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77865         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77866         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77867         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77868         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77869         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77870         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77871         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77872         Don't bother having these macros be independent of each others'
77873         values, since they no longer exist in the POSIX name space.
77874
77875         Rename the following member names back to their old names,
77876         unless !__USE_GNU_REGEX.  All uses changed back.
77877         (buffer): Renamed from re_buffer.
77878         (allocated): Renamed from re_allocated.
77879         (used): Renamed from re_used.
77880         (syntax): Renamed from re_syntax.
77881         (fastmap): Renamed from re_fastmap.
77882         (translate): Renamed from re_translate.
77883         (can_be_null): Renamed from re_can_be_null.
77884         (regs_allocated): Renamed from re_regs_allocated.
77885         (fastmap_accurate): Renamed from re_fastmap_accurate.
77886         (no_sub): Renamed from re_no_sub.
77887         (not_bol): Renamed from re_not_bol.
77888         (not_eol): Renamed from re_not_eol.
77889         (newline_anchor): Renamed from re_newline_anchor.
77890         (num_regs): Renamed from rm_num_regs.
77891         (start): Renamed from rm_start.
77892         (end): Renamed from rm_end.
77893
77894         (free_state): Move up a bit.
77895
77896         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77897         #define to be empty.
77898         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77899         when that is what is intended.
77900         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77901         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77902         (MAX): New macro.
77903         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77904         All uses changed back to re_malloc, etc.  It's now the caller's
77905         responsibility to check for overflow; all callers changed.
77906         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77907         (re_x2nrealloc): Remove.
77908         (free_state): Remove decl.
77909
77910         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77911         (re_set_registers, re_exec):
77912         Use K&R-style defn.
77913
77914         2006-01-31  Roland McGrath  <roland@redhat.com>
77915
77916         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77917         Reported by Mike Frysinger <vapier@gentoo.org>.
77918
77919         2006-01-15  Andreas Jaeger  <aj@suse.de>
77920
77921         [BZ #1950]
77922         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77923         build_wcs_upper_buffer change.
77924         (build_wcs_upper_buffer): Change return type.
77925
77926         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77927
77928         * lib/regex_internal.h: Include <stdint.h> if available.
77929
77930         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77931
77932         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77933
77934         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77935
77936         * lib/regcomp.c: Adjust for changed secondary hash function.
77937
77938         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77939
77940         * lib/regex.h: Pretty printing.
77941         Clean up namespace a bit.
77942
77943         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77944
77945         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77946         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77947
77948         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77949                     Ulrich Drepper  <drepper@redhat.com>
77950
77951         [BZ #1302]
77952         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77953         changed.
77954         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77955
77956         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77957
77958         [BZ #281]
77959         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77960         * lib/regcomp.c: Remove unnecessary uses of
77961         unsigned RE_TRANSLATE_TYPE.
77962         * lib/regex_internal.h: Likewise.
77963         * lib/regex_internal.c: Likewise.
77964         * lib/regexec.c: Likewise.
77965         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77966
77967         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77968
77969         * lib/regexec.c (find_recover_state): Remove unnecessary
77970         initialization.
77971         (transit_state_bkref): Make DFA a const pointer.
77972         (get_subexp): Likewise.
77973         (check_arrival): Likewise.
77974         (update_cur_sifted_state): Likewise.
77975         (re_search_internal): Likewise.
77976         (prune_impossible_nodes): Likewise.
77977         (acquire_init_state_context): Likewise.
77978         (proceed_next_node): Likewise.
77979         (set_regs): Likewise.
77980         (free_fail_stack_return): Likewise.
77981         (check_arrival_expand_ecl): Mark DFA parameter as const.
77982         (check_arrival_expand_ecl_sub): Likewise.
77983         (check_subexp_limits): Likewise.
77984         (sub_epsilon_src_nodes):  Likewise.
77985         (add_epsilon_src_nodes):  Likewise.
77986         (merge_state_array): Likewise.
77987         (update_regs): Likewise.
77988         (build_trtable): Likewise.
77989         (sift_states_backward): Mark MCTX parameter as const.
77990         (build_sifted_states): Likewise.
77991         (update_cur_sifted_state): Likewise.
77992         (sift_states_mkref): Likewise.
77993         (check_arrival_expand_ecl): Mark eclosure as const.
77994         (check_dst_limits_calc_pos_1): Likewise.
77995         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77996         pointer.
77997
77998         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77999
78000         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78001         (transit_state_sb): Likewise.
78002         (transit_state_mb): Likewise.
78003         (sift_states_iter_mb): Likewise.
78004         (check_arrival_add_next_nodes): Likewise.
78005         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78006         [_LIBC] (re_search_2_stub): Use mempcpy.
78007
78008         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78009         mbrtowc for very simple UTF-8 case.
78010
78011         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78012         a pointer-to-const.
78013         (re_acquire_state_context): Likewise.
78014         * lib/regex_internal.h: Adjust prototypes.
78015
78016         * lib/regex.c: Prevent using C++ compilers.
78017
78018         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78019         (re_acquire_state_context): Likewise.
78020
78021 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         * modules/regex (Depends-on): Add ssize_t.
78024
78025 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78028         translation table.
78029
78030 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78033
78034 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78035             Bruno Haible  <bruno@clisp.org>
78036
78037         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78038         <sys/types.h> and <inttypes.h>.
78039
78040 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78041
78042         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78043         `__error_t_defined', so argp.h will not typedef the former.
78044
78045 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78046
78047         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78048         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78049         glibc names.  Even if glibc is changed to conform to POSIX, the
78050         traditional names will be available anyway, since regex depends on
78051         the extensions module.  Also, fix a longstanding typo in the
78052         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78053         reported by Emanuele Giaquinta.  Also, change sense of cached
78054         variable, so that the message makes sense.
78055
78056 2006-03-24  Simon Josefsson  <jas@extundo.com>
78057
78058         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78059         including some doc fixes.
78060         (base64_encode_alloc): Fix +1 bug on allocation failures.
78061
78062 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78063
78064         * lib/base64.c (base64_encode): Do not read past end of array with
78065         unsanitized input on systems with CHAR_BIT > 8.
78066
78067 2006-03-24  Eric Blake  <ebb9@byu.net>
78068
78069         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78070
78071 2006-03-22  Karl Berry  <karl@gnu.org>
78072
78073         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78074         * config/srclistvars.sh (COREUTILS): new var.
78075
78076 2006-03-17  Jim Meyering  <jim@meyering.net>
78077
78078         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78079         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78080
78081 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78082
78083         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78084         no longer needs it.  Instead, check that regoff_t is as least
78085         as wide as ptrdiff_t.
78086
78087         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78088         so that our regex.h stays compatible with the installed regex.
78089         This is helpful for installers who configure --without-included-regex.
78090         Problem reported by Emanuele Giaquinta.
78091
78092 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78093
78094         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78095         Typedef to long int, not to off_, as POSIX will likely change
78096         in that direction.
78097
78098 2006-03-15  Eric Blake  <ebb9@byu.net>
78099
78100         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78101
78102 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78103
78104         * lib/argp-help.c (validate_uparams): Fix typo
78105         * lib/argp-parse.c (argp_default_options): Consistently begin help
78106         messages with a lowercase letter.
78107
78108 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78111         overrun buffers and shouldn't be used (much as gets shouldn't be
78112         used).
78113         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78114
78115 2006-03-08  Simon Josefsson  <jas@extundo.com>
78116
78117         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78118         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78119
78120 2006-03-08  Simon Josefsson  <jas@extundo.com>
78121
78122         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78123         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78124
78125 2006-03-08  Simon Josefsson  <jas@extundo.com>
78126
78127         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78128         signal that configure disabled the device.
78129
78130 2006-03-08  Simon Josefsson  <jas@extundo.com>
78131
78132         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78133         languages.
78134
78135 2006-03-07  Simon Josefsson  <jas@extundo.com>
78136
78137         * modules/getopt (Depends-on): Add unistd.
78138
78139         * modules/unistd: New file.
78140
78141 2006-03-07  Simon Josefsson  <jas@extundo.com>
78142
78143         * modules/gc-random: New file.
78144
78145 2006-03-07  Simon Josefsson  <jas@extundo.com>
78146
78147         * m4/unistd_h.m4: New file.
78148
78149 2006-03-07  Simon Josefsson  <jas@extundo.com>
78150
78151         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78152         test to be side-effect free by storing the result in the cache
78153         variable gl_cv_lib_readline, and moving the assignment of
78154         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78155         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78156
78157 2006-03-07  Simon Josefsson  <jas@extundo.com>
78158
78159         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78160         error on missing devices (the functions will return an error).
78161
78162         * m4/gc.m4: Move random stuff to gc-random.m4
78163
78164 2006-03-07  Simon Josefsson  <jas@extundo.com>
78165
78166         * lib/unistd_.h: New file.
78167
78168 2006-03-07  Simon Josefsson  <jas@extundo.com>
78169
78170         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78171
78172 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78173
78174         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78175         Problem reported by Juan Manuel Guerrero.
78176
78177 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78178
78179         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78180         the unistd module.
78181         * lib/getlogin_r.c: Likewise.
78182         * lib/getlogin_r.h: Likewise.
78183         * lib/glob.c: Likewise.
78184         * lib/pagealign_alloc.c: Likewise.
78185         * lib/unistd_.h: Remove; no longer needed.
78186
78187 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78188
78189         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78190         Add unistd.
78191         * modules/c-stack (Depends-on): Add unistd.
78192         * modules/getlogin_r: Likewise.
78193         * modules/glob: Likewise.
78194         * modules/pagealign_alloc: Likewise.
78195         * modules/unistd (Files): Remove lib/unistd_.h.
78196         (EXTRA_DIST): Remove.
78197         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78198         need unistd_.h.
78199         (MOSTLYCLEANFILES): Remove unistd.h-t.
78200
78201 2006-03-03  Simon Josefsson  <jas@extundo.com>
78202
78203         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78204
78205 2006-03-03  Simon Josefsson  <jas@extundo.com>
78206
78207         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78208         libidn and bison.
78209
78210 2006-03-03  Simon Josefsson  <jas@extundo.com>
78211
78212         * build-aux/maint.mk: Add indent target.
78213
78214 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78215
78216         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78217         our replacement poll.h in any case, to avoid a differing
78218         declaration from a system header.  Seen on AIX.
78219
78220 2006-03-01  Simon Josefsson  <jas@extundo.com>
78221
78222         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78223         <kasal@ucw.cz>.
78224
78225 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78226
78227         * modules/gettime (Depends-on): Add extensions module.
78228         * modules/nanosleep (Depends-on): Likewise.
78229         * modules/settime (Depends-on): Likewise.
78230
78231 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78232
78233         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78234         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78235         pedantically.
78236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78237         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78238
78239         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78240         not "==".  Reported by Ralf Wildenhues.
78241
78242 2006-03-01  Karl Berry  <karl@gnu.org>
78243
78244         * doc/Copyright/request-*: new files, synced from gnuorg.
78245
78246 2006-03-01  Karl Berry  <karl@gnu.org>
78247
78248         * config/srclist.txt (Copyright/*): new entries.
78249
78250 2006-02-28  Simon Josefsson  <jas@extundo.com>
78251
78252         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78253
78254 2006-02-27  Simon Josefsson  <jas@extundo.com>
78255
78256         * lib/base64.h: Indent #define's.  From Jim Meyering
78257         <jim@meyering.net>.
78258
78259 2006-02-27  Jim Meyering  <jim@meyering.net>
78260
78261         Revert the change of 2006-02-24, so these files can continue
78262         to be sync'd from gettext.
78263         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78264         of `config.h'.
78265
78266 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78267
78268         * modules/intprops: New file.
78269         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78270         Add intprops.
78271         * modules/getloadavg (Files): Remove lib/intprops.h.
78272         (Depends-on): Add intprops.
78273         * modules/human: Likewise.
78274         * modules/inttostr: Likewise.
78275         * modules/openat: Likewise.
78276         * modules/sig2str: Likewise.
78277         * modules/userspec: Likewise.
78278         * modules/utimecmp: Likewise.
78279         * modules/xnanosleep: Likewise.
78280         * modules/xstrtol: Likewise.
78281
78282 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78283
78284         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78285         * modules/lock-tests (TESTS): Use $(EXEEXT).
78286         * modules/tls-tests: Likewise.
78287         * modules/argp-tests: Likewise.
78288         (check_PROGRAMS): New var, replacing...
78289         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78290
78291 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78292
78293         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78294         `config.h'.
78295
78296 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78297
78298         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78299
78300 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78301
78302         Sync from coreutils.
78303         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78304         gl_CHDIR_SAFER.
78305
78306 2006-02-22  Jim Meyering  <jim@meyering.net>
78307
78308         Sync from coreutils.
78309         * m4/chdir-safer.m4: New file.
78310
78311 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78312
78313         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78314         AT_FDCWD exceeds INT_MAX.
78315         * lib/openat.h (AT_FDCWD): Likewise.
78316
78317 2006-02-17  Eric Blake  <address@hidden>
78318
78319         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78320
78321 2006-02-16  Simon Josefsson  <jas@extundo.com>
78322
78323         * modules/getaddrinfo (Depends-on): Add sys_socket.
78324
78325 2006-02-15  Simon Josefsson  <jas@extundo.com>
78326
78327         * build-aux/maint.mk: Add dsyntax-check rule.
78328
78329 2006-02-15  Eric Blake  <ebb9@byu.net>
78330
78331         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78332         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78333         'present but cannot compile' warnings on cygwin.
78334         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78335         use ws2tcpip.h if sys/socket.h works.
78336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78337         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78338
78339 2006-02-14  Simon Josefsson  <jas@extundo.com>
78340
78341         * modules/maintainer-makefile (Files): Rename.
78342
78343         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78344         and (the local) Makefile.cfg to maint-cfg.mk.
78345
78346         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78347         to the latter.
78348
78349         * modules/maintainer-makefile: New module.
78350
78351         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78352         severaly stripped to make it possible to build it up from scratch
78353         with reliable tests.
78354
78355         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78356         fixes to permit overriding the default actions when configure and
78357         makefile are not available.
78358
78359 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78360
78361         Sync from coreutils.
78362         * modules/lstat (Depends-on): Don't depend on xalloc.
78363         (License): Change from GPL to LGPL, since this is now simply a
78364         replacement for a libc function.
78365
78366 2006-02-14  Jim Meyering  <jim@meyering.net>
78367
78368         Sync from coreutils.
78369
78370         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78371         failure on deficient systems, and simplify gnulib lgpl dependencies.
78372         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78373         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78374
78375         * lib/xalloc-die.c: Remove unused definition of N_.
78376
78377 2006-02-14  Jim Meyering  <jim@meyering.net>
78378
78379         Sync from coreutils.
78380         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78381         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78382         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78383         double-quote uses of that variable, to accommodate the rare case in
78384         which getmntent is available in none of the libraries checked.  This
78385         happens at least on FreeBSD 5.0.
78386
78387 2006-02-13  Simon Josefsson  <jas@extundo.com>
78388
78389         * gnulib-tool (Usage): Fix --import, from
78390         karl@freefriends.org (Karl Berry).
78391
78392 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78393
78394         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78395
78396 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78397
78398         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78399         "autoupdate" on 2005-12-12.
78400
78401 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78402
78403         * modules/closeout (Depends-on): Remove atexit.
78404
78405 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78406
78407         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78408         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78409
78410 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78411
78412         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78413         __EXTENSIONS__ if this causes compilation to fail.  Problem
78414         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78415         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78416
78417 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78418
78419         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78420         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78421         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78422         All uses changed.
78423
78424 2006-01-26  Simon Josefsson  <jas@extundo.com>
78425
78426         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78427         prototype is visible on mingw32.
78428
78429         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78430         for mingw32.
78431
78432         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78433         mingw32).
78434
78435 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78436
78437         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78438         attempt to open for write; this always fails, at least on POSIX
78439         hosts.  This reinstates the 2006-01-09 change, which was
78440         inadvertently removed.
78441
78442 2006-01-26  Bruno Haible  <bruno@clisp.org>
78443
78444         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78445         Reported by Paul Eggert.
78446
78447 2006-01-26  Bruno Haible  <bruno@clisp.org>
78448             Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         * lib/stdbool_.h (_Bool)
78451         [(! (defined __cplusplus || defined __BEOS__)
78452           && !defined __GNUC__
78453           && !(defined __HP_cc || defined __xlc__
78454                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78455                || defined __sgi))]:
78456         #define to signed char in these cases too; this simplifies
78457         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78458         etc., separately) and makes it more conservative.
78459
78460 2006-01-25  Simon Josefsson  <jas@extundo.com>
78461
78462         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78463         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78464         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78465
78466 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78467
78468         * lib/argp-namefrob.h: Bugfix. Remove stray #
78469
78470 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78473         so that we test the test.
78474         Check for yet another HP-UX cc bug involving *bool |= bool.
78475
78476 2006-01-25  Karl Berry  <karl@gnu.org>
78477
78478         * config/srclist.txt (vasnprintf.c): sync lost.
78479
78480 2006-01-25  Jim Meyering  <jim@meyering.net>
78481
78482         Sync from the stable (b5) branch of coreutils:
78483
78484         * lib/fts.c (fts_children): Don't let close() clobber errno from
78485         failed fchdir().
78486
78487         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78488         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78489         a dangling symlink.  That can also happen at least for ELOOP.
78490         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78491         FYI, this bug predates the inclusion of fts.c in coreutils.
78492
78493         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78494         in their own block, so pre-c99 compilers don't object.
78495
78496         Avoid the double-free (first in fts_read, second in fts_close) that
78497         would occur when an `active' directory is made inaccessible (e.g.,
78498         via chmod a-x) during a traversal.
78499         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78500         before returning.  Reproduce this failure by
78501         mkdir -p a/b; cd a; chmod a-x . b
78502         Reported by Stavros Passas.
78503
78504 2006-01-25  Jim Meyering  <jim@meyering.net>
78505
78506         * lib/fileblocks.c: Remove more useless parentheses.
78507         * lib/readutmp.h: Likewise.
78508
78509 2006-01-25  Bruno Haible  <bruno@clisp.org>
78510
78511         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78512         warnings.
78513         Reported by Paul Eggert.
78514
78515 2006-01-25  Bruno Haible  <bruno@clisp.org>
78516
78517         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78518         rid of a trap command. For Solaris sh.
78519         Reported by Mark D. Baushke <mdb@gnu.org>.
78520
78521 2006-01-24  Simon Josefsson  <jas@extundo.com>
78522
78523         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78524         Bruno.
78525
78526 2006-01-24  Karl Berry  <karl@gnu.org>
78527
78528         * config/srclist.txt (argp-namefrob.h): sync lost.
78529
78530 2006-01-24  Jim Meyering  <jim@meyering.net>
78531
78532         * modules/openat (Files): Add lib/intprops.h.
78533         From Mark D. Baushke.
78534
78535 2006-01-24  Jim Meyering  <jim@meyering.net>
78536
78537         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78538         Reported by Mark D. Baushke.
78539
78540 2006-01-24  Jim Meyering  <jim@meyering.net>
78541
78542         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78543
78544 2006-01-24  Bruno Haible  <bruno@clisp.org>
78545
78546         * modules/strnlen (Maintainer): Change from glibc to all.
78547
78548 2006-01-24  Bruno Haible  <bruno@clisp.org>
78549
78550         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78551         Patch by Paul Eggert.
78552
78553 2006-01-24  Bruno Haible  <bruno@clisp.org>
78554
78555         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78556         already has it.
78557         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78558         2005-11-26.
78559
78560         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78561         'signed char' to avoid problems with the built-in _Bool type.
78562         Reported by Paul Eggert on 2005-11-26.
78563
78564 2006-01-24  Bruno Haible  <bruno@clisp.org>
78565
78566         * gnulib-tool (func_import): Avoid constructing complicated sed
78567         expressions inside backquote.
78568         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78569
78570 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78571
78572         These changes imported from libc.
78573         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78574         test and two separate function calls.
78575         * lib/strndup.c (__strndup): Add libc_hidden_def.
78576
78577 2006-01-23  Simon Josefsson  <jas@extundo.com>
78578
78579         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78580         Remove the test_*_SOURCES variable: automake infers it by default.
78581         * modules/tls-tests: Likewise.
78582
78583 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         Work around porting bugs reported by Dieter in
78586         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78587         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78588         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78589         Include "getopt.h" first, to check interface.
78590         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78591         !HAVE_DECL_GETENV.
78592         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78593         (__strndup): Revert to K&R-style function dfns, the glibc style.
78594         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78595         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78596         Include strnlen.h first, to get prototype properly.
78597         (strnlen): Renamed from __strnlen.
78598         Remove weak alias.
78599
78600 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78603
78604 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * config/srclist.txt: Adjust to reflect glibc reorganization.
78607         This affects only comments.
78608
78609 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78610
78611          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78612          Reported by Bruce Korb <bkorb@gnu.org>.
78613
78614 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78615
78616         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78617         to pacify gcc -Wswitch-default.
78618
78619 2006-01-22  Bruno Haible  <bruno@clisp.org>
78620
78621         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78622         temporary buffer for sprintf, take into account the precision also
78623         for 'd', 'i', 'u', 'o', 'x', 'X'.
78624
78625 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78626
78627         * modules/argp-tests: New module
78628         * tests/test-argp.c: New file
78629         * tests/test-argp-2.sh: New file
78630
78631 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78632
78633         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78634         (__argp_base_name): Removed
78635         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78636         typo.
78637         (__argp_base_name): Provide macro definition or extern declaration
78638         depending on the configuration
78639
78640 2006-01-20  Simon Josefsson  <jas@extundo.com>
78641
78642         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78643
78644 2006-01-20  Simon Josefsson  <jas@extundo.com>
78645
78646         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78647
78648 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78649
78650         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78651         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78652         Suggested by Bruno Haible.
78653
78654 2006-01-20  Karl Berry  <karl@gnu.org>
78655
78656         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78657         until changes propagate, I guess.
78658
78659 2006-01-19  Simon Josefsson  <jas@extundo.com>
78660
78661         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78662
78663 2006-01-19  Simon Josefsson  <jas@extundo.com>
78664
78665         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78666
78667 2006-01-19  Simon Josefsson  <jas@extundo.com>
78668
78669         * gnulib-tool: Set check_PROGRAMS.
78670
78671         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78672         modules/des-tests, modules/gc-arcfour-tests,
78673         modules/gc-arctwo-tests, modules/gc-des-tests,
78674         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78675         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78676         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78677         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78678         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78679         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78680         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78681         test_*_SOURCES.
78682
78683 2006-01-18  Simon Josefsson  <jas@extundo.com>
78684
78685         * modules/socklen (Depends-on): Depend on sys_socket.
78686
78687 2006-01-18  Simon Josefsson  <jas@extundo.com>
78688
78689         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78690         modules/des-tests, modules/gc-arcfour-tests,
78691         modules/gc-arctwo-tests, modules/gc-des-tests,
78692         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78693         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78694         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78695         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78696         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78697         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78698         $(EXEEXT) to automake TESTS variable, for mingw32.
78699
78700 2006-01-17  Simon Josefsson  <jas@extundo.com>
78701
78702         * modules/socklen (Include): Need sys/socket.h.
78703
78704 2006-01-17  Bruno Haible  <bruno@clisp.org>
78705
78706         * modules/ssize_t (Include): Add <sys/types.h>.
78707
78708 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78709
78710         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78711         it's not portable and it doesn't work with cross-compiles.
78712         Problem reported by Bruno Haible.  Fix missing-$ typo in
78713         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78714         -zignore from being used with Sun's C compiler.
78715
78716 2006-01-12  Simon Josefsson  <jas@extundo.com>
78717
78718         * lib/base64.c: Fix warning, reported by Bruno Haible
78719         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78720
78721 2006-01-12  Bruno Haible  <bruno@clisp.org>
78722
78723         * modules/ldd: New file.
78724         * build-aux/ldd.sh.in: New file.
78725         * MODULES.html.sh (Support for building libraries and executables): Add
78726         ldd.
78727
78728 2006-01-12  Bruno Haible  <bruno@clisp.org>
78729
78730         * m4/ldd.m4: New file.
78731
78732 2006-01-12  Bruno Haible  <bruno@clisp.org>
78733
78734         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78735         endless loop while replacing $auxdir with build-aux.
78736
78737 2006-01-11  Simon Josefsson  <jas@extundo.com>
78738
78739         * lib/stdint_.h (SIZE_MAX): Add missing (.
78740
78741 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         Sync from coreutils.
78744         * lib/md5.c: Fix commentary typos.
78745         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78746         * lib/md5.h (__attribute__): Remove; unused.
78747         * lib/sha1.c: Fix commentary to match md5 better.
78748         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78749         so that we don't need to worry about alignment.  All uses changed.
78750         This merges the 2005-10-28 md5 change into sha1.
78751
78752 2006-01-11  Jim Meyering  <jim@meyering.net>
78753
78754         Sync from coreutils.
78755         * lib/md5.c (OP): Fix spacing.
78756
78757 2006-01-11  Bruno Haible  <bruno@clisp.org>
78758
78759         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78760         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78761         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78762
78763 2006-01-11  Bruno Haible  <bruno@clisp.org>
78764
78765         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78766         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78767         the "early" section as well.
78768
78769 2006-01-11  Bruno Haible  <bruno@clisp.org>
78770
78771         Avoid "ar: no archive members specified" error on MacOS X.
78772         * gnulib-tool (func_modules_add_dummy): New function.
78773         (func_import, func_create_testdir): Invoke it.
78774
78775 2006-01-11  Bruno Haible  <bruno@clisp.org>
78776
78777         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78778         with $auxdir in AC_CONFIG_FILES statements.
78779
78780 2006-01-11  Bruno Haible  <bruno@clisp.org>
78781
78782         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78783         Initialize also noinst_HEADERS to empty.
78784
78785 2006-01-11  Bruno Haible  <bruno@clisp.org>
78786
78787         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78788         variables.
78789         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78790         autoreconf.
78791
78792 2006-01-11  Bruno Haible  <bruno@clisp.org>
78793
78794         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78795         overridable by the user.
78796         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78797
78798 2006-01-10  Simon Josefsson  <jas@extundo.com>
78799
78800         * modules/sys_socket: New file.
78801
78802 2006-01-10  Simon Josefsson  <jas@extundo.com>
78803
78804         * m4/sys_socket_h.m4: New file.
78805
78806 2006-01-10  Simon Josefsson  <jas@extundo.com>
78807
78808         * lib/socket_.h: New file.
78809
78810 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78811
78812         * modules/readutmp (Maintainer): Add myself.
78813
78814 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78815
78816         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78817         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78818         People who are still concerned with buggy memcmp implementations
78819         can invoke gl_FUNC_MEMCMP themselves.
78820
78821 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * lib/regex_internal.h (BITSET_WORD_BITS):
78824         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78825         preprocessor mishandles large unsigned values as if they were signed.
78826         Problem reported by Claudio Fontana in
78827         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78828
78829 2006-01-10  Jim Meyering  <jim@meyering.net>
78830
78831         Avoid the double-free (first in fts_read, second in fts_close) that
78832         would occur when an `active' directory is made inaccessible (e.g.,
78833         via chmod a-x) during a traversal.
78834         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78835         before returning.  Reproduce this failure by
78836         mkdir -p a/b; cd a; chmod a-x . b
78837         Reported by Stavros Passas.
78838
78839         Sync from coreutils.
78840         * lib/sha1.c: Tweak grammar in a comment.
78841
78842 2006-01-10  Jim Meyering  <jim@meyering.net>
78843
78844         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78845         Patch by Joerg Sonnenberger.
78846
78847 2006-01-10  Bruno Haible  <bruno@clisp.org>
78848
78849         * modules/readutmp: Depend on module free.
78850         * modules/strtok_r: Depend on module restrict.
78851
78852 2006-01-10  Bruno Haible  <bruno@clisp.org>
78853
78854         * modules/gettext (configure.ac): Add an invocation of
78855         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78856
78857 2006-01-10  Bruno Haible  <bruno@clisp.org>
78858
78859         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78860         Reported by Werner Lemberg <wl@gnu.org>.
78861
78862 2006-01-10  Bruno Haible  <bruno@clisp.org>
78863
78864         * lib/localcharset.c: Update from GNU gettext.
78865
78866 2006-01-10  Bruno Haible  <bruno@clisp.org>
78867
78868         * lib/argp.h (__const): Remove macro. Use const instead.
78869         * lib/argp-fmtstream.h (__const): Likewise.
78870         * lib/glob_.h (__const): Remove macro.
78871         * lib/glob-libc.h: Use const instead of __const.
78872
78873 2006-01-10  Bruno Haible  <bruno@clisp.org>
78874
78875         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78876         variable.
78877         Needed to avoid an automake error regarding the 'gettext' module.
78878
78879 2006-01-09  Simon Josefsson  <jas@extundo.com>
78880
78881         * modules/inet_ntop (Depends-on): Add restrict.
78882
78883 2006-01-09  Simon Josefsson  <jas@extundo.com>
78884
78885         * modules/gc-rijndael-tests (License): Put under LGPL.
78886
78887         * modules/gc-des-tests (License): Likewise.
78888
78889         * modules/gc-arcfour-tests (License): Likewise.
78890
78891         * modules/gc-arctwo-tests (License): Likewise.
78892
78893         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78894
78895         * modules/gc-hmac-sha1-tests (Files): Likewise.
78896
78897         * modules/gc-hmac-md5-tests (License): Likewise.
78898
78899         * modules/gc-sha1-tests (License): Likewise.
78900
78901         * modules/gc-md5-tests (License): Likewise.
78902
78903         * modules/gc-md4-tests (License): Likewise.
78904
78905         * modules/gc-md2-tests (License): Likewise.
78906
78907         * modules/gc-tests (License): Likewise.
78908
78909         * modules/des-tests (License): Likewise.
78910
78911         * modules/md4-tests (License): Likewise.
78912
78913         * modules/md2-tests (License): Likewise.
78914
78915 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78916
78917         Sync from coreutils:
78918
78919         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78920         * modules/lib-ignore: New file.
78921         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78922         chdir-safer.m4, lchmod.m4.
78923         * modules/openat: Add mkdirat.c, openat-priv.h.
78924
78925 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78926
78927         Sync from coreutils.
78928         * m4/lib-ignore.m4: New file.
78929         * m4/lchmod.m4: New file.
78930
78931 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78932
78933         Sync from coreutils.
78934         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78935         for write access: POSIX says that must fail.
78936         * lib/fts.c (diropen): Likewise.
78937         * lib/save-cwd.c (save_cwd): Likewise.
78938         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78939         well, for minor improvements on hosts that lack O_DIRECTORY.
78940         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78941         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78942         Fall back on chown if open failed with EACCES.
78943
78944         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78945         Report an error at compile-time if only a 1-second nominal clock
78946         resolution is found.
78947
78948         * lib/lchmod.h: New file.
78949         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78950         (make_dir_parents): Use lchown rather than chown, and
78951         lchmod rather than chmod.
78952
78953         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78954         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78955         "proc" reported by n0dalus.
78956
78957         * lib/mountlist.c: Include <limits.h>.
78958         (dev_from_mount_options)
78959         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78960         New function.  It no longer assumes "dev=" has the System V meaning
78961         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78962         (read_file_system_list)
78963         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78964         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78965         dev= in that case.
78966
78967         * lib/posixtm.h (PDS_PRE_2000): New macro.
78968         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78969         allow_century.  All usages changed.  Reject dates outside the range
78970         1969-1999 if PDS_PRE_2000 is used.
78971
78972 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78973
78974         Sync from coreutils.
78975         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78976         (Time of day items): Mention the possibility of leap seconds.
78977         Problem reported by Dr. David Alan Gilbert.
78978
78979 2006-01-09  Jim Meyering  <jim@meyering.net>
78980
78981         Sync from coreutils.
78982
78983         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78984
78985         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78986
78987         * lib/modechange.c (mode_compile): Reject an invalid mode string
78988         that starts with an octal digit.  From Andreas Gruenbacher.
78989
78990         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78991         and dup to open_safer and dup_safer, respectively.
78992         (openat_permissive): Fix typo in comment.
78993
78994         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78995         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78996         (_): Remove; no longer needed.
78997         (openat): Renamed from rpl_openat; no need for rpl_openat
78998         since openat.h renames openat for us.
78999         Replace most of the body with a call to openat_permissive,
79000         to avoid duplicate code.
79001         Port to (probably hypothetical) environments were mode_t is
79002         wider than int.
79003         (openat_permissive): Require mode arg, so that we can check
79004         types better.  Put it just after flags.  Change cwd failure
79005         indicator from pointer-to-bool to pointer-to-errno-value.
79006         All callers changed.
79007         Invoke openat_save_fail and/or openat_restore_fail if
79008         cwd_errno is null, so that openat can call us.
79009         (openat_permissive, fdopendir, fstatat, unlinkat):
79010         Simplify errno handling to avoid some duplicate code,
79011         as it's OK to set errno on success.
79012         * lib/openat.h: Revamp code so that function macros depend on
79013         __OPENAT_PREFIX only, not also on AT_FDCWD.
79014         (openat_ro): Remove.  Caller changed to use openat_permissive.
79015         (openat_permissive): Now a macro, if not a function.
79016         (openat_restore_fail, openat_save_fail): Now always functions,
79017         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79018
79019         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79020         and openat.c.
79021         * lib/mkdirat.c: Include openat-priv.h.
79022         Remove definitions of macros defined therein.
79023         * lib/openat.c: Likewise.
79024
79025         * lib/mkdirat.c (mkdirat): New file and function.
79026         * lib/openat.h (mkdirat): Declare.
79027
79028         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79029
79030         * lib/openat.h (openat_permissive): Declare.
79031         (openat_ro): Define.
79032
79033         * lib/openat.c (EXPECTED_ERRNO): New macro.
79034         (openat_permissive): New function -- used in remove.c rewrite.
79035         (all functions): Set errno just before returning, only if there
79036         was an actual failure.
79037         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79038
79039         Emulate openat-family functions using Linux's procfs, if possible.
79040         Idea and some code based on Ulrich Drepper's glibc changes.
79041
79042         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79043         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79044         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79045         before falling back on save_cwd and restore_cwd.
79046         (fdopendir, fstatat, unlinkat): Likewise.
79047
79048         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79049         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79050
79051         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79052         as second argument to va_arg.  Otherwise, some versions of gcc
79053         warn that `if this code is reached, the program will abort'.
79054
79055 2006-01-09  Jim Meyering  <jim@meyering.net>
79056
79057         Sync from coreutils.
79058         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79059         Require openat-priv.h.
79060
79061 2006-01-09  Bruno Haible  <bruno@clisp.org>
79062
79063         * modules/strnlen (Include): Use strnlen.h.
79064
79065 2006-01-09  Bruno Haible  <bruno@clisp.org>
79066
79067         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79068
79069 2006-01-09  Bruno Haible  <bruno@clisp.org>
79070
79071         * lib/sysexit_.h (EX_OK): New macro.
79072         Suggested by Martin Lambers <marlam@marlam.de>.
79073
79074 2006-01-09  Bruno Haible  <bruno@clisp.org>
79075
79076         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79077         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79078
79079 2006-01-09  Bruno Haible  <bruno@clisp.org>
79080
79081         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79082         numbers.
79083
79084 2006-01-09  Bruno Haible  <bruno@clisp.org>
79085
79086         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79087         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79088         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79089         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79090
79091 2006-01-09  Bruno Haible  <bruno@clisp.org>
79092
79093         * build-aux/javacomp.sh.in: New file, moved from lib/.
79094         * modules/javacomp-script (Files): Update.
79095         (configure.ac): Add AC_CONFIG_FILES invocation.
79096         (EXTRA_DIST): Remove variable.
79097
79098         * build-aux/javaexec.sh.in: New file, moved from lib/.
79099         * modules/javaexec (Files): Update.
79100         (configure.ac): Add AC_CONFIG_FILES invocation.
79101         (EXTRA_DIST): Remove javaexec.sh.in.
79102
79103         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79104         * modules/csharpcomp-script (Files): Update.
79105         (configure.ac): Add AC_CONFIG_FILES invocation.
79106         (EXTRA_DIST): Remove variable.
79107
79108         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79109         * modules/csharpexec (Files): Update.
79110         (configure.ac): Add AC_CONFIG_FILES invocation.
79111         (EXTRA_DIST): Remove csharpexec.sh.in.
79112
79113 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79114
79115         Sync from coreutils.
79116
79117         Add POSIX ACL support
79118         * lib/acl.h (copy_acl, set_acl): Add declarations.
79119         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79120         systems other than Linux.
79121         (chmod_or_fchmod): New function: use fchmod when possible,
79122         and chmod otherwise.
79123         (file_has_acl): Add a POSIX ACL implementation, with a
79124         Linux-specific subcase.
79125         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79126         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79127         acls are unsupported.
79128         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79129         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79130         are unsupported.
79131
79132 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79133
79134         Sync from coreutils.
79135         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79136
79137 2006-01-07  Bruno Haible  <bruno@clisp.org>
79138
79139         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79140         gl_EARLY.
79141
79142 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79143
79144         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79145         Problem reported for Mingw by Mark Junker.
79146
79147 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79148
79149         * README: Gnulib normally doesn't generate a tarball.
79150
79151 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79152
79153         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79154         long int, not int, for nanosecond counts, so that people who are
79155         used to POSIX struct timespec won't be surprised.  Reported by Jim
79156         Meyering.
79157
79158 2005-12-28  Bruno Haible  <bruno@clisp.org>
79159
79160         * build-aux/config.rpath: Update from GNU gettext.
79161
79162 2005-12-16  Jim Meyering  <jim@meyering.net>
79163
79164         * modules/fprintftime: New module.
79165         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79166
79167 2005-12-16  Jim Meyering  <jim@meyering.net>
79168
79169         * m4/fprintftime.m4: New file.
79170
79171 2005-12-16  Jim Meyering  <jim@meyering.net>
79172
79173         * lib/fprintftime.c, lib/fprintftime.h: New files.
79174
79175 2005-12-15  Simon Josefsson  <jas@extundo.com>
79176
79177         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79178         new m4/socklen.m4.
79179
79180 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79181
79182         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79183         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79184
79185 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79186
79187         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79188         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79189         struct uparams is valid. Fall back to the default values if it is
79190         not.
79191
79192 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79193
79194         * modules/argp (Files): Add argp-pin.c
79195         (Depends-on): dirname
79196         (lib_SOURCES): Add argp-pin.c
79197
79198 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79199
79200         * m4/argp.m4:  Check if program_invocation_name and
79201         program_invocation_short_name are declared and define appropriate
79202         macros if they are not.
79203
79204 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79205
79206         * lib/argp-help.c (__argp_base_name): New function
79207         (__argp_short_program_name): Rewrite using __argp_base_name
79208         * lib/argp-namefrob.h: Define program_invocation_name and
79209         program_invocation_short_name if requested
79210         (__argp_base_name): Add prototype
79211         * lib/argp-parse.c (argp_def): Use gettext wrappers
79212         (argp_default_parser): Use __argp_base_name
79213         * lib/argp-pin.c: New file. Defines program_invocation_name and
79214         program_invocation_short_name on systems that lack them.
79215
79216 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79217
79218         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79219         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79220         porting problem reported by Georg Schwarz in
79221         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79222
79223 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79224
79225         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79226         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79227         porting problem reported by Georg Schwarz in
79228         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79229
79230 2005-12-05  Bruno Haible  <bruno@clisp.org>
79231
79232         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79233         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79234         Reported by Mark Junker <mjscod@gmx.de>.
79235
79236 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79239         Use implementation from Albert Chin, with some
79240         comments/corrections by Stepan Kasal and myself.
79241
79242 2005-12-02  Bruno Haible  <bruno@clisp.org>
79243
79244         * gnulib-tool (func_import): Accept GPLed build tool modules when
79245         --lgpl is given.
79246         * modules/csharpcomp-script: New file.
79247         * modules/csharpcomp: Depend on it.
79248         * modules/javacomp-script: New file.
79249         * modules/javacomp: Depend on it.
79250         Suggested by Simon Josefsson.
79251
79252 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79255         statement, to work around an HP-UX 10.20 compiler bug reported by
79256         Peter O'Gorman.
79257
79258 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * modules/savedir (Depends-on): Add openat.
79261
79262 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79263
79264         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79265         (uintmax_t) [defined uintmax_t]: Do not declare.
79266         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79267         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79268         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79269         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79270         sake of portability to weird hosts that C allows (though we don't
79271         know of any practical examples).
79272
79273         * lib/savedir.h (fdsavedir): New decl.
79274         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79275         contains most of the former guts of savedir.
79276         (savedir): Use savedirstream.
79277         Include "openat.h".
79278
79279 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * modules/obstack (Files): Add m4/ulonglong.m4.
79282         Problem reported by Davide Angelocola.
79283
79284 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79285
79286         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79287         coreutils no longer futzes with rounding modes.
79288
79289 2005-11-14  Jim Meyering  <jim@meyering.net>
79290
79291         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79292         replacement of mkstemp.
79293
79294 2005-11-10  Simon Josefsson  <jas@extundo.com>
79295
79296         * lib/readline.c: Remove EOL.
79297
79298 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79299
79300         * modules/gethrxtime (Depends-on): Add gettime.
79301
79302 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79303
79304         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79305         or gettimeofday; no longer needed.
79306
79307 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79310         time business.
79311         (gethrxtime) [! (HAVE_NANOUPTIME
79312         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79313         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79314         our own approximation.
79315
79316 2005-11-08  Eric Blake  <ebb9@byu.net>
79317
79318         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79319
79320 2005-11-08  Eric Blake  <ebb9@byu.net>
79321
79322         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79323
79324 2005-11-04  Bruno Haible  <bruno@clisp.org>
79325
79326         * gnulib-tool: Implement --update mode.
79327
79328 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79329
79330         Fix porting problem reported by Theodoros V. Kalamatianos.
79331         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79332         Don't assume that futimes failing means we must fail.
79333
79334 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79335
79336         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79337         variables to suggest the intended function of the PATH_MAX check.
79338
79339 2005-10-30  Kean Johnston  <jkj@sco.com>
79340
79341         Trivial changes to support SCO systems.
79342         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79343         as PATH_MAX.
79344         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79345         where __ptr is null when no I/O is pending.
79346
79347 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79350         leave errno alone.  Problem reported by Dmitry V. Levin.
79351
79352 2005-10-28  Simon Josefsson  <jas@extundo.com>
79353
79354         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79355         Test more.
79356
79357         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79358
79359         * modules/md2, modules/md2-tests: New files.
79360
79361 2005-10-28  Simon Josefsson  <jas@extundo.com>
79362
79363         * m4/inet_ntop.m4: More tests.
79364
79365         * m4/gc-md2.m4, md2.m4: New file.
79366
79367 2005-10-28  Simon Josefsson  <jas@extundo.com>
79368
79369         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79370         "restrict" keywords, as per POSIX.  Protect the function
79371         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79372         Don't use K&R prototypes.  Check the sprintf return values.
79373         Re-define EAFNOSUPPORT if not present.  Indent.
79374
79375         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79376         suggested by Bruno Haible <bruno@clisp.org>.
79377
79378         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79379
79380         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79381
79382         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79383         libgcrypt).
79384
79385         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79386
79387         * lib/md2.h, lib/md2.c: New files.
79388
79389 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79392         errno alone.  Problem reported by Frederic Jolliton.
79393
79394 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79395
79396         * modules/verify (License): Change from GPL to LGPL.  This is a
79397         tiny module and there are apparently near-equivalents that are
79398         under the BSD license.
79399
79400 2005-10-24  Simon Josefsson  <jas@extundo.com>
79401
79402         * modules/sha1: Relicense to LGPL.
79403
79404 2005-10-24  Simon Josefsson  <jas@extundo.com>
79405
79406         * lib/md4.h: Shrink buffer size, now that we changed the type.
79407
79408 2005-10-23  Simon Josefsson  <jas@extundo.com>
79409
79410         * gnulib-tool (func_import): Fix --tests-base.
79411
79412 2005-10-22  Simon Josefsson  <jas@extundo.com>
79413
79414         * modules/arcfour (Depends-on): Need stdint.
79415
79416 2005-10-22  Simon Josefsson  <jas@extundo.com>
79417
79418         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79419         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79420
79421 2005-10-22  Simon Josefsson  <jas@extundo.com>
79422
79423         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79424         suggested by Bruno Haible <bruno@clisp.org>.
79425
79426 2005-10-22  Simon Josefsson  <jas@extundo.com>
79427
79428         * lib/crc.h: Include stddef.h, for size_t.
79429
79430 2005-10-22  Simon Josefsson  <jas@extundo.com>
79431
79432         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79433         arcfour_context struct (simplify test vector testing in GNU
79434         Shishi).
79435
79436 2005-10-21  Simon Josefsson  <jas@extundo.com>
79437
79438         * modules/des, modules/des-tests: New files.
79439
79440         * modules/gc-des, modules/gc-des-tests: New files.
79441
79442         * tests/test-des.c, tests/test-gc-des.c: New file.
79443
79444 2005-10-21  Simon Josefsson  <jas@extundo.com>
79445
79446         * modules/arctwo, modules/arctwo-tests: New files.
79447
79448         * tests/test-arctwo.c: New file.
79449
79450         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79451
79452         * tests/test-gc-arctwo.c: New file.
79453
79454 2005-10-21  Simon Josefsson  <jas@extundo.com>
79455
79456         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79457         Bruno Haible <bruno@clisp.org>.
79458
79459         * m4/gc-des.m4: New file.
79460
79461 2005-10-21  Simon Josefsson  <jas@extundo.com>
79462
79463         * m4/arctwo.m4: New file.
79464
79465         * m4/gc-arctwo.m4: New file.
79466
79467 2005-10-21  Simon Josefsson  <jas@extundo.com>
79468
79469         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79470         block.
79471
79472 2005-10-21  Simon Josefsson  <jas@extundo.com>
79473
79474         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79475         <bruno@clisp.org>.
79476
79477         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79478
79479         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79480         Bruno Haible <bruno@clisp.org>.
79481
79482         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79483         <bruno@clisp.org>.
79484
79485 2005-10-21  Simon Josefsson  <jas@extundo.com>
79486
79487         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79488
79489 2005-10-21  Simon Josefsson  <jas@extundo.com>
79490
79491         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79492
79493 2005-10-21  Simon Josefsson  <jas@extundo.com>
79494
79495         * lib/des.h, lib/des.c: New files.
79496
79497         * lib/gc-gnulib.c: Support DES.c
79498
79499 2005-10-21  Simon Josefsson  <jas@extundo.com>
79500
79501         * lib/arctwo.h, lib/arctwo.c: New files.
79502
79503         * lib/gc-gnulib.c: Support ARCTWO.
79504
79505 2005-10-21  Simon Josefsson  <jas@extundo.com>
79506
79507         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79508         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79509
79510 2005-10-21  Simon Josefsson  <jas@extundo.com>
79511
79512         * gnulib-tool (func_import, func_create_testdir): Define automake
79513         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79514         Makefile.am snippet),
79515         suggested by Bruno Haible <bruno@clisp.org>.
79516
79517         * modules/gc (Makefile.am): Use it.
79518
79519 2005-10-21  Bruno Haible  <bruno@clisp.org>
79520
79521         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79522         patch.
79523
79524 2005-10-19  Simon Josefsson  <jas@extundo.com>
79525
79526         * tests/test-gc-rijndael.c: New file.
79527
79528         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79529
79530 2005-10-19  Simon Josefsson  <jas@extundo.com>
79531
79532         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79533         interface too.
79534
79535 2005-10-19  Simon Josefsson  <jas@extundo.com>
79536
79537         * tests/test-gc-arcfour.c: New file.
79538
79539         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79540
79541 2005-10-19  Simon Josefsson  <jas@extundo.com>
79542
79543         * modules/gc-md4, modules/gc-md4-tests: New file.
79544
79545         * tests/test-gc-md4.c: New file.
79546
79547 2005-10-19  Simon Josefsson  <jas@extundo.com>
79548
79549         * m4/gc-md4.m4: New file.
79550
79551 2005-10-19  Simon Josefsson  <jas@extundo.com>
79552
79553         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79554         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79555         <kasal@ucw.cz>.
79556
79557 2005-10-19  Simon Josefsson  <jas@extundo.com>
79558
79559         * m4/gc-arcfour.m4: New file.
79560
79561         * m4/gc-rijndael.m4: New file.
79562
79563 2005-10-19  Simon Josefsson  <jas@extundo.com>
79564
79565         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79566
79567 2005-10-19  Simon Josefsson  <jas@extundo.com>
79568
79569         * lib/gc-gnulib.c: Support ARCFOUR.
79570
79571 2005-10-19  Simon Josefsson  <jas@extundo.com>
79572
79573         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79574         support.
79575
79576         * lib/gc.h: Add ECB enum type.
79577
79578         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79579
79580 2005-10-18  Simon Josefsson  <jas@extundo.com>
79581
79582         * tests/test-md5.c: New file.
79583
79584         * modules/md5-tests: New file.
79585
79586 2005-10-18  Simon Josefsson  <jas@extundo.com>
79587
79588         * tests/test-md4.c: New file.
79589
79590         * modules/md4, modules/md4-tests: New files.
79591
79592 2005-10-18  Simon Josefsson  <jas@extundo.com>
79593
79594         * m4/md4.m4: New file.
79595
79596 2005-10-18  Simon Josefsson  <jas@extundo.com>
79597
79598         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79599
79600 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79601
79602         * gnulib-tool (func_create_testdir): Omit the second check whether
79603         BUILT_SOURCES in nonempty.
79604
79605 2005-10-17  Simon Josefsson  <jas@extundo.com>
79606
79607         * tests/test-rijndael.c: New file.
79608
79609 2005-10-17  Simon Josefsson  <jas@extundo.com>
79610
79611         * modules/sha1: Depend on stdint instead of md5.
79612
79613         * modules/md5: Depend on stdint, remove uint32_t.
79614
79615 2005-10-17  Simon Josefsson  <jas@extundo.com>
79616
79617         * modules/gc-sha1-tests: New file.
79618
79619         * tests/test-gc-sha1.c: New file.
79620
79621 2005-10-17  Simon Josefsson  <jas@extundo.com>
79622
79623         * m4/md5.m4: Remove call to uint32_t.m4.
79624
79625 2005-10-17  Simon Josefsson  <jas@extundo.com>
79626
79627         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79628
79629         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79630         md5.h.
79631
79632         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79633
79634         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79635
79636 2005-10-17  Simon Josefsson  <jas@extundo.com>
79637
79638         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79639
79640 2005-10-17  Simon Josefsson  <jas@extundo.com>
79641
79642         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79643
79644 2005-10-17  Simon Josefsson  <jas@extundo.com>
79645
79646         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79647
79648         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79649
79650 2005-10-17  Bruno Haible  <bruno@clisp.org>
79651
79652         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79653         that it can also be used in a test.
79654
79655 2005-10-16  Bruno Haible  <bruno@clisp.org>
79656
79657         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79658         TESTS_ENVIRONMENT, so that individual tests can augment it.
79659
79660         * gnulib-tool (func_create_testdir): Use an intermediate target for
79661         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79662         macros, like $(ALLOCA_H), which cannot be passed through the command
79663         line.
79664
79665 2005-10-15  Simon Josefsson  <jas@extundo.com>
79666
79667         * modules/rijndael-tests: New file.
79668
79669         * modules/rijndael: New file.
79670
79671 2005-10-15  Simon Josefsson  <jas@extundo.com>
79672
79673         * m4/rijndael.m4: New file.
79674
79675 2005-10-15  Simon Josefsson  <jas@extundo.com>
79676
79677         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79678
79679         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79680
79681 2005-10-14  Simon Josefsson  <jas@extundo.com>
79682
79683         * tests/test-arcfour.c: New file.
79684
79685         * modules/arcfour, modules/arcfour-tests: New files.
79686
79687 2005-10-14  Simon Josefsson  <jas@extundo.com>
79688
79689         * m4/arcfour.m4: New file.
79690
79691 2005-10-14  Simon Josefsson  <jas@extundo.com>
79692
79693         * lib/arcfour.h, lib/arcfour.c: New files.
79694
79695 2005-10-14  Roland McGrath  <roland@redhat.com>
79696
79697         Import from libc.  [BZ #1331]
79698         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79699         macro argument.
79700         Reported by Matej Vela <vela@debian.org>.
79701
79702 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79705         include <wchar.h>; no longer needed.
79706
79707 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79708
79709         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79710
79711 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79712         and  Ulrich Drepper  <drepper@redhat.com>
79713
79714         Import from libc.
79715         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79716         instead of inline stream orientation test and two separate
79717         function calls.  Pay no attention to USE_IN_LIBIO.
79718
79719 2005-10-13  Simon Josefsson  <jas@extundo.com>
79720
79721         * modules/gc-hmac-md5-tests: New file.
79722
79723         * tests/test-gc-hmac-sha1.c: New file.
79724
79725         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79726
79727         * modules/gc-hmac-md5-tests: New file.
79728
79729         * tests/test-gc-md5.c: New file.
79730
79731         * modules/gc-md5-tests: New file.
79732
79733 2005-10-13  Simon Josefsson  <jas@extundo.com>
79734
79735         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79736         Move memory allocation outside of loop.
79737
79738 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79739
79740         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79741         intermediate directory is in a read-only file system.  Problem
79742         reported by Eric Blake.
79743
79744 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79745
79746         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79747
79748 2005-10-12  Simon Josefsson  <jas@extundo.com>
79749
79750         * tests/test-hmac-sha1.c: New file.
79751
79752         * modules/hmac-sha1-tests: New file.
79753
79754         * modules/hmac-sha1: New file.
79755
79756 2005-10-12  Simon Josefsson  <jas@extundo.com>
79757
79758         * modules/gc-sha1: New file.
79759
79760 2005-10-12  Simon Josefsson  <jas@extundo.com>
79761
79762         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79763
79764         * tests/test-gc-pbkdf2-sha1.c: New file.
79765
79766 2005-10-12  Simon Josefsson  <jas@extundo.com>
79767
79768         * modules/gc-md5, modules/gc-hmac-md5: New files.
79769
79770         * modules/gc (Files): Remove md5, memxor and hmac files.
79771
79772 2005-10-12  Simon Josefsson  <jas@extundo.com>
79773
79774         * m4/gc-pbkdf2-sha1.m4: New file.
79775
79776         * m4/gc-hmac-sha1.m4: New file.
79777
79778         * m4/gc-sha1: New file.
79779
79780         * m4/hmac-sha1.m4: New file.
79781
79782 2005-10-12  Simon Josefsson  <jas@extundo.com>
79783
79784         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79785
79786         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79787
79788 2005-10-12  Simon Josefsson  <jas@extundo.com>
79789
79790         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79791         suggested by Bruno Haible <bruno@clisp.org>.
79792
79793 2005-10-12  Simon Josefsson  <jas@extundo.com>
79794
79795         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79796
79797 2005-10-12  Simon Josefsson  <jas@extundo.com>
79798
79799         * lib/gc-pbkdf2-sha1.c: New file.
79800
79801         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79802
79803 2005-10-12  Simon Josefsson  <jas@extundo.com>
79804
79805         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79806
79807         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79808
79809 2005-10-12  Simon Josefsson  <jas@extundo.com>
79810
79811         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79812         GC_USE_HMAC_MD5, respectively.
79813
79814         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79815         (gc_md5): Fix typo.
79816
79817         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79818
79819         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79820
79821         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79822
79823 2005-10-12  Bruno Haible  <bruno@clisp.org>
79824
79825         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79826         Reported by Stepan Kasal <kasal@ucw.cz>.
79827
79828 2005-10-11  Simon Josefsson  <jas@extundo.com>
79829
79830         * tests/test-crc.c: New file.
79831
79832         * modules/crc, modules/crc-tests: New files.
79833
79834 2005-10-11  Simon Josefsson  <jas@extundo.com>
79835
79836         * m4/crc.m4: New file.
79837
79838 2005-10-11  Simon Josefsson  <jas@extundo.com>
79839
79840         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79841
79842         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79843
79844         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79845
79846 2005-10-11  Simon Josefsson  <jas@extundo.com>
79847
79848         * lib/crc.h, lib/crc.c: New files.
79849
79850         * lib/gc.h (gc_hash_buffer): Add doc.
79851
79852 2005-10-11  Bruno Haible  <bruno@clisp.org>
79853
79854         * modules/c-strcasestr: New file.
79855         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79856
79857 2005-10-11  Bruno Haible  <bruno@clisp.org>
79858
79859         * modules/c-strcase: New file.
79860         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79861
79862 2005-10-11  Bruno Haible  <bruno@clisp.org>
79863
79864         * lib/strcasecmp.c: Include limits.h.
79865         (strcasecmp): Avoid integer overflow on exotic platforms.
79866         * lib/strncasecmp.c: Include limits.h.
79867         (strncasecmp): Avoid integer overflow on exotic platforms.
79868         Reported by Paul Eggert.
79869
79870 2005-10-11  Bruno Haible  <bruno@clisp.org>
79871
79872         * lib/c-strcasestr.h: New file, from GNU gettext.
79873         * lib/c-strcasestr.c: New file, from GNU gettext.
79874
79875 2005-10-11  Bruno Haible  <bruno@clisp.org>
79876
79877         * lib/c-strcase.h: New file, from GNU gettext.
79878         * lib/c-strcasecmp.c: New file, from GNU gettext.
79879         * lib/c-strncasecmp.c: New file, from GNU gettext.
79880
79881 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * modules/mempcpy (License): GPL -> LGPL.
79884         * modules/strchrnul (License): Likewise.
79885         * modules/sysexits (License): Likewise.
79886
79887 2005-10-08  Simon Josefsson  <jas@extundo.com>
79888
79889         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79890
79891 2005-10-07  Simon Josefsson  <jas@extundo.com>
79892
79893         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79894
79895 2005-10-06  Simon Josefsson  <jas@extundo.com>
79896
79897         * tests/test-hmac-md5.c: New file.
79898
79899         * modules/hmac-md5-tests: New file.
79900
79901         * modules/hmac-md5: New file.
79902
79903 2005-10-06  Simon Josefsson  <jas@extundo.com>
79904
79905         * m4/hmac-md5.m4: New file.
79906
79907         * m4/memxor.m4: Require gl_C_RESTRICT.
79908
79909 2005-10-06  Simon Josefsson  <jas@extundo.com>
79910
79911         * lib/memxor.c (memxor): Avoid casts and warnings.
79912
79913 2005-10-06  Simon Josefsson  <jas@extundo.com>
79914
79915         * lib/hmac-md5.c: New file.
79916
79917         * lib/hmac.h: New file.
79918
79919 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79920
79921         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79922         promotes to int, not unsigned int, to catch the AIX 5.3
79923         compiler bug.
79924
79925 2005-10-05  Simon Josefsson  <jas@extundo.com>
79926
79927         * modules/memxor: New file.
79928
79929         * modules/iconv (Files): Move config.rpath to havelib, it is used
79930         there.
79931
79932         * modules/havelib (Files): Add config.rpath.
79933
79934 2005-10-05  Simon Josefsson  <jas@extundo.com>
79935
79936         * m4/memxor.m4: New file.
79937
79938 2005-10-05  Simon Josefsson  <jas@extundo.com>
79939
79940         * lib/memxor.c (memxor): Fix compiler error.
79941
79942         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79943         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79944
79945         * lib/memxor.h, lib/memxor.c: New files.
79946
79947         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79948         we assume all systems have it, suggested by Jim Meyering
79949         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79950         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79951         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79952         same reasons.
79953
79954 2005-10-05  Simon Josefsson  <jas@extundo.com>
79955
79956         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79957
79958 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79959
79960         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79961         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79962         needed, since the source code now assumes these .h files.
79963
79964 2005-10-05  Derek Price  <derek@ximbiot.com>
79965
79966         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79967
79968 2005-10-05  Bruno Haible  <bruno@clisp.org>
79969
79970         * modules/stdint (License): Change to LGPL.
79971
79972 2005-10-04  Simon Josefsson  <jas@extundo.com>
79973
79974         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79975         D. Baushke" <mdb@gnu.org>.
79976
79977 2005-10-04  Bruno Haible  <bruno@clisp.org>
79978
79979         * lib/verify.h (verify_true): Provide alternative definition for C++.
79980
79981 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79982
79983         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79984         (SSIZE_MAX): New macro, if not already defined.
79985         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79986         than 2 GiB.
79987
79988 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79989
79990         Sync from coreutils.
79991         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79992         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79993         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79994         ULLONG_MAX doesn't work with 2.7.2.1.
79995
79996 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79999         From Ben Pfaff.
80000
80001         * modules/exclude (Depends-on): Depend on verify.
80002         * modules/strtoimax (Depends-on): Likewise.
80003         * modules/utimecmp (Depends-on): Likewise.
80004
80005 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80006
80007         * lib/exclude.c: Include verify.h.
80008         (verify): Remove.  All callers changed to use verify.h's version.
80009         * lib/strtoimax.c: Likewise.
80010         * lib/utimecmp.c: Likewis.e
80011
80012         Sync from coreutils.
80013         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80014         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80015         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80016         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80017         bother returning ENOSYS if settimeofday or stime fails; just let
80018         them return whatever errno they want to return.
80019         * lib/utimens.c: Include unistd.h, for dup2.
80020         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80021         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80022
80023 2005-10-02  Jim Meyering  <jim@meyering.net>
80024
80025         Sync from coreutils.
80026         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80027         from glibc-2.2.5 that fails for read-only files.
80028
80029 2005-10-02  Jim Meyering  <jim@meyering.net>
80030
80031         Sync from coreutils.
80032         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80033         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80034         `#if HAVE_CONFIG_H'.
80035         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80036         Remove AT_FDCWD test.
80037         Do not consume the fd unless successful.
80038         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80039         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80040         block, so that we don't even try to compile it if settimeofday is
80041         available.  This works around a compilation failure on OSF1 V5.1,
80042         due to stime requiring a `long int*' while tv_sec is `int'.
80043
80044 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80045
80046         Sync from coreutils.
80047         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80048         against `yes', rather than just testing for nonempty.
80049
80050 2005-10-01  Simon Josefsson  <jas@extundo.com>
80051
80052         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80053         and Darwin.
80054
80055         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80056         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80057         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80058         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80059         Check if struct addrinfo is declared.
80060
80061 2005-10-01  Simon Josefsson  <jas@extundo.com>
80062
80063         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80064         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80065         AI_* and EAI_* definitions.  Protect function declarations.
80066
80067 2005-10-01  Jim Meyering  <jim@meyering.net>
80068
80069         Sync from coreutils.
80070
80071         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80072         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80073         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80075         in the inet and nsl libraries.  Required on Solaris 5.7.
80076
80077 2005-10-01  Jim Meyering  <jim@meyering.net>
80078
80079         Sync from coreutils.
80080         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80081         in the inet and nsl libraries.  Required on Solaris 5.7.
80082
80083 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80084
80085         * lib/getdelim.c (getdelim): Remove unused variables.
80086
80087 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80088
80089         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80090         so that the code works even with ancient cpp.  Portability problem
80091         with GCC 2.7.2.1 reported by Thomas M.Ott.
80092
80093 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80094
80095         * modules/regex (Depends-on): Add strcase.
80096
80097         * modules/gethostname (Licence): Change from GPL to LGPL, since
80098         gethostname.c is a trivial implementation of a standard library
80099         function.
80100         * modules/poll (License): Change from GPL to LGPL, since it's
80101         derived from LGPL code.
80102
80103 2005-09-27  Jim Meyering  <jim@meyering.net>
80104
80105         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80106         HAVE_CONFIG_H.
80107
80108         * lib/intprops.h (signed_type_or_expr__): Define.
80109         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80110         for unsigned types.
80111
80112 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80113
80114         * lib/verify.h (verify_expr): Remove, replacing with:
80115         (verify_true): New macro that returns true instead of void.
80116         (verify_type__): Remove.
80117         (verify): Use verify_true rather than verify_type__.
80118
80119 2005-09-26  Bruno Haible  <bruno@clisp.org>
80120
80121         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80122         is necessary.
80123         (lib_SOURCES): Remove mbchar.c.
80124         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80125         (Files): Add m4/mbrtowc.m4.
80126         * modules/mbiter: Likewise.
80127         * modules/mbuiter: Likewise.
80128
80129 2005-09-26  Bruno Haible  <bruno@clisp.org>
80130
80131         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80132         compile mbchar.c if they are not both present.
80133         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80134         * m4/mbiter.m4 (gl_MBITER): Likewise.
80135         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80136         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80137         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80138
80139 2005-09-25  Jim Meyering  <jim@meyering.net>
80140
80141         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80142         also uses socklen_t.
80143
80144 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80145
80146         * lib/utimens.c (ENOSYS): Define if not already defined.
80147         (futimens): Support having a null PATH if the file descriptor
80148         is nonnegative.
80149
80150         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80151         Remove.
80152         (__attribute): Define to empty unless GCC 3.1 or later.
80153         This works around a core dump on OpenBSD 3.4, which has GCC
80154         2.95.3, which dumps core when given __attribute__(()).  It also
80155         simplifies other tests, since we really don't want to bother with
80156         worrying about which ancient version of GCC supported what.
80157         Original problem reported by Yoann Vandoorselaere, with part of
80158         the fix suggested by Derek Price.
80159
80160 2005-09-24  Jim Meyering  <jim@meyering.net>
80161
80162         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80163         so we can once again use a positive bitfield width of 1 -- now we
80164         don't have to explain why we were using a bitfield width of 2.
80165
80166 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80169         and similarly for the other external symbols.  Problem reported
80170         by James Gallager.
80171
80172         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80173         bug reported by Jim Meyering.
80174
80175         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80176         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80177         not needed, since socklen is a prerequisite module.
80178
80179 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80180
80181         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80182         Problem reported by Eric Blake.
80183         (getaddrinfo): Initialize se so that it's not garbage.
80184         Redo internal storage allocation so that it doesn't make unportable
80185         assumptions about alignment.
80186         Fix a memory leak.
80187
80188         * lib/utimens.c (futimens): Use futimesat if available.
80189         Prefer it to futimes since it doesn't have the futimes bug.
80190
80191         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80192         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80193         Instead, declare a function that returns a pointer to an array,
80194         and use verify_type__ to declare the size of the array.
80195         Problem and germ of a solution reported by Bruno Haible.
80196         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80197         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80198
80199 2005-09-23  Jim Meyering  <jim@meyering.net>
80200
80201         Sync from coreutils.
80202         Correct build failure (socklen_t not defined) on at least
80203         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80204         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80205
80206 2005-09-23  Jim Meyering  <jim@meyering.net>
80207
80208         * modules/getaddrinfo (Depends-on): Add socklen.
80209
80210 2005-09-23  Bruno Haible  <bruno@clisp.org>
80211
80212         * tests/test-verify.c: New file.
80213
80214 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80215
80216         Sync from coreutils.
80217
80218         * modules/argmatch (Depends-on): Add verify.
80219         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80220         unistd-safer.
80221         * modules/save-cwd (Depends-on): Likewise.
80222
80223         * modules/openat (Files): Add lib/openat-die.c.
80224         (Depends-on): Remove error, exitfail.
80225         Add dirname.
80226
80227         * modules/verify: New file.
80228         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80229         with "verify" module.
80230
80231 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80232
80233         Sync from coreutils.
80234
80235         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80236         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80237         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80238         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80239         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80240         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80241         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80242         Don't bother checking for string.h, stdlib.h, unistd.h.
80243         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80244         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80245         module's job.
80246         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80247         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80248
80249         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80250         (gl_GETDATE): Use it.
80251
80252         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80253
80254 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80255
80256         Sync from coreutils.
80257
80258         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80259         stat-time.h.
80260         * lib/argmatch.h: Include verify.h
80261         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80262         (ARGMATCH_ASSERT): Remove; unused.
80263         * lib/canonicalize.c: Assume STDC_HEADERS.
80264         * lib/exclude.c: Include "strcase.h".
80265         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80266         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80267         and stdio-safer.h.
80268         (getusershell): Call fopen, not fopen_safer.
80269         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80270         Do not include unistd-safer.h.
80271         (save_cwd): Don't call fd_safer; no longer needed
80272         now that we include fcntl--.h.
80273
80274         * lib/getdate.y (relative_time): New type.
80275         (RELATIVE_TIME_0): New constant.
80276         (parser_control): Use relative_time instead of doing it ourselves.
80277         (%union): Add new relative_time rel member.
80278         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80279         Now typeless.
80280         (relunit, relunit_snumber): Now of type rel.
80281         (zone, rel, relunit, get_date): Adjust to above changes.
80282
80283         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80284         Do not include unistd-safer.h.
80285         (getloadavg): Don't call fd_safer; no longer needed
80286         now that we include fcntl--.h.
80287
80288         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80289         (make_dir_parents): Treat ENOSYS like EEXIST.
80290
80291         Improve quality of diagnostics on restore_cwd failure.
80292         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80293         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80294         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80295         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80296         each time through the loop.  Do not diagnose restore_cwd failure;
80297         that is the caller's job (and perhaps the caller does not care).
80298
80299         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80300         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80301         If the file already exists but is not a directory, don't bother
80302         to try to make its parents.
80303         Close potential file descriptor leak if we can't chdir("/") (!).
80304         Don't always return true if chdir($PWD) fails; return true only
80305         if the requested action was done successfully (except for the
80306         chdir($PWD)).
80307         Don't log final directory unless we actually made it.
80308         Refactor to avoid duplicate code to fix up permissions.
80309         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80310
80311         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80312         to make it a bit faster and (I hope) clearer.
80313         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80314         Fix bug in formats like %2N.
80315
80316         * lib/verify.h: New file.
80317
80318 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         Sync from coreutils.
80321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80322
80323 2005-09-22  Jim Meyering  <jim@meyering.net>
80324
80325         Sync from coreutils.
80326
80327         * m4/lstat.m4 (gl_FUNC_LSTAT):
80328         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80329         Remove obsolete comment.
80330         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80331         * m4/xstrtod.m4: Likewise.
80332
80333         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80334
80335 2005-09-22  Jim Meyering  <jim@meyering.net>
80336
80337         Sync from coreutils.
80338
80339         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80340
80341         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80342         the .tm_year member, since otherwise gcc-4.0 would now warn about
80343         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80344
80345         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80346         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80347
80348         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80349         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80350         when run in a time zone for which daylight savings time is in effect
80351         for the starting date.
80352
80353         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80354         stop us from restricting permissions of just-created absolute-named
80355         directories.
80356         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80357         to restore initial working directory.
80358         * lib/mkdir-p.c (make_dir_parents): New parameter:
80359         different_working_dir, to tell caller if/when we change the working
80360         directory and are unable to return to the initial one.
80361         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80362         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80363         `return false'.  This fixes a bug introduced on 2004-07-30.
80364
80365         * lib/openat.c (fdopendir): Be sure to close the supplied
80366         file descriptor before returning.  This makes our replacement
80367         implementation a little closer to Solaris's, where fdopendir
80368         ties the file descriptor to the returned DIR* pointer.
80369         * lib/openat.c (unlinkat): New function.
80370         * lib/openat.h (unlinkat): Add prototype.
80371         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80372         (openat_restore_fail): Rename from openat_restore_die.
80373         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80374
80375         Provide an alternative to exiting immediately upon save_cwd or
80376         restore_cwd failure.  Now, an application can arrange e.g.,
80377         to perform a longjump in that case.
80378         * lib/openat.c: Include dirname.h.
80379         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80380         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80381         and openat_restore_die rather than calling error directly.
80382         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80383
80384         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80385         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80386         define.
80387
80388         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80389         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80390                             int utc, int nanoseconds);
80391         Background:
80392         date should not have to allocate a megabyte of virtual memory to
80393         handle a format argument like +%1048575T.  When implemented with
80394         strftime, it must allocate such a buffer, use strftime to fill it
80395         in, print it, then free it.
80396         With fprintftime, it simply prints everything and exits.
80397         With no need for memory allocation, that's one fewer way to fail.
80398         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80399         optional field width, not before, so we accept %9:z, not %:9z.
80400         (my_strftime): Be sure to use L_('x') for literals.
80401
80402         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80403         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80404         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80405         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80406         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80407         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80408         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80409         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80410         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80411         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80412         * lib/xgethostname.c, lib/xreadlink.c:
80413         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80414
80415         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80416         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80417         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80418         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80419         and don't include <sys/file.h>).
80420
80421 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80422
80423         Sync from coreutils.
80424
80425         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80426         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80427         [!LDAV_DONE]: Avoid unused variable warning.
80428
80429 2005-09-21  Bruno Haible  <bruno@clisp.org>
80430
80431         * lib/unicodeio.h (unicode_to_mb): New declaration.
80432
80433 2005-09-20  Derek Price  <derek@ximbiot.com>
80434
80435         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80436         getaddrinfo.h.
80437
80438 2005-09-20  Bruno Haible  <bruno@clisp.org>
80439
80440         * gnulib-tool: Remove trailing slashes from the values specified for
80441         --source-base, --m4-base, --tests-base, --aux-dir.
80442         Suggested by Simon Josefsson <jas@extundo.com>.
80443
80444 2005-09-20  Bruno Haible  <bruno@clisp.org>
80445
80446         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80447         func_modules_to_filelist, func_import, func_create_testdir): Make all
80448         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80449         change when gnulib-tool is invoked in a different locale.
80450
80451 2005-09-19  Simon Josefsson  <jas@extundo.com>
80452
80453         * m4/socklen.m4: Fix typo.
80454
80455 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80456
80457         Use a consistent style for including <config.h>.
80458         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80459         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80460         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80461         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80462         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80463         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80464         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80465         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80466         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80467         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80468         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80469         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80470         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80471         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80472         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80473         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80474         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80475         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80476         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80477         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80478         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80479         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80480         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80481         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80482         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80483         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80484         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80485         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80486         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80487         lib/xstrtoumax.c, lib/yesno.c:
80488         Standardize inclusion of config.h.
80489         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80490         lib/inttostr.h:  Removed inclusion of config.h from header files.
80491         * lib/inttostr.c:  Adjusted in-tree users.
80492         * lib/timespec.h: Remove superfluous warning to include config.h.
80493         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80494         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80495         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80496         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80497         config.h with HAVE_CONFIG_H.
80498
80499 2005-09-19  Jim Meyering  <jim@meyering.net>
80500
80501         * modules/pathmax (License): Change to LGPL.
80502
80503 2005-09-19  Derek Price  <derek@ximbiot.com>
80504
80505         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80506
80507 2005-09-19  Bruno Haible  <bruno@clisp.org>
80508
80509         * gnulib-tool (import): Provide default for --tests-base.
80510
80511 2005-09-19  Bruno Haible  <bruno@clisp.org>
80512
80513         * doc/quote.texi: New file, extracted from gnulib.texi.
80514         * doc/ctime.texi: New file, extracted from gnulib.texi.
80515         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80516         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80517         * doc/gnulib.texi: Include them.
80518
80519 2005-09-18  Bruno Haible  <bruno@clisp.org>
80520
80521         Portability fix.
80522         * gnulib-tool (func_readlink): New function.
80523         (func_ln_if_changed): Use it.
80524
80525 2005-09-18  Bruno Haible  <bruno@clisp.org>
80526
80527         * gnulib-tool: Support --with-tests also with --import.
80528         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80529         (func_import): Use variables $testsbase and $inctests. Emit a
80530         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80531         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80532         SUBDIRS += $testsdir.
80533         (func_create_testdir): Update.
80534
80535 2005-09-18  Bruno Haible  <bruno@clisp.org>
80536
80537         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80538         instead of $dry_run.
80539         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80540         (func_ln_if_changed): Don't handle dry-run here.
80541         (func_import): In dry-run mode, detect more precisely which actions
80542         would be performed, and don't use "...ing" verbs.
80543
80544 2005-09-18  Bruno Haible  <bruno@clisp.org>
80545
80546         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80547         (func_import): Use join on two temporary files instead of three nested
80548         loops, in order to determine which files are new or old.
80549
80550 2005-09-18  Bruno Haible  <bruno@clisp.org>
80551
80552         * gnulib-tool (func_import): Comment out code that spits out the
80553         new files with --dry-run.
80554
80555 2005-09-18  Bruno Haible  <bruno@clisp.org>
80556
80557         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80558
80559 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80560
80561         * lib/stat-time.h: New file.
80562         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80563         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80564         in a different way.
80565         (timespec_cmp): New function.
80566         * lib/utimecmp.c: Include stat-time.h.
80567         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80568         members exist, not on the obsolescent ST_MTIM_NSEC.
80569         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80570
80571 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80572
80573         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80574
80575 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80576
80577         * MODULES.html.sh (File system functions): Add stat-time.
80578         * modules/stat-time: New file.
80579         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80580         is now done in a different way, by the stat-time module.
80581         * modules/utimecmp (Depends-on): Add stat-time.
80582
80583 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80584
80585         * m4/st_mtim.m4: Remove.  Superseded by...
80586         * m4/stat-time.m4: New file.
80587         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80588         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80589
80590 2005-09-15  Derek Price  <derek@ximbiot.com>
80591
80592         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80593
80594 2005-09-15  Derek Price  <derek@ximbiot.com>
80595
80596         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80597         * lib/regex_internal.c: Ditto, using this...
80598         (__GNUC_PREREQ): ...new macro.
80599         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80600         using...
80601         (__GNUC_PREREQ): ...this new macro.
80602
80603         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80604
80605 2005-09-15  Derek Price  <derek@ximbiot.com>
80606             Paul Eggert  <eggert@cs.ucla.edu>
80607
80608         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80609         changes, consolidating in...
80610         * lib/regex_internal.h: ...this file.
80611
80612 2005-09-13  Jim Meyering  <jim@meyering.net>
80613
80614         * lib/canon-host.c: Filter through gnu indent and reword comments
80615         slightly.
80616         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80617
80618 2005-09-13  Derek Price  <derek@ximbiot.com>
80619
80620         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80621         failure.
80622         Reported by Jim Meyering  <jim@meyering.net>.
80623
80624 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80625
80626         * lib/base64.c: Typo.
80627         (base64_encode): Put b64str in initialized data section.
80628
80629 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80630
80631         Merge glibc and coreutils changes into gnulib, plus a few
80632         extra fixes.
80633         * lib/md5.c: Use #error rather than a string.
80634         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80635         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80636         (__attribute__): Define to empty for non recent-GCC.
80637         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80638         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80639         Renamed from their non-__ counterparts, with new macros replacing
80640         them if not _LIBC.  Add __THROW attribute.
80641         (rol): Remove.
80642         (struct md5_ctx): Align buffer if using GCC.
80643         * lib/sha1.h (struct sha1_ctx): Likewise.
80644         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80645         The old name was backwards.
80646         (NOTSWAP): Remove; not used.
80647         (rol): New macro, moved here from md5.h.
80648         (sha1_process_block): Remove a FIXME that doesn't make sense.
80649
80650 2005-09-12  Derek Price  <derek@ximbiot.com>
80651
80652         Return usable errors from canon-host.
80653         * lib/canon-host.h: New file.
80654         * lib/canon-host.c (canon_host): Wrap...
80655         (canon_host_r): ...this new function, which now relies exclusively on
80656         getaddrinfo.
80657         (ch_strerror): New function.
80658         (last_cherror): New global.
80659         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80660         interface.
80661         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80662         void *.
80663         (freeaddrinfo): Free ai->ai_canonname when set.
80664
80665 2005-09-12  Derek Price  <derek@ximbiot.com>
80666
80667         Make canon-host require getaddrinfo.
80668         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80669         AC_LIBSOURCE canon-host.h.  Call...
80670         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80671         gl_GETADDRINFO.
80672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80673
80674 2005-09-12  Derek Price  <derek@ximbiot.com>
80675
80676         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80677         LGPL.
80678         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80679
80680 2005-09-12  Derek Price  <derek@ximbiot.com>
80681
80682         * lib/gai_strerror.c: Include config.h when available.  Include
80683         getaddrinfo.h before other headers to test interface.
80684         Reported by Larry Jones <lawrence.jones@ugs.com>.
80685
80686 2005-09-12  Derek Price  <derek@ximbiot.com>
80687             Paul Eggert  <eggert@cs.ucla.edu>
80688
80689         * modules/glob (Files): Add glob-libc.h.
80690
80691 2005-09-12  Derek Price  <derek@ximbiot.com>
80692             Paul Eggert  <eggert@cs.ucla.edu>
80693
80694         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80695         glob_.h, glob-libc.h.
80696         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80697
80698 2005-09-12  Derek Price  <derek@ximbiot.com>
80699             Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80702         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80703         protecting things that should be done only in gnulib contexts.
80704         * lib/glob_.h: New file, containing only the glob things needed for
80705         gnulib.
80706         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80707         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80708         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80709         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80710         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80711         and to respect the namespace rules better.
80712
80713 2005-09-08  Simon Josefsson  <jas@extundo.com>
80714
80715         * modules/socklen: New file.
80716
80717 2005-09-08  Simon Josefsson  <jas@extundo.com>
80718
80719         * m4/socklen.m4: New file.
80720
80721 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80722
80723         * modules/utimens (Files): Add m4/utimbuf.m4, since
80724         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80725         Reported by Sergey Poznyakoff.
80726
80727 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80728
80729         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80730         definitions, since that's the preferred style in glibc.
80731         Fix a minor spacing issue, and update copyright notice to match
80732         glibc's.
80733
80734 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80735
80736         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80737
80738 2005-09-06  Simon Josefsson  <jas@extundo.com>
80739
80740         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80741         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80742
80743 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80744
80745         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80746         warning.
80747
80748 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80749
80750         * config/srclist.txt: Add glibc bug 1302.
80751
80752 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80753
80754         Change bitset word type from unsigned int to unsigned long int,
80755         as this has better performance on typical 64-bit hosts.
80756         Port bitset code to hosts with unusual word sizes.
80757         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80758         (build_collating_symbol):
80759         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80760         argument is a bitset.  This is merely a style issue, but it makes
80761         it clearer that an entire array is expected.
80762         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80763         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80764         Port to the case where bitset_word is not the same as unsigned int.
80765         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80766         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80767         Likewise.
80768         * lib/regexec.c (check_dst_limits_calc_pos_1,
80769         check_subexp_matching_top):
80770         (build_trtable, group_nodes_into_DFAstates):
80771         Likewise.
80772         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80773         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80774         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80775         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80776         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80777         * lib/regcomp.c (optimize_subexps, lower_subexp):
80778         Work even if bitset_word has holes in its bitwise representation.
80779         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80780         * lib/regexec.c (check_dst_limits_calc_pos_1,
80781         check_subexp_matching_top):
80782         Likewise.
80783         * lib/regex_internal.c (re_string_reconstruct):
80784         Don't assume UCHAR_MAX == 255.
80785         * lib/regex_internal.h (bitset_set_all): Likewise.
80786         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80787         All uses changed.
80788         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80789         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80790         All uses changed.
80791         (BITSET_WORD_MAX): New macro.
80792         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80793         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80794         (bitset_empty, bitset_copy):
80795         Prefer sizeof (bitset) to multiplying it out ourselves.
80796         (bitset_not_merge): Remove; unused.
80797         (bitset_contain): Return bool, not unsigned int with one bit on.
80798         All callers changed.
80799         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80800         alignment than re_node_set; do this by defining a new internal
80801         type struct dests_alloc and using it to allocate memory.
80802
80803 2005-09-05  Bruno Haible  <bruno@clisp.org>
80804
80805         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80806         links.
80807
80808 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80809
80810         * modules/size_max (Makefile.am): Add size_max.h
80811
80812 2005-09-04  Derek Price  <derek@ximbiot.com>
80813
80814         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80815
80816 2005-09-03  Simon Josefsson  <jas@extundo.com>
80817
80818         * gnulib-tool: Fix typo.
80819
80820 2005-09-03  Simon Josefsson  <jas@extundo.com>
80821
80822         * config/srclist.txt: Add glibc bug 1293.
80823
80824 2005-09-03  Derek Price  <derek@ximbiot.com>
80825
80826         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80827         From Larry Jones <lawrence.jones@ugs.com>.
80828
80829 2005-09-02  Simon Josefsson  <jas@extundo.com>
80830
80831         * modules/socklen: New file.
80832
80833 2005-09-02  Simon Josefsson  <jas@extundo.com>
80834
80835         * modules/havelib: New module.
80836
80837         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80838         Use havelib.
80839
80840 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80841
80842         Check for arithmetic overflow when calculating sizes, to prevent
80843         some buffer-overflow issues.  These patches are conservative, in the
80844         sense that when I couldn't determine whether an overflow was possible,
80845         I inserted a run-time check.
80846         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80847         macros.
80848         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80849         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80850         (re_xnrealloc, re_x2nrealloc): New inline functions.
80851         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80852         parse_bracket_exp):
80853         (build_equiv_class, build_charclass): Check for arithmetic overflow
80854         in size expression calculations.
80855         * lib/regex_internal.c (re_string_realloc_buffers):
80856         (build_wcs_upper_buffer, re_node_set_add_intersect):
80857         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80858         (re_dfa_add_node, register_state): Likewise.
80859         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80860         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80861         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80862         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80863
80864 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80865
80866         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80867         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80868
80869 2005-09-02  Bruno Haible  <bruno@clisp.org>
80870
80871         Support for lib vs. lib64 distinction on biarch platforms.
80872         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80873         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80874         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80875
80876 2005-09-02  Bruno Haible  <bruno@clisp.org>
80877
80878         * gnulib-tool (import): In the other first-use case, provide defaults
80879         as well.
80880
80881 2005-09-02  Bruno Haible  <bruno@clisp.org>
80882
80883         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80884         patches not yet found in the latest gettext release.
80885
80886 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80887
80888         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80889         to avoid a collision with bits/local_lim.h in glibc.
80890         All uses changed.  Problem reported by Dmitry V. Levin in
80891         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80892
80893         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80894         bugs in int versus size_t comparisons.
80895         (re_string_context_at): Fix bug where the code assumed that
80896         Idx is signed.
80897
80898         Use bool where appropriate.
80899         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80900         All callers changed.
80901         (calc_eclosure_iter): Likewise, for ROOT arg.
80902         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80903         (build_charclass_op): Likewise, for NON_MATCH arg.
80904         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80905         (re_string_construct_common): Likewise, for ICASE arg.
80906         * lib/regexec.c (re_search_2_stub, re_search_stub):
80907         Likewise, for RET_LEN arg.
80908         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80909         (set_regs): Likewise, for FL_BACKTRACK arg.
80910         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80911         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80912         (calc_eclosure_iter, parse_bracket_exp):
80913         Use bool for internal variables that are booleans.
80914         * lib/regexec.c (re_search_internal, check_matching,
80915         proceed_next_node):
80916         (set_regs, build_sifted_states, sift_states_bkref):
80917         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80918         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80919         (find_collation_sequence_value):
80920         Likewise.
80921         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80922         (re_node_set_compare):
80923         Return bool, not int. All callers changed.
80924         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80925         (build_trtable, check_node_accept): Likewise.
80926         * lib/regex_internal.h: Include stdbool.h.
80927
80928         Fix bugs uncovered when converting to bool.
80929         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80930         failure instead of charging ahead blindly.
80931         * lib/regex_internal.c (register_state): Likewise.
80932         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80933         for freeing internal storage.
80934         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80935         bitset pieces used as boolean, to avoid undefined behavior
80936         on hosts that do int overflow checking.
80937
80938 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80939
80940         * config/srclist.txt: Add glibc bugs 1285-1287.
80941
80942 2005-09-01  Jim Meyering  <jim@meyering.net>
80943
80944         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80945         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80946         Require gl_STAT_MACROS, too.
80947
80948 2005-09-01  Bruno Haible  <bruno@clisp.org>
80949
80950         * gnulib-tool (import): In the first-use case, provide defaults.
80951
80952 2005-09-01  Bruno Haible  <bruno@clisp.org>
80953
80954         * gnulib-tool (func_import): Remove the .tmp files.
80955
80956 2005-09-01  Bruno Haible  <bruno@clisp.org>
80957
80958         * gnulib-tool (func_import): Fix handling of symbolic links.
80959
80960 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80963         old glibc regex code mishandles strings longer than 2**31 bytes.
80964         This patch fixes this when the regex code is used in gnulib
80965         (i.e., outside glibc).
80966
80967         This patch should not affect the use of the regex code inside
80968         glibc.  No doubt this problem also needs to be handled for glibc
80969         as well, but the result will be an incompatible change to the
80970         glibc ABI, and the old ABI will have to be supported too.  That
80971         can be the the subject for another patch.
80972
80973         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80974         governing whether the rest of this patch is active.  By default,
80975         the macro is disabled and the patch has no effect.
80976         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80977         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80978         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80979         (re_match_2, re_set_registers): Use the new types.
80980         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80981         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80982         New macros.
80983         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80984         (re_string_context_at, bin_tree_t, re_dfastate_t):
80985         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80986         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80987         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80988         (re_string_char_size_at, re_string_wchar_at):
80989         (re_string_elem_size_at):
80990         Use the new types and macros to port to 64-bit hosts.
80991         Use unsigned types for internal values, so that the code
80992         mostly works even for arrays larger than SSIZE_MAX.
80993         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80994         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80995         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80996         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80997         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80998         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80999         (calc_inveclosure, parse_dup_op, build_range_exp):
81000         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81001         (fetch_number, create_token_tree, mark_opt_subexp):
81002         Likewise.
81003         * lib/regex_internal.c (re_string_construct_common,
81004         create_ci_newstate):
81005         (create_cd_newstate, re_string_allocate, re_string_construct):
81006         (re_string_realloc_buffers, build_wcs_upper_buffer):
81007         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81008         (re_string_reconstruct, re_string_peek_byte_case):
81009         (re_string_fetch_byte_case, re_string_context_at):
81010         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81011         (re_node_set_init_copy, re_node_set_add_intersect):
81012         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81013         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81014         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81015         (re_acquire_state, re_acquire_state_context, register_state):
81016         Likewise.
81017         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81018         search_cur_bkref_entry):
81019         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81020         (re_search_internal, re_search_2_stub, re_search_stub)
81021         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81022         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81023         (update_cur_sifted_state, check_dst_limits):
81024         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81025         (check_subexp_limits, sift_states_bkref, merge_state_array):
81026         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81027         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81028         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81029         (expand_bkref_cache, check_node_accept_bytes):
81030         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81031         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81032         (acquire_init_state_context, check_halt_node_context):
81033         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81034         (sift_states_backward, clean_state_log_if_needed):
81035         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81036         (find_recover_state, transit_state_sb, transit_state_mb):
81037         (transit_state_bkref, build_trtable, match_ctx_clean):
81038         Likewise.
81039         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81040         to work around an assumption that REG_MISSING is negative.
81041
81042         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81043         (seek_collating_symbol_entry) [defined _LIBC]:
81044         (lookup_collation_sequence_value) [defined _LIBC]:
81045         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81046         Use prototypes rather than old-style function definitions.
81047         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81048         (transit_state_sb) [0]:
81049         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81050
81051         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81052         rm_eo.
81053
81054         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81055         (optimize_subexps, lower_subexp):
81056         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81057         since the signed shift might overflow.  Use 1u<<31 instead.
81058         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81059         Likewise.
81060         * lib/regexec.c (check_dst_limits_calc_pos_1,
81061         check_subexp_matching_top): Likewise.
81062
81063         * lib/regcomp.c (optimize_subexps, lower_subexp):
81064         Use CHAR_BIT rather than 8, for clarity.
81065         * lib/regexec.c (check_dst_limits_calc_pos_1):
81066         (check_subexp_matching_top): Likewise.
81067         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81068         have to worry about portability issues when shifting it left.
81069         Remove no-longer-needed test for table_size > 0.
81070         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81071         in a word, as the resulting behavior is undefined.
81072         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81073         in one case, a <= should have been an <, and in another case the
81074         whole test was missing.
81075         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81076         the standard name CHAR_BIT.
81077         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81078         this is not true on one's complement and signed-magnitude hosts.
81079
81080         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81081         next_last_offset.
81082         (struct re_dfa_t): Remove unused member states_alloc.
81083         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81084
81085 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81088         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81089         and large-file glibc and in 32-bit large-file Solaris.
81090
81091 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81092
81093         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81094         lengths fit in regoff_t; this isn't true if regoff_t is the same
81095         width as size_t.
81096         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81097         (= START + RANGE) instead of RANGE.  This avoids overflow
81098         problems when regoff_t is the same width as size_t.
81099         All callers changed.
81100         (re_search_2_stub): Check for overflow when adding the
81101         sizes of the two strings.
81102         (re_search_stub): Check for overflow when adding START
81103         to RANGE; if it occurs, substitute the extreme value.
81104
81105 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81106
81107         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81108
81109 2005-08-31  Jim Meyering  <jim@meyering.net>
81110
81111         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81112         a pointer-to-const.
81113         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81114         (register_state): Likewise.
81115         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81116         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81117         (group_nodes_into_DFAstates): Likewise.
81118
81119 2005-08-31  Jim Meyering  <jim@meyering.net>
81120
81121         * check-module: Add a FIXME comment.
81122
81123 2005-08-31  Eric Blake  <ebb9@byu.net>
81124
81125         * modules/unistd-safer (Files): Add unistd--.h.
81126         * modules/stdio-safer (Files): Add stdio--.h.
81127
81128 2005-08-31  Derek Price  <derek@ximbiot.com>
81129
81130         * lib/getdelim.c (getdelim): Return EOF on EOF.
81131         Reported by Larry Jones <lawrence.jones@ugs.com>.
81132
81133 2005-08-31  Bruno Haible  <bruno@clisp.org>
81134
81135         Avoid unnecessary diffs in the generated lib/Makefile.am.
81136         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81137         the generated files.
81138         (func_import): Don't set cmd.
81139
81140 2005-08-31  Bruno Haible  <bruno@clisp.org>
81141
81142         * lib/strstr.c: Include <stddef.h>, for NULL.
81143         * lib/strcasestr.c: Likewise.
81144         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81145
81146 2005-08-31  Bruno Haible  <bruno@clisp.org>
81147
81148         * gnulib-tool: New option --macro-prefix.
81149         (func_import): Use macro_prefix.
81150         (import): Handle option --macro-prefix.
81151
81152 2005-08-31  Bruno Haible  <bruno@clisp.org>
81153
81154         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81155         Also use new variables cached_lgpl, cached_libtool.
81156
81157 2005-08-31  Bruno Haible  <bruno@clisp.org>
81158
81159         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81160         always instantiating them.
81161
81162 2005-08-31  Bruno Haible  <bruno@clisp.org>
81163
81164         * gnulib-tool (func_import): Read the previous cached settings
81165         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81166         earlier added by gnulib but are now dropped. Warn when a gnulib file
81167         overwrites a non-gnulib file.
81168
81169 2005-08-31  Bruno Haible  <bruno@clisp.org>
81170
81171         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81172         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81173         projects that don't keep autogenerated files in CVS. Put into
81174         actioncmd only the specified modules, not the transitive closure.
81175
81176 2005-08-31  Bruno Haible  <bruno@clisp.org>
81177
81178         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81179         Create directories that shall be filled.
81180         (import): Don't look for gl_* macros in configure.ac. Recurse across
81181         all directories containing a gnulib-cache.m4 files, if meaningful.
81182
81183 2005-08-31  Bruno Haible  <bruno@clisp.org>
81184
81185         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81186         (import): Set seen_libtool when we see gl_LIBTOOL.
81187
81188 2005-08-31  Bruno Haible  <bruno@clisp.org>
81189
81190         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81191         declaration macro definitions from generated gnulib.m4.
81192
81193 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81194
81195         * lib/iconvme.h: Add prototype for iconv_alloc.
81196
81197 2005-08-29  Simon Josefsson  <jas@extundo.com>
81198
81199         * lib/iconvme.c: Fix errno.
81200
81201 2005-08-29  Bruno Haible  <bruno@clisp.org>
81202
81203         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81204         that it works when the directory contains spaces.
81205
81206 2005-08-29  Bruno Haible  <bruno@clisp.org>
81207
81208         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81209
81210 2005-08-29  Bruno Haible  <bruno@clisp.org>
81211
81212         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81213         Emit more advice.
81214
81215 2005-08-29  Bruno Haible  <bruno@clisp.org>
81216         and Stepan Kasal  <kasal@ucw.cz>
81217
81218         * check-module: If more parameters are given, check each of them
81219         separately; add more exceptions, as noted by Jim Meyering.
81220         (check_module): New procedure.
81221         (%exempt_header): Now contains all exceptions.
81222
81223 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81224
81225         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81226
81227 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81228
81229         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81230
81231 2005-08-28  Bruno Haible  <bruno@clisp.org>
81232
81233         * m4/gnulib-tool.m4: New file.
81234
81235 2005-08-27  Jim Meyering  <jim@meyering.net>
81236
81237         * modules/unistd-safer (Files): Add pipe-safer.c.
81238         * modules/fcntl-safer (Files): Add creat-safer.c.
81239
81240 2005-08-27  Jim Meyering  <jim@meyering.net>
81241
81242         * m4/stdlib-safer.m4: New file.  From coreutils.
81243         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81244         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81245         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81246         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81247         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81248
81249 2005-08-27  Jim Meyering  <jim@meyering.net>
81250
81251         * lib/fopen-safer.c: Merge minor changes from coreutils.
81252         * lib/dup-safer.c: Likewise.
81253         * lib/fd-safer.c: Likewise.
81254
81255         Merge from coreutils.
81256         * lib/stdio--.h: New file.
81257         * lib/stdlib--.h: New file.
81258         * lib/mkstemp-safer.c: New file.
81259
81260         GNU tar needs these.
81261         * lib/pipe-safer.c: New file.
81262         * lib/creat-safer.c: New file.
81263         * lib/fcntl--.h (creat): Define to creat_safer.
81264         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81265         * lib/unistd--.h (pipe): Define to pipe_safer.
81266         * lib/unistd-safer.h: Declare pipe_safer.
81267
81268 2005-08-26  Simon Josefsson  <jas@extundo.com>
81269
81270         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81271         Haible <bruno@clisp.org>.
81272
81273 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         * lib/regex_internal.h: Remove all references to
81276         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81277         or better.
81278         (bitset_not, bitset_merge, bitset_not_merge):
81279         (bitset_mask, re_string_allocate, re_string_construct):
81280         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81281         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81282         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81283         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81284         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81285         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81286         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81287         (re_acquire_state_context):
81288         Remove unnecessary forward decls.
81289         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81290         Put __attribute at function definition,
81291         now that the function decl has been removed.
81292         * lib/regex_internal.c (re_string_peek_byte_case):
81293         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81294         Likewise.
81295
81296 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81297
81298         * m4/regex.m4: Add AC_PREREQ(2.50).
81299         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81300
81301 2005-08-25  Simon Josefsson  <jas@extundo.com>
81302
81303         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81304         __fsetlocking.
81305
81306 2005-08-25  Simon Josefsson  <jas@extundo.com>
81307
81308         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81309         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81310         GLIBC specific code.
81311
81312 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81313
81314         Make regex safe for g++.  This fixes one real bug (an "err"
81315         that should have been "*err").  g++ problem reported by
81316         Sam Steingold.
81317         * lib/regex_internal.h (re_calloc): New macro, consistent with
81318         re_malloc etc.  All callers of calloc changed to use re_calloc.
81319         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81320         not int.  All callers changed.
81321         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81322         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81323         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81324         (find_recover_state): Change "err" to "*err"; this fixes what
81325         appears to be a real bug.
81326         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81327         versus int.
81328
81329 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81330
81331         * modules/regex (Depends-on): Add malloc, since the code
81332         assumes that !malloc(0) means failure.
81333
81334 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81335
81336         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81337
81338         alloca modernization/simplification for regex.
81339         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81340         needs to be at the start of the file, and can be moved into
81341         regex_internal.h and simplified.
81342         * lib/regex_internal.h: Include <alloca.h>.
81343         (__libc_use_alloca) [!defined _LIBC]: New macro.
81344         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81345         now works outside glibc.
81346
81347 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81348
81349         * config/srclist.txt: Add glibc bugs 1241, 1245.
81350
81351 2005-08-25  Jim Meyering  <jim@meyering.net>
81352
81353         * lib/open-safer.c: Include <config.h>.
81354         Otherwise, we'd lose LARGEFILE support in any file using
81355         e.g. "fcntl--.h"
81356
81357 2005-08-25  Bruno Haible  <bruno@clisp.org>
81358
81359         * m4/minmax.m4: Require autoconf 2.52.
81360         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81361         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81362         alternatives of translit over the alphabet.
81363         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81364
81365 2005-08-24  Simon Josefsson  <jas@extundo.com>
81366
81367         * tests/test-getpass.c: New file.
81368
81369 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81370
81371         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81372         for GNU regex features.
81373
81374 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81375
81376         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81377         * lib/regex.h (regerror): Likewise.
81378
81379         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81380         requires this.  (The code never needed it.)
81381
81382         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81383         All uses of recently-renamed identifiers changed to use the new,
81384         POSIX-compliant names.  The code will build and run just fine
81385         without these changes, but it's better to eat our own dog food
81386         and use the standard-conforming names.
81387
81388         * lib/regex.h: Fix a multitude of POSIX name space violations.
81389         These changes have an effect only for programs that define
81390         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81391         do not change anything for programs compiled in the normal way.
81392         Also, there is no effect on the ABI.
81393
81394         (_REGEX_SOURCE): New macro.
81395         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81396         defined and _GNU_SOURCE is not; this fixes a name space violation.
81397
81398         Rename the following macros to obey POSIX requirements.
81399         The old names are still visible as macros if _REGEX_SOURCE is defined.
81400         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81401         RE_BACKSLASH_ESCAPE_IN_LISTS.
81402         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81403         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81404         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81405         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81406         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81407         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81408         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81409         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81410         (REG_INTERVALS): renamed from RE_INTERVALS.
81411         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81412         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81413         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81414         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81415         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81416         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81417         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81418         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81419         RE_UNMATCHED_RIGHT_PAREN_ORD.
81420         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81421         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81422         (REG_DEBUG): renamed from RE_DEBUG.
81423         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81424         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81425         unusual, since we can't clash with the POSIX REG_ICASE.
81426         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81427         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81428         (REG_NO_SUB): renamed from RE_NO_SUB.
81429         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81430         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81431         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81432         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81433         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81434         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81435         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81436         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81437         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81438         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81439         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81440         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81441         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81442         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81443         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81444         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81445         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81446         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81447         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81448         (REG_FIXED): Renamed from REGS_FIXED.
81449         (REG_NREGS): Renamed from RE_NREGS.
81450
81451         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81452         of other REG_* macros, since POSIX says the user is allowed to
81453         #undef these macros selectively.
81454
81455         (reg_errcode_t): Update comment stating what other tables need
81456         to be consistent.
81457
81458         Rename the following enum values to obey POSIX requirements.
81459         The old names are still visible as macros.
81460         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81461         is not defined, since GNU is supposed to be a superset of POSIX as
81462         much as possible, and since we want reg_errcode_t to be a signed
81463         type for implementation consistency.
81464         (_REG_NOERROR): Renamed from REG_NOERROR.
81465         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81466         (_REG_BADPAT): Renamed from REG_BADPAT.
81467         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81468         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81469         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81470         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81471         (_REG_EBRACK): Renamed from REG_EBRACK.
81472         (_REG_EPAREN): Renamed from REG_EPAREN.
81473         (_REG_EBRACE): Renamed from REG_EBRACE.
81474         (_REG_BADBR): Renamed from REG_BADBR.
81475         (_REG_ERANGE): Renamed from REG_ERANGE.
81476         (_REG_ESPACE): Renamed from REG_ESPACE.
81477         (_REG_BADRPT): Renamed from REG_BADRPT.
81478         (_REG_EEND): Renamed from REG_EEND.
81479         (_REG_ESIZE): Renamed from REG_ESIZE.
81480         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81481         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81482         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81483         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81484         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81485
81486         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81487         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81488         changed.  But support the old name if the new one is not defined
81489         and if _REGEX_SOURCE.
81490
81491         Change the following member names in struct re_pattern_buffer.
81492         The old names are still supported if !_REGEX_SOURCE.
81493         The new names are always supported, regardless of _REGEX_SOURCE.
81494         (re_buffer): Renamed from buffer.
81495         (re_allocated): Renamed from allocated.
81496         (re_used): Renamed from used.
81497         (re_syntax): Renamed from syntax.
81498         (re_fastmap): Renamed from fastmap.
81499         (re_translate): Renamed from translate.
81500         (re_can_be_null): Renamed from can_be_null.
81501         (re_regs_allocated): Renamed from regs_allocated.
81502         (re_fastmap_accurate): Renamed from fastmap_accurate.
81503         (re_no_sub): Renamed from no_sub.
81504         (re_not_bol): Renamed from not_bol.
81505         (re_not_eol): Renamed from not_eol.
81506         (re_newline_anchor): Renamed from newline_anchor.
81507
81508         Change the following member names in struct re_registers.
81509         The old names are still supported if !_REGEX_SOURCE.
81510         The new names are always supported, regardless of _REGEX_SOURCE.
81511         (rm_num_regs): Renamed from num_regs.
81512         (rm_start): Renamed from start.
81513         (rm_end): Renamed from end.
81514
81515         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81516         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81517         Prepend __ to parameter names.
81518
81519         Undo yesterday's changes.
81520
81521 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81522
81523         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81524         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81525         lib/regex.c.
81526
81527 2005-08-24  Jim Meyering  <jim@meyering.net>
81528
81529         Sync from coreutils.
81530         * m4/fcntl-safer.m4: New file.
81531
81532         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81533         and object files for this module.
81534
81535 2005-08-24  Jim Meyering  <jim@meyering.net>
81536
81537         Sync from coreutils.
81538         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81539
81540 2005-08-24  Jim Meyering  <jim@meyering.net>
81541
81542         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81543         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81544
81545 2005-08-24  Jim Meyering  <jim@meyering.net>
81546
81547         * modules/fcntl-safer: New module.
81548         * modules/fts (Depends-on): Add fcntl-safer.
81549         * MODULES.html.sh (File descriptor based Input/Output):
81550         Add fcntl-safer.
81551
81552 2005-08-24  Bruno Haible  <bruno@clisp.org>
81553
81554         Support for unit test modules.
81555         * modules/README: Mention tests modules.
81556         * modules/TEMPLATE-TESTS: New file.
81557         * gnulib-tool: New options --extract-tests-module, --with-tests and
81558         --tests-base (unused for the moment).
81559         (testsbase, inctests): New variables.
81560         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81561         (func_verify_module): Exclude TEMPLATE-TESTS.
81562         (func_verify_nontests_module, func_verify_tests_module): New functions.
81563         (func_get_dependencies): Add implicit dependency for tests modules.
81564         (func_get_tests_module): New function.
81565         (func_modules_transitive_closure): When --with-tests was specified,
81566         include the unit tests as well, unless explicitly avoided.
81567         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81568         (func_emit_tests_Makefile_am): New function.
81569         (func_create_testdir): When --with-tests was specified, emit a
81570         tests/ directory.
81571         * MODULES.html.sh (Future developments): Update.
81572
81573 2005-08-24  Bruno Haible  <bruno@clisp.org>
81574
81575         * modules/tls-tests: New file.
81576         * tests/test-tls.c: New file, from GNU gettext.
81577
81578 2005-08-24  Bruno Haible  <bruno@clisp.org>
81579
81580         * modules/lock-tests: New file.
81581         * tests/test-lock.c: New file, from GNU gettext.
81582
81583 2005-08-24  Bruno Haible  <bruno@clisp.org>
81584
81585         * lib/lock.h: Add multiple inclusion guard.
81586         * lib/tls.h: Add multiple inclusion guard.
81587
81588 2005-08-24  Bruno Haible  <bruno@clisp.org>
81589
81590         * gnulib-tool: Add support for the --aux-dir option to
81591         --create-testdir, --create-megatestdir, --test, --megatest.
81592         (func_create_testdir, func_create_megatestdir): Optionally emit a
81593         AC_CONFIG_AUX_DIR directive.
81594         (create-testdir, create-megatestdir, test, megatest): Provide a
81595         default value for $auxdir.
81596
81597 2005-08-24  Bruno Haible  <bruno@clisp.org>
81598
81599         * gnulib-tool (import): Use compound statement instead of subshell
81600         where possible.
81601
81602 2005-08-24  Bruno Haible  <bruno@clisp.org>
81603
81604         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81605
81606 2005-08-24  Bruno Haible  <bruno@clisp.org>
81607
81608         * gnulib-tool (func_version): Update.
81609
81610 2005-08-24  Bruno Haible  <bruno@clisp.org>
81611
81612         * gnulib-tool (func_import, func_create_testdir,
81613         func_create_megatestdir): Quote all autoconf macro arguments.
81614
81615 2005-08-24  Bruno Haible  <bruno@clisp.org>
81616
81617         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81618         option --force, because --force causes the aclocal.m4 of each
81619         subdirectory to be newer than the corresponding config.h.in.
81620
81621 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81622
81623         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81624         All contents moved to gl_REGEX.
81625         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81626         assume that it does.
81627
81628 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81629
81630         * lib/regex.h (REG_NOSYS)
81631         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81632         Define, since POSIX requires it as of 2001.
81633         (_REG_ENOSYS)
81634         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81635         New private symbol, used to keep the enum signed in all cases.
81636         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81637         Youngman in
81638         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81639
81640         * lib/regex_internal.c (re_string_skip_chars, register_state):
81641         (calc_state_hash):
81642         Remove forward decls; no longer needed now that we use prototypes.
81643         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81644         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81645         (clean_state_log_if_needed): Likewise.
81646
81647 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * config/srclist.txt: Add glibc bugs 1231-1233.
81650
81651 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81652
81653         Fix problems reported by Sam Steingold in
81654         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81655         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81656         assumed that reg_errcode_t is a signed type, which is not
81657         necessarily true if _XOPEN_SOURCE is not defined.
81658         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81659         since some compilers warn about it otherwise.
81660
81661 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81662
81663         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81664         (init_word_char, create_initial_state, duplicate_node_closure):
81665         (fetch_token, peek_token_bracket, build_range_exp):
81666         (build_collating_symbol): Remove forward decls; no longer needed
81667         now that we use prototypes.
81668
81669         * lib/regcomp.c:
81670         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81671         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81672         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81673         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81674         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81675         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81676         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81677         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81678         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81679         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81680         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81681         (build_charclass, build_charclass_op, fetch_number, create_tree):
81682         (create_token_tree, mark_opt_subexp, duplicate_tree):
81683         Use prototypes rather than old-style definitions.
81684
81685         * lib/regex_internal.c:
81686         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81687         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81688         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81689         (re_string_reconstruct, re_string_peek_byte_case):
81690         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81691         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81692         (re_node_set_init_copy, re_node_set_add_intersect):
81693         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81694         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81695         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81696         (re_acquire_state, re_acquire_state_context, register_state):
81697         (create_ci_newstate, create_cd_newstate, free_state):
81698         Likewise.
81699         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81700         re_search_2):
81701         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81702         (re_search_internal, prune_impossible_nodes):
81703         (acquire_init_state_context, check_matching, static):
81704         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81705         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81706         (update_regs, sift_states_backward, build_sifted_states):
81707         (clean_state_log_if_needed, merge_state_array):
81708         (update_cur_sifted_state, add_epsilon_src_nodes):
81709         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81710         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81711         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81712         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81713         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81714         (check_arrival, check_arrival_add_next_nodes):
81715         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81716         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81717         (check_node_accept_bytes, check_node_accept, extend_buffers):
81718         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81719         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81720         (sift_ctx_init):
81721         Likewise.
81722
81723         * lib/regex_internal.h:
81724         (re_string_allocate, re_string_construct, re_string_reconstruct):
81725         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81726         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81727         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81728         (re_string_context_at, re_string_peek_byte_case):
81729         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81730         is defined, since we now use prototypes always.
81731
81732         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81733         C89 or better.  All uses removed.
81734
81735 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * config/srclist.txt: Add glibc bugs 1220-1227.
81738
81739 2005-08-20  Jim Meyering  <jim@meyering.net>
81740
81741         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81742         of unused local, dfa.
81743
81744 2005-08-20  Bruno Haible  <bruno@clisp.org>
81745
81746         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81747
81748 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81749
81750         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81751         (re_node_set_insert_last, re_dfa_add_node):
81752         Rename local variables to avoid GCC shadowing warnings.
81753
81754 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81755
81756         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81757         [defined lint]: Suppress bogus uninitialized-variable warnings.
81758
81759         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81760         and let the caller return REG_ESPACE if out of space.  This
81761         removes an uninitialied-variable warning with GCC 4.0.1, and also
81762         avoids taking the address of a local variable.  All callers
81763         changed.
81764
81765 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81766
81767         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81768         $LIBCSRC/posix/regexec.c.
81769         Add glibc bug 1217 for regcomp.c.
81770
81771 2005-08-19  Jim Meyering  <jim@meyering.net>
81772
81773         * lib/regexec.c (proceed_next_node): Redo local variables to
81774         avoid GCC shadowing warnings.
81775
81776 2005-08-18  Bruno Haible  <bruno@clisp.org>
81777
81778         * lib/strstr.c (strstr): Fix return value in multibyte case.
81779         * lib/strcasestr.c (strcasestr): Likewise.
81780
81781 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81782
81783         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81784
81785 2005-08-17  Jim Meyering  <jim@meyering.net>
81786
81787         Make the %s format (seconds since the epoch) work for a negative
81788         number and when used with a zero-padded field width, e.g. %015s.
81789
81790         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81791         label so that it precedes the code to set `digits'.  Otherwise,
81792         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81793         print `00-22'.  Now, it prints `-0022', as it should.
81794
81795 2005-08-17  Bruno Haible  <bruno@clisp.org>
81796
81797         * modules/strstr (Files): Add m4/mbrtowc.m4.
81798         (Depends-on): Add mbuiter.
81799
81800 2005-08-17  Bruno Haible  <bruno@clisp.org>
81801
81802         * modules/strcasestr: New file.
81803         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81804         strcasestr.
81805
81806 2005-08-17  Bruno Haible  <bruno@clisp.org>
81807
81808         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81809
81810 2005-08-17  Bruno Haible  <bruno@clisp.org>
81811
81812         * modules/mbuiter: New file.
81813         * MODULES.html.sh (Extended multibyte and wide character utilities):
81814         Add mbuiter.
81815
81816 2005-08-17  Bruno Haible  <bruno@clisp.org>
81817
81818         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81819         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81820
81821 2005-08-17  Bruno Haible  <bruno@clisp.org>
81822
81823         * m4/strcasestr.m4: New file.
81824
81825 2005-08-17  Bruno Haible  <bruno@clisp.org>
81826
81827         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81828         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81829
81830 2005-08-17  Bruno Haible  <bruno@clisp.org>
81831
81832         * lib/strcasestr.h: New file.
81833         * lib/strcasestr.c: New file.
81834
81835 2005-08-17  Bruno Haible  <bruno@clisp.org>
81836
81837         * lib/strcasecmp.c: Use mbuiter.h.
81838
81839 2005-08-17  Bruno Haible  <bruno@clisp.org>
81840
81841         * lib/mbuiter.h: New file.
81842
81843 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81844
81845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81846         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81847         and gl_GETOPT are both invoked via different paths (as happens
81848         with GNU tar CVS because it uses both argp and getopt), the former
81849         wins.
81850
81851 2005-08-16  Bruno Haible  <bruno@clisp.org>
81852
81853         * modules/tls: New file.
81854         * MODULES.html.sh (Multithreading): Add tls.
81855
81856 2005-08-16  Bruno Haible  <bruno@clisp.org>
81857
81858         * modules/strnlen1: New file.
81859         * MODULES.html.sh (String handling): Add strnlen1.
81860
81861 2005-08-16  Bruno Haible  <bruno@clisp.org>
81862
81863         * modules/strcase (Files): Add m4/mbrtowc.m4.
81864         (Depends-on): Add strnlen1, mbchar.
81865
81866 2005-08-16  Bruno Haible  <bruno@clisp.org>
81867
81868         * modules/mbiter: New file.
81869         * MODULES.html.sh (Extended multibyte and wide character utilities):
81870         Add mbiter.
81871
81872 2005-08-16  Bruno Haible  <bruno@clisp.org>
81873
81874         * modules/mbfile: New file.
81875         * MODULES.html.sh (Extended multibyte and wide character utilities):
81876         Add mbfile.
81877
81878 2005-08-16  Bruno Haible  <bruno@clisp.org>
81879
81880         * modules/mbchar: New file.
81881         * MODULES.html.sh (Extended multibyte and wide character utilities):
81882         New section.
81883
81884 2005-08-16  Bruno Haible  <bruno@clisp.org>
81885
81886         * m4/tls.m4: New file, from GNU gettext.
81887
81888 2005-08-16  Bruno Haible  <bruno@clisp.org>
81889
81890         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81891         always.
81892         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81893
81894 2005-08-16  Bruno Haible  <bruno@clisp.org>
81895
81896         * m4/mbiter.m4: New file.
81897
81898 2005-08-16  Bruno Haible  <bruno@clisp.org>
81899
81900         * m4/mbfile.m4: New file.
81901
81902 2005-08-16  Bruno Haible  <bruno@clisp.org>
81903
81904         * m4/mbchar.m4: New file.
81905
81906 2005-08-16  Bruno Haible  <bruno@clisp.org>
81907
81908         * lib/tls.h: New file, from GNU gettext.
81909         * lib/tls.c: New file, from GNU gettext.
81910
81911 2005-08-16  Bruno Haible  <bruno@clisp.org>
81912
81913         * lib/strnlen1.h: New file.
81914         * lib/strnlen1.c: New file.
81915
81916 2005-08-16  Bruno Haible  <bruno@clisp.org>
81917
81918         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81919         (mbi_init): Update.
81920         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81921         NUL byte, not after it.
81922
81923 2005-08-16  Bruno Haible  <bruno@clisp.org>
81924
81925         * lib/strcase.h (strcasecmp): Add note in comments.
81926         * lib/strncasecmp.c: Use code from strcasecmp.c.
81927         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81928         (strcasecmp): Work correctly in multibyte locales.
81929
81930 2005-08-16  Bruno Haible  <bruno@clisp.org>
81931
81932         * lib/mbiter.h: New file.
81933
81934 2005-08-16  Bruno Haible  <bruno@clisp.org>
81935
81936         * lib/mbfile.h: New file.
81937
81938 2005-08-16  Bruno Haible  <bruno@clisp.org>
81939
81940         * lib/mbchar.h: New file.
81941         * lib/mbchar.c: New file.
81942
81943 2005-08-16  Bruno Haible  <bruno@clisp.org>
81944
81945         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81946         the valid ones. Makes the comparison operations transitive:
81947         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81948         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81949
81950 2005-08-15  Simon Josefsson  <jas@extundo.com>
81951
81952         * modules/ssize_t (License): Change to 'unlimited'.
81953
81954         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81955
81956 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81957
81958         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81959         Add comments for each pending glibc patch.
81960
81961 2005-08-15  Bruno Haible  <bruno@clisp.org>
81962
81963         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81964         __cplusplus is defined.
81965
81966 2005-08-14  Jim Meyering  <jim@meyering.net>
81967
81968         Sync from coreutils.
81969
81970         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81971         Use the hash-table-based cycle-detection code not just when
81972         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81973         Reported by James Youngman in
81974         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81975         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81976         FTS_TIGHT_CYCLE_CHECK.
81977         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81978         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81979         once again.
81980         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81981         * lib/fts.c (fd_safer): Remove decl.
81982         Include fcntl--.h rather than unistd-safer.h
81983         (fts_safe_changedir): Don't call fd_safer; no longer needed
81984         now that we include fcntl--.h.
81985
81986 2005-08-12  Simon Josefsson  <jas@extundo.com>
81987
81988         * modules/getndelim2: Use ssize_t module.
81989         * modules/getnline: Likewise.
81990         * modules/safe-read: Likewise.
81991         * modules/xreadlink: Likewise.
81992
81993         * modules/ssize_t: New file.
81994
81995 2005-08-12  Simon Josefsson  <jas@extundo.com>
81996
81997         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81998
81999 2005-08-12  Simon Josefsson  <jas@extundo.com>
82000
82001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82002         ssize_t.
82003
82004 2005-08-12  Simon Josefsson  <jas@extundo.com>
82005
82006         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82007         readline, getdelim and check_version.
82008         (Support for systems lacking ISO C 99: Sizes of integer types):
82009         Add size_max.
82010
82011 2005-08-12  Bruno Haible  <bruno@clisp.org>
82012
82013         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82014
82015 2005-08-11  Simon Josefsson  <jas@extundo.com>
82016
82017         * modules/readline: New file.
82018
82019         * modules/strnlen (Files): Add strnlen.h.
82020
82021 2005-08-11  Simon Josefsson  <jas@extundo.com>
82022
82023         * m4/readline.m4: New file.
82024
82025 2005-08-11  Simon Josefsson  <jas@extundo.com>
82026
82027         * lib/readline.h, readline.c: New file.
82028
82029 2005-08-11  Simon Josefsson  <jas@extundo.com>
82030
82031         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82032         gl_AVOID.
82033
82034 2005-08-11  Bruno Haible  <bruno@clisp.org>
82035
82036         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82037
82038 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82039
82040         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82041
82042 2005-08-10  Simon Josefsson  <jas@extundo.com>
82043
82044         * tests/test-iconvme.c: New file.
82045
82046 2005-08-10  Simon Josefsson  <jas@extundo.com>
82047
82048         * m4/strnlen.m4: New file.
82049
82050         * m4/strndup.m4: Don't check for strnlen declaration, done in
82051         strnlen.m4.
82052
82053 2005-08-10  Simon Josefsson  <jas@extundo.com>
82054
82055         * lib/strndup.c: Use strnlen.h.
82056
82057         * lib/strnlen.h: New file.
82058
82059 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82060
82061         * README: Typos.
82062
82063 2005-08-02  Simon Josefsson  <jas@extundo.com>
82064
82065         * modules/readline: New file.
82066
82067 2005-08-02  Simon Josefsson  <jas@extundo.com>
82068
82069         * modules/getdelim: New file.
82070
82071         * modules/getline: Rewrite, don't use getndelim2.
82072
82073 2005-08-02  Simon Josefsson  <jas@extundo.com>
82074
82075         * m4/getline.m4: Separate out getdelim stuff into separate module.
82076
82077         * m4/getdelim.m4: New file.
82078
82079 2005-08-02  Simon Josefsson  <jas@extundo.com>
82080
82081         * lib/getline.h, getline.c: Rewrite.
82082
82083         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82084
82085 2005-07-31  Bruno Haible  <bruno@clisp.org>
82086
82087         * lib/lock.h (gl_lock_initializer): New macro.
82088         (gl_lock_define_initialized): Use it.
82089         (gl_rwlock_initializer): New macro.
82090         (gl_rwlock_define_initialized): Use it.
82091         (gl_recursive_lock_initializer): New macro.
82092         (gl_recursive_lock_define_initialized): Use it.
82093
82094 2005-07-30  Karl Berry  <karl@gnu.org>
82095
82096         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82097         Report from Ben Pfaff, regarding getopt.
82098
82099 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82100
82101         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82102         normal way.
82103         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82104         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82105         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82106         (gl_GETOPT): Use the new macros.  Most of the implementation
82107         is moved to the new macros.  This is for programs like Emacs
82108         that don't want all the functionality of gl_GETOPT.
82109
82110 2005-07-26  Bruno Haible  <bruno@clisp.org>
82111
82112         * m4/lock.m4: Update from GNU gettext.
82113
82114 2005-07-26  Bruno Haible  <bruno@clisp.org>
82115
82116         * lib/lock.h: Update from GNU gettext.
82117         * lib/lock.c: Update from GNU gettext.
82118
82119 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82120
82121         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82122         obsolescent AC_TRY_RUN.  Include the default includes files, for
82123         'exit'.
82124
82125 2005-07-24  Bruno Haible  <bruno@clisp.org>
82126
82127         * modules/visibility: New file.
82128         * MODULES.html.sh (Misc): Add visibility.
82129
82130 2005-07-24  Bruno Haible  <bruno@clisp.org>
82131
82132         * m4/visibility.m4: New file.
82133
82134 2005-07-24  Bruno Haible  <bruno@clisp.org>
82135
82136         * doc/visibility.texi: New file.
82137
82138 2005-07-22  Bruno Haible  <bruno@clisp.org>
82139
82140         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82141         $(ALLOCA_H), redundant through BUILT_SOURCES.
82142         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82143         redundant through BUILT_SOURCES.
82144         * modules/byteswap (Makefile.am): Remove explicit dependency on
82145         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82146         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82147         $(FNMATCH_H), redundant through BUILT_SOURCES.
82148         * modules/getopt (Makefile.am): Remove explicit dependency on
82149         $(GETOPT_H), redundant through BUILT_SOURCES.
82150         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82151         redundant through BUILT_SOURCES.
82152         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82153         redundant through BUILT_SOURCES.
82154         * modules/stdbool (Makefile.am): Remove explicit dependency on
82155         $(STDBOOL_H), redundant through BUILT_SOURCES.
82156         * modules/stdint (Makefile.am): Remove explicit dependency on
82157         $(STDINT_H), redundant through BUILT_SOURCES.
82158         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82159         Remove explicit dependency on $(SYSEXITS_H).
82160         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82161
82162 2005-07-18  Simon Josefsson  <jas@extundo.com>
82163
82164         * lib/check-version.c (check_version): Accept identical versions too.
82165
82166 2005-07-18  Bruno Haible  <bruno@clisp.org>
82167
82168         * modules/lock: New file.
82169         * MODULES.html.sh (Multithreading): New section.
82170
82171 2005-07-18  Bruno Haible  <bruno@clisp.org>
82172
82173         * m4/lock.m4: New file, from GNU gettext.
82174
82175 2005-07-18  Bruno Haible  <bruno@clisp.org>
82176
82177         * lib/lock.h: New file, from GNU gettext.
82178         * lib/lock.c: New file, from GNU gettext.
82179
82180 2005-07-18  Bruno Haible  <bruno@clisp.org>
82181
82182         * lib/lock.h (gl_once_t): New type.
82183         (gl_once_define, gl_once): New macros.
82184         * lib/lock.c (fresh_once): New variable.
82185         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82186         functions.
82187
82188 2005-07-16  Simon Josefsson  <jas@extundo.com>
82189
82190         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82191         workaround, suggested by Bruno.
82192
82193 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82194
82195         * modules/xalloc (Depends-on): Add xalloc-die.
82196         * modules/xvasprintf (Depends-on): Add xalloc-die.
82197
82198 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82199
82200         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82201         with a minor change.
82202
82203 2005-07-15  Bruno Haible  <bruno@clisp.org>
82204
82205         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82206         When using lib/poll.c, define poll as rpl_poll.
82207
82208 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82209
82210         * modules/argp (Depends-on): Remove unlocked-io.
82211
82212 2005-07-14  Derek Price  <derek@ximbiot.com>
82213
82214         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82215         for glob symlink bug.
82216
82217 2005-07-14  Bruno Haible  <bruno@clisp.org>
82218
82219         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82220         Instead, test for *_unlocked function declarations directly.
82221
82222 2005-07-11  Simon Josefsson  <jas@extundo.com>
82223
82224         * modules/size_max: New file.
82225
82226         * modules/xsize: Depend on size_max module for size_max.m4.
82227
82228 2005-07-11  Simon Josefsson  <jas@extundo.com>
82229
82230         * lib/size_max.h: New file.
82231
82232 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82233
82234         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82235         copyright symbol and the year.
82236         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82237         (version_etc_va): Use parameterized copyright notice.
82238         Reword to conform to the current GNU coding standards.
82239
82240 2005-07-11  Karl Berry  <karl@gnu.org>
82241
82242         * doc/gnulib.texi (Quoting): new node.
82243         (Initial import): more info, from Patrice.
82244
82245 2005-07-11  Bruno Haible  <bruno@clisp.org>
82246
82247         * gnulib-tool (func_usage): Document option --avoid.
82248         (Command line options): Handle --avoid.
82249         (func_acceptable): New function.
82250         (func_modules_transitive_closure): Use it.
82251
82252 2005-07-11  Bruno Haible  <bruno@clisp.org>
82253
82254         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82255         Reported by Jim Meyering.
82256
82257 2005-07-10  Bruno Haible  <bruno@clisp.org>
82258
82259         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82260         Needed when size_t is smaller than 'unsigned int'.
82261         Reported by Paul Eggert.
82262
82263 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82264
82265         * modules/argp (Depends-on): Add unlocked-io
82266
82267 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82268
82269         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82270         block of defines.
82271
82272 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82273
82274         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82275         fix now.
82276
82277 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82278         and Paul Eggert  <eggert@cs.ucla.edu>
82279
82280         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82281         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82282
82283 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * modules/regex (Files): Add lib/regex_internal.c,
82286         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82287         (Depends-on): Add extensions.
82288         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82289
82290 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82291
82292         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82293         pathconf.
82294         * m4/same.m4 (gl_SAME): Likewise.
82295         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82296
82297         * m4/regex.m4: Adjust to new libc regex implementation.
82298         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82299         all the .c and .h parts of (the new) regex.
82300         Quote the m4 stuff better.
82301         Check for RE_ICASE bug of old gnulib.
82302         Check for REG_STARTEND of recent libc.
82303         Rename local variables from jm_* to gl_*.
82304         Quote operand of "test -f".
82305         Say "recent enough" version of libc, not "version 2".
82306         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82307         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82308         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82309         Remove check for btowc, isascii.
82310         Require AM_LANGINFO_CODESET.
82311
82312 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82313
82314         * lib/regex.c, regex.h: Sync from libc.
82315         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82316         * lib/regexec.c:
82317         New files, synced from libc, except that regex_internal.h
82318         currently has a small porting fix.
82319
82320 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82321
82322         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82323         regex_internal.c, regexec.c.
82324         Add regex_internal.h too, but as a comment, since the libc version
82325         is currently broken in gnulib mode.
82326
82327 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82328
82329         Support programs like Emacs that use gnulib but not gettext.
82330         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82331         * modules/gettext-h: New file.
82332         * modules/gettext (Files): Remove lib/gettext.h.
82333         (Depends-on): Add gettext-h.
82334         (Makefile.am): Remove lib_SOURCES.
82335         * modules/argmatch, modules/c-stack, modules/closeout:
82336         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82337         * modules/execute, modules/file-type, modules/getaddrinfo:
82338         * modules/getopt, modules/human, modules/javacomp:
82339         * modules/javaexec, modules/mkdir-p, modules/obstack:
82340         * modules/openat, modules/pagealign_alloc, modules/pipe:
82341         * modules/quotearg, modules/regex, modules/rpmatch:
82342         * modules/unicodeio, modules/userspec, modules/version-etc:
82343         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82344         * modules/xsetenv:
82345         Depend on gettext-h, not gettext.
82346
82347 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82348
82349         * gnulib-tool (func_import): Add support for 'public domain' license.
82350         * modules/alloca, modules/atexit, modules/memmove:
82351         Now public domain, not GPL.
82352         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82353         * modules/realloc, modules/strerror, modules/strtod:
82354         Now LGPL, not GPL.
82355
82356 2005-07-05  Bruno Haible  <bruno@clisp.org>
82357
82358         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82359         autoconf CVS. Needed for mingw.
82360
82361 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82362
82363         Remove the dependency of the strftime module on the tzset module.
82364         * modules/strftime (Depends-on): Remove dependency on tzset.
82365
82366 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82367
82368         Remove the dependency of the strftime module on the tzset module.
82369         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82370         gl_FUNC_TZSET_CLOBBER.
82371
82372 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82373
82374         Remove the dependency of the strftime module on the tzset module.
82375         * lib/strftime.c (my_strftime)
82376         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82377         Copy the input structure, to work around some of the bug with
82378         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82379         Solaris releases, you should also use the tzset module, but we won't
82380         require it as a dependency any more since we don't want LGPLed code
82381         to depend on GPLed code.
82382
82383 2005-07-02  Jim Meyering  <jim@meyering.net>
82384
82385         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82386         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82387         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82388         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82389
82390 2005-07-02  Jim Meyering  <jim@meyering.net>
82391
82392         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82393
82394 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82395
82396         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82397         declares only 'struct timespec;' (!).
82398
82399 2005-07-01  Jim Meyering  <jim@meyering.net>
82400
82401         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82402         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82403         * lib/save-cwd.c, tempname.c:
82404         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82405         and don't include <sys/file.h>).
82406
82407 2005-06-29  Jim Meyering  <jim@meyering.net>
82408
82409         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82410         type name.  Use the variable name instead.
82411         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82412         Likewise.
82413
82414 2005-06-28  Simon Josefsson  <jas@extundo.com>
82415
82416         * modules/check-version (Files): Add check-version.m4.
82417
82418 2005-06-28  Simon Josefsson  <jas@extundo.com>
82419
82420         * m4/check-version.m4: New file, suggested by Jim Meyering
82421         <jim@meyering.net>.
82422
82423 2005-06-28  Simon Josefsson  <jas@extundo.com>
82424
82425         * lib/check-version.h, lib/check-version.c: New files.
82426
82427 2005-06-28  Simon Josefsson  <jas@extundo.com>
82428
82429         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82430         collision with global variable.  Better indentation.  Don't
82431         increment buffer pointer beyond buffer end.  Based on comments
82432         from Paul Eggert <eggert@cs.ucla.edu>.
82433
82434         * lib/base64.h: Indent.
82435
82436 2005-06-28  Simon Josefsson  <jas@extundo.com>
82437
82438         * doc/gnulib.texi (Library version handling): New section.
82439
82440 2005-06-28  Jim Meyering  <jim@meyering.net>
82441
82442         * check-module (find_included_lib_files): Hard-code another
82443         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82444         but modules/fts-lgpl (correctly) does not list those files.
82445
82446         * modules/canonicalize (Files): Add lib/pathmax.h.
82447
82448 2005-06-25  Simon Josefsson  <jas@extundo.com>
82449
82450         * modules/check-version: New file.
82451
82452 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82453
82454         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82455         initializer of struct addrinfo, as an indication that we don't
82456         care how many members the structure has.
82457
82458 2005-06-24  Derek Price  <derek@ximbiot.com>
82459         and Bruno Haible  <bruno@clisp.org>
82460
82461         Remove stat module & update lstat.
82462         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82463         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82464         * m4/stat.m4: Remove this file.
82465
82466 2005-06-24  Derek Price  <derek@ximbiot.com>
82467         and Bruno Haible  <bruno@clisp.org>
82468
82469         Remove stat module & update lstat.
82470         * lib/stat.c: Remove this file...
82471         (slash_aware_lstat): ...moving this content and its support...
82472         * lib/lstat.c (rpl_lstat): ...into here.
82473         * lib/lstat.h: New file.
82474
82475 2005-06-24  Derek Price  <derek@ximbiot.com>
82476         and Bruno Haible  <bruno@clisp.org>
82477
82478         Remove stat module & update lstat.
82479         * config/srclist.txt (libc sources): Remove stat.
82480
82481 2005-06-24  Derek Price  <derek@ximbiot.com>
82482         and Bruno Haible  <bruno@clisp.org>
82483
82484         Remove stat module & update lstat.
82485         * MODULES.html.sh (stat): Remove.
82486         * MODULES.html: Regenerated.
82487         * modules/lstat (Description): Correct function name.
82488         (Files): Add "lstat.h".
82489         (Depends-on): Remove stat, add xalloc, stat-macros.
82490         * modules/stat: Remove this file.
82491         (Include): Add "lstat.h", remove <sys/stat.h>.
82492
82493 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82494
82495         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82496         (ranged_convert): Don't save conversion in a temporary struct.
82497         This causes a warning with GCC 4.0.0, and anyway in the typical
82498         case it's not worth the extra 100 bytes or so of code.
82499         (ranged_convert, __mktime_internal): When calling a function via a
82500         pointer P, use P () rather than (*P) (), as we now assume C89 or
82501         better.
82502
82503 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82504
82505         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82506         "who -r" failed to give output.  Problem reported by Tim Waugh.
82507
82508         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82509         (xcalloc): Use it to avoid needless tests.
82510         Problem reported by Jim Meyering.
82511
82512 2005-06-20  Derek Price  <derek@ximbiot.com>
82513
82514         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82515         unnecessary for Autoconfs > 2.59c.
82516
82517 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82518
82519         * lib/argp.h (__option_is_short): Check upper limit of
82520         __key. Isprint() requires its argument to have the value
82521         of an unsigned char or EOF.
82522
82523 2005-06-16  Jim Meyering  <jim@meyering.net>
82524
82525         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82526         when either N or S is zero.
82527
82528 2005-06-16  Derek Price  <derek@ximbiot.com>
82529
82530         * m4/bison.m4: Declare YACC & YFLAGS precious.
82531
82532 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82533
82534         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82535         multibyte string or pattern, fall back on unibyte matching.
82536         Problem reported by James Youngman.
82537
82538 2005-06-08  Bruno Haible  <bruno@clisp.org>
82539
82540         * modules/csharpcomp: New file.
82541         * MODULES.html.sh (C#): Add csharpcomp.
82542
82543 2005-06-08  Bruno Haible  <bruno@clisp.org>
82544
82545         * m4/csharpcomp.m4: New file, from GNU gettext.
82546
82547 2005-06-08  Bruno Haible  <bruno@clisp.org>
82548
82549         * lib/csharpcomp.h: New file, from GNU gettext.
82550         * lib/csharpcomp.c: New file, from GNU gettext.
82551         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82552
82553 2005-06-08  Bruno Haible  <bruno@clisp.org>
82554
82555         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82556         warning on mingw.
82557
82558 2005-06-07  Derek Price  <derek@ximbiot.com>
82559
82560         Sync from CVS.
82561         * lib/glob_.h: Indent nested #ifdef.
82562
82563 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82564
82565         Sync from coreutils.
82566         Use "file name" when talking about file names, instead of "filename"
82567         or "path", as per the GNU coding standards.
82568         * lib/mkdir-p.c: Renamed from makepath.c.
82569         (make_dir_parents): Renamed from make_path.  All callers changed.
82570         * lib/mkdir-p.h: Likewise.  All includers changed.
82571         * lib/filenamecat.c: Renamed from path-concat.c.
82572         (file_name_concat): Renamed from path_concat.  All callers changed.
82573         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82574         * lib/filenamecat.h: Likewise.  All includers changed.
82575         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82576         in comments or local variable names.
82577         * lib/basename.c: Likewise.
82578         * lib/canonicalize.c, canonicalize.h: Likewise.
82579         * lib/dirname.c, dirname.h: Likewise.
82580         * lib/euidaccess.c: Likewise.
82581         * lib/exclude.c: Likewise
82582         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82583         * lib/fsusage.c, fsuage.h: Likewise.
82584         * lib/fts.c, fts_.h: Likewise.
82585         * lib/getcwd.c: Likewise.
82586         * lib/getloadavg.c: Likewise.
82587         * lib/mkstemp.c: Likewise.
82588         * lib/mountlist.c, mountlist.h: Likewise.
82589         * lib/openat.c, openat.h: Likewise.
82590         * lib/readlink-stub.c: Likewise.
82591         * lib/readutmp.c, readutmp.h: Likewise.
82592         * lib/rename.c: Likewise.
82593         * lib/rmdir.c: Likewise.
82594         * lib/same.c: Likewise.
82595         * lib/savedir.c: Likewise.
82596         * lib/stripslash.c: Likewise.
82597         * lib/tempname.c: Likewise.
82598         * lib/xreadlink.c: Likewise.
82599         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82600         All uses changed.
82601         * lib/exclude.h: Likewise.
82602
82603         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82604         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82605         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82606         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82607         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82608         files have been getting away with it for years (MORE/BSD 4.3
82609         is extinct now).
82610         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82611         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82612
82613         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82614         Define to 256, not 255, as per modern POSIX.
82615
82616 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82617
82618         Sync from coreutils.
82619         Use "file name" when talking about file names, instead of "filename"
82620         or "path", as per the GNU coding standards.
82621         * MODULES.html.sh: mkdir-p renamed from makepath.
82622         filenamecat renamed from path-concat.
82623         * modules/filenamecat: Renamed from modules/path-concat.
82624         (Files): filenamecat.h and filenamecat.c renamed from
82625         path-concat.h and path-concat.c.
82626         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82627         (Include): filenamecat.h, not path-concat.h.
82628         * modules/mkdir-p: Renamed from modules/makepath.
82629         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82630         makepath.c.
82631         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82632         (Include): mkdir-p.h, not makepath.h.
82633
82634 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82635
82636         Sync from coreutils.
82637         * m4/mkdir-p.m4: Renamed from makepath.m4.
82638         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82639         Rename files from makepath.c to mkdir-p.c, and from
82640         makepath.h to mkdir-p.h.
82641         * m4/filenamecat.m4: Renamed from path-concat.m4.
82642         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82643         Rename files from path-concat.c to filenamecat.c,
82644         and from path-concat.h to filenamecat.h.
82645         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82646         "file name" in local variables or comments.
82647         * m4/rename.m4: Likewise.
82648
82649 2005-06-01  Bruno Haible  <bruno@clisp.org>
82650
82651         * modules/csharpexec: New file.
82652         * MODULES.html.sh (C#): New section.
82653
82654 2005-06-01  Bruno Haible  <bruno@clisp.org>
82655
82656         * m4/csharp.m4: New file, from GNU gettext.
82657         * m4/csharpexec.m4: New file, from GNU gettext.
82658
82659 2005-06-01  Bruno Haible  <bruno@clisp.org>
82660
82661         * lib/csharpexec.h: New file, from GNU gettext.
82662         * lib/csharpexec.c: New file, from GNU gettext.
82663         * lib/csharpexec.sh.in: New file, from GNU gettext.
82664
82665 2005-05-31  Derek Price  <derek@ximbiot.com>
82666             Paul Eggert  <eggert@cs.ucla.edu>
82667
82668         Sync from cvs.
82669         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82670
82671 2005-05-31  Derek Price  <derek@ximbiot.com>
82672             Paul Eggert  <eggert@cs.ucla.edu>
82673
82674         Sync from cvs.
82675         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82676
82677 2005-05-29  Derek Price  <derek@ximbiot.com>
82678
82679         * config/srclist.txt (glob_.h, glob.c): Add these files.
82680
82681 2005-05-29  Derek Price  <derek@ximbiot.com>
82682
82683         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82684         * modules/glob: New file.
82685         * modules/getlogin_r: Add link to POSIX spec in description.
82686
82687 2005-05-29  Derek Price  <derek@ximbiot.com>
82688             Paul Eggert  <eggert@cs.ucla.edu>
82689
82690         * m4/glob.m4: New file.
82691
82692 2005-05-29  Derek Price  <derek@ximbiot.com>
82693             Paul Eggert  <eggert@cs.ucla.edu>
82694
82695         * lib/glob_.h, lib/glob.c: New files.
82696
82697 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82698
82699         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82700         * modules/fts-lgpl (Depends-on): Remove gettext.
82701
82702 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82703
82704         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82705         and don't require gt_INTTYPES_PRI.
82706
82707 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82708
82709         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82710
82711         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82712         the configuration hassle isn't worth it.
82713         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82714         (LONGEST_MODIFIER, PRIuMAX): Remove.
82715
82716 2005-05-27  Bruno Haible  <bruno@clisp.org>
82717
82718         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82719
82720 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82721
82722         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82723         _POSIX_PTHREAD_SEMANTICS for Solaris.
82724
82725 2005-05-25  Derek Price  <derek@ximbiot.com>
82726
82727         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82728
82729 2005-05-25  Derek Price  <derek@ximbiot.com>
82730             Paul Eggert  <eggert@cs.ucla.edu>
82731
82732         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82733         * lib/getlogin_r.c, getlogin_r.h: New files.
82734
82735 2005-05-25  Bruno Haible  <bruno@clisp.org>
82736             Derek Price  <derek@ximbiot.com>
82737
82738         * lib/getlogin_r.h: Simplify API documentation.
82739
82740 2005-05-23  Derek Price  <derek@ximbiot.com>
82741
82742         * modules/minmax (Files): Add m4/minmax.m4.
82743         (configure.ac): Add gl_MINMAX.
82744
82745 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82746
82747         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82748         so that unistd-safer.h (GPL'ed code) need not be included.
82749
82750 2005-05-22  Bruno Haible  <bruno@clisp.org>
82751
82752         * m4/minmax.m4: New file.
82753         Based on a patch by Derek Price <derek@ximbiot.com>.
82754
82755 2005-05-22  Bruno Haible  <bruno@clisp.org>
82756
82757         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82758         (INT64_MIN): Fix definition.
82759         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82760
82761         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82762         NEED_SIGNED_INT_TYPES.
82763
82764         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82765         HAVE_SYSTEM_INTTYPES.
82766
82767 2005-05-22  Bruno Haible  <bruno@clisp.org>
82768
82769         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82770         Also include <sys/param.h> if it defines MIN, MAX.
82771         Based on a patch by Derek Price <derek@ximbiot.com>.
82772
82773 2005-05-21  Jim Meyering  <jim@meyering.net>
82774
82775         * modules/fts (Files): Add m4/inttypes-pri.m4.
82776         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82777
82778 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82779
82780         New fts module.
82781         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82782         (setup_dir, free_dir): New functions.
82783         (enter_dir, leave_dir): Define trivial
82784         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82785         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82786         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82787         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82788         Move to fts-cycle.c.
82789         (fts_open): Use setup_dir.
82790         (fts_close): Use free_dir.
82791         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82792         This adds a label and some gotos, but the alternatives were messier.
82793         Check for memory allocation failure when entering a dir.
82794         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82795         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82796         (FTS): New member fts_cycle, that is a union that contains the
82797         old active_dir_ht and cycle_state.  All uses changed to mention
82798         fts_cycle.ht and fts_cycle.state.
82799         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82800         fts.c, with the following changes:
82801         (setup_dir, free_dir): New functions.
82802         (enter_dir): Now returns bool.  Return true if successful, false
82803         if memory exhausted.  All callers changed.
82804         Do not bother partly cleaning up on
82805         memory allocation failure; that is free_dir's job.
82806         However, free ad if hash_insert fails, to avoid memory leak.
82807         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82808         fts->fts_options to see which union member to use.
82809
82810 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82811
82812         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82813         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82814
82815 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82816
82817         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82818
82819 2005-05-20  Jim Meyering  <jim@meyering.net>
82820
82821         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82822         Now a macro, to pacify GCC.
82823
82824 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82825
82826         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82827         of -1.
82828
82829 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82830
82831         * lib/chown.c (rpl_chown): Return -1 on failure.
82832
82833 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82834
82835         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82836         Don't check for stddef.h.
82837         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82838         don't use its results.
82839         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82840         since we include them unconditionally.  Don't require
82841         AM_STDBOOL_H, since stdbool is a prerequisite.
82842         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82843         since we assume C89 or better.
82844         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82845         as we don't use their results.
82846         Don't check for fchdir, memmove, memset, strrchr, as we use
82847         them unconditionally.
82848         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82849         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82850
82851 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82852
82853         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82854         Include <stddef.h> unconditionally, since we assume C89 now.
82855         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82856         * lib/fts.c: Include fts_.h first, to check interface.
82857         Do not include intprops.h; no longer needed.
82858         Include cycle-check.h and hash.h, since fts_.h no longer does.
82859         Remove unnecessary casts of closedir to void.
82860         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82861         decide whether to decrement nlinks.
82862         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82863         (FTS): Use struct hash_table * instead of Hash_table, so that
82864         we no longer need to include hash.h here.
82865
82866 2005-05-18  Jim Meyering  <jim@meyering.net>
82867
82868         * modules/dirfd (License): Change to LGPL.  Most of the code
82869         is already in the public domain.
82870
82871 2005-05-18  Jim Meyering  <jim@meyering.net>
82872
82873         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82874         Reported by Yoann Vandoorselaere.
82875
82876 2005-05-17  Jim Meyering  <jim@meyering.net>
82877
82878         * m4/fts.m4: New file, from coreutils.
82879
82880 2005-05-17  Jim Meyering  <jim@meyering.net>
82881
82882         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82883
82884 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82885
82886         Sync from coreutils.
82887         * m4/unlinkdir.m4: New file.
82888
82889 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         Sync from coreutils.
82892         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82893         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82894         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82895         White space changes only.
82896         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82897         special.
82898         * lib/yesno.c: Include getline.h, not ctype.h.
82899         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82900         Use getline to remove arbitrary restriction on response length.
82901
82902 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82903
82904         * config/srclist-update: Spell out "Street" in FSF postal
82905         mail address; this is the style the FSF seems to prefer.
82906
82907         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82908         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82909         this updates FSF postal mail address.
82910
82911         Sync from coreutils.
82912         * modules/unlinkdir: New file.
82913         * modules/yesno (Depends-on): Add getline.
82914         * MODULES.html.sh (File system functions): Add unlinkdir.
82915
82916 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82917
82918         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82919         lib/strsep.h:
82920         Change the initial comment to refer to GPL, not LGPL.
82921         gnulib-tool will change it to LGPL as needed.
82922
82923         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82924         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82925         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82926         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82927         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82928         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82929         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82930         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82931         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82932         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82933         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82934         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82935         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82936         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82937         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82938         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82939         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82940         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82941         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82942         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82943         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82944         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82945         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82946         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82947         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82948         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82949         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82950         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82951         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82952         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82953         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82954         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82955         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82956         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82957         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82958         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82959         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82960         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82961         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82962         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82963         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82964         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82965         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82966         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82967         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82968         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82969         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82970         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82971         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82972         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82973         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82974         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82975         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82976         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82977         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82978         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82979         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82980         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82981         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82982         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82983         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82984         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82985         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82986         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82987         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82988         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82989         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82990         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82991         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82992         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82993         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82994         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82995         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82996         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82997         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82998         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82999         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83000         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83001         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83002         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83003         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83004         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83005         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83006         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83007         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83008         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83009         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83010         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83011         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83012         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83013         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83014         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83015         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83016         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83017         lib/yesno.c, lib/yesno.h:
83018         Update FSF postal mail address.
83019
83020 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83021
83022         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83023         tests/test-memmem.c, tests/test-stpncpy.c:
83024         Update FSF postal mail address.
83025
83026 2005-05-13  Bruno Haible  <bruno@clisp.org>
83027
83028         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83029         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83030         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83031         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83032         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83033         Add support for 64-bit integers in the MSVC compiler.
83034
83035 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83036
83037         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83038
83039 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83040
83041         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83042
83043 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83044
83045         * doc/getdate.texi (General date syntax): Don't say that date
83046         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83047         Problem reported by Nic Ferrier.
83048
83049 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83050
83051         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83052         specified in ai_socktype. Fix invalid ai_protocol
83053         check. ai_protocol is usually set to 0 or depending on
83054         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83055         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83056         ai_socktype / ai_protocol in the returned addrinfo structure.
83057
83058 2005-05-10  Simon Josefsson  <jas@extundo.com>
83059
83060         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83061         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83062
83063 2005-05-10  Karl Berry  <karl@gnu.org>
83064
83065         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83066         (from http://www.gnu.org/licenses).
83067         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83068         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83069         fdl.texi suffices.
83070
83071 2005-05-10  Karl Berry  <karl@gnu.org>
83072
83073         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83074         (COPYING.DOC): remove.
83075
83076         * config/srclist-update: new FSF address.
83077
83078 2005-05-10  Derek Price  <derek@ximbiot.com>
83079
83080         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83081         possible.
83082
83083 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83084             Bruno Haible  <bruno@clisp.org>
83085
83086         * modules/inet_ntop: New file.
83087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83088         inet_ntop.
83089
83090 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83091             Bruno Haible  <bruno@clisp.org>
83092
83093         * m4/inet_ntop.m4: New file.
83094
83095 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83096             Bruno Haible  <bruno@clisp.org>
83097
83098         * lib/inet_ntop.h: New file.
83099         * lib/inet_ntop.c: New file, from glibc with modifications.
83100
83101 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83102
83103         * modules/time_r (License): Change to LGPL.
83104         * modules/extensions (License): Change to LGPL.  Actually,
83105         the license is more permissive than that, but currently gnulib-tool
83106         doesn't know how to handle more-permissive licenses.
83107
83108         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83109         Problem reported by Dave Love.
83110
83111 2005-05-08  Jim Meyering  <jim@meyering.net>
83112
83113         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83114         blank.
83115
83116 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83117
83118         * modules/argmatch (Depends-on): Add stdbool.
83119         * modules/backupfile (Depends-on): Likewise.
83120         * modules/chdir-long (Depends-on): Likewise.
83121         * modules/closeout (Depends-on): Likewise.
83122         * modules/cycle-check (Depends-on): Likewise.
83123         * modules/dirname (Depends-on): Likewise.
83124         * modules/fnmatch (Depends-on): Likewise.
83125         * modules/fsusage (Depends-on): Likewise.
83126         * modules/fwriteerror (Depends-on): Likewise.
83127         * modules/getcwd (Depends-on): Likewise.
83128         * modules/getloadavg (Depends-on): Likewise.
83129         * modules/hard-locale (Depends-on): Likewise.
83130         * modules/makepath (Depends-on): Likewise.
83131         * modules/mountlist (Depends-on): Likewise.
83132         * modules/nanosleep (Depends-on): Likewise.
83133         * modules/posixtm (Depends-on): Likewise.
83134         * modules/quotearg (Depends-on): Likewise.
83135         * modules/readtokens (Depends-on): Likewise.
83136         * modules/readtokens0 (Depends-on): Likewise.
83137         * modules/readutmp (Depends-on): Likewise.
83138         * modules/save-cwd (Depends-on): Likewise.
83139         * modules/strftime (Depends-on): Likewise.
83140         * modules/userspec (Depends-on): Likewise.
83141         * modules/utimecmp (Depends-on): Likewise.
83142         * modules/xgetcwd (Depends-on): Likewise.
83143         * modules/xnanosleep (Depends-on): Likewise.
83144         * modules/xstrtod (Depends-on): Likewise.
83145         * modules/yesno (Depends-on): Likewise.
83146
83147 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83148
83149         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83150         needless checks.
83151
83152 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83153
83154         Merge from coreutils.  Among other things,
83155         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83156         * lib/fd-safer.c: New file.
83157         * lib/fcntl-safer.h, open-safer.c: Remove.
83158         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83159         * lib/dup-safer.c: Include unistd-safer.h first.
83160         Don't include errno.h.
83161         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83162         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83163         * lib/file-type.c: Rely on file-type.h change.
83164         * lib/getloadavg.c: Include unistd-safer.h.
83165         (getloadavg): Use safer open.
83166         * lib/getusershell.c: Include "stdio-safer.h".
83167         (getusershell): Use safer fopen.
83168         * lib/long-options.c (long_options): Use NULL rather than 0.
83169         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83170         'free'.
83171         * lib/modechange.c: Likewise.
83172         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83173         (MODE_DONE): New constant.
83174         (struct mode_change): Remove 'next' member.
83175         (make_node_op_equals): New function; like the old one of the
83176         same name, except it allocates an array.
83177         (mode_compile, mode_create_from_ref): Use it.
83178         (mode_compile): Allocate result as an array, not a linked list.
83179         Parse octal string ourself, so that we catch mistakes like "+0".
83180         (mode_adjust): Arg is an array, not a linked list.
83181         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83182         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83183         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83184         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83185         Remove.  This is now stat-macros.h's job.
83186         (talloc): Remove.  All callers replaced by xalloc, so that
83187         our invokers don't have to worry about reporting memory failures.
83188         (make_node_op_equals): Remove.
83189         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83190         New constants.
83191         (struct mode_change): Moved here from modechange.h.
83192         (mode_append_entry): Remove.
83193         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83194         apps to have incorrect behavior.  Use simpler algorithm for head
83195         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83196         Detect more invalid usages rather than having somewhat-random behavior.
83197         Don't insert an "a=" action, as that leads to incorrect behavior.
83198         (mode_compile, mode_create_from_ref): Return NULL on error instead
83199         of an enum, since now there's only one way to have an error.  All
83200         callers changed.
83201         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83202         at the correct time.  Simplify calculation of "+u" and its ilk.
83203         Don't mishandle "+X".
83204         (mode_free): Remove "register" and localize decls.
83205         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83206         (struct mode_change): Move to modechange.c; callers don't
83207         need to see this stuff.
83208         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83209         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83210         (mode_change, mode_adjust): Reflect the new signatures noted above.
83211         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83212         that might redefine system include files.
83213         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83214         (my_usleep): Use NULL rather than (void *) 0.
83215         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83216         Use siginterrupt to specify that system calls should be interrupted.
83217         (rpl_nanosleep): Move initialization of suspended closer to call of
83218         my_usleep.
83219         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83220         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83221         (desirable_utmp_entry): New function.
83222         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83223         using x2nrealloc, to simplify logic.
83224         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83225         size calculation.  Do not assume utmp file is a regular file.
83226         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83227         (READ_UTMP_CHECK_PIDS): New constant.
83228         * lib/save-cwd.c: Include unistd-safer.h.
83229         (save_cwd): Use fd_safer.
83230         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83231         [!_LIBC] Include "stat-macros.h" instead.
83232         * lib/unistd-safer.h (fd_safer): New decl.
83233
83234 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83235
83236         * modules/getloadavg (Depends-on): Add unistd-safer.
83237         * modules/getusershell (Depends-on): Add stdio-safer.
83238         * modules/lstat (Depends-on): Remove xalloc.
83239         * modules/mkstemp (Depends-on): Add stat-macros.
83240         * modules/modechange (Depends-on): Remove xstrtol.
83241         Add stat-macros, xalloc.
83242         * modules/save-cwd (Depends-on): Add unistd-safer.
83243         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83244         * modules/unistd-safer (Files): Add lib/fd-safer.c
83245         (Makefile.am): Remove lib_SOURCES.
83246
83247         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83248         Remove fcntl-safer; unistd-safer supersedes it.
83249
83250 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83251
83252         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83253         AC_HEADER_STAT.
83254         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83255         (gl_PREREQ_CHOWN): Remove.
83256         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83257         it.  Don't require AC_HEADER_STAT.
83258         (gl_PREREQ_LSTAT): Remove.
83259         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83260         Don't require AC_HEADER_STAT.
83261         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83262         (gl_PREREQ_RMDIR): Remove.
83263         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83264         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83265         the stat-macros module a prerequisite.
83266         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83267         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83268         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83269         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83270         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83271         variable names.
83272         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83273         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83274         variable prefixes.
83275         * m4/fcntl-safer.m4: Remove.
83276         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83277         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83278         Invoke gl_PREREQ_FD_SAFER.
83279         (gl_PREREQ_FD_SAFER): New macro.
83280         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83281         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83282         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83283         Remove duplicate call to AC_LIBOBJ(readutmp).
83284         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83285
83286         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83287         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83288
83289 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83290
83291         * MODULES.html.sh (Misc): Add byteswap.
83292
83293 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83294
83295         * modules/getcwd (Depends-on): Add extensions.
83296         * modules/openat (Depends-on): Likewise.
83297
83298 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83299
83300         * modules/byteswap: New file.
83301
83302 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83303
83304         * m4/byteswap.m4: New file.
83305
83306 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83307
83308         * lib/byteswap_.h: New file.
83309
83310 2005-04-25  Karl Berry  <karl@gnu.org>
83311
83312         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83313
83314 2005-04-25  Albert Chin  <china@thewrittenword.com>
83315
83316         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83317         Toolkit C bug.
83318
83319 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83320
83321         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83322         (func_ln_if_changed): Remove forcibly for no error message
83323         in case file does not exist.
83324
83325 2005-04-19  Simon Josefsson  <jas@extundo.com>
83326
83327         * gnulib-tool (Options): Make --symlink mean --symbolic.
83328
83329 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83330
83331         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83332
83333 2005-04-16  Simon Josefsson  <jas@extundo.com>
83334
83335         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83336
83337 2005-04-15  Simon Josefsson  <jas@extundo.com>
83338
83339         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83340
83341 2005-04-15  Simon Josefsson  <jas@extundo.com>
83342
83343         * gnulib-tool: Rename --symlink to --symbolic.
83344
83345 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83346
83347         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83348         symbolic links to files instead of copying/moving.  Add --aux-dir,
83349         specifying directory relative --dir where auxiliary build tools
83350         are placed.
83351
83352 2005-04-14  Bruno Haible  <bruno@clisp.org>
83353
83354         * modules/allocsa (License): Change to LGPL.
83355         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83356
83357 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83358
83359         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83360         that "UTC +1 second" continues to work.  Problem reported
83361         by Dmitry V. Levin.
83362         (relunit_snumber): New rule.
83363         (relunit): Use it.
83364
83365 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83366
83367         * lib/getdate.y (universal_time_zone_table): New constant.
83368         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83369         universal_time_zone_table.
83370         (lookup_zone): Prefer universal_time_zone_table to
83371         local_time_zone_table, so that "GMT" time stamps are allowed in
83372         London during the summer.  Problem reported by Ian Abbott.
83373
83374 2005-04-12  Jim Meyering  <jim@meyering.net>
83375
83376         * lib/human.c (humblock): Set *options even when returning due to
83377         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83378         warning from gcc-4.
83379
83380 2005-04-09  Jim Meyering  <jim@meyering.net>
83381
83382         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83383         -Wuninitialized: initialize tm0.tm_year.
83384
83385 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83386
83387         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83388         count, since there's no maximum.  All uses changed.
83389         Add member dsts_seen.
83390         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83391         not being INT_MAX.
83392         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83393         Use pc_rels_seen to decide whther a date is absolute.
83394
83395         * lib/getdate.y (number): Don't overwrite year.
83396         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83397         check.
83398
83399 2005-04-02  Simon Josefsson  <jas@extundo.com>
83400
83401         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83402         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83403
83404 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83405
83406         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83407         where no absolute path name can be longer than PATH_MAX.
83408
83409 2005-03-27  Jim Meyering  <jim@meyering.net>
83410
83411         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83412
83413 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83414
83415         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83416         "one's complement" -> "ones' complement" in comment, as per Knuth.
83417         "value of type" -> "type or expression" in comment.
83418         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83419
83420 2005-03-26  Jim Meyering  <jim@meyering.net>
83421
83422         Comment nits.
83423         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83424         Correct typos: s/or/of/.
83425
83426 2005-03-26  Jim Meyering  <jim@meyering.net>
83427
83428         * modules/check-include-files: Move to ../ and rename to...
83429         * check-module: ...this.
83430
83431 2005-03-25  Jim Meyering  <jim@meyering.net>
83432
83433         * modules/xvasprintf (Files): Add xalloc.h.
83434
83435 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83436
83437         * modules/gettext (Files): config/config.rpath ->
83438         build-aux/config.rpath
83439         * modules/iconv (Files): Likewise.
83440         Problem reported by Oskar Liljeblad.
83441
83442 2005-03-23  Jim Meyering  <jim@meyering.net>
83443
83444         * modules/check-include-files: New script to check for
83445         missing dependencies, multiple includes, etc.
83446
83447         * modules/c-strtold (Depends-on): Add xalloc.
83448         * modules/c-strtod (Depends-on): Add xalloc.
83449         * modules/hash (Depends-on): Add xalloc.
83450         (Files): Remove lib/xalloc.h.
83451
83452         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83453         * modules/userspec (Files): Add lib/inttostr.h.
83454
83455 2005-03-23  Jim Meyering  <jim@meyering.net>
83456
83457         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83458
83459 2005-03-22  Jim Meyering  <jim@meyering.net>
83460
83461         * modules/stat-macros: New module.
83462         * modules/canonicalize, modules/euidaccess, modules/file-type,
83463         * modules/filemode, modules/lchown, modules/makepath,
83464         * modules/rmdir, modules/stat: Depend on new stat-macros module
83465         rather than listing lib/stat-macros.h manually.
83466         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83467
83468 2005-03-22  Jim Meyering  <jim@meyering.net>
83469
83470         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83471
83472 2005-03-22  Bruno Haible  <bruno@clisp.org>
83473
83474         * config/srclist.txt: Replace target directory 'config' with
83475         'build-aux'.
83476         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83477         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83478         ../build-aux/.
83479
83480 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83481
83482         * modules/chdir-long (Depends-on): Add mempcpy.
83483
83484         * modules/acl, modules/backupfile, modules/c-strtod,
83485         modules/c-strtold, modules/canon-host, modules/canonicalize,
83486         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83487         modules/exclude, modules/exitfail, modules/file-type,
83488         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83489         modules/getdate, modules/getline, modules/getpagesize,
83490         modules/getpass, modules/getugroups, modules/group-member,
83491         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83492         modules/inttostr, modules/long-options, modules/makepath,
83493         modules/md5, modules/memcasecmp, modules/memcoll,
83494         modules/modechange, modules/mountlist, modules/path-concat,
83495         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83496         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83497         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83498         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83499         modules/strftime, modules/strndup, modules/strverscmp,
83500         modules/timespec, modules/unlocked-io, modules/userspec,
83501         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83502         modules/yesno:
83503         Remove lib_SOURCES line from Makefile.am section, as this is now
83504         done automatically by the corresponding Autoconf macro.
83505
83506 2005-03-21  Jim Meyering  <jim@meyering.net>
83507
83508         Changes imported from coreutils.
83509
83510         * lib/cycle-check.c: Don't include xalloc.h.
83511
83512         * lib/path-concat.c: Don't include assert.h.
83513         (path_concat): Remove assertion that would have triggered
83514         for ABASE starting with more than one slash.
83515         Reported by Andreas Schwab.
83516
83517         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83518         properly when ABASE is an absolute file name.
83519         Correct the description of this function.
83520         Include <assert.h>.
83521         Add an assertion and a test driver.
83522         This fixes a bug introduced on 2004-07-02.
83523         Andreas Schwab reported the resulting failure of cp --parents:
83524         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83525
83526 2005-03-21  Jim Meyering  <jim@meyering.net>
83527
83528         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83529         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83530
83531 2005-03-21  Jim Meyering  <jim@meyering.net>
83532         and  Paul Eggert  <eggert@cs.ucla.edu>
83533
83534         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83535         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83536         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83537         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83538         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83539         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83540         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83541         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83542         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83543         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83544         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83545         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83546         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83547         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83548         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83549         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83550         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83551         for these modules.
83552
83553 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83554
83555         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83556         (which shouldn't happen), generate nothing instead of returning 0
83557         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83558
83559 2005-03-16  Bruno Haible  <bruno@clisp.org>
83560
83561         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83562         HAVE_LONGLONG_64BIT.
83563
83564 2005-03-16  Bruno Haible  <bruno@clisp.org>
83565
83566         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83567         HAVE_LONGLONG_64BIT.
83568
83569 2005-03-16  Bruno Haible  <bruno@clisp.org>
83570
83571         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83572         HAVE_LONGLONG_64BIT.
83573
83574 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83575
83576         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83577         reliably distinguish strftime failure from empty output on POSIX
83578         hosts.
83579
83580 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83581
83582         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83583         (iconv_string): Don't guess a size-zero buffer, as that might cause
83584         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83585         result would be 'too large', where 'too large' is (heuristically)
83586         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83587         overflow concerns.  This will prevent some unwanted malloc failures
83588         when the inputs are very large.
83589
83590 2005-03-15  Karl Berry  <karl@gnu.org>
83591
83592         * config/srclist.txt (config.rpath): from gettext.
83593         * config/config.rpath: update.
83594
83595 2005-03-15  Bruno Haible  <bruno@clisp.org>
83596
83597         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83598         to 'negate'.
83599
83600         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83601         variable.
83602
83603         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83604         results.
83605
83606 2005-03-14  Simon Josefsson  <jas@extundo.com>
83607
83608         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83609         <fx@gnu.org>.
83610
83611 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83612
83613         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83614         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83615         intprops.h.
83616         * lib/strtol.c: Likewise.
83617
83618 2005-03-14  Jim Meyering  <jim@meyering.net>
83619
83620         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83621         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83622         to be nonzero so that we (and caller) can detect the difference
83623         between a valid zero-length expansion and an error return, even
83624         when the underlying strftime fails before writing anything into
83625         that location.
83626
83627 2005-03-14  Bruno Haible  <bruno@clisp.org>
83628
83629         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83630         Update from GNU gettext 0.14.3.
83631
83632 2005-03-10  Jim Meyering  <jim@meyering.net>
83633
83634         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83635
83636 2005-03-10  Jim Meyering  <jim@meyering.net>
83637
83638         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83639         so that this module works on systems without fchdir.
83640
83641 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83642
83643         Factor int-properties macros into a single file, except for
83644         glibc-related files.
83645         * lib/intprops.h: New file.
83646         * lib/getloadavg.c: Include it instead of limits.h.
83647         (INT_STRLEN_BOUND): Remove.
83648         * lib/human.c: Include intprops.h.
83649         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83650         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83651         302/1000.
83652         * lib/inttostr.h: Include intprops.h instead of limits.h.
83653         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83654         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83655         for consistency with intprops.h.
83656         (time_t_is_integer, twos_complement_arithmetic): Use them.
83657         * lib/sig2str.h: Include <signal.h>, intprops.h.
83658         (INT_STRLEN_BOUND): Remove.
83659         * lib/strftime.c (TYPE_SIGNED): Remove.
83660         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83661         * lib/strtol.c: Adjust comments to match intprops.h.
83662         * lib/userspec.c: Include intprops.h.
83663         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83664         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83665         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83666         instead of rolling our own expressions.
83667         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83668
83669         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83670         instead of int.
83671         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83672         the right thing even if adding 1900 would overflow.  Similarly
83673         for tm_mon + 1 and tm_yday + 1.
83674         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83675         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83676         (DO_SIGNED_NUMBER): New macro.
83677         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83678
83679 2005-03-07  Bruno Haible  <bruno@clisp.org>
83680
83681         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83682
83683 2005-03-07  Bruno Haible  <bruno@clisp.org>
83684
83685         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83686
83687 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83688
83689         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83690         (func_import): Only replace files via --import when they have actually
83691         changed.
83692
83693 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83694
83695         * m4/mmap-anon.m4: New file.
83696         * m4/pagealign_alloc.m4: New file.
83697
83698 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83699             Bruno Haible  <bruno@clisp.org>
83700
83701         * modules/pagealign_alloc: New file.
83702         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83703
83704 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83705             Bruno Haible  <bruno@clisp.org>
83706
83707         * lib/pagealign_alloc.h: New file.
83708         * lib/pagealign_alloc.c: New file.
83709
83710 2005-03-03  Bruno Haible  <bruno@clisp.org>
83711
83712         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83713         Use an all-permissive copyright notice, recommended by RMS.
83714
83715 2005-03-02  Bruno Haible  <bruno@clisp.org>
83716
83717         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83718         of AIX, the replacement has to be done only after <string.h> is
83719         included, therefore not in config.h. stpncpy.h does the replacement,
83720         and stpncpy.c uses it.
83721
83722 2005-03-02  Bruno Haible  <bruno@clisp.org>
83723
83724         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83725         stpncpy.c uses it.
83726
83727 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83728
83729         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83730         The workaround isn't strictly needed for POSIX conformance, and
83731         it's too much of a pain to configure and maintain.  We'll ask
83732         people to fix their kernels instead.
83733         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83734         (NANOSLEEP_BUG_WORKAROUND): Remove.
83735         (xnanosleep): Remove the workaround.
83736
83737 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83738
83739         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83740         Reported by Derek Price.
83741         (Include): Add "timespec.h".
83742
83743         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83744
83745 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83746
83747         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83748         to detect nanosleep bug.
83749
83750 2005-03-01  Bruno Haible  <bruno@clisp.org>
83751
83752         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83753
83754 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83755
83756         * modules/gethrxtime: New file.
83757         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83758         (Depends-on): Add gethrxtime.
83759         (configure.ac): Add gl_XNANOSLEEP.
83760         (Makefile.am): Remove lib_SOURCES line.
83761
83762 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83763
83764         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83765         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83766
83767 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83768
83769         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83770         * lib/timespec.h (gettime): Return void, since it always
83771         succeeds now.  All uses changed.
83772         * lib/gettime.c (gettime): Likewise.
83773         [HAVE_NANOTIME]: Prefer nanotime.
83774         Assume gettimeofday succeeds, as POSIX requires.
83775         Assime time () succeeds, since other code already does.
83776         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83777         (timespec_subtract): Remove.
83778         (NANOSLEEP_BUG_WORKAROUND): New constant.
83779         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83780         things considerably.  Use it only on GNU/Linux hosts, since the
83781         workaround shouldn't be needed elsewhere.
83782
83783 2005-02-24  Bruno Haible  <bruno@clisp.org>
83784
83785         * modules/gettext (Files): Add m4/glibc2.m4.
83786
83787 2005-02-24  Bruno Haible  <bruno@clisp.org>
83788
83789         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83790         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83791         * m4/progtest.m4:
83792         Update from GNU gettext 0.14.2.
83793         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83794
83795 2005-02-24  Bruno Haible  <bruno@clisp.org>
83796
83797         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83798         * lib/config.charset: Update from GNU gettext 0.14.2.
83799
83800 2005-02-24  Bruno Haible  <bruno@clisp.org>
83801
83802         * lib/gettext.h: Update from GNU gettext 0.14.2.
83803
83804 2005-02-23  Simon Josefsson  <jas@extundo.com>
83805
83806         * m4/iconvme.m4: New file.
83807
83808 2005-02-23  Jim Meyering  <jim@meyering.net>
83809
83810         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83811         change.
83812         Thanks to Bruno Haible for catching it.
83813
83814 2005-02-22  Simon Josefsson  <jas@extundo.com>
83815
83816         * modules/iconvme: New file.
83817
83818         * MODULES.html.sh: Add iconvme.
83819
83820 2005-02-22  Simon Josefsson  <jas@extundo.com>
83821
83822         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83823
83824 2005-02-22  Simon Josefsson  <jas@extundo.com>
83825
83826         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83827
83828 2005-02-22  Jim Meyering  <jim@meyering.net>
83829
83830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83831         s/ifndef/ifdef/.
83832
83833 2005-02-20  Neil Conway  <neilc@samurai.com>
83834
83835         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83836         returned by OSX/Darwin if the specified buffer is not large
83837         enough for the hostname.
83838
83839 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83840
83841         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83842         pass it to _help, otherwise the latter coredumps trying to
83843         dereference state.root_argp.
83844
83845 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83846
83847         * modules/chdir-long (Depends-on): Add memrchr.
83848         * modules/memrchr (Files): Add lib/memrchr.h.
83849         (Include): "memrchr.h".
83850
83851 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83852
83853         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83854
83855 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83856
83857         * lib/memrchr.h: New file.
83858         * lib/chdir-long.c: Include it.
83859         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83860         Don't bother including stddef.h.
83861
83862 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83863
83864         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83865         inclusion.
83866         Include <sys/types.h>, for dev_t.
83867         (ME_DUMMY, ME_REMOTE): Move from here....
83868         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83869         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83870         Dmitry V. Levin.
83871         Include mountlist.h first, to test the interface.
83872
83873 2005-01-29  Bruno Haible  <bruno@clisp.org>
83874
83875         * lib/progname.c (program_name): Initialize.
83876         Needed when linking statically on MacOS X.
83877
83878 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83879
83880         Sync from coreutils.
83881         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83882         (Depends-on): Add c-strtod.
83883         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83884
83885 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83886
83887         Sync from coreutils.
83888         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83889
83890         Remove files that are specific to coreutils.
83891         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83892
83893 2005-01-28  Bruno Haible  <bruno@clisp.org>
83894
83895         * modules/javacomp: New file.
83896         * MODULES.html.sh (Java): Add javacomp.
83897
83898 2005-01-28  Bruno Haible  <bruno@clisp.org>
83899
83900         * m4/javacomp.m4: New file, from GNU gettext.
83901
83902 2005-01-28  Bruno Haible  <bruno@clisp.org>
83903
83904         * lib/javacomp.sh.in: New file, from GNU gettext.
83905         * lib/javacomp.h: New file, from GNU gettext.
83906         * lib/javacomp.c: New file, from GNU gettext.
83907
83908 2005-01-26  Simon Josefsson  <jas@extundo.com>
83909
83910         * lib/gai_strerror.c: Use GPL in header.
83911
83912 2005-01-26  Bruno Haible  <bruno@clisp.org>
83913
83914         * modules/javaexec: New file.
83915         * MODULES.html.sh (Java): Add javaexec.
83916
83917 2005-01-26  Bruno Haible  <bruno@clisp.org>
83918
83919         * m4/javaexec.m4: New file, from GNU gettext.
83920
83921 2005-01-26  Bruno Haible  <bruno@clisp.org>
83922
83923         * lib/javaexec.sh.in: New file, from GNU gettext.
83924         * lib/javaexec.h: New file, from GNU gettext.
83925         * lib/javaexec.c: New file, from GNU gettext.
83926
83927 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83928
83929         * modules/lchown (Depends-on): Remove lchown.h
83930
83931 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83932
83933         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83934         must be defined if the header file was not found, in order
83935         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83936
83937 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83938
83939         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83940         initializers for struct pentry_state.
83941         (__argp_error): Check return value of __asprintf
83942         (__argp_failure): Translate error message
83943
83944         * lib/argp-parse.c: Removed braces around the expansion of N_()
83945
83946 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83947
83948         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83949         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83950         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83951         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83952         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83953         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83954         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83955         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83956         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83957         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83958         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83959         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83960         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83961         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83962         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83963         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83964         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83965         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83966         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83967         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83968         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83969         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83970         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83971         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83972         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83973         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83974         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83975         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83976         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83977         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83978         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83979         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83980         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83981         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83982         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83983         Use an all-permissive copyright notice, recommended by RMS.
83984
83985 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83986
83987         * modules/chdir-long (Depends-on): Remove mempcpy.
83988
83989 2005-01-21  Jim Meyering  <jim@meyering.net>
83990
83991         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83992         same value as for Solaris 9.
83993
83994         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83995         component length.  This included changing the parameter to be
83996         of type `char *' rather than `char const *'.
83997         * lib/chdir-long.h (chdir_long): Update prototype.
83998
83999         * lib/openat.c (fdopendir, fstatat): New functions.
84000         * lib/openat.h: Include headers required for use of DIR and struct
84001         stat.
84002         [AT_SYMLINK_NOFOLLOW]: Define.
84003         (fdopendir, fstatat): Add prototypes.
84004
84005 2005-01-21  Bruno Haible  <bruno@clisp.org>
84006
84007         * modules/classpath: New file.
84008         * MODULES.html.sh (Java): Add classpath.
84009
84010 2005-01-21  Bruno Haible  <bruno@clisp.org>
84011
84012         * lib/classpath.h: New file, from GNU gettext.
84013         * lib/classpath.c: New file, from GNU gettext.
84014
84015 2005-01-20  Simon Josefsson  <jas@extundo.com>
84016
84017         * modules/version-etc-fsf: New file.
84018
84019 2005-01-20  Simon Josefsson  <jas@extundo.com>
84020
84021         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84022         * lib/version-etc.c: Remove version_etc_copyright.
84023         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84024         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84025
84026 2005-01-20  Simon Josefsson  <jas@extundo.com>
84027
84028         * lib/base64.h (isbase64): Add.
84029
84030         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84031         using a unsigned prototype, don't inline.
84032         (base64_decode): Use it.
84033
84034 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84035
84036         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84037         it.
84038
84039 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84040
84041         * lib/save-cwd.c (save_cwd): Remove code to support the case
84042         where fchdir is missing or flaky.
84043
84044 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84047
84048 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84049
84050         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84051         AC_LIBSOURCES now does this.
84052         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84053         with new ullong_max module.
84054
84055 2005-01-19  Bruno Haible  <bruno@clisp.org>
84056
84057         * modules/sh-quote: New file.
84058         * MODULES.html.sh (Executing programs): Add sh-quote.
84059
84060 2005-01-19  Bruno Haible  <bruno@clisp.org>
84061
84062         * lib/sh-quote.h: New file, from GNU gettext.
84063         * lib/sh-quote.c: New file, from GNU gettext.
84064
84065 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84066
84067         Merge from coreutils.
84068         * m4/ullong_max.m4: New file.
84069         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84070         (gl_MACROS): Assume localeconv exists.
84071
84072 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84073
84074         Merge changes from coreutils, as described below in several
84075         changelogs dated today.
84076
84077         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84078         (O_DIRECTORY): Remove; not needed here, since "." must be
84079         a directory.  All uses removed.
84080         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84081         universal on Suns, and we also need to test for IRIX.
84082         Revamp code to use 'if' rather than '#if'.
84083         Avoid unnecessary comparison of cwd->desc to 0.
84084
84085         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84086         for known valid error numbers rather than observed invalid ones.
84087
84088 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84089
84090         * modules/ullong_max: New file.
84091
84092         * modules/chdir-long, modules/openat: New files.
84093         * modules/save-cwd (Depends-on): Depend on chdir-long.
84094         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84095
84096 2005-01-18  Jim Meyering  <jim@meyering.net>
84097
84098         Merge from coreutils.
84099         * m4/chdir-long.m4, m4/openat.m4: New files.
84100         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84101         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84102         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84103         is sane and DOES follow symlinks.  Besides, testing 20 different
84104         systems found no broken chown implementations.
84105         Prompted by a change in rsync's copy of this macro.
84106         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84107
84108         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84109
84110         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84111         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84112         NULL-means-set-to-current-time semantics.
84113         Remove temporary file immediately, rather than waiting
84114         for configure's at-exit trap code to do it.
84115
84116 2005-01-18  Jim Meyering  <jim@meyering.net>
84117
84118         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84119
84120         * lib/utimens.c (futimens): Account for the fact that futimes
84121         can also fail with errno == ENOSYS or errno == ENOENT.
84122         Patch from Dmitry V. Levin.
84123
84124         Change the name of the robust chdir function from chdir to chdir_long.
84125         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84126         (restore_cwd): Use chdir_long, not chdir.
84127         * lib/chdir-long.c: Renamed from chdir.c.
84128         * lib/chdir-long.h: Renamed from chdir.h.
84129         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84130         Hurd.
84131
84132 2005-01-18  Bruno Haible  <bruno@clisp.org>
84133
84134         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84135         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84136         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84137         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84138         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84139         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84140         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84141         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84142         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84143         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84144         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84145         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84146         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84147         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84148         Use an all-permissive copyright notice, recommended by RMS.
84149
84150 2005-01-18  Bob Proulx  <bob@proulx.com>
84151
84152         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84153         simplify offsetof() macro construct to avoid compile failure with
84154         native HP-UX 11.0 ANSI C compiler.
84155
84156 2005-01-17  Bruno Haible  <bruno@clisp.org>
84157
84158         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84159         redundant because stpncpy.m4 takes care of it.
84160
84161 2005-01-17  Bruno Haible  <bruno@clisp.org>
84162
84163         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84164
84165 2005-01-17  Bruno Haible  <bruno@clisp.org>
84166
84167         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84168         used.
84169
84170 2005-01-17  Bruno Haible  <bruno@clisp.org>
84171
84172         * lib/fwriteerror.h (fwriteerror): Change specification to include
84173         fclose.
84174         * lib/fwriteerror.c: Include <stdbool.h>.
84175         (fwriteerror): At the end, close the file stream. Record whether
84176         stdout was already closed.
84177
84178 2005-01-17  Bruno Haible  <bruno@clisp.org>
84179
84180         * lib/execute.c (environ): Declare if needed.
84181         * lib/pipe.c (environ): Likewise.
84182         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84183
84184 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84185
84186         * modules/argp: Depend on vsnprintf
84187
84188 2005-01-10  Jim Meyering  <jim@meyering.net>
84189
84190         * modules/closeout (Depends-on): Add atexit.
84191
84192 2005-01-06  Bruno Haible  <bruno@clisp.org>
84193
84194         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84195
84196 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84197
84198         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84199         definitions to be after all include files, to avoid collisions.
84200         Problem reported by Bob Proulx.
84201
84202 2005-01-04  Jim Meyering  <jim@meyering.net>
84203
84204         Changes imported from coreutils.
84205         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84206         as the mkstemp template, use a temporary directory and an
84207         8.3-friendly template to avoid trouble on systems like DJGPP.
84208         Reported by Juan M. Guerrero via Stepan Kasal.
84209         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84210         close. Remove the temporary directory right away, rather than waiting
84211         for configure's at-exit trap code to do it.
84212         Suggestion from Stepan Kasal.
84213
84214 2005-01-01  Simon Josefsson  <jas@extundo.com>
84215
84216         * gnulib-tool: Print #include directives when --import'ing.
84217
84218 2004-12-28  Simon Josefsson  <jas@extundo.com>
84219
84220         * tests/test-base64.c: Include required header files.  Remove
84221         unused variables.
84222
84223 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84224
84225         * modules/error (Depends-on): Remove gettext.
84226
84227 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84230         not needed.  This removes a dependency on the gettext module.
84231         [defined _LIBC]: Do not include <libintl.h>; not needed.
84232
84233 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84234
84235         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84236         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84237
84238 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84239
84240         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84241         HAVE_DECL_STRTOLD.
84242
84243 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84244
84245         * modules/getdate (Depends-on): Remove alloca-opt.
84246
84247 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84248
84249         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84250
84251 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84252
84253         * lib/argp-parse.c: Include <stddef.h>.
84254         (alignof, alignto): New macros.
84255         (parser_init): Don't assume that void * is aligned sufficiently
84256         for struct option.
84257
84258         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84259         need to extend the stack.
84260         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84261         large.
84262
84263 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84264
84265         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84266
84267 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84268
84269         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84270         (2004-10-24) change.  Apparently this was a false alarm.
84271
84272         * modules/getdate: Depend on alloca-opt, not alloca.
84273
84274 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84275
84276         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84277         Remove now-obsolete comment about AIX.
84278         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84279         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84280         (YYMAXDEPTH): New macro.
84281
84282 2004-12-18  Simon Josefsson  <jas@extundo.com>
84283
84284         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84285
84286 2004-12-18  Bruno Haible  <bruno@clisp.org>
84287
84288         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84289
84290 2004-12-18  Bruno Haible  <bruno@clisp.org>
84291
84292         * lib/fatal-signal.c (fatal_signals): Make non-const.
84293         (init_fatal_signals): New function.
84294         (uninstall_handlers, install_handlers): Ignore signals that were set to
84295         SIG_IGN.
84296         (at_fatal_signal): Call init_fatal_signals.
84297         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84298         SIG_IGN.
84299         Reported by Paul Eggert.
84300
84301 2004-12-18  Bruno Haible  <bruno@clisp.org>
84302
84303         * doc/alloca.texi: New file.
84304         * doc/alloca-opt.texi: New file.
84305
84306 2004-12-17  Jim Meyering  <jim@meyering.net>
84307
84308         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84309         Otherwise, install-sh could exit with improper exit status when
84310         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84311
84312 2004-12-16  Simon Josefsson  <jas@extundo.com>
84313
84314         * tests/test-base64.c: Add license.
84315
84316 2004-12-15  Stepan Kasal  <address@hidden>
84317
84318         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84319
84320 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * modules/getcwd (Files): Add m4/d-ino.m4.
84323         Suggested by Mark D. Baushke.
84324
84325 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84326
84327         * lib/getdate.y (textint): New member "negative".
84328         (time_zone_hhmm): New function.
84329         Expect 14 shift-reduce conflicts, not 13.
84330         (o_colon_minutes): New rule.
84331         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84332         (yylex): Set the "negative" member of signed numbers.
84333
84334 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84335
84336         * doc/getdate.texi (Time of day items, Time zone items):
84337         Describe new formats +00:00, UTC+00:00.
84338
84339 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84340
84341         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84342         spurious "-l"s.  Problem reported by Stepan Kasal.
84343
84344 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84345
84346         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84347         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84348
84349 2004-12-04  Simon Josefsson  <jas@extundo.com>
84350
84351         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84352         Vandoorselaere <yoann@prelude-ids.org>.
84353
84354 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84355
84356         Changes imported from coreutils.
84357         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84358         exist.
84359         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84360
84361 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84362
84363         Changes imported from coreutils.
84364         * lib/hard-locale.c: Assume <locale.h> exists.
84365         Include "strdup.h".
84366         (GLIBC_VERSION): New macro.
84367         (hard_locale): Assume setlocale exists.
84368         Rewrite to avoid #ifdef.
84369         Use strdup rather than malloc + strcpy.
84370         * lib/human.c: Assume <locale.h> exists.
84371         (human_readable): Assume localeconv exists.
84372
84373 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84374
84375         * modules/hard-locale (Depends-on): Add strdup.
84376
84377 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84378
84379         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84380         convert T2, not T.  (Imported from libc.)
84381
84382 2004-11-30  Simon Josefsson  <jas@extundo.com>
84383
84384         * modules/restrict (License): Change to LGPL.
84385
84386 2004-11-30  Simon Josefsson  <jas@extundo.com>
84387
84388         * m4/restrict.m4: Add copyright and copying conditions.
84389
84390 2004-11-30  Simon Josefsson  <jas@extundo.com>
84391
84392         * m4/base64.m4: New file.
84393
84394 2004-11-30  Simon Josefsson  <jas@extundo.com>
84395
84396         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84397         base64.
84398
84399         * tests/test-base64.c: New file.
84400
84401         * modules/base64: New file.
84402
84403 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84404
84405         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84406         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84407
84408         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84409
84410 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84411
84412         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84413         (__getcwd.c): Don't restore errno; glibc doesn't.
84414         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84415         first, falling back to our code only if its results look suspicious.
84416         Ensure that the resulting buffer is only as large as necessary.
84417
84418         * lib/readutmp.c: Include readutmp.h first.
84419         Include <errno.h>, since readutmp.h no longer does that.
84420         * lib/readutmp.h: Don't include <errno.h>,
84421         <sys/param.h>, <time.h>; not needed to establish interface.
84422         (errno): Remove decl.
84423         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84424         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84425         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84426
84427 2004-11-28  Simon Josefsson  <jas@extundo.com>
84428
84429         * lib/base64.h, base64.c: New file.
84430
84431 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84432
84433         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84434
84435 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84436
84437         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84438         (Depends-on): Remove pathmax, same.  Add mempcpy.
84439         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84440         (Makefile.am): Append getcwd.h to lib_SOURCES.
84441         (Include): Add getcwd.h.
84442         (Maintainer): Change from Jim Meyering to "all, glibc",
84443         since getdate now uses intended-for-glibc code.
84444         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84445         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84446
84447 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84448
84449         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84450         HP's ANSI C compiler.
84451         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84452         Declaring int functions causes warnings on some modern systems and
84453         shouldn't be needed to compile on ancient ones.
84454         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84455         defined.
84456
84457         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84458         with the following changes.
84459         (__set_errno): Parenthesize properly.
84460         Include <stdbool.h>.
84461         (MIN, MAX, MATCHING_INO): New macros.
84462         (__getcwd): Define with prototype, not K&R form.
84463         Use heuristics to allocate default buffer on stack if possible.
84464         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84465         behavior, and to avoid the PATH_MAX limit when computing
84466         ../../../../...
84467         Use MATCHING_INO to compare inode number to file.
84468         Check for arithmetic overflow in size calculations.
84469         Fix bug in reallocation of dot array that caused getcwd to fail
84470         on directories nested deeper than 75.
84471         Be more careful about saving errno on error.
84472         Do not use realloc; use only free+malloc, as this is a bit
84473         more flexible and avoids a needless copy operation.
84474         Do not inspect st_dev and st_ino for symbolic links; POSIX
84475         doesn't specify the latter.
84476         Check for closedir errors.
84477         Avoid needless casts.
84478         Use "#ifdef weak_alias" around weak_alias, to be like other
84479         glibc code.
84480         The following changes to getcwd.c have effect only when used in
84481         gnulib; they have no effect inside glibc proper.
84482         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84483         as alloca isn't used.
84484         (alloca, __alloca): Likewise.
84485         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84486         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84487         unconditionally, as gnulib assumes C89 or better.
84488         Do not include <sys/param.h>.
84489         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84490         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84491         better.
84492         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84493         Include <dirent.h> in a way that is compatible with modern Autoconf.
84494         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84495         New macros, if not already defined.
84496         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84497         Use "_LIBC", not "defined _LIBC", for consistency.
84498         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84499         a mempcpy module.
84500         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84501         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84502         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84503         credit only to Jim Meyering and adjust the copyright dates.
84504         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84505         <stdlib.h>, <unistd.h>, "pathmax.h".
84506         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84507         (INITIAL_BUFFER_SIZE): Remove.
84508         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84509
84510 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84511
84512         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84513         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84514         Use the _ONCE methods, for efficiency.
84515         Check for fcntl.h.  In test program, include <errno.h>
84516         and <fcntl.h> if available.  Remove old K&R cruft from
84517         test program.  Check for common errors in GNU/Linux,
84518         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84519         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84520         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84521         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84522         name accordingly.
84523         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84524         accommodate new getcwd.c.
84525         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84526         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84527         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84528         that's all we need now.
84529
84530 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84531
84532         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84533         argp-parse.c depends on getopt internals, that means we should
84534         always use our getopt, to be on the safe side.
84535         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84536         order not to spoil the result of an eventual previous invocation
84537         of gl_GETOPT_SUBSTITUTE.
84538
84539 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84540
84541         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84542         redefinition warnings. To avoid them, include the defines
84543         in `#if !defined __need_getopt ... #endif'. The only place
84544         where __getopt_argv_const is used is in definitions
84545         of getopt_long and getopt_long_only below, which are as well
84546         protected by `#ifndef __need_getopt'.
84547         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84548         __need_getopt after including <stdio.h> and <unistd.h> These
84549         headers might have defined it.
84550
84551 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84552
84553         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84554
84555 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84556
84557         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84558         (futimens): New function, which uses futimes if available.
84559         (futimens, utimens): Support timespec==NULL, with same semantics
84560         as utime and utimens.
84561         * lib/utimens.h (futimens): New decl.
84562
84563 2004-11-23  Jim Meyering  <jim@meyering.net>
84564
84565         * lib/getopt_.h: Remove trailing blanks.
84566
84567 2004-11-23  Jim Meyering  <jim@meyering.net>
84568
84569         * lib/__fpending.c: Add comment.
84570
84571 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84572
84573         * modules/canonicalize (Depends-on): Add xreadlink.
84574         Problem reported by James Youngman.
84575
84576 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84577
84578         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84579         New macros.
84580         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84581         optopt): Use them instead of invoking ## directly; otherwise, the
84582         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84583
84584 2004-11-19  Bruno Haible  <bruno@clisp.org>
84585
84586         * lib/strtok_r.c: Move comments from here...
84587         * lib/strtok_r.h: ... to here.
84588
84589 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84590
84591         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84592         implementations that mishandle size_t overflow.
84593
84594 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84595
84596         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84597         might fail.  Problem reported by Yoann Vandoorselaere.
84598         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84599         implementations that mishandle size_t overflow.
84600
84601 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84602
84603         * modules/canon-host (Depends-on): Add strdup.
84604
84605 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84606
84607         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84608
84609 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84610
84611         * lib/canon-host.c: Include "strdup.h".
84612         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84613         Use strdup instead of malloc/strcpy to duplicate strings.
84614
84615         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84616         (human_space_before_unit): New constant.
84617         * lib/human.c (human_readable): Support it.
84618
84619         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84620         (xgetcwd): Set errno correctly when failing.
84621         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84622         the failure is actually due to a PATH_MAX problem.
84623
84624         Further getopt changes to make it more likely that glibc will
84625         buy the changes back.
84626         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84627         (getopt): Use it, so to preserve glibc semantic
84628         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84629         when compiling for libc.
84630         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84631         (getopt_long, getopt_long_only): Use it.
84632
84633         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84634         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84635         (getopt): Argv is now char * const *, as per standard.
84636         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84637         not char *__getopt_argv_const *.
84638         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84639         _getopt_long_only_r): Likewise.
84640         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84641         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84642         _getopt_long_r, _getopt_long_only_r): Likewise.
84643         * lib/getopt_.h (__getopt_argv_const): Remove.
84644         (getopt): Argv is now char * const *, as per standard.
84645
84646         * lib/getdate.y (tORDINAL): New token.
84647         (day, relunit): Allow it for relative times.
84648         (relative_time_table): Use tORDINAL for ordinals.
84649
84650 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84651
84652         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84653         Document that "second" isn't allowed as an ordinal number.
84654
84655 2004-11-16  Jim Meyering  <jim@meyering.net>
84656
84657         * modules/closeout (Depends-on): Add fpending.
84658
84659 2004-11-15  Jim Meyering  <jim@meyering.net>
84660
84661         * lib/closeout.c: Include "__fpending.h" once again.
84662         Include <stdbool.h>.
84663         (close_stdout): Don't fail just because stdout was closed initially,
84664         since some programs don't write to stdout in the normal course of
84665         operation (other than --version and --help), and we don't want this
84666         function to make e.g. `touch file >&-' fail.
84667         But do fail if it was closed and someone has tried to write to it.
84668         E.g., `printf foo >&-' must fail.
84669
84670 2004-11-13  Jim Meyering  <jim@meyering.net>
84671
84672         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84673
84674 2004-11-12  Simon Josefsson  <jas@extundo.com>
84675
84676         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84677         small doc fix is still pending.
84678
84679 2004-11-11  Simon Josefsson  <jas@extundo.com>
84680
84681         * modules/strtok_r: New file.
84682
84683         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84684         strtok_r.
84685
84686 2004-11-11  Simon Josefsson  <jas@extundo.com>
84687
84688         * m4/strtok_r.m4: New file.
84689
84690         * m4/getopt.m4: Replace opterr.
84691
84692 2004-11-11  Simon Josefsson  <jas@extundo.com>
84693
84694         * lib/strtok_r.h, strtok_r.c: New file.
84695
84696 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84697
84698         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84699         of replacing opterr, getopt, etc.  This should handle the
84700         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84701
84702 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84703
84704         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84705         we can stop lying to compilers about the constness of argv when we
84706         are compiled outside glibc.
84707         (getopt, getopt_long, getopt_long_only): Use it.
84708         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84709         _getopt_internal, getopt): Likewise.
84710         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84711         _getopt_long_only_r): Likewise.
84712         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84713         _getopt_long_r, _getopt_long_only_r): Likewise.
84714
84715         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84716         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84717         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84718         the other external symbols.
84719         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84720         declaration, since the above renaming now works around collisions.
84721
84722 2004-11-11  Jim Meyering  <jim@meyering.net>
84723
84724         * lib/linebreak.c: Remove trailing blanks.
84725         * lib/alloca_.h: Likewise.
84726         * lib/acosl.c: Likewise.
84727         * lib/euidaccess.c: Likewise.
84728         * lib/allocsa.h: Likewise.
84729
84730 2004-11-10  Simon Josefsson  <jas@extundo.com>
84731
84732         * m4/getaddrinfo.m4: New file.
84733
84734 2004-11-10  Simon Josefsson  <jas@extundo.com>
84735
84736         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84737
84738 2004-11-10  Simon Josefsson  <jas@extundo.com>
84739
84740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84741         getaddrinfo.
84742
84743         * modules/getaddrinfo: New file.
84744
84745 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84746
84747         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84748
84749 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84750
84751         * lib/mktime.c (SHR): New macro, which is a portable
84752         substitute for >> that should work even on Crays.
84753         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84754         Problem reported by Mark D. Baushke in
84755         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84756         * lib/getdate.y (SHR): Likewise.
84757         (tm_diff): Use it.
84758         * lib/strftime.c (SHR): Likewise.
84759         (tm_diff): Use it.
84760         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84761         quote_these_too, so that right shifts are well defined.  All uses
84762         changed.
84763
84764 2004-11-10  Jim Meyering  <jim@meyering.net>
84765
84766         Ensure that no close failure goes unreported.
84767         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84768         return early when it seems there's nothing to flush.
84769         Don't include __fpending.h.
84770
84771 2004-11-10  Jim Meyering  <jim@meyering.net>
84772
84773         * modules/closeout (Depends-on): Remove fpending.
84774
84775 2004-11-10  Jim Meyering  <jim@meyering.net>
84776
84777         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84778
84779 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84780
84781         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84782         gl_FUNC_STRFTIME.
84783         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84784         and AC_REQUIRE when possible, to avoid duplicate checks.
84785         Check for <wchar.h>.
84786
84787 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84788
84789         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84790
84791 2004-11-09  Bruno Haible  <bruno@clisp.org>
84792
84793         * m4/sockpfaf.m4: New file.
84794
84795 2004-11-05  Bruno Haible  <bruno@clisp.org>
84796
84797         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84798         Reported by Mark D. Baushke <mdb@cvshome.org>.
84799
84800 2004-11-04  Bruno Haible  <bruno@clisp.org>
84801
84802         2004-09-11  Bruno Haible  <bruno@clisp.org>
84803                 * allocsa.valgrind: New file.
84804         2004-02-06  Bruno Haible  <bruno@clisp.org>
84805                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84806                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84807                 Reported by Christopher Seip <chris.seip@hp.com>.
84808
84809 2004-11-04  Bruno Haible  <bruno@clisp.org>
84810
84811         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84812         (Makefile.am): Distribute it.
84813
84814 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84815
84816         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84817         with errno == ERANGE if the buffer is too small.
84818         Problem reported by Mark D. Baushke.
84819
84820 2004-11-03  Albert Chin  <china@thewrittenword.com>
84821             Paul Eggert  <eggert@cs.ucla.edu>
84822
84823         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84824         equivalent, substitute $ac_type for equivalent type rather than
84825         blindly using uint32_t *always* which won't work if uint32_t is not
84826         available.  Define _UINT32_T to work around typedef of uint32_t if
84827         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84828         2.5.1.
84829
84830 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84831
84832         * m4/jm-macros.m4: Sync from coreutils.
84833         (gl_MACROS): Check for mbrlen, for pathchk.
84834         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84835
84836 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84837
84838         * lib/xreadlink.c (MAXSIZE): New macro.
84839         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84840         size does not exceed MAXSIZE.  Avoid cast.
84841         As suggested by Mark D. Baushke in
84842         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84843         if readlink fails with buffer size just under MAXSIZE, try again
84844         with MAXSIZE.
84845
84846 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84847
84848         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84849
84850 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84851         and  Paul Eggert  <eggert@cs.ucla.edu>
84852
84853         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84854         (get_date): Overparenthesize to avoid GCC warning.
84855
84856 2004-11-02  Bruno Haible  <bruno@clisp.org>
84857
84858         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84859         returns void.
84860
84861 2004-11-02  Bruno Haible  <bruno@clisp.org>
84862
84863         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84864         function returns void.
84865
84866 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84867
84868         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84869         fflush_unlocked, flockfile, funlockfile, funlockfile,
84870         fputs_unlocked, putc_unlocked.
84871
84872 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84873
84874         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84875         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84876         already declared.
84877
84878 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84879
84880         * modules/getdate (Files): Add doc/getdate.texi.
84881         (Depends-on): Add setenv, xalloc.
84882
84883 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84884
84885         * lib/getdate.y: Add support for TZ="foo" within a date string.
84886         Fix some bugs near time_t boundaries.  Reject dates with
84887         out-of-range components, e.g., "Sept 31".
84888         Include <stdlib.h>, "setenv.h", "xalloc.h".
84889         (ISDIGIT_LOCALE): Remove; unused.
84890         Note that the TZ and time functions used here are not reentrant.
84891         (mktime_ok, get_tz): New functions.
84892         (TZBUFSIZE): New constant.
84893         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84894         This requires that we sometimes generate our own TZ="XXX..." setting.
84895
84896 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84897
84898         * doc/getdate.texi: New file, from coreutils with modifications for
84899         the new TZ parsing.
84900
84901 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84902
84903         * lib/mktime.c (not_equal_tm): Remove redundant check.
84904
84905 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84906
84907         * modules/regex (lib_SOURCES): Add regex.c.
84908         Reported by James Youngman in
84909         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84910
84911 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84912
84913         * lib/getdate.y: Use Bison 1.875 features, and some minor
84914         code cleanups.  This change does not affect semantics.
84915         Don't include <stdlib.h>; no longer needed.
84916         Don't include unlocked-io.h; only the "#if TEST" code uses
84917         stdio, and performance isn't crucial there.
84918         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84919         Bison 1.875 features as described below.
84920         All uses of "PC." replaced by "pc->".
84921         (YYSTYPE): Add a forward declaration.
84922         (yylex, yyerror): Use full prototypes in forward decls.
84923         Use "%pure-parser" rather than obsolescent "%pure_parser".
84924         Use %parse-param and %lex-param instead of obsolescent
84925         YYPARSE_PARAM and YYLEX_PARAM.
84926         (meridian_table, month_and_day_table, time_units_table,
84927         relative_time_table, time_zone_table, military_table,
84928         lookup_zone, lookup_word, get_date):
84929         Use NULL instead of 0 where appropriate.
84930         (to_hour): Avoid abort (), to avoid a dependency on
84931         stdlib.h.
84932         (yyerror, yylex): Now accepts parser_control * arg.
84933         (main) [TEST]: Use '\0' rather than 0 for char.
84934
84935 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84936
84937         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84938
84939 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84940
84941         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84942         It's now the caller's responsibility to handle the case where
84943         !HAVE_GETPAGESIZE && !defined getpagesize.
84944
84945         * lib/mktime.c (leapyear): Arg is long int, not int.
84946
84947 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84950
84951 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84952
84953         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84954         missing.  Problem reported by James Youngman.
84955
84956 2004-10-16  Simon Josefsson  <jas@extundo.com>
84957
84958         * gnulib-tool: Fix comments.  Fix parse problem.
84959         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84960
84961 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84962
84963         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84964         implementation of getopt_long.  Problem reported by Alexander Taler in:
84965         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84966
84967 2004-10-15  Bruno Haible  <bruno@clisp.org>
84968
84969         * gnulib-tool: Untabify. Initialize supplied_libname.
84970         (func_usage): More homogenous output.
84971         (func_modules_transitive_closure, func_modules_to_filelist,
84972         func_emit_lib_Makefile_am): New functions.
84973         (func_import): New function, extracted from big case statement. Use
84974         func_get_license, func_modules_transitive_closure,
84975         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84976         opt_lgpl. Don't use test -a, as it's not portable.
84977         (func_create_testdir): Use func_modules_transitive_closure,
84978         func_modules_to_filelist, func_emit_lib_Makefile_am.
84979
84980 2004-10-15  Bruno Haible  <bruno@clisp.org>
84981
84982         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84983
84984 2004-10-15  Bruno Haible  <bruno@clisp.org>
84985
84986         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84987         the portions belonging to each module.
84988         Suggested by Derek Robert Price <derek@ximbiot.com>.
84989
84990 2004-10-12  Simon Josefsson  <jas@extundo.com>
84991
84992         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84993         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84994         to real functions.
84995
84996 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84997
84998         * modules/vsnprintf: New file.
84999
85000 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85001
85002         * m4/vsnprintf.m4: New file.
85003
85004 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85005
85006         * lib/vsnprintf.h: New file.
85007         * lib/vsnprintf.c: New file.
85008
85009 2004-10-11  Bruno Haible  <bruno@clisp.org>
85010
85011         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85012         vsnprintf.
85013
85014 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85015
85016         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85017
85018 2004-10-07  Bruno Haible  <bruno@clisp.org>
85019
85020         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85021         fits into the provided buffer.
85022
85023 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85024
85025         * lib/diacrit.c, diacrit.h: Add GPL notice.
85026
85027         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85028         notice.
85029         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85030         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85031         This avoids a potential constant-folding bug.
85032
85033 2004-10-05  Bruno Haible  <bruno@clisp.org>
85034
85035         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85036         for the declaration of strsep.
85037
85038 2004-10-05  Bruno Haible  <bruno@clisp.org>
85039
85040         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85041
85042 2004-10-04  Simon Josefsson  <jas@extundo.com>
85043
85044         * modules/memmem: New file.
85045         * tests/test-memmem.c: New file.
85046         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85047
85048 2004-10-04  Simon Josefsson  <jas@extundo.com>
85049
85050         * m4/memmem.m4: New file.
85051
85052 2004-10-04  Simon Josefsson  <jas@extundo.com>
85053
85054         * lib/memmem.h: New file.
85055         * lib/memmem.c: New file, taken from glibc.
85056
85057 2004-10-04  Simon Josefsson  <jas@extundo.com>
85058
85059         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85060         '#ifdef USE_UNLOCKED_IO'.
85061
85062 2004-10-04  Simon Josefsson  <jas@extundo.com>
85063
85064         * config/srclist.txt: Add memmem from glibc.
85065
85066 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85067
85068         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85069
85070         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85071         modules/exclude, modules/getdate, modules/getline,
85072         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85073         modules/getusershell, modules/linebuffer, modules/md5,
85074         modules/mountlist, modules/posixtm, modules/readtokens,
85075         modules/readutmp, modules/regex, modules/sha1,
85076         modules/version-etc, modules/yesno:
85077         Remove dependency on unlocked-io.
85078
85079 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85080
85081         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85082
85083         * m4/unlocked-io.m4: Add copyright notice.
85084         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85085
85086 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85087
85088         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85089         * lib/xmalloc.c (xmemdup): Likewise.
85090         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85091         XFREE): Remove these long-obsolescent macros.
85092         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85093         * lib/xstrdup.c: Remove.
85094
85095         * lib/regex.c (re_comp): Cast gettext return value to char *,
85096         Problem reported by Martin Neitzel via Mark D. Baushke.
85097
85098 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85099
85100         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85101         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85102         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85103         regex.c, sha1.c, version-etc.c, yesno.c:
85104         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85105         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85106         the includer's responsibility.
85107
85108         Sync from coreutils.
85109
85110         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85111         points to the start of a string, as the C Standard says the
85112         resulting behavior is undefined.
85113
85114         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85115         simple -> simple_backups, numbered_existing ->
85116         numbered_existing_backups, numbered -> numbered_backups
85117         to avoid shadowing problems.  All uses changed.
85118         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85119         * lib/backupfile.c (check_extension, numbered_backup):
85120         Rename locals to avoid shadowing 'basename'.
85121         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85122         once.
85123
85124         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85125         * lib/.cvsignore: Add getopt.h.
85126
85127 2004-10-04  Bruno Haible  <bruno@clisp.org>
85128
85129         * modules/README: New file.
85130         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85131         not a module.
85132
85133 2004-10-02  Jim Meyering  <jim@meyering.net>
85134
85135         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85136
85137 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85138
85139         * modules/strsep: New file.
85140
85141 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85142
85143         * m4/strsep.m4: New file.
85144
85145 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85146
85147         * lib/strsep.h: New file.
85148         * lib/strsep.c: New file.
85149
85150 2004-10-01  Simon Josefsson  <jas@extundo.com>
85151
85152         * lib/snprintf.c (snprintf): Handle size==0.
85153
85154 2004-10-01  Simon Josefsson  <jas@extundo.com>
85155             Bruno Haible  <bruno@clisp.org>
85156
85157         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85158         (snprintf): Declare 'args'.
85159
85160 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85161
85162         * lib/snprintf.c: Remove comments as to why each header is needed.
85163
85164 2004-10-01  Bruno Haible  <bruno@clisp.org>
85165
85166         * MODULES.html.sh: Add strsep.
85167
85168 2004-09-30  Simon Josefsson  <jas@extundo.com>
85169
85170         * modules/snprintf: New file.
85171
85172 2004-09-30  Simon Josefsson  <jas@extundo.com>
85173
85174         * m4/snprintf.m4: New file.
85175
85176 2004-09-30  Simon Josefsson  <jas@extundo.com>
85177
85178         * lib/snprintf.h, lib/snprintf.c: New files.
85179
85180 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85181
85182         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85183         (hol_entry_help): Never translate an empty string.
85184         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85185         * lib/argp.h (OPTION_NO_TRANS): New option.
85186
85187 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85188
85189         * modules/argp (Maintainer): Replace Simon Josefsson
85190         by Sergey Poznyakoff.
85191
85192 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85193
85194         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85195         changes merged back into glibc.
85196
85197 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85198
85199         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85200
85201 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85202
85203         * lib/xvasprintf.c: Include xalloc.h.
85204         (xvasprintf): Use xalloc_die, not xmalloc_die.
85205
85206 2004-09-29  Bruno Haible  <bruno@clisp.org>
85207
85208         * modules/alloca-opt: New file, derived from modules/alloca.
85209         * modules/allocsa: Depend on alloca-opt instead of alloca.
85210         * modules/setenv: Likewise.
85211         * modules/vasnprintf: Likewise.
85212         * MODULES.html.sh: Add alloca-opt.
85213
85214 2004-09-28  Simon Josefsson  <jas@extundo.com>
85215
85216         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85217         LGPL, and to replace license template from GPL to LGPL.
85218
85219 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85220
85221         * modules/dummy: Change license to LGPL.
85222
85223 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85224
85225         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85226
85227 2004-09-24  Simon Josefsson  <jas@extundo.com>
85228
85229         * modules/minmax (License): Change from GPL to LGPL.
85230
85231 2004-09-23  Simon Josefsson  <jas@extundo.com>
85232
85233         * gnulib-tool (--import): Typo.
85234
85235 2004-09-23  Simon Josefsson  <jas@extundo.com>
85236
85237         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85238
85239 2004-09-22  Bruno Haible  <bruno@clisp.org>
85240
85241         * modules/*: Add 'License' field.
85242         * gnulib-tool: Accept --extract-license option.
85243         (func_get_license): New function.
85244
85245 2004-09-21  Bruno Haible  <bruno@clisp.org>
85246
85247         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85248         Reported by Simon Josefsson.
85249
85250 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85251
85252         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85253         gl_AC_TYPE_LONG_LONG.
85254
85255 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85256
85257         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85258
85259 2004-09-18  Simon Josefsson  <jas@extundo.com>
85260         and  Paul Eggert  <eggert@cs.ucla.edu>
85261
85262         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85263         calls with autoreconf.  Define GL_LIB.
85264
85265 2004-09-14  Karl Berry  <karl@gnu.org>
85266
85267         * config/srclist.txt: unsync setenv.c, sigh.
85268
85269 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85270
85271         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85272         Problem reported by Bruno Haible in:
85273         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85274
85275 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85276
85277         * config/srclist.txt: Comment out argp-pvh.c.
85278
85279 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85280
85281         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85282         in case some system header has #define'd it.  Problem reported by
85283         Soeren D. Schulze in
85284         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85285
85286 2004-09-09  Karl Berry  <karl@gnu.org>
85287
85288         * regex.[ch]: delete from the root.  These were supposed to be
85289                 synced with emacs cvs, but this has not happened for about
85290                 a year, and anyway nothing else uses emacs regex.[ch].
85291                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85292                 lib/regex[.ch] is untouched.
85293
85294 2004-09-09  Bruno Haible  <bruno@clisp.org>
85295
85296         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85297
85298 2004-09-09  Bruno Haible  <bruno@clisp.org>
85299
85300         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85301         modifications.
85302         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85303
85304 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85305
85306         * modules/xvasprintf: New file.
85307         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85308
85309 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85310
85311         * lib/xvasprintf.h: New file.
85312         * lib/xvasprintf.c: New file.
85313         * lib/xasprintf.c: New file.
85314
85315 2004-09-08  Bruno Haible  <bruno@clisp.org>
85316
85317         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85318
85319 2004-09-08  Bruno Haible  <bruno@clisp.org>
85320
85321         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85322         length is > INT_MAX.
85323         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85324         more.
85325
85326 2004-09-08  Bruno Haible  <bruno@clisp.org>
85327
85328         * lib/stdint_.h: New file, taken from GNU clisp.
85329
85330 2004-09-08  Bruno Haible  <bruno@clisp.org>
85331             Oskar Liljeblad  <oskar@osk.mine.nu>
85332
85333         * modules/stdint: New file.
85334         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85335
85336 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85337
85338         Import from coreutils.
85339         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85340         strings on unbounded length.  alloca's performance benefits aren't
85341         that important here.
85342         (V_STRDUP): Remove.
85343         (parse_with_separator): New function, with most of the internals
85344         of the old parse_user_spec.  Allow user to omit both user and group,
85345         for compatibility with FreeBSD.
85346         Clone only the user name, not the entire spec.
85347         Do not set *uid, *gid unless entirely successful.
85348         Avoid memory leak in some failing cases.
85349         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85350         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85351         (parse_user_spec): Rewrite to use parse_with_separator.
85352
85353 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85354
85355         * modules/userspec: Don't depend on alloca.
85356
85357 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85358
85359         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85360
85361 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85362
85363         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85364         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85365         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85366
85367 2004-08-16  Simon Josefsson  <jas@extundo.com>
85368
85369         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85370         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85371         Add --dry-run for --import.
85372         Let user provided command line parameters override configure.ac
85373         settings.
85374
85375 2004-08-12  Simon Josefsson  <jas@extundo.com>
85376
85377         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85378         as discussed with Paul Eggert in threads rooted at
85379         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85380         and
85381         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85382         Before, the test was empty, and relied on ELIDE_CODE in source
85383         code.)
85384         (gl_PREREQ_GETOPT): New macro.
85385         (gl_GETOPT): Use them.
85386
85387 2004-08-12  Simon Josefsson  <jas@extundo.com>
85388
85389         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85390         * lib/getopt_.h: Renamed from getopt.h.
85391
85392 2004-08-12  Simon Josefsson  <jas@extundo.com>
85393
85394         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85395         Change default library name from libfoo to libgnu.
85396         Now, if you have a configure.ac that says:
85397                 gl_SOURCE_BASE(gl)
85398                 gl_M4_BASE(gl/m4)
85399                 gl_MODULES(error getopt etcetera)
85400                 gl_INIT
85401         you can import all you need by running:
85402                 ../gnulib/gnulib-tool --import
85403
85404         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85405         (Makefile.am): Rewrite, use logic from argz.
85406         (Include): Use <getopt.h> instead of "getopt.h".
85407
85408 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85409
85410         * modules/argp (Files): Add m4/unlocked-io.m4.
85411         (Depends-on): Add extensions.
85412
85413 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85414
85415         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85416         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85417         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85418         Check for program_invocation_name, program_invocation_short_name,
85419         flockfile, funlockfile, features.h, _getopt_long_only_r.
85420
85421 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85422
85423         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85424         its complicated substitute.
85425         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85426         and program_invocation_name.
85427         (__argp_basename) [!_LIBC]: Remove; the only use was
85428         replaced by its body.
85429         (__argp_short_program_name): Change condition from
85430         !defined __argp_short_program_name to
85431         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85432         to match argp-namefrob.h.
85433         (__argp_failure): Don't assume strerror_r returns char *.
85434         * lib/argp-parse.c (N_): Define unconditionally.
85435         (argp_default_options): Fill out initializers with 0 to avoid
85436         gcc warnings.
85437
85438 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85439
85440         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85441         getopt1.c.
85442
85443 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85444
85445         Merge from coreutils.
85446
85447         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85448
85449         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85450         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85451
85452 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85453
85454         Merge from coreutils.
85455
85456         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85457         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85458         for Reliant Unix 5.43.
85459
85460         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85461         (union fooround): Use uintmax_t, not long int.
85462         The rest is a merge from libc:
85463         [defined _LIBC]: Include <shlib-compat.h>.
85464         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85465
85466         * lib/settime.c (settime): Recode to avoid warning with
85467         Sun Forte C 6U2.
85468
85469         * lib/strverscmp.c: Convert to UTF-8.
85470
85471 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85472
85473         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85474         m4/uintmax_t.m4.
85475
85476 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85477
85478         * modules/xalloc-die: New file.
85479         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85480
85481         * modules/md5 (Files): Add m4/uint32_t.m4.
85482         * modules/sha1: Renamed from modules/sha.
85483         (Files):
85484         Rename lib/sha.h to lib/sha1.h.
85485         Rename lib/sha.c to lib/sha1.c.
85486         Rename m4/sha.m4 to m4/sha1.m4.
85487         (lib_SOURCES): Likewise.
85488         (configure.ac): Rename gl_SHA to gl_SHA1.
85489         (Include): sha.h -> sha1.h.
85490
85491 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85492
85493         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85494         * m4/sha1.m4: Renamed from sha.m4.
85495         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85496
85497 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85498
85499         * lib/obstack.h (obstack_empty_p):
85500         Don't assume that chunk->contents is suitably aligned.
85501         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85502         Likewise. Problem reported by Benno in
85503         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85504
85505         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85506         readable.  This could be improved further but it'd take some work.
85507
85508 2004-08-08  Simon Josefsson  <jas@extundo.com>
85509
85510         * modules/xgethostname (Depends-on): Remove exit and error (not
85511         used).
85512
85513         * modules/getpass-gnu: Add getpass.h.
85514         (Depends-on): Add stdbool.
85515         * modules/getpass: Add getpass.h.
85516
85517 2004-08-08  Simon Josefsson  <jas@extundo.com>
85518
85519         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85520         Check getpass declaration.
85521
85522 2004-08-08  Simon Josefsson  <jas@extundo.com>
85523
85524         * lib/xgethostname.c: Don't include error.h (not used).
85525
85526         * lib/getpass.h: Add.
85527         * lib/getpass.c: Include getpass.h first.
85528
85529 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         * lib/xalloc-die.c: New file.
85532         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85533         All uses removed.
85534         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85535         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85536         xalloc-die.c.
85537         (_, N_, xalloc_die): Move to xalloc-die.c.
85538         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85539         so that we needn't mess with xalloc_msg_memory_exhausted.
85540
85541         * lib/sha1.h: Renamed from sha.h.
85542         (SHA1_H): Renamed from _SHA_H.
85543         (sha1_ctx): Renamed from sha_ctx.
85544         (sha1_init_ctx): Renamed from sha_init_ctx.
85545         (sha1_process_block): Renamed from sha_process_block.
85546         (sha1_process_bytes): Renamed from sha_process_bytes.
85547         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85548         (sha1_read_ctx): Renamed from sha_read_ctx.
85549         (sha1_stream): Renamed from sha_stream.
85550         (sha1_buffer): Renamed from sha_buffer.
85551         * lib/sha1.c: Likewise; renamed from sha.c.
85552         Do not include <sys/types.h>.
85553         Include <stddef.h> rather than <stdlib.h>.
85554
85555 2004-08-08  Bruno Haible  <bruno@clisp.org>
85556
85557         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85558         FILESYSTEM_PREFIX_LEN.
85559         * lib/progreloc.c: Likewise.
85560         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85561
85562 2004-08-06  Simon Josefsson  <jas@extundo.com>
85563
85564         * modules/progname (Depends-on): Don't depend on stdbool.
85565
85566 2004-08-06  Simon Josefsson  <jas@extundo.com>
85567
85568         * modules/getsubopt: New file.
85569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85570         getsubopt.
85571
85572 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85573
85574         More merge from coreutils.
85575
85576         * m4/utimens.m4, m4/utimecmp.m4: New files.
85577         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85578         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85579         prereq.m4, sha.m4: Import changes from coreutils.
85580
85581 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85582
85583         More merge from coreutils.
85584         * modules/raise, modules/readtokens0, modules/utimens:
85585         * modules/utimecmp, module/xnanosleep: New files.
85586         * modules/strftime: Add lib/strftime.h.
85587         Change include from <time.h> to "strftime.h".
85588         * modules/yesno: Add lib/yesno.h.
85589         * modules/backupfile: Remove lib/addext.c.
85590         * modules/euidaccess: Add stat-macros.h.
85591         * modules/canonicalize, modules/euidaccess,
85592         modules/filemode, modules/lchown, modules/makepath,
85593         modules/rmdir, modules/stat: Likewise.
85594
85595 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85596
85597         Merge from tar.
85598         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85599         SIZE_MAX is a valid preprocessor constant.
85600         (__argp_basename): Change from "#ifndef _LIBC"
85601         to "#ifndef __argp_short_program_name", so that
85602         we don't compile these functions for tar.
85603
85604         More merges from coreutils.
85605         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85606         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85607         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85608         * lib/addext.c: Remove; no longer needed.
85609         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85610         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85611         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85612         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85613         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85614         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85615         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85616         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85617         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85618         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85619         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85620         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85621         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85622         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85623         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85624         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85625         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85626         Import changes from coreutils.
85627
85628 2004-08-05  Simon Josefsson  <jas@extundo.com>
85629
85630         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85631
85632 2004-08-05  Simon Josefsson  <jas@extundo.com>
85633
85634         * m4/getsubopt.m4: New file.
85635
85636 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85637
85638         Merge from coreutils.
85639
85640         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85641         * m4/getcwd-path-max.m4: New files.
85642
85643         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85644         FILESYSTEM_PREFIX_LEN ->
85645         FILE_SYSTEM_PREFIX_LEN.
85646         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85647         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85648         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85649         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85650
85651         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85652         prerequisite modules now handle the DOS stuff.
85653         Don't check for unistd.h.
85654
85655 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85656
85657         Merge from coreutils.
85658
85659         * lib/.gdb-history: Remove; this doesn't belong here.
85660
85661         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85662         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85663         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85664         * lib/getcwd.c: New files.
85665
85666         * lib/dirname.h: Include <stdbool.h>.
85667         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85668         for consistency with POSIX terminology.  All uses changed.
85669         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85670         (strip_trailing_slashes): Use bool for booleans.
85671         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85672
85673         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85674         sometimes returns a positive errno value even when it succeeds.
85675         (print_errno_message) [!LIBC]: Fall back on strerror if
85676         __strerror_r fails.
85677
85678         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85679         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85680         (longest_relative_suffix): New function.
85681         (path_concat): Use it.  Assume first argument is not NULL.
85682         Port to DOS.  Omit redundant separators.
85683         Report an error instead of returning NULL.
85684         Use mempcpy instead of memcpy.
85685         (xpath_concat): Remove: not declared or used.
85686
85687         * lib/same.h: Include <stdbool.h>
85688         (same_name): Return bool, not int.
85689         * lib/same.c (same_name): Likewise.
85690         (errno): Don't declare; we assume C89 or better now.
85691
85692         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85693         if not already defined.
85694
85695         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85696         * lib/dup-safer.c (errno): Likewise.
85697
85698 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85699
85700         Merge from coreutils.
85701         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85702         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85703         * modules/path-concat: Don't depend on strdup.
85704
85705 2004-08-03  Simon Josefsson  <jas@extundo.com>
85706
85707         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85708         * lib/progname.h: Don't include stdbool.h.
85709
85710 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85711
85712         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85713         * MODULES.html.sh (func_all_modules): Remove fatal.
85714
85715 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85716
85717         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85718
85719 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85720
85721         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85722         working.
85723
85724 2004-08-02  Simon Josefsson  <jas@extundo.com>
85725
85726         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85727         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85728         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85729
85730 2004-08-01  Simon Josefsson  <jas@extundo.com>
85731
85732         * lib/xgetdomainname.c: Include stdlib.h, for free().
85733
85734 2004-07-19  Bruno Haible  <bruno@clisp.org>
85735
85736         * MODULES.html.sh (func_all_modules): Add dummy.
85737
85738 2004-07-16  Simon Josefsson  <jas@extundo.com>
85739
85740         * modules/dummy: New file.
85741
85742 2004-07-16  Simon Josefsson  <jas@extundo.com>
85743
85744         * lib/dummy.c: New file.
85745
85746 2004-07-16  Bruno Haible  <bruno@clisp.org>
85747
85748         * lib/backupfile.h: Add extern "C" for C++.
85749         * lib/closeout.h: Likewise.
85750         * lib/copy-file.h: Likewise.
85751         * lib/findprog.h: Likewise.
85752         * lib/full-write.h: Likewise.
85753         * lib/pathname.h: Likewise.
85754         * lib/progname.h: Likewise.
85755         * lib/stpcpy.h: Likewise.
85756         * lib/stpncpy.h: Likewise.
85757         * lib/strcase.h: Likewise.
85758         * lib/strstr.h: Likewise.
85759         * lib/xalloc.h: Likewise.
85760
85761         * lib/mbswidth.h: Add extern "C" for C++.
85762         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85763
85764 2004-07-13  Robert Millan  <robertmh@gnu.org>
85765
85766         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85767
85768 2004-07-09  Simon Josefsson  <jas@extundo.com>
85769
85770         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85771         failed without this.)
85772
85773 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85774
85775         * modules/chown (Files): Add lib/fchown-stub.c, since
85776         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85777
85778 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85779
85780         * lib/fchown-stub.c: New file.
85781
85782 2004-06-24  Jim Meyering  <jim@meyering.net>
85783
85784         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85785
85786 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85787
85788         * modules/argz: Omit "#include".
85789
85790         * MODULES.html.sh (func_all_modules): Add calloc, to match
85791         2004-06-01 addition of calloc module.
85792
85793 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85794
85795         * m4/argz.m4: New file, which is autoupdated from libtool.
85796
85797 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85798
85799         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85800         libtool.
85801
85802 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85803
85804         * config/srclist-update: Don't insist on "USA." before the
85805         close-comment, as libtool omits the period and puts the */ on a
85806         separate line.
85807         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85808         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85809
85810 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85811
85812         * modules/argz: New file.
85813         * MODULES.html.sh (func_all_modules): Add argz.
85814
85815 2004-06-12  Jim Meyering  <jim@meyering.net>
85816         and  Paul Eggert  <eggert@cs.ucla.edu>
85817
85818         * modules/hash (Files): Add lib/xalloc.h.
85819         * modules/pipe (Depends-on): Add wait-process.
85820         * modules/stat (Depends-on): Add xalloc.
85821         * modules/userspec (Files): Add lib/userspec.h.
85822         * modules/xstrto
85823
85824         Upgrade from gettext-0.13.
85825         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85826         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85827         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85828
85829 2004-06-10  Jim Meyering  <jim@meyering.net>
85830
85831         * lib/calloc.c: New file.
85832
85833 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85834
85835         * lib/getdate.y (yylex): Allow space between sign and number.
85836         Problem reported by Dan Jacobson.
85837
85838 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85839
85840         Merge from coreutils CVS.
85841
85842         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85843         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85844         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85845         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85846         xstrtol.m4: Fix copyright date and/or serial number.
85847
85848         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85849         See if we need an fchown replacement.
85850         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85851         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85852         and use the replacement function if we detect either defect.
85853
85854         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85855         gl_UTIMECMP.
85856
85857 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85858         and  Jim Meyering  <jim@meyering.net>
85859
85860         Merge from coreutils CVS.
85861
85862         * lib/stat-macros.h: New file, with contents from file-type.h
85863         and coreutils' system.h.
85864         * lib/file-type.c: Include "stat-macros.h".
85865         * lib/file-type.h (file_type): Move all macro definitions to new file,
85866         stat-macros.h.
85867
85868         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85869         Wrap old code with this conditional.
85870         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85871         function that does not dereference symlinks.
85872         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85873
85874         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85875         dependency problems.
85876         (xreadlink): Accept new arg SIZE, for efficiency.
85877         All decls and uses changed.
85878         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85879
85880         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85881         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85882
85883         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85884         sysexits.h.
85885
85886 2004-06-01  Jim Meyering  <jim@meyering.net>
85887
85888         * m4/calloc.m4: New file.
85889
85890 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85891
85892         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85893         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85894         Also, fix a typo in a diagnostic.
85895
85896 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85897
85898         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85899         or AC_FUNC_REALLOC.
85900
85901 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85902
85903         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85904         macros to be defined.
85905         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85906         the allocator returns NULL because the requested size is zero.
85907
85908 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85909
85910         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85911         var.  Add comment explaining why libc still defines it.  This
85912         merges the following patch from glibc:
85913         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85914
85915 2004-05-20  Andreas Schwab  <schwab@suse.de>
85916
85917         * m4/free.m4: Replace free if it not known to work, not the other
85918         way round.
85919
85920 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85921
85922         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85923         present in glibc since revision 1.1 of this file.
85924         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85925         obstack_alignment_mask, obstack_alloc, obstack_base,
85926         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85927         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85928         obstack_grow0, obstack_init, obstack_int_grow,
85929         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85930         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85931         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85932         nonexistent functions.
85933
85934 2004-05-18  Karl Berry  <karl@gnu.org>
85935
85936         * config/srclist.txt: break link for vasnprintf.c.
85937
85938 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85939
85940         Port obstack to the AS/400, where pointers are 16 bytes wide and
85941         you cannot cast an integer to a valid pointer.  This patch is
85942         currently waiting to be integrated into glibc; see
85943         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85944
85945         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85946         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85947         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85948         (struct obstack): temp member is now a union of a pointer and
85949         an integer, instead of an integer.  All integer uses changed.
85950         This does not affect the physical layout of struct obstack,
85951         except on hosts (like the AS/400) where the size or alignment of
85952         void * is greater than that of ptrdiff_t.
85953         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85954         __STDC__)]: Store temporary in pointer member of union, not
85955         integer member.
85956         * lib/obstack.c: Include <stddef.h>, for offsetof.
85957         (struct fooalign): Remove; it doesn't need a name.
85958         (union fooround): Change double to long double, and add void *.
85959         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85960         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85961         not a macro.  Hence the values are always int; so remove all
85962         casts-to-int in uses.
85963
85964 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85965
85966         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85967         we can get this patch merged into glibc.
85968
85969 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85970             Paul Eggert  <eggert@cs.ucla.edu>
85971
85972         * m4/argp: Depend on alloca.
85973
85974 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85975             Paul Eggert  <eggert@cs.ucla.edu>
85976
85977         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85978         freecoding.
85979
85980 2004-05-17  Bruno Haible  <bruno@clisp.org>
85981
85982         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85983         precision that consists of a '.' followed by an empty digit string.
85984         Patch by Tor Lillqvist <tml@iki.fi>.
85985
85986 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85987
85988         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85989         for backward compatibility with older code.  We need our own
85990         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85991         it under some other name, and our alloca.h will define it.
85992
85993 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85994             Derek Price  <derek@ximbiot.com>
85995
85996         * lib/alloca.c: Include <alloca.h>, to get our interface.
85997         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85998         include <alloca.h> first.  Use C89 prototype for alloca; this
85999         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86000         Use #elif for simplicity, since we can assume C89 now.
86001         Don't try to source the system alloca.h since it will not be found
86002         and to prevent recursively including its replacement.
86003         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86004         * lib/regex.c: Likewise.
86005
86006 2004-05-16  Derek Price  <derek@ximbiot.com>
86007             Paul Eggert  <eggert@cs.ucla.edu>
86008
86009         getline cleanup.  This changes the getndelim2 API: both order of
86010         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86011         no delimiter).
86012
86013         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86014         interface does that.
86015         (getline): Always use getdelim, so that we don't have two
86016         copies of this code.
86017         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86018         if available.
86019         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86020         (GETNDELIM2_MAXIMUM): New macro.
86021         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86022         instead of the old practice of delim2==0.  All callers changed.
86023         Return -1 on overflow, instead of returning junk.
86024         Do not set *linesize unless allocation succeeds.
86025         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86026         that we include sys/types.h.
86027         * lib/getnline.h: Likewise.
86028         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86029         (getndelim2): Reorder arguments.
86030         * lib/getnline.c (getnline, getndelim):
86031         Don't discard the NMAX argument.
86032         (getnline): Invoke getndelim, to avoid code duplication.
86033         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86034         of (size_t) -1 by callers of the getnline family.
86035
86036 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86037
86038         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86039         Check for gettimeofday.
86040         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86041         Check for settimeofday, stime.
86042
86043 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86044
86045         * lib/nanosleep.c (suspended): Change its type from int to
86046         sig_atomic_t volatile.
86047         (first_call): Make it private to rpl_nanosleep, and have it
86048         be zero initially as that's a bit faster.
86049         (my_usleep): Round up fractional times instead of truncating them,
86050         as this is the usual meaning for 'sleep'.
86051
86052         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86053         doesn't work.
86054         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86055         (ENOSYS): Define if not defined.
86056         (settime): Fall back on stime if it exists and settimeofday fails.
86057         But don't bother with fallbacks if a method fails with errno == EPERM.
86058
86059 2004-05-11  Jim Meyering  <jim@meyering.net>
86060
86061         Prior to this change, the save_cwd caller required read access to the
86062         current directory on most systems (ones with the fchdir function).
86063
86064         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86065         fails, try write-only, and finally, resort to using xgetcwd.
86066
86067 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86068
86069         * lib/obstack.c, obstack.h: Import changes from libc.
86070
86071 2004-04-28  Bruno Haible  <bruno@clisp.org>
86072
86073         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86074         also implicitly appends .exe to executables.
86075         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86076         accepts Windows pathnames.
86077         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86078         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86079         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86080         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86081         Reported by Derek Robert Price <derek@ximbiot.com>.
86082
86083 2004-04-21  Karl Berry  <karl@gnu.org>
86084
86085         * config/srclist.txt (localcharset.c): break sync.
86086
86087 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86088
86089         * m4/host-os.m4: Add a copyright notice.
86090
86091 2004-04-20  Jim Meyering  <jim@meyering.net>
86092
86093         Change UTILS_ to gl_ in AC_DEFINE'd names.
86094         Change utils_- and jm_-prefixed variables, too.
86095         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86096         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86097         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86098
86099         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86100         Don't emit trailing blanks.
86101         Also rename jm_-prefixed variables to have gl_ prefix.
86102
86103         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86104         Also rename jm_-prefixed variables to have gl_ prefix.
86105
86106         * m4/jm-macros.m4: Reflect the renamings.
86107         * m4/prereq.m4: Likewise.
86108
86109 2004-04-20  Jim Meyering  <jim@meyering.net>
86110
86111         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86112         memory.
86113
86114 2004-04-20  Jim Meyering  <jim@meyering.net>
86115             Bruno Haible  <bruno@clisp.org>
86116
86117         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86118         memory when realloc fails.
86119
86120 2004-04-19  Jim Meyering  <jim@meyering.net>
86121
86122         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86123         now that readutmp.c may call `free (0)'.
86124
86125 2004-04-19  Bruno Haible  <bruno@clisp.org>
86126
86127         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86128         * m4/inttypes_h.m4: Likewise.
86129         * m4/stdint_h.m4: Likewise.
86130         * m4/intmax_t.m4: Likewise.
86131         * m4/uintmax_t.m4: Likewise.
86132
86133 2004-04-18  Jim Meyering  <jim@meyering.net>
86134
86135         * m4/prereq.m4: Don't forbid jm_ prefix.
86136
86137         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86138         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86139         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86140         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86141         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86142         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86143         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86144         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86145         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86146         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86147         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86148         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86149         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86150         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86151         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86152         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86153         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86154         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86155         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86156
86157 2004-04-18  Jim Meyering  <jim@meyering.net>
86158
86159         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86160         failure, don't leak memory and do call END_UTMP_ENT.
86161
86162 2004-04-16  Jim Meyering  <jim@meyering.net>
86163
86164         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86165         coreutils' stat program.
86166         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86167
86168 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86169
86170         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86171         C89.
86172         (CHAR_BIT): Remove, since we assume C89.
86173         Include <stdint.h> if available, as per current Autoconf CVS advice.
86174
86175 2004-03-31  Jim Meyering  <jim@meyering.net>
86176
86177         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86178         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86179         * m4/xalloc.m4: Likewise.
86180
86181 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86182
86183         Merge from coreutils.
86184
86185         * m4/inttostr.m4: New file.
86186         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86187         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86188         Require gl_CLOCK_TIME.
86189         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86190
86191 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86192
86193         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86194         not bool, to be more consistent with Unix conventions.
86195         Suggested by Bruno Haible.
86196
86197         Merge from coreutils.
86198
86199         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86200         * lib/umaxtostr.c: New files.
86201
86202         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86203         the usual <time.h> dance.
86204         (get_date): Change signature to support fractional time stamps.
86205         All callers changed.
86206         * lib/getdate.y: Include "getdate.h" first, as we can now
86207         assume C89 and don't need to worry about 'const'.
86208         Similarly, include "unlocked-io.h" near start, not in middle.
86209         Include <limits.h>.
86210         (textint.value): Use long int rather than int.
86211         (textint.digits): Use size_t rather than int.
86212         (BILLION, LOG10_BILLION): New constants.
86213         (parser_control): New member rel_ns.  Members day_ordinal,
86214         time_zone, month, day, hour, minutes, rel_year, rel_month,
86215         rel_day, rel_hour, rel_minutes, rel_seconds
86216         are now long int, not int.  Member seconds is now struct timespec,
86217         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86218         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86219         not int.
86220         (%union.intval): Now long int, not int.
86221         New member timespec.
86222         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86223         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86224         (spec): Now is a timespec or an item list.
86225         (timespec, items): New nonterminals.
86226         (time, rel, relunit, number, get_date):
86227         Add support for fractional seconds.
86228         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86229         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86230         (to_hour): First arg is now long int, not int.
86231         (to_year): Returns long int, not int.
86232         Don't treat year -70 like 70.
86233         (tm_diff): Returns long int, not int.
86234         (lookup_word): Use bool instead of int when appropriate.
86235         (yylex): Use size_t for count, not int.
86236         Detect overflow when parsing large integer constants.
86237         Add support for fractions.
86238         (get_date): Make pointers 'const' if possible.
86239         Use more-portable code to detect integer overflow.
86240         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86241         Don't use ctime; it's not reliable if the year has >4 digits.
86242
86243         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86244         This is for compatibility with BSD.
86245
86246         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86247         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86248         From coreutils' system.h.
86249
86250         * lib/userspec.c: Don't include "posixver.h".
86251         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86252         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86253         compatible extension.  Simplify code by removing a boolean int
86254         that was always nonzero if a string was nonnull.
86255
86256 2004-03-30  Jim Meyering  <jim@meyering.net>
86257
86258         Merge from coreutils.
86259
86260         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86261         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86262         on some systems one must include <grp.h> before it.
86263         Reported by Christian Krackowizer.
86264
86265 2004-03-30  Jim Meyering  <jim@meyering.net>
86266
86267         Merge from coreutils.
86268
86269         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86270
86271         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86272         an empty input stream.
86273
86274         * lib/readtokens.c: Include <stdbool.h>.
86275         (readtoken): Use `size_t' rather than int/long.
86276         All callers adjusted.
86277         Use `bool' rather than `int' where appropriate.
86278         Use memset rather than an explicit loop.
86279         Use x2nrealloc rather than xrealloc.
86280         Allow the use of `\0' as a delimiter.
86281         (readtokens): Likewise.
86282         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86283
86284 2004-03-30  Jim Meyering  <jim@meyering.net>
86285
86286         * m4/realloc.m4: Remove file, since now it does no more than
86287         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86288         the `configure.ac' section of module/realloc.
86289         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86290
86291 2004-03-30  Bruno Haible  <bruno@clisp.org>
86292
86293         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86294         nonnull.
86295
86296 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86297
86298         Merge changes to getloadavg.c from coreutils and Emacs.
86299
86300         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86301         Define to an expression, not to the empty string.
86302         Include cloexec.h and xalloc.h.
86303         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86304         Use set_cloexec_flag rather than rolling our own.
86305         * lib/cloexec.c, lib/cloexec.h: New files.
86306
86307 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86308
86309         * m4/cloexec.m4: New file.
86310
86311 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86312
86313         * lib/getopt.h: Sync with libc CVS.
86314
86315 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86316             Bruno Haible  <bruno@clisp.org>
86317
86318         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86319         mbswidth.
86320
86321 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86322             Bruno Haible  <bruno@clisp.org>
86323
86324         * lib/mbswidth.h: Include <wchar.h> only if
86325         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86326         <wchar.h>.
86327         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86328
86329 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86330
86331         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86332         Sync with libc CVS.
86333         * lib/getopt_int.h: New file, also synced from libc.
86334
86335 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86336
86337         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86338         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86339         Bring back getopt.c, getopt.h, getopt1.c.
86340
86341 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86342
86343         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86344         All uses changed.  Check for sa_sigaction member; this fixes
86345         a bug first reported by Jason Andrade in
86346         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86347
86348 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86349
86350         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86351         '#if' expressions.  Unlike the code it replaces, it does not
86352         depend on (defined _SC_PAGESIZE).  However, it does depend on
86353         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86354         first reported by Jason Andrade in
86355         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86356
86357 2004-02-25  Simon Josefsson  <jas@extundo.com>
86358
86359         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86360
86361 2004-02-25  Simon Josefsson  <jas@extundo.com>
86362
86363         * lib/strdup.h: New file.
86364         * lib/strdup.c: Include it.
86365         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86366         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86367
86368 2004-02-23  Karl Berry  <karl@gnu.org>
86369
86370         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86371         (from fencepost.gnu.org:/gd/gnuorg).
86372
86373 2004-02-23  Karl Berry  <karl@gnu.org>
86374
86375         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86376         * config/srclist.txt: add maintain/standards documents.
86377
86378 2004-02-18  Bruno Haible  <bruno@clisp.org>
86379
86380         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86381         Reported by Derek Robert Price <derek@ximbiot.com>.
86382
86383 2004-02-16  Karl Berry  <karl@gnu.org>
86384
86385         * config/mkinstalldirs, install-sh: update from automake.
86386
86387 2004-02-06  Karl Berry  <karl@gnu.org>
86388
86389         * m4/po.m4: update from gettext 0.14.1.
86390
86391 2004-02-06  Karl Berry  <karl@gnu.org>
86392
86393         * lib/config.charset: update from gettext 0.14.1.
86394
86395 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86396
86397         Add comments and code, prompted by suggestions from Bruno Haible
86398         for sh-quote.
86399         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86400         describing the enum quoting_style values.
86401         * lib/quotearg.c (quotearg_alloc): New function.
86402         (quotearg_buffer_restyled): Treat lone { and } as special.
86403         Treat = as special.  Work around bug with older shells
86404         that "see" a '\' that is really the 2nd byte of a multibyte char.
86405         Quote empty string with shell_quoting_style.
86406
86407 2004-02-03  Bruno Haible  <bruno@clisp.org>
86408
86409         * m4/pipe.m4: New file, from GNU gettext.
86410
86411 2004-02-03  Bruno Haible  <bruno@clisp.org>
86412
86413         * lib/pipe.h: New file, from GNU gettext.
86414         * lib/pipe.c: New file, from GNU gettext.
86415
86416 2004-01-27  Bruno Haible  <bruno@clisp.org>
86417
86418         * m4/execute.m4: New file, from GNU gettext.
86419
86420 2004-01-27  Bruno Haible  <bruno@clisp.org>
86421
86422         * lib/execute.h: New file, from GNU gettext.
86423         * lib/execute.c: New file, from GNU gettext.
86424         * lib/w32spawn.h: New file, from GNU gettext.
86425
86426 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86427
86428         Merge from diffutils.
86429
86430         * lib/file-type.c (file_type): Add typed memory objects.
86431         * lib/file-type.h (S_TYPEISTMO): New macro.
86432
86433         * lib/c-stack.h (c_stack_action): Remove argv argument.
86434         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86435         (die): Don't calculate message unless segv_action returns.
86436         (get_stack_location, min_address_from_argv, max_address_from_argv,
86437         volatile stack_base, volatile_stack_size): Remove.
86438         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86439         that every segmentation violation is a stack overflow.  (Ouch!)
86440         See Debian bug 136249 (still outstanding) for more info about why
86441         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86442
86443 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86444
86445         Exit-status fix from coreutils.
86446
86447         Use exit_failure consistently in place of EXIT_FAILURE,
86448         so that program exit statuses are consistent on failure.
86449
86450         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86451         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86452         * lib/argmatch.h: Comment fix to match the above.
86453         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86454         Now a macro referring to exit_failure, instead of a separate
86455         variable.  Include "exitfail.h" to get it.
86456         * lib/xstrtol.h: Include "exitfail.h".
86457         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86458
86459         * lib/long-options.c (parse_long_options): Use prototype
86460         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86461         for clarity.
86462
86463 2004-01-21  Jim Meyering  <jim@meyering.net>
86464
86465         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86466         so as not to conflict with a different-sized __mktime_internal
86467         function in GNU libc.
86468         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86469         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86470
86471 2004-01-20  Karl Berry  <karl@gnu.org>
86472
86473         * config/config.guess: update from config.
86474
86475         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86476
86477 2004-01-20  Bruno Haible  <bruno@clisp.org>
86478
86479         Safer stack allocation.
86480         * lib/setenv.c: Include allocsa.h.
86481         (alloca): Remove fallback definition.
86482         (freea): Remove macro.
86483         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86484         instead of freea.
86485
86486 2004-01-20  Bruno Haible  <bruno@clisp.org>
86487
86488         * m4/eealloc.m4: New file, from GNU gettext.
86489
86490 2004-01-20  Bruno Haible  <bruno@clisp.org>
86491
86492         * m4/allocsa.m4: New file, from GNU gettext.
86493
86494 2004-01-20  Bruno Haible  <bruno@clisp.org>
86495
86496         * lib/xallocsa.h: New file, from GNU gettext.
86497         * lib/xallocsa.c: New file, from GNU gettext.
86498
86499 2004-01-20  Bruno Haible  <bruno@clisp.org>
86500
86501         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86502
86503 2004-01-20  Bruno Haible  <bruno@clisp.org>
86504
86505         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86506         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86507         specially.
86508
86509 2004-01-20  Bruno Haible  <bruno@clisp.org>
86510
86511         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86512         patch.
86513
86514 2004-01-20  Bruno Haible  <bruno@clisp.org>
86515
86516         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86517
86518 2004-01-20  Bruno Haible  <bruno@clisp.org>
86519
86520         * lib/eealloc.h: New file.
86521
86522 2004-01-20  Bruno Haible  <bruno@clisp.org>
86523
86524         * lib/binary-io.h: Avoid warnings on Cygwin.
86525
86526 2004-01-20  Bruno Haible  <bruno@clisp.org>
86527
86528         * lib/allocsa.h: New file, from GNU gettext.
86529         * lib/allocsa.c: New file, from GNU gettext.
86530
86531 2004-01-18  Karl Berry  <karl@gnu.org>
86532
86533         * doc/gpl.texi, doc/lgpl.texi: new files.
86534
86535 2004-01-18  Karl Berry  <karl@gnu.org>
86536
86537         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86538         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86539
86540 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86541
86542         Merge from coreutils.
86543
86544         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86545         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86546         (gl_DEFAULT_POSIX2_VERSION): Move
86547         the documentation from 'configure' into 'config.hin',
86548         so that 'configure --help' isn't burdened by it and
86549         we don't have to worry about its formatting there.
86550         Reword the documentation so that it's more succinct
86551         and can be run together into a single paragraph.
86552         * m4/same.m4 (gl_SAME): Check for pathconf.
86553
86554 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86555
86556         Merge from coreutils.
86557
86558         * lib/posixver.c: Include posixver.h.
86559
86560         * lib/same.c: Include <stdbool.h>, <limits.h>.
86561         (_POSIX_NAME_MAX): Define if not defined.
86562         (MIN): New macro.
86563         (same_name): If file names are silently truncated, report
86564         that the file names are the same if they are the same after
86565         the silent truncation.
86566
86567         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86568         conversion function.
86569         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86570         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86571         longer needed.
86572
86573 2004-01-15  Jim Meyering  <jim@meyering.net>
86574
86575         Merge from coreutils.
86576
86577         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86578         if no library is required.
86579         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86580         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86581         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86582         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86583         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86584         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86585         value, $ac_cv_search_crypt, if it's "none required".
86586         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86587         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86588         not gl_FUNC_GETLOADAVG.
86589         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86590         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86591
86592 2004-01-15  Jim Meyering  <jim@meyering.net>
86593
86594         Merge from coreutils.
86595
86596         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86597         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86598         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86599
86600         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86601         optional configure-time default.
86602
86603         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86604
86605         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86606
86607 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86608
86609         Merge from coreutils.
86610
86611         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86612         value, $ac_cv_search_nanosleep, if it's "none required".
86613
86614 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86615
86616         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86617         with like-named macro in fnmatch.c.
86618         (EXT): Use an internal constant instead.
86619
86620         Merge fnmatch patches from glibc.
86621         * lib/fnmatch.c (mbsinit): Remove define.
86622         Add libc_hidden_ver (__fnmatch, fnmatch).
86623         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86624         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86625
86626 2004-01-14  Karl Berry  <karl@gnu.org>
86627
86628         * config/install-sh: update from automake.
86629
86630 2004-01-13  Karl Berry  <karl@gnu.org>
86631
86632         * config/install-sh: update from automake.
86633
86634 2004-01-09  Karl Berry  <karl@gnu.org>
86635
86636         * config/install-sh: update from automake.
86637
86638 2004-01-05  Karl Berry  <karl@gnu.org>
86639
86640         * config/config.{sub,guess}: update from config.
86641
86642 2003-12-31  Karl Berry  <karl@gnu.org>
86643
86644         * config/depcomp: update from automake.
86645
86646 2003-12-14  Karl Berry  <karl@gnu.org>
86647
86648         * lib/config.charset: update from gettext-runtime.
86649
86650 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86651
86652         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86653         Bug reported by Alfred M. Szmidt.
86654
86655 2003-12-03  Bruno Haible  <bruno@clisp.org>
86656
86657         * m4/gettext.m4: Upgrade from gettext-0.13.
86658         * m4/po.m4: Upgrade from gettext-0.13.
86659         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86660         * m4/intmax.m4: New file, from gettext-0.13.
86661         * m4/printf-posix.m4: New file, from gettext-0.13.
86662
86663 2003-11-29  Karl Berry  <karl@gnu.org>
86664
86665         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86666
86667 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86668             Bruno Haible  <bruno@clisp.org>
86669
86670         * lib/printf-parse.h: Don't include sys/types.h.
86671         (ARG_NONE): New macro.
86672         (char_directive): Change type of *arg_index fields to size_t.
86673         * lib/printf-parse.c: Don't include sys/types.h.
86674         (SSIZE_MAX): Remove macro.
86675         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86676         Remove unnecessary overflow check.
86677         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86678         fields.
86679
86680 2003-11-25  Bruno Haible  <bruno@clisp.org>
86681
86682         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86683
86684 2003-11-25  Bruno Haible  <bruno@clisp.org>
86685
86686         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86687         gt_TYPE_SSIZE_T.
86688
86689 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86690
86691         * modules/alloca: Remove dependency on xalloc.
86692
86693 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86694
86695         * lib/alloca.c: Remove dependency on xalloc module.
86696         (xalloc_die): Remove.
86697         (memory_full) [!defined emacs]: New macro.
86698         [!defined emacs]: Don't include xalloc.h.
86699         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86700         address arithmetic overflows.  Change datatypes a bit to avoid
86701         unnecessary casts.
86702
86703 2003-11-22  Jim Meyering  <jim@meyering.net>
86704
86705         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86706         s/size/size_t/.
86707
86708 2003-11-21  Karl Berry  <karl@gnu.org>
86709
86710         * config/config.{sub,guess}: update from config.
86711
86712 2003-11-18  Karl Berry  <karl@gnu.org>
86713
86714         * config/config.{sub,guess}: update from config.
86715
86716         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86717
86718 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86719
86720         * README: Mention that S+T cannot overflow if S is the size of
86721         an existing object and T is sufficiently small.
86722
86723 2003-11-17  Jim Meyering  <jim@meyering.net>
86724
86725         On systems without utime and without a utimes function capable of
86726         dealing with a NULL struct utimbuf* argument, this utime replacement
86727         could -- in unusual circumstances -- leak a file descriptor.
86728         * lib/utime.c: Include <unistd.h> and <errno.h>.
86729         (utime_null): Be sure to close `fd' and to preserve errno.
86730         Reported by Geoff Collyer via Arnold Robbins.
86731
86732 2003-11-17  Bruno Haible  <bruno@clisp.org>
86733
86734         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86735         (Depends-on): Add xsize.
86736
86737 2003-11-17  Bruno Haible  <bruno@clisp.org>
86738
86739         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86740
86741 2003-11-17  Bruno Haible  <bruno@clisp.org>
86742
86743         * lib/vasnprintf.c (alloca): Remove fallback definition.
86744         (freea): Remove definition.
86745         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86746         Reported by Paul Eggert.
86747
86748 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86749             Bruno Haible  <bruno@clisp.org>
86750
86751         Protect against address arithmetic overflow.
86752         * lib/printf-args.h: Include stddef.h.
86753         (arguments): Change type of field 'count' to size_t.
86754         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86755         'unsigned int' where appropriate.
86756         * lib/printf-parse.h: Include sys/types.h.
86757         (char_directive): Change type of *arg_index fields to ssize_t.
86758         (char_directives): Change type of fields 'count', max_*_length to
86759         size_t.
86760         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86761         (SSIZE_MAX): Define fallback value.
86762         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86763         instead of 'int' where appropriate. Check a_allocated, d_allocated
86764         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86765         * lib/vasnprintf.c: Include xsize.h.
86766         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86767         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86768         overflow. Avoid wraparound when converting a width or precision from
86769         decimal to binary.
86770
86771 2003-11-16  Bruno Haible  <bruno@clisp.org>
86772
86773         Update from GNU gettext.
86774         * lib/printf-parse.c: Generalize to it can be compiled for wide
86775         strings.
86776         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86777         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86778         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86779         SNPRINTF): New macros.
86780         Don't include <alloca.h> if the file is used inside libintl.
86781         (local_wcslen): New function, for Solaris 2.5.1.
86782         (VASNPRINTF): Use it instead of wcslen.
86783
86784 2003-11-16  Bruno Haible  <bruno@clisp.org>
86785
86786         * lib/xsize.h (xmax): New function.
86787         (xsum, xsum3, xsum4): Declare as "pure" functions.
86788
86789 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86790
86791         * modules/xalloc (Files): Undo latest change, since xalloc.h
86792         no longer needs SIZE_MAX or PTRDIFF_MAX.
86793
86794 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86795
86796         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86797         gl_PTRDIFF_MAX.
86798
86799 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86800
86801         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86802         "return", to pacify some unknown compiler.  Problem reported
86803         by Joerg Schilling.
86804
86805 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86806
86807         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86808         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86809         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86810         heuristic is just as accurate as far as we know, and it removes a
86811         dependency on size_max.m4 and ptrdiff_max.m4.
86812
86813 2003-11-11  Bruno Haible  <bruno@clisp.org>
86814
86815         * modules/xsize (Files): Add m4/size_max.m4.
86816         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86817
86818 2003-11-11  Bruno Haible  <bruno@clisp.org>
86819
86820         * m4/size_max.m4: New file.
86821         * m4/ptrdiff_max.m4: New file.
86822         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86823         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86824         (gl_XALLOC): Invoke it.
86825
86826 2003-11-11  Bruno Haible  <bruno@clisp.org>
86827
86828         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86829         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86830         defined.
86831
86832 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86833
86834         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86835         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86836         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86837         From Bruno Haible.
86838         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86839         not (size_t) -1, since it's defined here.
86840
86841 2003-11-09  Karl Berry  <karl@gnu.org>
86842
86843         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86844
86845 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86846
86847         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86848         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86849         Reject sizes of exactly SIZE_MAX bytes.
86850         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86851         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86852
86853 2003-11-05  Bruno Haible  <bruno@clisp.org>
86854
86855         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86856         SIZE_MAX defined in <limits.h> on Solaris.
86857
86858 2003-11-04  Jim Meyering  <jim@meyering.net>
86859
86860         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86861         variable names, rather than @VAR@.
86862         * modules/poll: Likewise.
86863
86864 2003-11-04  Bruno Haible  <bruno@clisp.org>
86865
86866         * modules/xsize: New file.
86867         * modules/linebreak: Depend on xsize.
86868         * MODULES.html.sh (func_all_modules): Add xsize.
86869
86870 2003-11-04  Bruno Haible  <bruno@clisp.org>
86871
86872         * m4/xsize.m4: New file.
86873
86874 2003-11-04  Bruno Haible  <bruno@clisp.org>
86875
86876         * lib/xsize.h: New file.
86877         * lib/linebreak.c: Include xsize.h.
86878         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86879         argument for overflow.
86880         Suggested by Paul Eggert.
86881
86882 2003-11-03  Karl Berry  <karl@gnu.org>
86883
86884         * config/config.{guess,sub}: update from config.
86885
86886 2003-11-03  Jim Meyering  <jim@meyering.net>
86887
86888         * modules/userspec (lib_SOURCES): Add userspec.h.
86889         (Include): Add "userspec.h".
86890         Improve description.
86891
86892 2003-11-03  Jim Meyering  <jim@meyering.net>
86893
86894         * lib/userspec.c: Include "userspec.h".
86895         * lib/userspec.h: New file.
86896
86897 2003-11-03  Bruno Haible  <bruno@clisp.org>
86898
86899         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86900
86901 2003-11-03  Bruno Haible  <bruno@clisp.org>
86902
86903         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86904         available, to avoid (extremely rare) race condition.
86905         Suggested by Paul Eggert.
86906
86907 2003-11-02  Karl Berry  <karl@gnu.org>
86908
86909         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86910
86911 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86912
86913         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86914         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86915         (read_filesystem_list): Set and use me_type_malloced.
86916         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86917         whatever the type happens to be), for brevity and consistency.
86918         Check for size calculation overflow on Alphas running OSF/1.
86919
86920 2003-10-31  Jim Meyering  <jim@meyering.net>
86921
86922         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86923
86924         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86925
86926 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86927             Bruno Haible  <bruno@clisp.org>
86928
86929         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86930         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86931
86932 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86933
86934         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86935         netbsd*-gnu*.  Suggested by Robert Millan.
86936
86937 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86938
86939         * modules/group-member: Depend on stdbool.
86940
86941 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86942
86943         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86944
86945 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86946
86947         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86948         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86949         after the 'gnu' in these cases.  This fixes some bugs in the
86950         previous change, and is based on suggestions by Robert Millan.
86951
86952 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86953
86954         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86955         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86956         no longer needed.
86957         * lib/quotearg.c (quotearg_n_options): Use it.
86958         * lib/group-member.c: Include <stdbool.h>.
86959         (free_group_info): Arg is now const *; don't free arg.
86960         (get_group_info): Now returns bool and accepts struct group_info *,
86961         rather than returning a malloc'ed struct group_info *.
86962         All uses changed.  Check for overflow in internal size calculation.
86963
86964         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86965         rather than xmalloc/xrealloc.
86966         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86967         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86968         conformance bug: the old code used a pointer after freeing the
86969         storage that it addressed.
86970         * lib/hash.c (hash_initialize): Simplify the code by using
86971         xalloc_oversized rather than doing it by hand.
86972         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86973         the buffer preserved.  Use free and xmalloc instead.
86974         * lib/quotearg.c (quotearg_n_options): Likewise.
86975         Use a simpler test for size overflow.  Don't use xalloc_oversized
86976         because unsigned int might be wider than size_t (!); this suggests
86977         that we should switch from unsigned int to size_t for slot numbers.
86978
86979 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86980
86981         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86982         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86983         NetBSD kernels.  Requested by Richard Stallman.
86984
86985 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86986
86987         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86988         to allocate the returned structure.  Do not allocate a subarray,
86989         as x2nrealloc will do that.
86990         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86991         instead of xnrealloc.
86992         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86993
86994 2003-10-27  Bruno Haible  <bruno@clisp.org>
86995
86996         * lib/stdbool_.h: Better support for BeOS.
86997
86998 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86999
87000         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87001         now uses inline.
87002
87003 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87004
87005         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87006         callers that want to do their own size-overflow checking.  Include
87007         <stdbool.h>, since xalloc_oversized returns bool.
87008         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87009         to use xalloc_oversized.
87010
87011         Add two functions x2realloc, x2nrealloc, for programs that grow
87012         arrays dynamically by doubling their sizes.
87013         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87014         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87015         New functions.
87016
87017         Port to C99 semantics for 'inline' of external functions.
87018         Bug reported by Bruno Haible.
87019         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87020         with the old contents of xnmalloc.
87021         (xnmalloc, xmalloc): Use it.
87022         (xnrealloc_inline): New static inline function,
87023         with the old contents of xnrealloc.
87024         (xnrealloc, xrealloc): Use it.
87025
87026         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87027         that.
87028
87029 2003-10-26  Karl Berry  <karl@gnu.org>
87030
87031         * config/srclist.txt (COPYING.DOC): no longer available from
87032         /gd/gnuorg; don't know where the ultimate source is.
87033
87034 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87035
87036         Fix several address-calculation bugs in the hash modules,
87037         plus some minor code cleanup.
87038
87039         * lib/hash.h: Include <stdbool.h>, for bool.
87040         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87041         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87042         hash_get_n_entries, hash_get_max_bucket_length,
87043         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87044         hash_rehash): Use size_t rather than unsigned.
87045         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87046         hash_get_n_buckets_used, hash_get_n_entries,
87047         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87048         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87049         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87050         Likewise.
87051         (SIZE_MAX): Define if not defined.
87052         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87053         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87054         hash_print):
87055         Use const * when possible.
87056         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87057         (check_tuning): Fix bug: if tuning parameters were very close to
87058         0 or 1, rounding errors could have caused subscript violations.
87059         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87060         (hash_initialize): Add 'fail:' label
87061         to free table and return NULL, and use it to simplify code.
87062         Use calloc rather than clearing the storage ourself.
87063         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87064         buffer size calculations.
87065         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87066         Include <stddef.h>, for size_t.
87067         * lib/hash-pjw.c (hash_pjw): Likewise.
87068         Switch to method described by Bruno Haible.
87069         Include <limits.h>, for CHAR_BIT.
87070         (SIZE_BITS): New macro.
87071
87072 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87073
87074         * m4/getline.m4 (AM_FUNC_GETLINE):
87075         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87076         hosts.  Problem reported by Derek Robert Price in
87077         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87078         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87079         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87080
87081 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87082
87083         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87084         ceiling the allocation at NMAX bytes rather than silently
87085         discarding input bytes before NMAX is reached.  This makes
87086         a difference only if NMAX exceeds SIZE_MAX / 2.
87087
87088         * lib/obstack.c: Merge from glibc.
87089         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87090         Add libc_hidden_def (_obstack_newchunk).
87091         (_obstack_free) [! defined _LIBC]: Remove.
87092         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87093         a clone of the function body.
87094         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87095         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87096
87097         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87098         glibc.
87099         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87100         arg to memcpy.
87101
87102         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87103         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87104         Don't use lvalue casts, as GCC plans to remove support for them
87105         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87106         was also present in the non-GCC version, indicating that this
87107         code had always been buggy and had never been widely used.
87108         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87109         Use the fast variant of each macro, rather than copying the
87110         definiens of the fast variant; that way, we'll be more likely to
87111         catch future bugs in the fast variants.
87112
87113 2003-10-20  Bruno Haible  <bruno@clisp.org>
87114
87115         * modules/wait-process: New file.
87116         * MODULES.html.sh (func_all_modules): Add wait-process.
87117
87118 2003-10-20  Bruno Haible  <bruno@clisp.org>
87119
87120         * m4/wait-process.m4: New file.
87121
87122 2003-10-20  Bruno Haible  <bruno@clisp.org>
87123
87124         * lib/wait-process.h: New file, from GNU gettext.
87125         * lib/wait-process.c: New file, from GNU gettext.
87126
87127 2003-10-19  Jim Meyering  <jim@meyering.net>
87128
87129         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87130         HPUX 10.20.
87131
87132 2003-10-18  Karl Berry  <karl@gnu.org>
87133
87134         * config/config.guess: update from config.
87135
87136 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87137
87138         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87139         (getgroups): First arg is int, not size_t.
87140         Don't let 'free' mangle errno.
87141
87142 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87143
87144         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87145
87146 2003-10-16  Karl Berry  <karl@gnu.org>
87147
87148         * config/config.{guess,sub}: update from config.
87149
87150 2003-10-16  Jim Meyering  <jim@meyering.net>
87151
87152         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87153         memcpy.
87154
87155 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87156
87157         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87158         (SIZE_MAX): Remove.
87159         (new_exclude, add_exclude_file): Initial size no longer needs to
87160         be a power of 2.
87161         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87162         our own address arithmetic overflow checking.
87163
87164         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87165         (fnmatch): Do not alloca more than 2000 wide characters;
87166         instead, use malloc for large buffers.
87167         Check for address arithmetic overflow, and return -1
87168         with errno set to ENOMEM in that case.
87169         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87170         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87171         instead, return -1.  Check for address arithmetic overflow.
87172
87173 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87174
87175         Handle invalid suffixes and overflow independently, so that
87176         callers can treat them independently as needed.  Fix some bugs in
87177         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87178         suffix for a human-readable blocksize.  The major caller-visible
87179         change is the addition of a new
87180         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87181         that both overflow and suffix chars were found.
87182
87183         * lib/human.c (humblock): Don't check separately for invalid suffix
87184         char; that is xstrtoumax's job (now that its bug is fixed).
87185         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87186         INTMAX_MAX]: New macros.
87187         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87188         TYPE_MAXIMUM): New macros.
87189         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87190         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87191         if overflow occurs, as it's what __strtol does and it's more useful
87192         in practice.
87193         (__xstrtol): If __strtol reports some error other than ERANGE,
87194         reflect it to the caller as LONGINT_INVALID.  If it reports
87195         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87196         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87197         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87198         value.
87199         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87200         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87201         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87202         [defined UINTMAX_MAX]: New macros.
87203
87204 2003-10-14  Bruno Haible  <bruno@clisp.org>
87205
87206         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87207
87208 2003-10-14  Bruno Haible  <bruno@clisp.org>
87209
87210         * m4/sig_atomic_t: New file, from GNU gettext.
87211         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87212
87213 2003-10-14  Bruno Haible  <bruno@clisp.org>
87214
87215         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87216         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87217         Also use volatile where needed.
87218
87219 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87220
87221         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87222         Change maintainer from Bruno Haible to 'all'.
87223
87224 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87225
87226         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87227
87228 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87229
87230         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87231         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87232         and define in terms of the other primitives.
87233         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87234         (SIZE_MAX): Define if not already defined.
87235         (array_size_overflow): New function.
87236         (xalloc_die): Abort instead of exiting if 'error' returns.
87237         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87238         (xmalloc, xrealloc): Use them.
87239         (xcalloc): Check for address arithmetic overflow.
87240         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87241         a bit faster than strcpy.
87242
87243 2003-10-10  Simon Josefsson  <jas@extundo.com>
87244
87245         * modules/argp (Depends-on): Add restrict and strcase.
87246
87247 2003-10-10  Simon Josefsson  <jas@extundo.com>
87248
87249         * m4/argp.m4: Add AC_C_INLINE.
87250
87251 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87252
87253         Merge getpass from libc, plus a few fixes.
87254
87255         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87256         Include <stdbool.h>.
87257         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87258         __fsetlocking to empty.
87259         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87260         do include <bits/libc-lock.h>.
87261         Do not include <fcntl.h>; not needed.
87262         [_LIBC]: Include <wchar.h>.
87263         (NOTCANCEL_MODE): New macro.
87264         (flockfile, funlockfile) [_LIBC]: New macros.
87265         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87266         [!_LIBC]: New macros.
87267         (call_fclose): New function.
87268         (getpass): Use it.  Save tty stream separately; this simplifies the
87269         code and makes it more reliable if stdin happens to equal stdout.
87270         Invoke __fsetlocking on tty.
87271         Handle thread cancellation if needed.
87272         Namespace cleanup (use __tcgetattr, __getline).
87273         Use bool for Booleans.
87274         [USE_IN_LIBIO]: Handle wide streams.
87275         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87276         stream might go where.
87277
87278         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87279         doesn't have to include <stdio.h> before us.
87280         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87281         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87282         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87283         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87284         if not declared, so that we can use getpass.c code from libc without
87285         rewriting it.
87286         (flockfile, ftrylockfile, funlockfile): New macros.
87287
87288 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87289
87290         * modules/getpass: Depend on stdbool.
87291
87292 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87293
87294         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87295
87296 2003-10-07  Karl Berry  <karl@gnu.org>
87297
87298         * config/config.{guess,sub}: update from config.
87299
87300 2003-10-06  Jim Meyering  <jim@meyering.net>
87301             Bruno Haible  <bruno@clisp.org>
87302
87303         This lets translators provide better translations for the
87304         "Written by ..." part of --version output.
87305         * lib/version-etc.h: Include stdarg.h.
87306         (version_etc_copyright): Declare as readonly.
87307         (version_etc): Make this function variadic with a NULL-terminated list
87308         of author name strings.
87309         (version_etc_va): New declaration.
87310         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87311         (version_etc_copyright): Declare as readonly.
87312         (version_etc_va): New function. Provide a different translatable string
87313         for each possible number of authors < 10. Abbreviate when there are 10
87314         authors or more.
87315         (version_etc): Make this function variadic. Call version_etc_va.
87316         Suggestion from Gary V. Vaughan.
87317
87318         * lib/long-options.h (parse_long_options): Change prototype: the
87319         authors string is moved to the end and becomes variadic.
87320         * lib/long-options.c: Include stdarg.h.
87321         (parse_long_options): Make this function variadic, too.
87322         Call version_etc_va, not version_etc.
87323
87324 2003-10-06  Bruno Haible  <bruno@clisp.org>
87325
87326         * modules/version-etc-2: Remove file.
87327         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87328
87329 2003-10-06  Bruno Haible  <bruno@clisp.org>
87330
87331         * modules/fatal-signal: New file.
87332         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87333
87334 2003-10-06  Bruno Haible  <bruno@clisp.org>
87335
87336         * m4/fatal-signal.m4: New file.
87337         * m4/signalblocking.m4: New file, from GNU gettext.
87338
87339 2003-10-06  Bruno Haible  <bruno@clisp.org>
87340
87341         * lib/version-etc-2.h: Remove file.
87342         * lib/version-etc-2.c: Remove file.
87343
87344 2003-10-06  Bruno Haible  <bruno@clisp.org>
87345
87346         * lib/fatal-signal.h: New file, from GNU gettext.
87347         * lib/fatal-signal.c: New file, from GNU gettext.
87348
87349 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87350
87351         * README: Rework advice for preventing empty .o files.
87352         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87353         not <sys/types.h>.
87354
87355 2003-10-04  Karl Berry  <karl@gnu.org>
87356
87357         * lib/argp*: update from libc.
87358
87359 2003-10-04  Karl Berry  <karl@gnu.org>
87360
87361         * config/config.{guess,sub}: update from config.
87362
87363 2003-10-02  Bruno Haible  <bruno@clisp.org>
87364
87365         * modules/lchown (Include): Add lchown.h.
87366         * modules/time_r (Include): Use "..." syntax.
87367         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87368
87369 2003-10-01  Simon Josefsson  <jas@extundo.com>
87370
87371         * MODULES.html.sh (func_all_modules): Move gethostname from section
87372         'based on' to section 'lacking' POSIX:2001.
87373
87374 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87375
87376         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87377         to output mode on the same stream.
87378
87379 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87380
87381         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87382         Fix arg typo in previous patch.
87383
87384 2003-09-28  Jim Meyering  <jim@meyering.net>
87385
87386         * lib/error.c: Correct cpp indentation.
87387
87388 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87389
87390         * modules/free: New file.
87391
87392 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87393
87394         * m4/free.m4: New file.
87395
87396 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87397
87398         * lib/minmax.h (MIN, MAX)
87399         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87400         Omit the special code that used __typeof__, since we worry that
87401         it could be more trouble than it's worth.  See:
87402         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87403         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87404
87405         * lib/free.c: New file.
87406
87407 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87408
87409         Trivial fixes to Makefile.am parts of module listings.
87410         * modules/strstr: Append strstr.h to lib_SOURCES.
87411         * modules/strcase: Likewise, for strcase.h.
87412
87413 2003-09-27  Karl Berry  <karl@gnu.org>
87414
87415         * config/mkinstalldirs: update from automake.
87416
87417 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87418
87419         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87420         (error_tail): Do not loop, reallocating temporary buffer, since
87421         the output cannot contain more wide characters than the input
87422         contains bytes, the size must be big enough already.  This avoids
87423         one potential size overflow calculation.  Check for size overflow
87424         when calculating temporary buffer size.  Free temporary buffer
87425         when done, if it was allocated with malloc; this plugs a memory
87426         leak.  Remove casts from void * to pointers, that are no longer
87427         needed now that we're assuming C89 or better.
87428
87429         Merge error changes from glibc.
87430
87431         * lib/error.c, error.h: Update copyright notice header to match glibc.
87432         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87433         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87434         Disable cancellation while printing error.
87435         * lib/error.h: Prepend __ to parameter names.
87436
87437 2003-09-26  Jim Meyering  <jim@meyering.net>
87438
87439         * lib/error.c (error_tail): Move some declarations
87440         into inner scope where the local variables are used.
87441
87442 2003-09-26  Bruno Haible  <bruno@clisp.org>
87443
87444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87445         stpncpy().
87446         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87447
87448 2003-09-26  Bruno Haible  <bruno@clisp.org>
87449
87450         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87451         (stpncpy): Define as alias for gnu_stpncpy.
87452         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87453
87454 2003-09-25  Simon Josefsson  <jas@extundo.com>
87455
87456         * lib/xgetdomainname.h: New file.
87457         * lib/xgetdomainname.c: New file.
87458
87459 2003-09-25  Simon Josefsson  <jas@extundo.com>
87460             Bruno Haible  <bruno@clisp.org>
87461
87462         * modules/getdomainname: New file.
87463         * modules/xgetdomainname: New file.
87464         * MODULES.html.sh (func_all_modules): Add getdomainname,
87465         xgetdomainname.
87466
87467 2003-09-25  Simon Josefsson  <jas@extundo.com>
87468             Bruno Haible  <bruno@clisp.org>
87469
87470         * m4/getdomainname.m4: New file.
87471
87472 2003-09-25  Simon Josefsson  <jas@extundo.com>
87473             Bruno Haible  <bruno@clisp.org>
87474
87475         * lib/getdomainname.h: New file.
87476         * lib/getdomainname.c: New file.
87477
87478 2003-09-25  Karl Berry  <karl@gnu.org>
87479
87480         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87481
87482 2003-09-25  Karl Berry  <karl@gnu.org>
87483
87484         * config/install-sh: update from automake.
87485
87486 2003-09-25  Bruno Haible  <bruno@clisp.org>
87487
87488         * modules/version-etc-2: New file, from modules/version-etc with
87489         modifications.
87490         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87491
87492 2003-09-25  Bruno Haible  <bruno@clisp.org>
87493
87494         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87495         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87496
87497 2003-09-24  Simon Josefsson  <jas@extundo.com>
87498
87499         * modules/xgethostname: Add xgethostname.h.
87500
87501 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87502
87503         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87504         the buffer associated with the argument.  Bug reported by
87505         Simon Josefsson.
87506
87507 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87508
87509         * README: Document assumptions that 'int' is at least 32 bits
87510         wide, that integer arithmetic is 2's complement without overflow,
87511         that there are no holes in integer values, that adding sizes of
87512         two nonoverlapping objects can't overflow, and that all-bits-zero
87513         yields scalar zero.  Fix spelling and capitalization typos.
87514
87515 2003-09-19  Karl Berry  <karl@gnu.org>
87516
87517         * lib/argp.h: update from libc.
87518
87519 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87520
87521         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87522         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87523         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87524
87525 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87526
87527         * gnulib-tool: Use "test -h", not "test -L", for portability
87528         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87529         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87530         (sed_extract_prog): Issue s commands one-by-one, rather than
87531         using \| in one s command.
87532
87533 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87534
87535         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87536         input error, instead of returning NULL the next time we are called
87537         (and therefore losing track of errno).
87538
87539 2003-09-16  Bruno Haible  <bruno@clisp.org>
87540
87541         * gnulib-tool (func_create_testdir): Warn about duplicated
87542         dependencies.
87543
87544 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87545
87546         * modules/argmatch, modules/fatal, modules/obstack,
87547         modules/xalloc, modules/xgethostname: Sort dependencies by
87548         importance, not alphabetically.
87549
87550 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87551
87552         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87553         fails, so that the caller gets the proper errno.
87554
87555         * lib/readutmp.c (read_utmp): Likewise.
87556         Check for fstat error.  Close stream and free storage
87557         when failing.
87558
87559 2003-09-14  Karl Berry  <karl@gnu.org>
87560
87561         * config/srclist.txt (strdup.c): disable for c89 changes.
87562
87563 2003-09-14  Jim Meyering  <jim@meyering.net>
87564
87565         * lib/getloadavg.c: Correct cpp indentation.
87566         * lib/strdup.c: Likewise.
87567         * lib/vasnprintf.c: Likewise.
87568
87569 2003-09-14  Bruno Haible  <bruno@clisp.org>
87570
87571         * modules/fwriteerror: New file.
87572         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87573
87574 2003-09-14  Bruno Haible  <bruno@clisp.org>
87575
87576         * lib/fwriteerror.h: New file.
87577         * lib/fwriteerror.c: New file.
87578
87579 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87580
87581         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87582         modules/xgethostname, modules/xalloc: Depend on exit.
87583
87584 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87585
87586         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87587
87588         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87589         and AC_MINIX, too, so that their extensions are available.
87590
87591         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87592         This macro has been superseded by gl_BACKUPFILE.
87593
87594         More patches to assume C89 or better.
87595
87596         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87597
87598         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87599         unconditionally.
87600         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87601         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87602         Include <string.h>, <stdlib.h> unconditionally.
87603         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87604         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87605         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87606         headers or for string.h.
87607         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87608         or strtoul.
87609
87610         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87611         headers.
87612         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87613         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87614         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87615         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87616         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87617         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87618         memcpy, memset.
87619         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87620         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87621         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87622         strtol.
87623         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87624         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87625         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87626         strtoul.
87627
87628 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87629
87630         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87631         * lib/obstack.c [!defined _LIBC]: Likewise.
87632         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87633         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87634         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87635
87636         More changes to assume C89 or better.
87637
87638         * lib/error.c (error_tail): Assume vprintf.
87639
87640         * lib/argmatch.c (getenv): Remove decl.
87641         * lib/progreloc.c (get_full_program_name): Define via prototype.
87642         * lib/setenv.c (clearenv): Likewise.
87643         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87644         needed.
87645         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87646         (malloc, memcpy): Remove decls.
87647         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87648         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87649         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87650         (memcpy): Remove macro.
87651         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87652         (__P): Remove.  All uses removed.
87653         (PTR): Remove.  All uses changed to void *.
87654         (CHAR_BIT, NULL): Remove.
87655         (spaces, zeros, memset_space, memset_zero)
87656         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87657         Remove.
87658         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87659         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87660         Define with prototype.
87661         Remove now-unnecessary prototype decl.
87662         (extra_args_spec): Assume ANSI C.  All uses changed.
87663         (extra_args_spec_iso): Remove.
87664         (my_strftime, emacs_strftimeu): Define via prototype.
87665         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87666         unconditionally.
87667         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87668         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87669         (strtoul, strtol): Remove decls.
87670         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87671         LONG_MAX): Remove.
87672         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87673         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87674         (LOCALE_PARAM_PROTO): New macro.
87675         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87676         (INTERNAL (strtol), strtol): Define with a prototype.
87677         (PARAMS): Remove.  All uses removed.
87678         * lib/tempname.c: Include <string.h> unconditionally.
87679         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87680         * lib/xgethostname.c (main): Define with a prototype.
87681         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87682         Include <stdlib.h> unconditionally.
87683         (calloc, malloc, realloc, free): Remove decls.
87684         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87685         Include <stdlib.h> unconditionally.  Sort include file names.
87686         (strtod): Remove.
87687         (xstrtod): Define with a prototype.
87688         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87689         (strtol, strtoul): Remove decls.
87690
87691 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87692
87693         More patches to assume C89 or better.
87694         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87695         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87696         string.h, memchr, STDC_HEADERS.
87697
87698 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87699
87700         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87701         Include <stdlib.h>, <string.h> unconditionally.
87702         Remove now-unnecessary cast to char *.
87703         * lib/strnlen.c: Include <string.h> unconditionally.
87704         * lib/yesno.c (yesno): Define with a prototype.
87705
87706 2003-09-11  Bruno Haible  <bruno@clisp.org>
87707
87708         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87709
87710 2003-09-10  Jim Meyering  <jim@meyering.net>
87711
87712         * lib/error.c: Correct indentation of cpp directives.
87713
87714 2003-09-10  Bruno Haible  <bruno@clisp.org>
87715
87716         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87717         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87718         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87719         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87720         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87721         <stdlib.h> and <string.h> checks.
87722         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87723         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87724
87725 2003-09-10  Bruno Haible  <bruno@clisp.org>
87726
87727         * lib/strcspn.c: Include <string.h> unconditionally.
87728         * lib/strpbrk.c: Include <string.h> unconditionally.
87729         * lib/strstr.c: Include <string.h> unconditionally.
87730         * lib/unicodeio.c: Include <string.h> unconditionally.
87731         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87732         * lib/unsetenv.c: Likewise.
87733         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87734         * lib/yesno.c: Include <stdlib.h> unconditionally.
87735         (rpmatch): Add prototype.
87736
87737 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87738
87739         More patches to assume C89 or better.
87740         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87741         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87742         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87743         or for string.h.
87744         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87745         stdlib.h.
87746         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87747         C headers.
87748         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87749         string.h.
87750         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87751         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87752         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87753         or for string.h.
87754         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87755         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87756         C headers.
87757         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87758         memcpy.
87759         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87760         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87761         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87762         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87763         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87764         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87765         string.h, free.
87766         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87767         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87768         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87769         C headers, or for string.h.
87770         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87771         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87772         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87773         headers, memory.h, stdlib.h, string.h, strings.h.
87774         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87775         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87776         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87777         strchr.
87778         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87779         headers, memory.h, string.h.
87780         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87781         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87782         free.
87783         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87784         headers.
87785         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87786         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87787         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87788         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87789         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87790
87791 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87792
87793         More K&R removal.
87794
87795         * lib/acosl.c (main): Use a prototype.
87796         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87797         tanl.c: Likewise.
87798
87799         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87800
87801         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87802         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87803         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87804         with a prototype.
87805         * lib/getopt.c (const): Remove macro.
87806         Include <string.h> unconditionally.
87807         (my_index): Remove; all uses changed to strchr.
87808         (strlen): Remove decl.
87809         (exchange): Remove forward decl; no longer needed.
87810         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87811         Define with prototype.
87812         * lib/getopt1.c (const): Remove macro.
87813         (getopt_long, getopt_long_only, main): Define with prototype.
87814
87815         * lib/getugroups.c: Include <string.h> unconditionally.
87816
87817         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87818         (getusershell, setusershell, endusershell, readname, main):
87819         Define with prototypes.
87820
87821         * lib/group-member.c: Include group-member.h first.
87822         Include <stdlib.h> unconditionally.
87823
87824         * lib/hard-locale.c: Include hard-locale.h first.
87825         Include <stdlib.h>, <string.h> unconditionally.
87826
87827         * lib/hash.c (free, malloc): Remove decls.
87828         Include <stdlib.h> unconditionally.
87829
87830         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87831         (getenv): Do not declare.
87832
87833         * lib/idcache.c: Include <string.h> unconditionally.
87834
87835         * lib/long-options.c: Include long-options.h first, to test interface.
87836         Include <stdlib.h> unconditionally.
87837
87838         * lib/makepath.c: Include makepath.h first, to test interface.
87839         Include <stdlib.h> and <string.h> unconditionally.
87840
87841         * lib/linebuffer.c: Include <stdlib.h>.
87842         (free): Remove decl.
87843
87844         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87845         stddef.h. rpl_malloc returns void *, not char *.
87846         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87847         prototype.
87848
87849         * lib/md5.h: Include <limits.h> unconditionally.
87850         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87851         (__P): Remove; all uses removed.
87852         * lib/md5.c: Include "md5.h" first.
87853         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87854         md5_buffer, md5_process_bytes, md5_process_block):
87855         Define with prototypes.
87856         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87857         * lib/sha.c: Include "sha.h" first.
87858         Include <stdlib.h>, <string.h> unconditionally.
87859
87860         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87861         * lib/memcmp.c (__ptr_t): Likewise.
87862         * lib/memrchr.c (__ptr_t): Likewise.
87863         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87864         Include <string.h> unconditionally.
87865         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87866         * lib/memchr.c: Include <stdlib.h> unconditionally.
87867         * lib/memchr.c (LONG_MAX): Remove.
87868         * lib/memrchr.c (LONG_MAX): Likewise.
87869         * lib/memchr.c (__memchr): Define via a prototype.
87870         * lib/memrchr.c (__memrchr): Likewise.
87871         * lib/memcmp.c (__P): Remove, and remove all uses.
87872         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87873         Remove forward decls; no longer needed.
87874         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87875         Use types required by C89 in prototype.
87876
87877         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87878         * lib/savedir.c: Likewise.
87879         * lib/mkdir.c (free): Remove decl.
87880         * lib/rmdir.c (rmdir): Define with a prototype.
87881         * lib/savedir.c: Include savedir.h first, to test interface.
87882
87883         * lib/mktime.c (STDC_HEADERS): Remove.
87884         Include <stdlib.h>, <string.h> unconditionally.
87885
87886         * lib/modechange.c: Include <stdlib.h> unconditionally.
87887         (malloc): Remove decl.
87888
87889         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87890         (free): Remove decl.
87891
87892         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87893         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87894         (This type really should be intptr_t, but that's a C99ism.)
87895         (_obstack_memcpy): Remove: all uses changed to memcpy.
87896         Include <string.h> unconditionally.
87897         (struct obstack): Assume __STDC__ for types of members
87898         chunkfun, freefun, extra_arg.
87899         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87900         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87901         obstack_begin, obstack_specify_allocation,
87902         obstack_specify_allocation_with_arg, obstack_chunkfun,
87903         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87904         Remove unprototyped decls and the macros that use them.
87905         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87906         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87907         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87908         (defined __STDC__ && __STDC__)]:
87909         Remove nonprototyped code.
87910         Include <stdlib.h> unconditionally.
87911         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87912         _obstack_allocated_p, _obstack_free, obstack_free,
87913         _obstack_memory_used, print_and_abort):
87914         Define using prototypes.
87915         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87916         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87917         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87918         obstack_next_free, obstack_object_size, obstack_room) [0]:
87919         Remove unused, unprototyped code.
87920
87921         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87922
87923         * lib/physmem.c (physmem_total, physmem_available, main): Define
87924         with prototypes.
87925
87926         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87927         (main): Define with a prototype.
87928
87929         * lib/posixver.c (getenv): Remove decl.
87930
87931         * lib/putenv.c (malloc): Returns void *, not char *.
87932         Include <string.h> unconditionally.
87933         (strchr, memcpy, NULL): Do not define.
87934
87935         * lib/readtokens.c: Include readtokens.h first, to test interface.
87936         Include <stdlib.h>, <string.h> unconditionally.
87937         (init_tokenbuffer): Define with a prototype.
87938
87939         * lib/regex.c (PARAMS): Remove.  All uses removed.
87940         All uses of _RE_ARGS removed, too.
87941         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87942         unconditionally.
87943         (bzero): Assume memset exists.
87944         (memcmp, memcpy, NULL): Remove.
87945         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87946         char, or assignments to local vars of type signed char.
87947         (init_syntax_once, PREFIX(extract_number_and_incr),
87948         PREFIX(print_partial_compiled_pattern),
87949         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87950         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87951         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87952         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87953         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87954         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87955         wcs_compile_range, byte_compile_range, truncate_wchar,
87956         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87957         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87958         count_mbs_length, wcs_re_match_2_internal,
87959         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87960         PREFIX(alt_match_null_string_p),
87961         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87962         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87963         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87964         now-unnecessary declaration, if any.
87965         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87966         regcomp, regexec):
87967         Remove now-unnecessary casts among pointer types.
87968         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87969
87970         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87971         (free): Remove decl.
87972
87973         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87974
87975         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87976         (free): Remove decl.
87977
87978         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87979         * lib/xgetcwd.c: Likewise.
87980
87981         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87982         (free): Remove decl.
87983
87984         * lib/strchrnul.c (strchrnul): Define with a prototype.
87985         Fix bug: c_in was not converted to char before searching.
87986
87987         The following changes are not K&R related:
87988
87989         * lib/group-member.h: Include <sys/types.h>, so that this file is
87990         self-contained.
87991         * lib/makepath.h: Likewise.
87992
87993         * lib/getusershell.c (readname, default_index, line_size, readname):
87994         Use size_t, not int, for sizes.
87995         (readname): If the size overflows, report an error instead of
87996         looping forever.
87997
87998 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87999
88000         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88001         libc.
88002
88003 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88004
88005         * README: New section: portability guidelines.
88006
88007 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88008
88009         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88010         C89 spec.
88011
88012 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88013
88014         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88015
88016 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88017
88018         Assume C89 or better; remove K&R cruft.
88019         A few of these changes were first proposed by Derek Robert Price
88020         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88021
88022         * lib/addext.c: Include <string.h> unconditionally.
88023         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88024         Don't declare getenv or malloc.
88025
88026         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88027         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88028         (NULL): Remove.
88029         (find_stack_direction, alloca): Use prototypes.
88030
88031         * lib/atexit.c (atexit): Define using a prototype.
88032
88033         * lib/basename.c, dirname.c, stripslash.c:
88034         Include <string.h> unconditionally.
88035
88036         * lib/bcopy.c: Include <stddef.h>.
88037         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88038
88039         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88040
88041         * lib/error.h (error, error_at_line, error_print_progname)
88042         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88043         * lib/error.c: Include error.h first, to check interface.
88044         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88045         (VA_START): Remove; all uses changeed to va_start.
88046         (exit, strerror): Remove decls.
88047         (error_print_progname): Prototype uncondionally.
88048         Don't include <errno.h>; no longer needed.
88049         (private_strerror): Remove.
88050         (error_tail): Always define.
88051         (error, error_at_line): Assume C89 or better; always use prototypes.
88052         * lib/fatal.c: Include "fatal.h" first, to test interface.
88053         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88054         (VA_START): Remove; all uses changed to va_start.
88055         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88056         this case.
88057         (exit): Remove decl.
88058         (fatal): Prototype unconditionally.  Assume va_start works.
88059         Abort at end, to pacify gcc.
88060
88061         * lib/euidaccess.c (main): Define with a prototype.
88062
88063         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88064
88065         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88066
88067         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88068         prototypes.
88069         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88070         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88071         (getenv): Remove decl.
88072         (fnmatch): Define using a prototype.
88073         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88074         (FCT): Define using a prototype.
88075
88076         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88077
88078         * lib/gethostname.c: Include <stddef.h>.
88079         (gethostname): Define with prototype.  Length is size_t, not int.
88080
88081 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88082
88083         Assume C89 or better; remove K&R cruft.
88084         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88085         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88086         string.h, getenv, malloc.
88087         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88088         headers.
88089         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88090         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88091         do not check for strerror.
88092         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88093         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88094         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88095         do not check for doprnt or vprintf.
88096         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88097         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88098
88099 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88100
88101         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88102         getversion.c should have been removed then, but was accidentally
88103         preserved.
88104
88105         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88106         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88107
88108 2003-09-08  Karl Berry  <karl@gnu.org>
88109
88110         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88111                 config, forget about prep.
88112
88113         * config/depcomp, missing: update from automake.
88114
88115 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88116
88117         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88118         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88119
88120 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88121
88122         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88123         copy_tm_result.  Bug reported by Simon Josefsson in
88124         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88125
88126 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88127
88128         * m4/time_r.m4: New file.
88129         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88130         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88131         is. Check for timegm declaration.
88132         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88133         Do not check for gmtime_r.
88134         Replace mktime if __mktime_internal does not exist and if mktime
88135         hasn't been replaced already.
88136
88137 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88138
88139         * lib/time_r.c, lib/time_r.h: New files.
88140
88141         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88142         __localtime_r.
88143         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88144         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88145
88146         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88147         __gmtime_r.
88148         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88149         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88150         Include <time_r.h>.
88151
88152         * lib/timegm.c: Switch to glibc implementation, with the following
88153         changes:
88154         [defined HAVE_CONFIG_H]: Include <config.h>.
88155         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88156         (__mktime_internal) [!defined _LIBC]: New decl.
88157         (__gmtime_r) [!defined _LIBC]: New macro and function.
88158         (timegm): Use a prototype, since gnulib assumes C89.
88159         Do not bother declaring tmp to be const, as it's not really usefu.
88160         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88161         (timegm): Declare only if HAVE_DECL_TIMEGM.
88162
88163 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88164
88165         * MODULES.html.sh (func_all_modules): Add time_r.
88166         * modules/time_r: New file.
88167         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88168         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88169
88170 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88171
88172         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88173         Bug reported by Lute Kamstra in
88174         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88175
88176         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88177         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88178         course with correspondingly smaller numbers for tomorrow and
88179         yesterday.  From Tadayoshi Funaba.  Originally installed into
88180         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88181         coreutils merge?).
88182
88183 2003-08-31  Simon Josefsson  <jas@extundo.com>
88184
88185         * modules/timegm: New file.
88186         * MODULES.html.sh (func_all_modules): Add timegm.
88187
88188 2003-08-31  Simon Josefsson  <jas@extundo.com>
88189
88190         * m4/timegm.m4: New file.
88191
88192 2003-08-31  Simon Josefsson  <jas@extundo.com>
88193
88194         * lib/timegm.h: New file.
88195         * lib/timegm.c: New file.  Based on
88196         wget-1.8.2/src/http.c:mktime_from_utc.
88197
88198 2003-08-31  Karl Berry  <karl@gnu.org>
88199
88200         * lib/argp.h: update from libc.
88201
88202 2003-08-28  Bruno Haible  <bruno@clisp.org>
88203
88204         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88205         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88206         followed by '#define fnmatch fnmatch_posix' gives an error.
88207
88208 2003-08-28  Bruno Haible  <bruno@clisp.org>
88209
88210         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88211         warning on QNX, which defines O_BINARY to 000000.
88212
88213 2003-08-27  Jim Meyering  <jim@meyering.net>
88214
88215         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88216         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88217         would fail after 32.  Reported by Danny Levinson.  Details here:
88218         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88219
88220 2003-08-24  Bruno Haible  <bruno@clisp.org>
88221
88222         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88223         MSVC7 <stdio.h> is included later.
88224
88225 2003-08-22  Simon Josefsson  <jas@extundo.com>
88226
88227         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88228
88229 2003-08-20  Karl Berry  <karl@gnu.org>
88230
88231         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88232
88233 2003-08-20  Bruno Haible  <bruno@clisp.org>
88234
88235         * modules/progname: New file.
88236         * MODULES.html.sh (func_all_modules): Add progname.
88237
88238 2003-08-20  Bruno Haible  <bruno@clisp.org>
88239
88240         * lib/progname.h: New file, from GNU gettext.
88241         * lib/progname.c: New file, from GNU gettext.
88242         * lib/progreloc.c: New file, from GNU gettext.
88243
88244 2003-08-19  Jim Meyering  <jim@meyering.net>
88245
88246         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88247         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88248
88249 2003-08-19  Bruno Haible  <bruno@clisp.org>
88250
88251         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88252         more.
88253
88254 2003-08-19  Bruno Haible  <bruno@clisp.org>
88255
88256         * lib/xstrdup.c: Assume <string.h> exists.
88257
88258 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88259
88260         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88261         in makefile rules.
88262
88263 2003-08-18  Jim Meyering  <jim@meyering.net>
88264
88265         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88266         * m4/lib-ld.m4: Likewise.
88267
88268 2003-08-18  Jim Meyering  <jim@meyering.net>
88269
88270         * lib/setenv.h: Indent nested cpp directive.
88271         * lib/vasnprintf.c: Remove trailing blanks.
88272
88273 2003-08-17  Simon Josefsson  <jas@extundo.com>
88274
88275         * modules/xstrndup: New file.
88276         * MODULES.html.sh (func_all_modules): Add xstrndup.
88277
88278 2003-08-17  Simon Josefsson  <jas@extundo.com>
88279
88280         * modules/argp: Fix autoconf macro name. Add more dependencies.
88281
88282 2003-08-17  Simon Josefsson  <jas@extundo.com>
88283
88284         * m4/xstrndup.m4: New file.
88285
88286 2003-08-17  Simon Josefsson  <jas@extundo.com>
88287
88288         * m4/argp.m4: New file.
88289
88290 2003-08-17  Simon Josefsson  <jas@extundo.com>
88291             Bruno Haible  <bruno@clisp.org>
88292
88293         * lib/xstrndup.h: New file.
88294         * lib/xstrndup.c: New file.
88295
88296 2003-08-17  Bruno Haible  <bruno@clisp.org>
88297
88298         * modules/strndup (Files, Include): Add lib/strndup.h.
88299
88300 2003-08-17  Bruno Haible  <bruno@clisp.org>
88301
88302         * modules/euidaccess (Files): Add lib/euidaccess.h.
88303
88304 2003-08-17  Bruno Haible  <bruno@clisp.org>
88305
88306         * lib/strndup.h: New file.
88307
88308 2003-08-17  Bruno Haible  <bruno@clisp.org>
88309
88310         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88311         like AC_GNU_SOURCE.
88312         * modules/extensions (configure.ac): Comment out the invocation of
88313         gl_USE_SYSTEM_EXTENSIONS.
88314
88315 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88316
88317         Merges from coreutils, etc.
88318         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88319         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88320         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88321         fixing a typo.
88322         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88323         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88324
88325 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88326
88327         Document merge from coreutils.
88328         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88329         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88330         * modules/utime: Add m4/utimes-null.m4.
88331
88332 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88333
88334         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88335         space, undoing this 2003-08-12 change:
88336         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88337
88338 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88339
88340         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88341         strtoul.c from libc, undoing this 2003-08-12 change:
88342         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88343
88344 2003-08-16  Jim Meyering  <jim@meyering.net>
88345
88346         Merges from coreutils.
88347         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88348         prefix.  Adjust cache variables similarly.  Create 500 rather than
88349         just 300 files, to exercise bug on Darwin6.5, too.
88350         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88351         $missing_dir.
88352         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88353         AM_SYS_POSIX_TERMIOS.
88354         Reported by mkc@mathdogs.com.
88355         Also change use of $am_cv_sys_posix_termios
88356         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88357         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88358         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88359         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88360         in /proc/mounts until it finds one with matching device number.  This
88361         is unnecessary when the FILE argument *is* a mount point.  No stat call
88362         is necessary in that case.  So, disable the statvfs-testing code on
88363         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88364         as RedHat bug# 84846.
88365         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88366         to 1MB, so as not to render systems with no stack size limit (e.g.,
88367         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88368         Include <unistd.h>.  On some systems,
88369         it is required for the definition of _SC_PAGESIZE.
88370
88371 2003-08-16  Jim Meyering  <jim@meyering.net>
88372
88373         Merge from coreutils.
88374         * lib/xstrtoimax.c: #else #if -> #elif.
88375         * lib/xstrtoumax.c: Likewise.
88376
88377 2003-08-16  Jim Meyering  <jim@meyering.net>
88378
88379         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88380         * m4/utimes.m4: Removed.
88381         * m4/utimes-null.m4: Renamed from utimes.m4.
88382
88383         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88384         to 1MB, so as not to render systems with no stack size limit (e.g.,
88385         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88386         Include <unistd.h>.  On some systems,
88387         it is required for the definition of _SC_PAGESIZE.
88388
88389 2003-08-16  Jim Meyering  <jim@meyering.net>
88390         and Paul Eggert  <eggert@cs.ucla.edu>
88391
88392         Merges from coreutils, etc.
88393
88394         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88395         using the latest version from cvs.  This avoids problems with #line
88396         directives using a vendor (Sun) compiler.
88397         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88398         Don't set GETGROUPS_LIB here; now it's
88399         done via getgroups.m4's wrapper function.
88400         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88401         rather than just in sh-util/configure.in, so that the
88402         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88403         same.
88404         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88405         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88406         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88407         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88408         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88409         Remove code that is now done by the newly-required macros.
88410         Append $(EXEEXT) to DF_PROG.
88411         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88412         Do not invoke or require the following here,
88413         since prereq.m4 or some gnulib .m4 now does this for us:
88414         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88415         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88416         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88417         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88418         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88419         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88420         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88421         AC_FUNC_OBSTACK.
88422         Do not replace the following functions, as this is now the job
88423         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88424         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88425         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88426         atexit getpass, strdup, getpagesize.
88427         Replace 'raise'.
88428         Do not check for the following functions, as this is now the job
88429         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88430         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88431         setregid.
88432         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88433         Check for sys/sysctl.h.
88434         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88435         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88436         of checking for ssize_t ourselves.
88437
88438         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88439         Require every macro that gnulib/modules/* suggests for us.
88440         (jm_PREREQ_ADDEXT): New macro.
88441         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88442         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88443
88444         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88445         (gl_PHYSMEM): Use it.
88446         Also check for `table' function.
88447         Check for new headers and functions.
88448         Add check for sys/sysmp.h.
88449         With suggestions from Kaveh Ghazi.
88450         Ignore headers that are present but cannot be compiled.  This
88451         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88452         C 5.4.
88453
88454 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88455
88456         Document merge from coreutils.
88457         * modules/userspec: Depend on posixver.
88458         * modules/strftime: Depend on tzset.
88459
88460 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88461
88462         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88463         rather than tab, after '#' in shell-script copyright notices.
88464         Suggested by Bruno Haible.
88465
88466 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88467
88468         * config/srclist-update: Use three spaces, rather than tab, after '#'
88469         in shell-script copyright notices.  Suggested by Bruno Haible.
88470         Remove unnecessary parenthesization in regular expression.
88471
88472 2003-08-15  Jim Meyering  <jim@meyering.net>
88473
88474         Merge from coreutils.
88475         * lib/xgethostname.c: Include <stdlib.h>.
88476         (xghostname): Don't exit for anything other than memory-related
88477         failure; just return NULL.
88478         * lib/userspec.c: Include "posixver.h".
88479         (parse_user_spec): Accept `.' as a separator only
88480         in pre-POSIX-200112 mode.
88481         * lib/strtoimax.c: Use #elif rather than #else #if.
88482         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88483         Remove function, now that we can rely on a working tzset function.
88484         [!_LIBC]: Ensure that the required autoconf test has been run.
88485         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88486         Use underlying_strftime for %r.
88487         * lib/sha.c: Merge in some clean-up and optimization changes from
88488         glibc.
88489         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88490         Ensure that it is a multiple of 64.
88491         Rearrange loop exit tests so as to avoid performing an
88492         additional fread after encountering an error or EOF.
88493         * lib/realloc.c: Update copyright date.
88494
88495 2003-08-15  Jim Meyering  <jim@meyering.net>
88496         and Paul Eggert  <eggert@twinsun.com>
88497
88498         Merge from coreutils.
88499         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88500         member but strut utmpx does not.  Needed for AIX 4.3.3.
88501         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88502
88503 2003-08-15  Jim Meyering  <jim@meyering.net>
88504         and Paul Eggert  <eggert@cs.ucla.edu>
88505
88506         Merges from coreutils, etc.
88507         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88508         Require gl_FUNC_TZSET_CLOBBER.
88509         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88510         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88511         members.
88512
88513 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88514
88515         Help the merge from coreutils.
88516         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88517         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88518         * m4/tzset.m4: Use it too.
88519
88520 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88521
88522         * modules/tzset: New file.
88523
88524 2003-08-14  Jim Meyering  <jim@meyering.net>
88525
88526         Merges from coreutils.
88527         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88528         variable names, rather than @FNMATCH_H@.
88529         * modules/alloca: Likewise for $(ALLOCA_H).
88530
88531         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88532         the three copies of the literal target, `fnmatch.h'.
88533         * modules/alloca (alloca.h): Likewise.
88534
88535 2003-08-14  Jim Meyering  <jim@meyering.net>
88536
88537         Merge from coreutils.
88538         * m4/tzset.m4: New file.
88539         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88540         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88541         otherwise, AIX 5.1 systems would end up using the latter.
88542         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88543         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88544         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88545         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88546
88547 2003-08-14  Jim Meyering  <jim@meyering.net>
88548
88549         Merge from coreutils.
88550         * lib/obstack.h: Whitespace changes.
88551         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88552         and xcalloc return values.
88553         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88554         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88555         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88556         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88557         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88558         error from mntctl.
88559         Use mntctl's return value to drive the entry-processing loop, since
88560         we can't rely on the value of the vmt_length member in the last
88561         entry.  On some systems doing so could result in exhausting
88562         virtual memory.  Based in part on a patch from Mike Jetzer.
88563
88564 2003-08-14  Jim Meyering  <jim@meyering.net>
88565         and Paul Eggert  <eggert@twinsun.com>
88566
88567         Merges from coreutils, plus other fixes.
88568         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88569         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88570         for credits and details.  Thanks to Kaveh Ghazi for helping
88571         to keep these files in sync.
88572         (ARRAY_SIZE): Define it.
88573         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88574         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88575         (memcasecmp): Don't assume size_t fits in unsigned int.
88576         Remove casts and duplicate code.
88577         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88578         (memcpy): Remove definition.
88579         Merge in some clean-up and optimization changes from glibc.
88580         [BLOCKSIZE]: Move definition to top of file.
88581         Ensure that it is a multiple of 64.
88582         Rearrange loop exit tests so as to avoid performing an
88583         additional fread after encountering an error or EOF.
88584         * lib/md5.h (md5_uintptr): Define.
88585         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88586         return to the initial working directory.  Preserve errno
88587         for caller.
88588         * lib/idcache.c: Include "xalloc.h".
88589         (xmalloc, xrealloc): Remove decls.
88590         (getuser): Remove casts no longer required in C89.
88591         * lib/human.c: Include stdio.h, for sprintf.
88592         * lib/group-member.c: Include "xalloc.h".
88593         (xmalloc, xrealloc): Remove decls.
88594         (get_group_info): Remove casts no longer required in C89.
88595         * lib/getusershell.c (readname): Remove casts no longer required in
88596         C89.
88597         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88598         * lib/getline.c: Whitespace fix, from coreutils.
88599
88600 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88601
88602         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88603         Check for isascii.
88604
88605         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88606         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88607         Undo previous (whitespace-only) change.
88608
88609 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88610
88611         * lib/exclude.c: Include <ctype.h>
88612         (IN_CTYPE_DOMAIN): New macro.
88613         (is_space): New fn.
88614         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88615         and empty lines.
88616
88617         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88618         Undo previous (whitespace-only) change.
88619
88620 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88621
88622         * config/srclist-update: Change update back to the old behavior,
88623         leaving whitespace alone.  Use one 'sed' command rather than a
88624         pipeline.
88625         (fixlicense): Now a variable, not a function.
88626         (remove_trailing_blanks): Remove.
88627         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88628         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88629         Undo previous (whitespace-only) change.
88630
88631 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88632
88633         Merge from coreutils.
88634         * modules/euidaccess: Add lib_SOURCES, include for new
88635         file euidaccess.h
88636
88637 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88638
88639         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88640         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88641         Normalize leading white space and remove trailing white space.
88642
88643         Merge from coreutils
88644         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88645
88646         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88647         0.12.1.  These files are now being upgraded automatically by
88648         ../config/srclist-update.
88649
88650 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88651
88652         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88653         Normalize leading white space and remove trailing white space.
88654         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88655         notice, as per ../config/srclist-update.
88656
88657         Merge from coreutils.
88658         * lib/euidaccess.h: New file.
88659         * lib/euidaccess.c: Include it.
88660         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88661         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88662         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88663
88664 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88665
88666         * config/srclist-update: Add copyright notice.
88667         (remove_id_lines, remove_trailing_blanks): New constants.
88668         (fixfile): Use them to normalize spacing a bit in copied files.
88669         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88670         Normalize leading white space and remove trailing white space.
88671
88672         * config/texinfo.tex: Sync with texinfo.
88673
88674         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88675         strtoul.c from libc, to merge coreutils whitespace changes.
88676
88677         * config/srclist.txt: Get the following m4 files from gettext:
88678         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88679         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88680         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88681         wint_t.m4.
88682
88683 2003-08-12  Karl Berry  <karl@gnu.org>
88684
88685         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88686         been made.
88687
88688 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88689
88690         * modules/gnu-source, m4/gnu-source.m4:
88691         Remove; we're assuming Autoconf 2.54 or later now.
88692         Suggested by Bruno Haible.
88693         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88694
88695 2003-08-11  Bruno Haible  <bruno@clisp.org>
88696
88697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88698
88699 2003-08-11  Bruno Haible  <bruno@clisp.org>
88700
88701         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88702         (vasnprintf): Use it instead of wcslen.
88703
88704 2003-08-11  Bruno Haible  <bruno@clisp.org>
88705
88706         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88707         value to ensure that _Bool promotes to int. Use #define for _Bool when
88708         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88709
88710 2003-08-10  Karl Berry  <karl@gnu.org>
88711
88712         * lib/regex.h: update from libc (whitespace fix).
88713
88714 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88715
88716         Merge some files from coreutils.  These changes were
88717         originally made by Jim Meyering.
88718         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88719         many older Unixes require this.
88720         * lib/alloca.c (alloca): Remove cast to argument of free;
88721         no longer needed in C89.
88722         * lib/alloca_.h, regex.h: Fix white space to match
88723         what GNU indent does.
88724
88725 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88726
88727         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88728         apparently Emacs's Unicode mode got confused before my 2003-08-05
88729         checkin.
88730
88731 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88732
88733         * m4/extensions.m4: New file.
88734         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88735         Require gl_USE_SYSTEM_EXTENSIONS.
88736         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88737         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88738
88739 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88740
88741         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88742         * modules/extensions, modules/gnu-source: New files.
88743         * modules/timespec, modules/unlocked-io: Depend on extensions.
88744
88745 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88746
88747         * modules/restrict: New file.
88748         * MODULES.html.sh (func_all_modules): Add restrict.
88749         * modules/regex: Depend on restrict.
88750
88751 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88752
88753         * m4/restrict.m4: New file.
88754         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88755
88756 2003-08-07  Bruno Haible  <bruno@clisp.org>
88757
88758         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88759         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88760
88761 2003-08-07  Bruno Haible  <bruno@clisp.org>
88762
88763         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88764         makes the module 'getndelim2' compatible with the module 'getline'.
88765
88766 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88767
88768         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88769         byte with "\201" to avoid glitches when editing that source file
88770         with multi-gnome-terminal.
88771
88772 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88773
88774         * lib/bumpalloc.h: Remove.
88775
88776 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88777
88778         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88779         * modules/bumpalloc: Remove.
88780
88781 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88782
88783         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88784         GNU coding style.
88785
88786         Merge from coreutils.
88787         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88788         1. From glibc.
88789         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88790         from Karl Berry, implemented by Jim Meyering.
88791         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88792         from Dmitry V. Levin.
88793         Remove anachronistic cast of xrealloc.
88794         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88795         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88796         type. Otherwise, it wouldn't compile with at least /bin/cc on
88797         ymp-cray-unicos9.0.2.X.
88798         Combine two mostly-identical uses of alloca into one.
88799         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88800
88801 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88802
88803         [From Emacs.]
88804
88805         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88806         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88807         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88808         obsolete NLIST_NAME_UNION.
88809         [__GNU__]: Undef BSD and FSCALE.
88810         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88811
88812 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88813
88814         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88815         an enum type, so that it's guaranteed to promote to int.  See:
88816         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88817
88818 2003-08-03  Karl Berry  <karl@gnu.org>
88819
88820         * config/depcomp: update from automake.
88821
88822 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88823
88824         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88825         (strerror): Don't assume that a printable int fits in 14 bytes.
88826
88827 2003-07-31  Bruno Haible  <bruno@clisp.org>
88828
88829         * modules/getpass-gnu: New file.
88830         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88831
88832 2003-07-31  Bruno Haible  <bruno@clisp.org>
88833
88834         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88835
88836 2003-07-24  Karl Berry  <karl@gnu.org>
88837
88838         * config/missing: update from automake.
88839
88840 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88841             Bruno Haible  <bruno@clisp.org>
88842
88843         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88844         * lib/getline.c (getline, getdelim): Likewise.
88845         Remove _GNU_SOURCE define; now it's defined in config.h through
88846         m4/getline.m4.
88847
88848 2003-07-23  Karl Berry  <karl@gnu.org>
88849
88850         * config/config.sub: update from prep.
88851
88852 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88853
88854         * modules/xalloc (Depends-on): Add exitfail.
88855         * modules/xmemcoll: Likewise.
88856
88857 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88858
88859         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88860         over-parenthesization in macros.
88861
88862         Sync with coreutils.
88863
88864         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88865         required by C99.
88866
88867         Use `exit_failure' for xalloc and xmemcoll instead of their own
88868         private exit-failure variables.
88869         * lib/xalloc.h (xalloc_exit_failure): Remove.
88870         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88871         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88872         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88873         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88874         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88875
88876 2003-07-20  Jim Meyering  <jim@meyering.net>
88877
88878         * modules/closeout (Depends-on): Add exitfail.
88879         Suggestion from Bruno Haible.
88880
88881 2003-07-19  Karl Berry  <karl@gnu.org>
88882
88883         * config/config.sub: update from prep.
88884
88885 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88886
88887         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88888         Remove.
88889         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88890         to test that it can stand by itself.  Include "exitfail.h".
88891         Clients should set exit_failure instead.
88892         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88893
88894 2003-07-18  Bruno Haible  <bruno@clisp.org>
88895
88896         * modules/getndelim2: New file.
88897         * modules/getline: Share files with module getndelim2.
88898         * modules/getnline: Depend on getndelim2 instead of sharing files with
88899         it. Add getnline.c to lib_SOURCES.
88900         * MODULES.html.sh (func_all_modules): Add getndelim2.
88901
88902 2003-07-18  Bruno Haible  <bruno@clisp.org>
88903
88904         * m4/getndelim2.m4: New file.
88905         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88906         invoke gl_PREREQ_GETNDELIM2.
88907         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88908         gl_PREREQ_GETNDELIM2.
88909         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88910         gl_GETNDELIM2.
88911
88912 2003-07-18  Bruno Haible  <bruno@clisp.org>
88913
88914         * lib/getndelim2.h: New file.
88915         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88916         getndelim2.h.
88917         (getndelim2): Make non-static. Change return type to ssize_t.
88918         * lib/getline.h: Change argument names.
88919         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88920         * lib/getnline.c: Include getndelim2.h.
88921
88922 2003-07-18  Andreas Schwab  <schwab@suse.de>
88923
88924         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88925
88926 2003-07-17  Karl Berry  <karl@gnu.org>
88927
88928         * config/config.sub: update from prep.
88929
88930 2003-07-17  Bruno Haible  <bruno@clisp.org>
88931
88932         * modules/getnline: New file.
88933         * modules/getline: Add lib/getndelim2.c to source file list.
88934         * MODULES.html.sh (func_all_modules): Add getnline.
88935
88936 2003-07-17  Bruno Haible  <bruno@clisp.org>
88937
88938         * m4/getnline.m4: New file.
88939
88940 2003-07-17  Bruno Haible  <bruno@clisp.org>
88941
88942         * m4/Makefile.am.in: Remove file.
88943         * m4/Makefile.am: Remove file.
88944         * m4/Makefile.in: Remove file.
88945
88946 2003-07-17  Bruno Haible  <bruno@clisp.org>
88947
88948         * lib/getnline.h: New file.
88949         * lib/getnline.c: New file.
88950         * lib/getndelim2.c: New file, extracted from getline.c.
88951         (getndelim2): Renamed from getdelim2, with added nmax argument.
88952         * lib/getline.c: Include getndelim2.c.
88953         (getdelim2): Moved out to getndelim2.c.
88954         (getline, getdelim): Update.
88955
88956 2003-07-17  Bruno Haible  <bruno@clisp.org>
88957
88958         * lib/Makefile.am: Remove file.
88959         * lib/Makefile.in: Remove file.
88960
88961 2003-07-17  Bruno Haible  <bruno@clisp.org>
88962
88963         * configure.in: Remove file.
88964         * Makefile.in: Remove file.
88965
88966 2003-07-17  Bruno Haible  <bruno@clisp.org>
88967
88968         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88969
88970 2003-07-16  Karl Berry  <karl@gnu.org>
88971
88972         * config/srclist-update: was running fixlicense twice, which caused
88973                 texinfo.tex to be nullified for some reason.  Simplify,
88974                 $gplsrc is no longer needed as far as I can see?
88975
88976 2003-07-16  Jim Meyering  <jim@meyering.net>
88977
88978         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88979
88980 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88981
88982         * config/srclist.txt: Get the following files from gettext-runtime/intl
88983         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88984         ref-del.sin.  From Bruno Haible.
88985         * config/srclist-update (fixfile): Change grep pattern again, since the
88986         previous fix didn't work (there was another trailing $).  Use
88987         '[$]' to escape the $s.
88988
88989 2003-07-15  Karl Berry  <karl@gnu.org>
88990
88991         * lib/vasnprintf.c: update from gettext.
88992
88993 2003-07-15  Karl Berry  <karl@gnu.org>
88994
88995         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88996         gets expanded when surrounded by '$'.
88997
88998 2003-07-15  Jim Meyering  <jim@meyering.net>
88999
89000         * modules/save-cwd: Don't depend on error.  From Derek Price.
89001
89002 2003-07-15  Jim Meyering  <jim@meyering.net>
89003
89004         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89005
89006 2003-07-14  Simon Josefsson  <jas@extundo.com>
89007
89008         * modules/mempcpy: New file.
89009         * MODULES.html.sh (func_all_modules): Add mempcpy.
89010
89011 2003-07-14  Simon Josefsson  <jas@extundo.com>
89012
89013         * m4/mempcpy.m4: New file.
89014
89015 2003-07-14  Simon Josefsson  <jas@extundo.com>
89016
89017         * lib/mempcpy.h: New file.
89018         * lib/mempcpy.c: New file.
89019
89020 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89021
89022         * modules/getdate, modules/posixtm: Depend on mktime.
89023
89024 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89025
89026         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89027         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89028         unicodeio.c, unicodeio.h, unlocked-io.h:
89029         Switch from LGPL to GPL.
89030
89031 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89032
89033         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89034         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89035         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89036         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89037         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89038         updated automatically by ../config/srclist-update.  This changes
89039         their license from LPGL to GPL.
89040
89041 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89042
89043         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89044         assumed to refer to the root of the most recent stable gettext version.
89045         * config/srclistvars.sh: Add defaults for eggert.
89046         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89047         Match "This program" as well as "The program".  This is needed
89048         for gettext.
89049
89050 2003-07-14  Jim Meyering  <jim@meyering.net>
89051
89052         Don't emit diagnostics.  Let callers do that.
89053         * lib/save-cwd.c: Don't include "error.h".
89054         (save_cwd): Don't call error.  Ensure that errno is valid
89055         when returning nonzero.
89056
89057         * lib/save-cwd.h (restore_cwd): Update prototype.
89058         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89059         Simplify.  Don't call error upon failure.  Let callers do that.
89060         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89061         when auditing is enabled.  But don't bother updating the #if.
89062
89063 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89064
89065         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89066         it breaks C++ compilation.
89067         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89068
89069 2003-07-10  Simon Josefsson  <jas@extundo.com>
89070
89071         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89072
89073 2003-07-10  Jim Meyering  <jim@meyering.net>
89074
89075         * m4/clock_time.m4: Remove trailing blank.
89076         * m4/intmax_t.m4: Likewise.
89077
89078 2003-07-10  Jim Meyering  <jim@meyering.net>
89079
89080         * lib/vasnprintf.c: Remove trailing blanks.
89081         Make cpp indentation consistent.
89082
89083 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89084
89085         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89086         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89087         Switch from LGPL to GPL.
89088
89089 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89090
89091         * config/srclist.txt: Sort sublists.  Add
89092         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89093         that differ from gnulib for one reason or another; we'd like this list
89094         to be smaller but for now let's document what we have.
89095
89096 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89097
89098         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89099         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89100         and sweeter "eval x=$x".
89101         * config/srclist.txt: Get lib/argp* from glibc.
89102
89103 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89104
89105         * lib/mktime.c: Fix some boundary cases and remove need for floating
89106         point.
89107
89108         Issue a compile-time diagnostic if time_t is floating point, or if
89109         two's complement arithmetic is not in effect, or if arithmetic
89110         right shift does not propagate the sign.  These assumptions were
89111         all in the original code but they weren't checked.
89112
89113         (TIME_T_MIDPOINT, verify): New macros.
89114         (__isleap): Remove; it has integer overflow problems.
89115         (leapyear): New function, without those problems.
89116         (ydhms_tm_diff): Remove; splitting into two parts.
89117         (ydhms_diff): New function, containing the arithmetic part of
89118         the old ydhms_tm_diff function.  Issue a compile-time
89119         diagnostic if we are not using C99 integer division.
89120         Avoid casts when possible.
89121         (guess_time_tm): New function, containing the checking part of
89122         the old ydhms_tm_diff function.  Return the new value, rather than
89123         the difference between it and the old.  Accept a new argument T
89124         so that *T specifies the old value.  Check for overflow in the result.
89125
89126         (__mktime_internal): Use a time_t offset, not a long int offset.
89127         This undoes the 2003-06-04 change, which is no longer needed now
89128         that we have better overflow checking.
89129         (localtime_offset): Likewise.
89130
89131         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89132         and long are 64-bit but int is only 32-bit.
89133         (ydhms_diff): Use long int to store year1 and yday1.
89134         Issue a compile-time diagnostic if long int is not wide enough.
89135
89136         (__mktime_internal): Use long int to store adjusted year and yday.
89137         Use plain C rather than preprocessor commands, if that doesn't
89138         affect efficiency.
89139         Check for overflow (and try to repair) after each probe
89140         rather than checking only at the very end.  This avoids some bugs
89141         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89142         does not equal GMT offset at maximum time).
89143         Use integer to check for overflow rather than floating point; this
89144         is more portable to non-IEEE hosts, and is a tad faster.
89145         When we detect that we are oscillating between two values,
89146         don't check whether tm_isdst has the requested value, since
89147         we already know the answer.  When tm_isdst has the wrong value,
89148         use a different heuristic to find the right one, based on the
89149         extreme values actually observed in practice in tz2003a,
89150         rather than the (overly optimistic) "previous 3 calendar quarters".
89151
89152         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89153         "T const" to accommodate glibc style.
89154         (check_result): Use less-confusing report format.  "long" -> "long int.
89155         (main): Likewise.
89156         Don't loop if the iteration overflows time_t.
89157         Allow a negative step in the iteration.
89158
89159 2003-07-06  Karl Berry  <karl@gnu.org>
89160
89161         * config/depcomp: update from automake.
89162         * config/config.sub: update from prep.
89163
89164 2003-07-03  Karl Berry  <karl@gnu.org>
89165
89166         * config/config.guess: update from prep.
89167
89168 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89169
89170         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89171         xreadlink.c now includes it unconditionally.
89172
89173 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89174
89175         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89176         having it depend on HAVE_SYS_TYPES_H.
89177
89178 2003-07-01  Bruno Haible  <bruno@clisp.org>
89179
89180         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89181         <sys/types.h> should be sufficient.
89182         Reported by Paul Eggert.
89183
89184 2003-06-26  Karl Berry  <karl@gnu.org>
89185
89186         * config/depcomp: update from automake.
89187
89188 2003-06-26  Bruno Haible  <bruno@clisp.org>
89189
89190         * modules/human: Depend on module stdbool.
89191
89192 2003-06-25  Bruno Haible  <bruno@clisp.org>
89193
89194         * modules/readlink: New file.
89195         * modules/xreadlink: Depend on it.
89196         * MODULES.html.sh (func_all_modules): Add readlink.
89197
89198 2003-06-25  Bruno Haible  <bruno@clisp.org>
89199
89200         * m4/readlink.m4: New file.
89201
89202 2003-06-25  Bruno Haible  <bruno@clisp.org>
89203
89204         * lib/readlink.c: New file.
89205
89206 2003-06-22  Karl Berry  <karl@gnu.org>
89207
89208         * config/srclist.txt: update mkinstalldirs from automake.
89209         * config/mkinstalldirs: update.
89210
89211 2003-06-22  Bruno Haible  <bruno@clisp.org>
89212
89213         Portability to mingw32.
89214         * m4/ssize_t.m4: New file, from GNU gettext.
89215         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89216         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89217
89218 2003-06-22  Bruno Haible  <bruno@clisp.org>
89219
89220         * modules/safe-read: Add m4/ssize_t.m4.
89221         * modules/xreadlink: Add m4/ssize_t.m4.
89222
89223 2003-06-20  Bruno Haible  <bruno@clisp.org>
89224
89225         Assume C89, so PARAMS isn't needed.
89226         * lib/unicodeio.h (PARAMS): Remove.
89227         * lib/unicodeio.c: Don't use PARAMS.
89228
89229 2003-06-18  Karl Berry  <karl@gnu.org>
89230
89231         * config/config.{guess,sub}: update from prep.
89232
89233 2003-06-18  Jim Meyering  <jim@meyering.net>
89234
89235         Merge changes from coreutils.
89236         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89237         Remove explicit declarations of xmalloc and realloc.
89238         Include xalloc.h.
89239         (read_utmp): Remove anachronistic cast of xmalloc.
89240
89241 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89242
89243         Assume C89, so PARAMS isn't needed.
89244         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89245         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89246         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89247         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89248         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89249         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89250         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89251         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89252         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89253         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89254         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89255         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89256         no longer needed. Anyway, config.h should always be included before any
89257         other file.
89258
89259 2003-06-11  Simon Josefsson  <jas@extundo.com>
89260
89261         * modules/sysexits: New file.
89262         * MODULES.html.sh (func_all_modules): Add sysexits.
89263
89264 2003-06-11  Simon Josefsson  <jas@extundo.com>
89265
89266         * lib/sysexit_.h: New file.
89267
89268 2003-06-11  Derek Price  <derek@ximbiot.com>
89269
89270         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89271         necessary.
89272
89273 2003-06-11  Bruno Haible  <bruno@clisp.org>
89274
89275         * m4/sysexits.m4: New file.
89276
89277 2003-06-10  Simon Josefsson  <jas@extundo.com>
89278
89279         * lib/argp.h: New file, from glibc.
89280         * lib/argp-ba.c: New file, from glibc.
89281         * lib/argp-eexst.c: New file, from glibc.
89282         * lib/argp-fmtstream.c: New file, from glibc.
89283         * lib/argp-fmtstream.h: New file, from glibc.
89284         * lib/argp-fs-xinl.c: New file, from glibc.
89285         * lib/argp-help.c: New file, from glibc.
89286         * lib/argp-namefrob.h: New file, from glibc.
89287         * lib/argp-parse.c: New file, from glibc.
89288         * lib/argp-pv.c: New file, from glibc.
89289         * lib/argp-pvh.c: New file, from glibc.
89290         * lib/argp-xinl.c: New file, from glibc.
89291
89292 2003-06-10  Simon Josefsson  <jas@extundo.com>
89293
89294         * modules/strchrnul: New file.
89295
89296 2003-06-10  Simon Josefsson  <jas@extundo.com>
89297
89298         * modules/argp: New file.
89299
89300 2003-06-10  Simon Josefsson  <jas@extundo.com>
89301
89302         * m4/strchrnul.m4: New file.
89303
89304 2003-06-10  Simon Josefsson  <jas@extundo.com>
89305
89306         * lib/strchrnul.h: New file.
89307         * lib/strchrnul.c: New file.
89308
89309 2003-06-10  Bruno Haible  <bruno@clisp.org>
89310
89311         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89312
89313 2003-06-07  Karl Berry  <karl@gnu.org>
89314
89315         * config/config.{guess,sub}: update from prep.
89316
89317 2003-06-07  Jim Meyering  <jim@meyering.net>
89318
89319         * modules/strtod: Use $(...) notation, not @...@ for
89320         AC_REPLACE'd variables.
89321         * modules/localcharset: Likewise.
89322
89323 2003-06-07  Jim Meyering  <jim@meyering.net>
89324
89325         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89326         in place of my name in the copyright comment.
89327         Remove definition and uses of __P.
89328
89329         From coreutils.
89330         * lib/stat.c: Don't declare xmalloc explicitly.
89331         Instead, include "xalloc.h".
89332         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89333         xrealloc, and xcalloc return values.
89334         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89335         Improve comment.
89336         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89337
89338 2003-06-07  Bruno Haible  <bruno@clisp.org>
89339
89340         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89341         avoid AC_CONFIG_LINKS.
89342         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89343         fnmatch.h, to avoid AC_CONFIG_LINKS.
89344         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89345
89346 2003-06-07  Bruno Haible  <bruno@clisp.org>
89347
89348         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89349         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89350         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89351         directory.
89352         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89353         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89354         directory.
89355
89356 2003-06-06  Jim Meyering  <jim@meyering.net>
89357
89358         Merge from coreutils.
89359         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89360         Consolidate declarations and initializations of *_base* locals.
89361
89362         Merge from coreutils.
89363         This avoids a core dump on systems without GNU putenv,
89364         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89365         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89366         (unsetenv): New static function, from GNU libc.
89367         (rpl_putenv): Use it.
89368
89369         * lib/modechange.c: Remove trailing blanks.
89370
89371         Merge from coreutils.
89372         * lib/fsusage.c: Remove declaration of statfs.
89373         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89374
89375         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89376
89377 2003-06-06  Jim Meyering  <jim@meyering.net>
89378
89379         * lib/stdbool_.h: Renamed from stdbool.h.in.
89380
89381 2003-06-06  Jim Meyering  <jim@meyering.net>
89382             Bruno Haible  <bruno@clisp.org>
89383
89384         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89385         Adjust Makefile.am snippet not to redirect directly to target.
89386         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89387
89388 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89389
89390         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89391         mismatch, look in future quarters as well as past.  This fixes a
89392         bug when processing fall-backwards gaps immediately after a long
89393         period of daylight-saving time.
89394
89395         * lib/mktime.c: Assume freestanding C89 or better.
89396         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89397         (__P): Remove; not used.
89398         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89399         (mktime, not_equal_tm, print_tm, check_result,
89400         main): Use prototypes.  Use const * where appropriate.
89401         (main): Fix typo in testing code that uncovered by above changes.
89402         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89403
89404 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89405
89406         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89407         locale.h, localeconv.  This merges changes from coreutils.
89408
89409         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89410         It can be removed after the next Autoconf is released.
89411         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89412         needed.
89413
89414 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89415
89416         * lib/mktime.c: Fix Debian bug 177940
89417         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89418         (localtime_offset): Now long int, not time_t, because we want it
89419         to be guaranteed to be signed.  All uses changed.
89420         (__mktime_internal): If overflow would occur when adding offset,
89421         don't add it.
89422
89423         Merge 'human' changes from coreutils.  Rewrite to support
89424         locale-specific notations like thousands separators.
89425         * lib/human.c: Simplify authorship notice.
89426         Include human.h immediately after config.h.
89427         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89428         <limits.h>: Do not include, since human.h does.
89429         (SIZE_MAX, UINTMAX_MAX): New macros.
89430         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89431         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89432         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89433         (power_letter): Renamed from suffixes.
89434         (generate_suffix_backwards): Remove.
89435         (adjust_value): Now takes int style (because of human.h changes)
89436         and long double value (for greater precision on some platforms).
89437         (group_number): New function.
89438         (human_readable): Use it.  Use integer options, not enum.
89439         Put the options before the sizes in the arg list.
89440         Support all the new options.
89441         The old human_readable function has been removed;
89442         use inttostr.h instead.
89443         (human_readable, default_block_size, humblock):
89444         Use uintmax_t, not int, for block sizes.
89445         (human_readable_inexact, block_size_types): Remove.
89446         (block_size_opts): New constant.
89447         (human_options): Renamed from human_block_size, with new signature
89448         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89449         * lib/human.h: Add copyright and authorship notice.
89450         Include <limits.h> and <stdbool.h> unconditionally.
89451         (PARAMS): Remove.  All uses removed.
89452         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89453         (enum human_inexact_style): Remove tag; now a nameless enum.
89454         (human_floor, human_ceiling, human_round_to_even): Now have
89455         values 2, 0, 1 rather than -1, 1, 0.
89456         (human_group_digits, human_suppress_point_zero, human_autoscale,
89457         human_base_1024, human_SI, human_B): New constants.
89458         (human_readable_inexact, human_block_size): Remove.
89459         (human_readable): Size args are now uintmax_t, not int.
89460         (human_options): New decl.
89461
89462         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89463         unnecessary now that we assume C89 or better.  This change
89464         imported from coreutils.
89465
89466         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89467         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89468         in the 2003-05-30 sync from glibc.
89469
89470         .h files should stand alone, but we shouldn't include <sys/types.h>
89471         if we can get away with just <stddef.h>.
89472
89473         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89474         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89475         rather than <sys/types.h>, as we merely need size_t.
89476         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89477         to get size_t.
89478         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89479         Include <stdio.h>, to get FILE.
89480         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89481         memcasecmp.h has included <stddef.h> and all we need is size_t.
89482         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89483         our interface, instead of including <sys/types.h>
89484
89485 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89486
89487         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89488         now, as glibc mktime is buggy on non-glibc systems.
89489
89490 2003-06-03  Karl Berry  <karl@gnu.org>
89491
89492         * config/config.sub: update from prep.
89493
89494 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89495
89496         [from coreutils]
89497         Fix some minor time-related bugs with POSIX time arguments.
89498         Some valid time stamps were being rejected (notably -1, and
89499         time stamps before 1900 on 64-bit hosts).  And some invalid
89500         time stamps were being accepted, e.g. September 31.
89501
89502         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89503         that we can return (time_t) -1 successfully.
89504         * lib/posixtm.c: Likewise.
89505         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89506         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89507         (t): Remove static var.
89508         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89509         of static var.  All uses changed.
89510         (year): Do not reject years before 1900; they can occur with
89511         64-bit time_t.
89512         (posix_time_parse): Do not check for out-of-range components;
89513         that is now the caller's responsibility, since our checks were
89514         only approximations.
89515         (posixtime): Use mktime to check for out-of-range components,
89516         since it knows them exactly.
89517         If mktime returns (time_t) -1, check whether an error actually occurred
89518         by invoking localtime on -1.
89519         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89520         posixtime failures better.
89521         Improve the test data (in comments only).
89522
89523 2003-06-02  Karl Berry  <karl@gnu.org>
89524
89525         * config/mkinstalldirs (version): new variable.
89526         (--version): new option.
89527         (usage): improve message.
89528
89529 2003-05-30  Karl Berry  <karl@gnu.org>
89530
89531         * lib/mktime.c: update from libc.
89532
89533 2003-05-30  Bruno Haible  <bruno@clisp.org>
89534
89535         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89536         * config/config.rpath: Upgrade to gettext-0.12.1.
89537
89538 2003-05-30  Bruno Haible  <bruno@clisp.org>
89539
89540         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89541         * m4/nls.m4: New file, from gettext-0.12.1.
89542         * m4/po.m4: New file, from gettext-0.12.1.
89543         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89544
89545 2003-05-30  Bruno Haible  <bruno@clisp.org>
89546
89547         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89548         * lib/localcharset.h: Likewise.
89549         * lib/localcharset.c: Likewise.
89550
89551 2003-05-29  Karl Berry  <karl@gnu.org>
89552
89553         * config/config.rpath: update from gettext.
89554
89555 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89556
89557         Assume the headers required for C89 freestanding compilers.
89558         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89559         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89560         * m4/human.m4 (gl_HUMAN): Likewise.
89561         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89562         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89563         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89564         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89565         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89566         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89567
89568 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89569
89570         Assume the headers required for C89 freestanding compilers.
89571         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89572         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89573         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89574         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89575         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89576         define, since <limits.h> is guaranteed to do that.
89577         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89578         * lib/exclude.c: Include <stdbool.h> unconditionally.
89579         * lib/tempname.c: Include <stddef.h> unconditionally.
89580         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89581         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89582         <stddef.h> does that.
89583         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89584         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89585         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89586         needed.
89587         * lib/xstrtol.c: Likewise.
89588         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89589         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89590
89591         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89592         warnings on some platforms.
89593
89594         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89595         arbitrarily.
89596
89597 2003-05-26  Jim Meyering  <jim@meyering.net>
89598
89599         Merge in a change from coreutils:
89600         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89601         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89602         that condition, rather than `-1' which is slightly misleading.
89603         Change the name of the cache variable to have the gl_ prefix.
89604         Prompted by a patch from Richard Dawe for DJGPP.
89605
89606 2003-05-24  Karl Berry  <karl@gnu.org>
89607
89608         * config/config.guess: update from prep.
89609
89610 2003-05-22  Karl Berry  <karl@gnu.org>
89611
89612         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89613
89614 2003-05-20  Karl Berry  <karl@gnu.org>
89615
89616         * config/config.guess: update from prep.
89617
89618 2003-05-18  Karl Berry  <karl@gnu.org>
89619
89620         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89621         might actually be set by the user.
89622
89623         * config/depcomp, install-sh, mdate-sh: update from automake.
89624
89625 2003-05-17  Bruno Haible  <bruno@clisp.org>
89626
89627         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89628         invalid expansion for AC_EGREP_CPP.
89629         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89630         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89631         Suggested by Akim Demaille <akim@epita.fr> in
89632         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89633
89634 2003-05-12  Jim Meyering  <jim@meyering.net>
89635
89636         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89637         the space-padded-by-default conversion specifiers, %e, %k, %l.
89638
89639 2003-05-12  Bruno Haible  <bruno@clisp.org>
89640
89641         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89642         the string is longer than 4 KB.
89643
89644 2003-05-11  Karl Berry  <karl@gnu.org>
89645
89646         * config/config.{guess,sub}: update from prep.
89647
89648 2003-05-09  Bruno Haible  <bruno@clisp.org>
89649
89650         * modules/error: Add m4/strerror_r.m4 to file list.
89651
89652 2003-05-03  Bruno Haible  <bruno@clisp.org>
89653
89654         Upgrade to Unicode-4.0.
89655         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89656         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89657         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89658         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89659         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89660         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89661         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89662         Change width of U+E0100..U+E01EF from 1 to 0.
89663
89664 2003-04-25  Jim Meyering  <jim@meyering.net>
89665
89666         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89667         of type size_t, not int.
89668
89669 2003-04-25  Bruno Haible  <bruno@clisp.org>
89670
89671         * lib/copy-file.c: Include <stddef.h>, for size_t.
89672
89673 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89674
89675         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89676         code which expansion is under static control.  Patch imported from
89677         Akim Demaille's patch to Bison; see
89678         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89679
89680 2003-04-14  Bruno Haible  <bruno@clisp.org>
89681
89682         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89683
89684 2003-04-11  Jim Meyering  <jim@meyering.net>
89685
89686         Merge changes from Coreutils.
89687
89688         2003-03-22  Jim Meyering  <jim@meyering.net>
89689
89690         * lib/strftime.c (widen): Cast alloca return value to proper type.
89691
89692         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89693
89694         From GNU libc.
89695         * lib/strftime.c (my_strftime): Handle very large width
89696         specifications for numeric values correctly.  Improve checks for
89697         overflow.
89698
89699         2003-01-19  Jim Meyering  <jim@meyering.net>
89700
89701         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89702         definitions.
89703         (nl_get_alt_digit) [! defined my_strftime]: Define.
89704         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89705         _nl_get_alt_digit and _nl_get_walt_digit.
89706
89707         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89708         libc. These changes have no effect outside of _LIBC.
89709
89710 2003-04-10  Bruno Haible  <bruno@clisp.org>
89711
89712         * modules/findprog: New file.
89713         * MODULES.html.sh (func_all_modules): Add it.
89714
89715 2003-04-10  Bruno Haible  <bruno@clisp.org>
89716
89717         * m4/findprog.m4: New file.
89718         * m4/eaccess.m4: New file.
89719
89720 2003-04-10  Bruno Haible  <bruno@clisp.org>
89721
89722         * lib/findprog.h: New file, from GNU gettext.
89723         * lib/findprog.c: New file, from GNU gettext.
89724
89725 2003-04-05  Jim Meyering  <jim@meyering.net>
89726
89727         Merge changes from Coreutils.
89728
89729         * lib/exclude.h (PARAMS): Remove definition and uses.
89730         * lib/exclude.c: Remove uses of `PARAMS'.
89731
89732         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89733         Add test-cases for DOS filenames. Declare program_name.
89734         (main): Set up program_name.  Patch by Rich Dawe.
89735
89736         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89737         error from mntctl.
89738         Use mntctl's return value to drive the entry-processing loop, since
89739         we can't rely on the value of the vmt_length member in the last
89740         entry.  On some systems doing so could result in exhausting
89741         virtual memory.  Based in part on a patch from Mike Jetzer.
89742
89743 2003-04-04  Bruno Haible  <bruno@clisp.org>
89744
89745         * modules/linebreak: New file.
89746         * MODULES.html.sh (func_all_modules): Add it.
89747
89748 2003-04-04  Bruno Haible  <bruno@clisp.org>
89749
89750         * m4/linebreak.m4: New file.
89751
89752 2003-04-04  Bruno Haible  <bruno@clisp.org>
89753
89754         * lib/linebreak.h: New file, from GNU gettext.
89755         * lib/linebreak.c: New file, from GNU gettext with slight
89756         modifications.
89757         * lib/lbrkprop.h: New file, from GNU gettext.
89758
89759 2003-04-03  Bruno Haible  <bruno@clisp.org>
89760
89761         * modules/utf8-ucs4: New file.
89762         * modules/utf16-ucs4: New file.
89763         * modules/ucs4-utf8: New file.
89764         * modules/ucs4-utf16: New file.
89765         * MODULES.html.sh (func_all_modules): Add them.
89766
89767 2003-04-03  Bruno Haible  <bruno@clisp.org>
89768
89769         * m4/utf-ucs4.m4: New file.
89770         * m4/ucs4-utf.m4: New file.
89771
89772 2003-04-03  Bruno Haible  <bruno@clisp.org>
89773
89774         * lib/utf8-ucs4.h: New file, from GNU gettext.
89775         * lib/utf16-ucs4.h: New file, from GNU gettext.
89776         * lib/ucs4-utf8.h: New file, from GNU gettext.
89777         * lib/ucs4-utf16.h: New file, from GNU gettext.
89778
89779 2003-04-02  Bruno Haible  <bruno@clisp.org>
89780
89781         * modules/binary-io: New file.
89782         * MODULES.html.sh (func_all_modules): Add it.
89783
89784 2003-04-02  Bruno Haible  <bruno@clisp.org>
89785
89786         * lib/binary-io.h: New file, from GNU gettext.
89787
89788 2003-04-01  Bruno Haible  <bruno@clisp.org>
89789
89790         * modules/pathname: New file.
89791         * MODULES.html.sh (func_all_modules): Add it.
89792
89793 2003-04-01  Bruno Haible  <bruno@clisp.org>
89794
89795         * lib/pathname.h: New file, from GNU gettext.
89796         * lib/concatpath.c: New file, from GNU gettext.
89797
89798 2003-03-30  Bruno Haible  <bruno@clisp.org>
89799
89800         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89801
89802 2003-03-30  Bruno Haible  <bruno@clisp.org>
89803
89804         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89805         function chown() doesn't exist.
89806
89807 2003-03-28  Bruno Haible  <bruno@clisp.org>
89808
89809         * modules/copy-file: New file.
89810         * MODULES.html.sh (func_all_modules): Add it.
89811
89812 2003-03-28  Bruno Haible  <bruno@clisp.org>
89813
89814         * m4/copy-file.m4: New file.
89815
89816 2003-03-28  Bruno Haible  <bruno@clisp.org>
89817
89818         * lib/copy-file.h: New file, from GNU gettext.
89819         * lib/copy-file.c: New file, from GNU gettext.
89820
89821 2003-03-18  Jim Meyering  <jim@meyering.net>
89822
89823         * lib/quote.c (quote_n): Fix typo in comment.
89824
89825 2003-03-18  Bruno Haible  <bruno@clisp.org>
89826
89827         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89828         checking.
89829         * m4/onceonly_2_57.m4: Likewise.
89830
89831 2003-03-17  Bruno Haible  <bruno@clisp.org>
89832
89833         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89834         (m4_quote): Remove macro.
89835         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89836
89837 2003-03-14  Jim Meyering  <jim@meyering.net>
89838
89839         Merge changes from Coreutils.
89840         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89841         to be const, in order to avoid warnings.
89842         (obstack_room): Likewise.
89843         (obstack_empty_p): Likewise.
89844
89845 2003-03-14  Bruno Haible  <bruno@clisp.org>
89846
89847         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89848         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89849
89850 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89851
89852         Merge changes from Bison.
89853         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89854         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89855         when compiling Bison 1.875's `bitset bset = obstack_alloc
89856         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89857         * lib/hash.c: Include <stdbool.h> unconditionally.
89858
89859 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89860
89861         * m4/onceonly.m4 (m4_quote): New macro.
89862         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89863         Quote AC_FOREACH variable-expansions properly.
89864
89865 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89866
89867         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89868
89869 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89870
89871         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89872         Reported by Bruce Becker; see:
89873         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89874
89875 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89876             Bruno Haible  <bruno@clisp.org>
89877
89878         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89879         Reported by John Hughes, see
89880         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89881
89882 2003-02-20  Bruno Haible  <bruno@clisp.org>
89883
89884         * MODULES.html.sh (func_all_modules): Add poll.
89885
89886 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89887
89888         * modules/poll: New file.
89889
89890 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89891
89892         * lib/poll_.h: New file.
89893         * lib/poll.c: New file.
89894
89895 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89896
89897         * m4/poll.m4: New file.
89898
89899 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89900
89901         * modules/mathl: New file.
89902
89903 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89904
89905         * lib/mathl.h: New file.
89906         * lib/acosl.c: New file.
89907         * lib/asinl.c: New file.
89908         * lib/atanl.c: New file.
89909         * lib/ceill.c: New file.
89910         * lib/cosl.c: New file.
89911         * lib/expl.c: New file.
89912         * lib/floorl.c: New file.
89913         * lib/frexpl.c: New file.
89914         * lib/ldexpl.c: New file.
89915         * lib/logl.c: New file.
89916         * lib/sincosl.c: New file.
89917         * lib/sinl.c: New file.
89918         * lib/sqrtl.c: New file.
89919         * lib/tanl.c: New file.
89920         * lib/trigl.c: New file.
89921         * lib/trigl.h: New file.
89922
89923 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89924
89925         * m4/mathl.m4: New file.
89926
89927 2003-02-18  Bruno Haible  <bruno@clisp.org>
89928
89929         * MODULES.html.sh (func_all_modules): Add mathl.
89930
89931 2003-02-17  Bruno Haible  <bruno@clisp.org>
89932
89933         * modules/mkdtemp: New module.
89934         * MODULES.html.sh (func_all_modules): Add it.
89935
89936 2003-02-17  Bruno Haible  <bruno@clisp.org>
89937
89938         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89939
89940 2003-02-17  Bruno Haible  <bruno@clisp.org>
89941
89942         * lib/mkdtemp.h: New file, from GNU gettext.
89943         * lib/mkdtemp.c: New file, from GNU gettext.
89944
89945 2003-02-02  Jim Meyering  <jim@meyering.net>
89946
89947         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89948         e.g. glibc-2.2.93.
89949
89950 2003-01-31  Bruno Haible  <bruno@clisp.org>
89951
89952         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89953         'rpl_rename'.
89954         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89955         'rpl_strnlen'.
89956         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89957         'rpl_strtod'.
89958         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89959         'rpl_utime'.
89960
89961 2003-01-31  Bruno Haible  <bruno@clisp.org>
89962
89963         * lib/rename.c: #undef rename before defining rpl_rename.
89964         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89965
89966 2003-01-30  Bruno Haible  <bruno@clisp.org>
89967
89968         * modules/vasnprintf, modules/vasprintf: New modules.
89969         * MODULES.html.sh (func_all_modules): Add them.
89970
89971 2003-01-30  Bruno Haible  <bruno@clisp.org>
89972
89973         * m4/signed.m4: New file, from GNU gettext.
89974         * m4/longdouble.m4: New file, from GNU gettext.
89975         * m4/wchar_t.m4: New file, from GNU gettext.
89976         * m4/wint_t.m4: New file, from GNU gettext.
89977         * m4/vasnprintf.m4: New file.
89978         * m4/vasprintf.m4: New file.
89979
89980 2003-01-30  Bruno Haible  <bruno@clisp.org>
89981
89982         * lib/printf-args.h: New file, from GNU gettext.
89983         * lib/printf-args.c: New file, from GNU gettext.
89984         * lib/printf-parse.h: New file, from GNU gettext.
89985         * lib/printf-parse.c: New file, from GNU gettext.
89986         * lib/vasnprintf.h: New file, from GNU gettext.
89987         * lib/vasnprintf.c: New file, from GNU gettext.
89988         * lib/asnprintf.c: New file, from GNU gettext.
89989         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89990         * lib/vasprintf.c: New file, from GNU gettext.
89991         * lib/asprintf.c: New file, from GNU gettext.
89992
89993 2003-01-29  Bruno Haible  <bruno@clisp.org>
89994
89995         * modules/stpncpy: New module.
89996         * MODULES.html.sh (func_all_modules): Add it.
89997
89998 2003-01-29  Bruno Haible  <bruno@clisp.org>
89999
90000         * m4/stpncpy.m4: New file.
90001
90002 2003-01-29  Bruno Haible  <bruno@clisp.org>
90003
90004         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90005         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90006
90007 2003-01-28  Bruno Haible  <bruno@clisp.org>
90008
90009         * modules/c-ctype: New module.
90010         * MODULES.html.sh (func_all_modules): Add it.
90011
90012 2003-01-28  Bruno Haible  <bruno@clisp.org>
90013
90014         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90015         Paul Eggert.
90016         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90017         Paul Eggert.
90018
90019 2003-01-27  Bruno Haible  <bruno@clisp.org>
90020
90021         * modules/xsetenv: New module.
90022         * MODULES.html.sh (func_all_modules): Add it.
90023
90024 2003-01-27  Bruno Haible  <bruno@clisp.org>
90025
90026         * lib/xsetenv.h: New file, from GNU gettext.
90027         * lib/xsetenv.c: New file, from GNU gettext.
90028
90029 2003-01-23  Jim Meyering  <jim@meyering.net>
90030
90031         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90032         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90033
90034 2003-01-23  Bruno Haible  <bruno@clisp.org>
90035
90036         * modules/minmax: New module.
90037         * MODULES.html.sh (func_all_modules): Add it.
90038
90039 2003-01-23  Bruno Haible  <bruno@clisp.org>
90040
90041         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90042         Eggert.
90043
90044 2003-01-22  Bruno Haible  <bruno@clisp.org>
90045
90046         * modules/exit: New module.
90047         * MODULES.html.sh (func_all_modules): Add it.
90048
90049 2003-01-22  Bruno Haible  <bruno@clisp.org>
90050
90051         * lib/exit.h: New file, from GNU gettext.
90052
90053 2003-01-19  Bruno Haible  <bruno@clisp.org>
90054
90055         * gnulib-tool: Recognize option --extract-maintainer.
90056         (func_get_maintainer): New function.
90057         * modules/*: Add Maintainer entry.
90058
90059 2003-01-16  Jim Meyering  <jim@meyering.net>
90060
90061         * m4/regex.m4: The `regex' struct is both input and output.
90062         Initialize it before each use.  Patch by Tim Waugh.
90063
90064 2003-01-16  Bruno Haible  <bruno@clisp.org>
90065
90066         * MODULES.html.sh: Add a table of contents. Add the module name as
90067         leftmost column. Add hyperlinks.
90068
90069 2003-01-15  Bruno Haible  <bruno@clisp.org>
90070
90071         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90072
90073 2003-01-15  Bruno Haible  <bruno@clisp.org>
90074
90075         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90076         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90077         suffix.
90078
90079 2003-01-15  Bruno Haible  <bruno@clisp.org>
90080
90081         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90082
90083 2003-01-15  Bruno Haible  <bruno@clisp.org>
90084
90085         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90086         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90087
90088 2003-01-14  Jim Meyering  <jim@meyering.net>
90089
90090         * lib/same.c (same_name): Tweak a comment.
90091
90092 2003-01-14  Bruno Haible  <bruno@clisp.org>
90093
90094         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90095         when a string comparison is sufficient.
90096
90097 2003-01-14  Bruno Haible  <bruno@clisp.org>
90098
90099         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90100         'unsigned int'.
90101
90102 2003-01-14  Bruno Haible  <bruno@clisp.org>
90103
90104         * lib/hash-pjw.c: Add comment about low quality of this function.
90105
90106 2003-01-13  Bruno Haible  <bruno@clisp.org>
90107
90108         * modules/stpcpy: Distribute lib/stpcpy.h.
90109         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90110
90111 2003-01-13  Bruno Haible  <bruno@clisp.org>
90112
90113         * modules/*: Add a description.
90114         * modules/strpbrk: Fix Makefile.am snippet.
90115         * modules/strtoimax: Fix dependencies.
90116         * modules/strtoumax: Likewise.
90117
90118 2003-01-13  Bruno Haible  <bruno@clisp.org>
90119
90120         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90121         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90122         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90123
90124 2003-01-13  Bruno Haible  <bruno@clisp.org>
90125
90126         * gnulib-tool (func_create_testdir): Store config/* files in the main
90127         directory.
90128         * config.rpath: Move to ...
90129         * config/config.rpath: ... here.
90130         * modules/gettext: Contains config/config.rpath, not config.rpath.
90131         * modules/iconv: Likewise.
90132
90133 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90134
90135         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90136         to avoid collisions with libcurses and libreadline.
90137
90138         * m4/getstr.m4: Remove.
90139         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90140
90141 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90142
90143         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90144         to avoid collisions with libcurses and libreadline.
90145
90146         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90147         * lib/getstr.h, getstr.c: Remove.
90148         * lib/getline.c: Include "getline.h", to check interface.
90149         Move body of old getstr.c here: this defines MIN_CHUNK and
90150         declares getdelim2, which is renamed from getstr.
90151         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90152
90153         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90154         All uses changed.
90155         * lib/linebuffer.h: Likewise.
90156         (readline): Remove backward-compatibility macro.
90157
90158 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90159
90160         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90161         to avoid collisions with libcurses and libreadline.
90162         * getstr: Remove.
90163         * MODULES.html.sh: Remove getstr.
90164         * modules/getline: Depend on unlocked-io, not getstr.
90165
90166 2003-01-12  Jim Meyering  <jim@meyering.net>
90167
90168         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90169
90170 2003-01-10  Bruno Haible  <bruno@clisp.org>
90171
90172         * modules/alloca: Change Makefile.am requirements. Simplify Include
90173         requirements. Add lib/alloca_.h to file list.
90174
90175 2003-01-10  Bruno Haible  <bruno@clisp.org>
90176
90177         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90178
90179 2003-01-10  Bruno Haible  <bruno@clisp.org>
90180
90181         * lib/alloca_.h: New file.
90182         * lib/getdate.y: Unconditionally include alloca.h.
90183         * lib/makepath.c: Likewise.
90184         * lib/setenv.c: Likewise.
90185         * lib/userspec.c: Likewise.
90186
90187 2003-01-09  Karl Berry  <karl@gnu.org>
90188
90189         * MODULES.html.sh: include `dirname $0` in PATH, to find
90190         gnulib-tool.
90191
90192 2003-01-09  Bruno Haible  <bruno@clisp.org>
90193
90194         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90195         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90196
90197 2003-01-09  Bruno Haible  <bruno@clisp.org>
90198
90199         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90200
90201 2003-01-09  Bruno Haible  <bruno@clisp.org>
90202
90203         * lib/stdbool.h.in: New file.
90204
90205 2003-01-09  Bruno Haible  <bruno@clisp.org>
90206
90207         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90208         * MODULES.html.sh: Likewise.
90209
90210 2003-01-08  Jim Meyering  <jim@meyering.net>
90211
90212         * lib/full-write.c: Undefine and define-away `const' after inclusion
90213         of errno.h, not before.  Suggestion from Bruno Haible.
90214
90215 2003-01-08  Bruno Haible  <bruno@clisp.org>
90216
90217         * modules/full-read: Depend on full-write.
90218
90219 2003-01-08  Bruno Haible  <bruno@clisp.org>
90220
90221         * lib/safe-read.c: Include specification header first, to ensure its
90222         selfcontainedness.
90223         * lib/full-write.c: Likewise.
90224
90225 2003-01-07  Jim Meyering  <jim@meyering.net>
90226
90227         * lib/full-write.c: Rework so that it may serve to define full_read,
90228         too.
90229         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90230
90231 2003-01-07  Bruno Haible  <bruno@clisp.org>
90232
90233         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90234         <inttypes.h>.
90235         * lib/xstrtol.h: Likewise.
90236         * lib/xstrtoimax.c: Likewise.
90237         * lib/xstrtoumax.c: Likewise.
90238         * lib/human.h: Likewise.
90239
90240         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90241         on systems that have <inttypes.h> but not <stdint.h>.
90242
90243 2003-01-07  Bruno Haible  <bruno@clisp.org>
90244
90245         * MODULES.html.sh: Add copyright notice.
90246         (missed_files): Omit CVS directory entries.
90247         (func_module): Make it work with sed-3.02.
90248         * MODULES.txt: Remove file.
90249
90250 2003-01-06  Jim Meyering  <jim@meyering.net>
90251
90252         * lib/version-etc.c: Update year in translatable copyright string.
90253
90254 2003-01-03  Karl Berry  <karl@gnu.org>
90255
90256         * config/config.{guess,sub}: update from prep.
90257
90258 2003-01-02  Karl Berry  <karl@gnu.org>
90259
90260         * doc/COPYING.DOC: belatedly updated to 1.2.
90261
90262 2003-01-01  Karl Berry  <karl@gnu.org>
90263
90264         * gnulib-tool (func_verify_module): report module name $module in
90265         error message, not $1.
90266         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90267         be created, only if it doesn't exist.
90268         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90269
90270 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90271
90272         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90273
90274 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90275
90276         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90277         memcmp if strcoll doesn't work.
90278
90279 2002-12-31  Bruno Haible  <bruno@clisp.org>
90280
90281         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90282         nonempty.
90283
90284 2002-12-31  Bruno Haible  <bruno@clisp.org>
90285
90286         * lib/memcoll.c (STRCOLL): New macro.
90287         (memcoll): Use it.
90288
90289 2002-12-31  Bruno Haible  <bruno@clisp.org>
90290
90291         * lib/localcharset.h: New file.
90292         * lib/localcharset.c: Include it.
90293         * lib/unicodeio.c: Likewise.
90294
90295 2002-12-31  Bruno Haible  <bruno@clisp.org>
90296
90297         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90298         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90299
90300 2002-12-31  Bruno Haible  <bruno@clisp.org>
90301
90302         * lib/getline.h: Include <stddef.h>, for size_t.
90303
90304         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90305         * lib/unicodeio.c: Don't include <stddef.h>.
90306
90307 2002-12-31  Bruno Haible  <bruno@clisp.org>
90308
90309         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90310         HAVE_TM_ZONE.
90311
90312 2002-12-24  Karl Berry  <karl@gnu.org>
90313
90314         * config/config.guess: update from prep.
90315
90316 2002-12-24  Bruno Haible  <bruno@clisp.org>
90317
90318         General infrasructure.
90319         * m4/README: Rewritten.
90320         * m4/onceonly.m4: New file.
90321         * m4/onceonly_2_57.m4: New file.
90322
90323         Module atexit.
90324         * m4/atexit.m4: New file.
90325
90326         Module strtod.
90327         * m4/strtod.m4: New file.
90328
90329         Module strtol.
90330         * m4/strtol.m4: New file.
90331
90332         Module strtoul.
90333         * m4/strtoul.m4: New file.
90334
90335         Module memchr.
90336         * m4/memchr.m4: New file.
90337
90338         Module memcmp.
90339         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90340         (jm_FUNC_MEMCMP): Invoke it.
90341
90342         Module memcpy.
90343         * m4/memcpy.m4: New file.
90344
90345         Module memmove.
90346         * m4/memmove.m4: New file.
90347
90348         Module memset.
90349         * m4/memset.m4: New file.
90350
90351         Module strcspn.
90352         * m4/strcspn.m4: New file.
90353
90354         Module strpbrk.
90355         * m4/strpbrk.m4: New file.
90356
90357         Module strstr.
90358         * m4/strstr.m4: New file.
90359
90360         Module strerror.
90361         * m4/strerror.m4: New file.
90362
90363         Module mktime.
90364         * m4/mktime.m4: Renamed from jm-mktime.m4.
90365         (gl_PREREQ_MKTIME): New macro.
90366         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90367
90368         Module malloc.
90369         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90370         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90371         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90372
90373         Module realloc.
90374         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90375         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90376         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90377
90378         Module strftime.
90379         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90380         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90381         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90382         gl_TM_GMTOFF.
90383         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90384
90385         Module xalloc.
90386         * m4/xalloc.m4: New file.
90387
90388         Module alloca.
90389         * m4/alloca.m4: New file.
90390
90391         Module putenv.
90392         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90393         (jm_FUNC_PUTENV): Invoke it.
90394
90395         Module setenv.
90396         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90397         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90398         when invoked twice.
90399         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90400         gt_FUNC_SETENV.
90401
90402         Module memrchr.
90403         * m4/memrchr.m4: New file.
90404
90405         Module stpcpy.
90406         * m4/stpcpy.m4: New file.
90407
90408         Module strcase.
90409         * m4/strcase.m4: New file.
90410
90411         Module strdup.
90412         * m4/strdup.m4: New file.
90413
90414         Module strnlen.
90415         * m4/strnlen.m4: New file.
90416
90417         Module strndup.
90418         * m4/strndup.m4: New file.
90419
90420         Module xstrtod.
90421         * m4/xstrtod.m4: New file.
90422
90423         Module xstrtol.
90424         * m4/xstrtol.m4: New file.
90425
90426         Module getdate.
90427         * m4/getdate.m4: New file.
90428
90429         Module unlocked-io.
90430         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90431         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90432         * m4/jm-glibc-io.m4n: Remove file.
90433
90434         Module long-options.
90435         * m4/long-options.m4: New file.
90436
90437         Module md5.
90438         * m4/md5.m4: New file.
90439
90440         Module sha.
90441         * m4/sha.m4: New file.
90442
90443         Module getstr.
90444         * m4/getstr.m4: New file.
90445
90446         Module getline.
90447         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90448         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90449         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90450         simply getline. Infoke gl_PREREQ_GETLINE.
90451
90452         Module obstack.
90453         * m4/obstack.m4: New file.
90454
90455         Module hash.
90456         * m4/hash.m4: New file.
90457
90458         Module readtokens.
90459         * m4/readtokens.m4: New file.
90460
90461         Module strverscmp.
90462         * m4/strverscmp.m4: New file.
90463
90464         Module stdbool.
90465         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90466         OSF/1.
90467
90468         Module strtoll.
90469         * m4/strtoll.m4: New file.
90470
90471         Module strtoull.
90472         * m4/strtoull.m4: New file.
90473
90474         Module strtoimax.
90475         * m4/strtoimax.m4: New file.
90476
90477         Module strtoumax.
90478         * m4/strtoumax.m4: New file.
90479
90480         Module xstrtoimax.
90481         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90482         jm_AC_PREREQ_XSTRTOIMAX.
90483         Moved the strtol prerequisites to strtol.m4.
90484         Moved the strtoll prerequisites to strtoll.m4.
90485         Moved the strtoimax prerequisites to strtoimax.m4.
90486
90487         Module xstrtoumax.
90488         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90489         jm_AC_PREREQ_XSTRTOUMAX.
90490         Moved the strtoul prerequisites to strtoul.m4.
90491         Moved the strtoull prerequisites to strtoull.m4.
90492         Moved the strtoumax prerequisites to strtoumax.m4.
90493
90494         Module chown.
90495         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90496         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90497
90498         Module dup2.
90499         * m4/dup2.m4: New file.
90500
90501         Module ftruncate.
90502         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90503         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90504
90505         Module getgroups.
90506         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90507         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90508
90509         Module gettimeofday.
90510         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90511         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90512         gl_PREREQ_GETTIMEOFDAY.
90513
90514         Module mkdir.
90515         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90516         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90517
90518         Module mkstemp.
90519         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90520         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90521         jm_AC_TYPE_UINTMAX_T.
90522         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90523
90524         Module stat.
90525         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90526         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90527
90528         Module lstat.
90529         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90530         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90531
90532         Module timespec.
90533         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90534         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90535         * m4/st_mtim.m4: Indentation.
90536
90537         Module nanosleep.
90538         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90539         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90540         gl_PREREQ_NANOSLEEP.
90541
90542         Module regex.
90543         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90544         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90545         (gl_REGEX): New macro.
90546
90547         Module rename.
90548         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90549         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90550
90551         Module rmdir.
90552         * m4/rmdir.m4: New file.
90553
90554         Module utime.
90555         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90556         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90557         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90558
90559         Module dirname.
90560         * m4/dirname.m4: New file.
90561
90562         Module getopt.
90563         * m4/getopt.m4: New file.
90564
90565         Module unistd-safer.
90566         * m4/unistd-safer.m4: New file.
90567
90568         Module fnmatch.
90569         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90570         declaration.
90571         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90572         (gl_FUNC_FNMATCH_POSIX): New macro.
90573         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90574         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90575         simply fnmatch.
90576
90577         Module exclude.
90578         * m4/exclude.m4: New file.
90579
90580         Module human.
90581         * m4/human.m4: New file.
90582
90583         Module acl.
90584         * m4/acl.m4: Nop.
90585
90586         Module backupfile.
90587         * m4/backupfile.m4: New file.
90588         * m4/d-ino.m4: Indentation.
90589
90590         Module fsusage.
90591         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90592         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90593         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90594
90595         Module dirfd.
90596         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90597         requirements.
90598
90599         Module euidaccess.
90600         * m4/euidaccess.m4: New file.
90601
90602         Module file-type.
90603         * m4/file-type.m4: New file.
90604
90605         Module fileblocks.
90606         * m4/fileblocks.m4: New file.
90607
90608         Module filemode.
90609         * m4/filemode.m4: New file.
90610
90611         Module isdir.
90612         * m4/isdir.m4: New file.
90613
90614         Module lchown.
90615         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90616         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90617
90618         Module makepath.
90619         * m4/makepath.m4: New file.
90620
90621         Module modechange.
90622         * m4/modechange.m4: New file.
90623
90624         Module mountlist.
90625         * m4/mountlist.m4: New file.
90626         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90627         Indentation.
90628
90629         Module path-concat.
90630         * m4/path-concat.m4: New file.
90631
90632         Module pathmax.
90633         * m4/pathmax.m4: New file.
90634
90635         Module same.
90636         * m4/same.m4: New file.
90637
90638         Module save-cwd.
90639         * m4/save-cwd.m4: New file.
90640
90641         Module savedir.
90642         * m4/savedir.m4: New file.
90643
90644         Module xgetcwd.
90645         * m4/xgetcwd.m4: New file.
90646         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90647
90648         Module xreadlink.
90649         * m4/xreadlink.m4: New file.
90650
90651         Module safe-read.
90652         * m4/safe-read.m4: New file.
90653
90654         Module safe-write.
90655         * m4/safe-write.m4: New file.
90656
90657         Module closeout.
90658         * m4/closeout.m4: New file.
90659
90660         Module stdio-safer.
90661         * m4/stdio-safer.m4: New file.
90662
90663         Module getpass.
90664         * m4/getpass.m4: New file.
90665
90666         Module getugroups.
90667         * m4/getugroups.m4: New file.
90668
90669         Module group-member.
90670         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90671         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90672
90673         Module idcache.
90674         * m4/idcache.m4: New file.
90675
90676         Module userspec.
90677         * m4/userspec.m4: New file.
90678
90679         Module gettime.
90680         * m4/clock_time.m4: New file.
90681         * m4/gettime.m4: New file.
90682
90683         Module settime.
90684         * m4/settime.m4: New file.
90685
90686         Module posixtm.
90687         * m4/posixtm.m4: New file.
90688
90689         Module gethostname.
90690         * m4/gethostname.m4: New file.
90691
90692         Module canon-host.
90693         * m4/canon-host.m4: New file.
90694
90695         Module gettext.
90696         * m4/codeset.m4: New file, from gettext-0.11.5.
90697         * m4/gettext.m4: New file, from gettext-0.11.5.
90698         * m4/glibc21.m4: New file, from gettext-0.11.5.
90699         * m4/iconv.m4: New file, from gettext-0.11.5.
90700         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90701         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90702         * m4/inttypes.m4: New file, from gettext-0.11.5.
90703         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90704         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90705         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90706         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90707         * m4/lib-link.m4: New file, from gettext-0.11.5.
90708         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90709         * m4/progtest.m4: New file, from gettext-0.11.5.
90710         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90711         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90712         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90713
90714         Module localcharset.
90715         * m4/localcharset.m4: New file.
90716
90717         Module hard-locale.
90718         * m4/hard-locale.m4: New file.
90719
90720         Module mbswidth.
90721         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90722         onceonly macros.
90723         * m4/mbrtowc.m4: Add comment.
90724
90725         Module memcasecmp.
90726         * m4/memcasecmp.m4: New file.
90727
90728         Module memcoll.
90729         * m4/memcoll.m4: New file.
90730
90731         Module unicodeio.
90732         * m4/unicodeio.m4: New file.
90733
90734         Module rpmatch.
90735         * m4/rpmatch.m4: New file.
90736
90737         Module yesno.
90738         * m4/yesno.m4: New file.
90739
90740         Module exitfail.
90741         * m4/exitfail.m4: New file.
90742
90743         Module c-stack.
90744         * m4/c-stack.m4 (gl_C_STACK): New macro.
90745         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90746
90747         Module error.
90748         * m4/error.m4 (gl_ERROR): New macro.
90749         (jm_PREREQ_ERROR): Use onceonly macros.
90750
90751         Module fatal.
90752         * m4/fatal.m4: New file.
90753
90754         Module getloadavg.
90755         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90756         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90757
90758         Module getpagesize.
90759         * m4/getpagesize.m4: New file.
90760
90761         Module getusershell.
90762         * m4/getusershell.m4: New file.
90763
90764         Module physmem.
90765         * m4/physmem.m4: New file.
90766
90767         Module posixver.
90768         * m4/posixver.m4: New file.
90769
90770         Module quotearg.
90771         * m4/quotearg.m4: New file.
90772
90773         Module quote.
90774         * m4/quote.m4: New file.
90775
90776         Module readutmp.
90777         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90778
90779         Module sig2str.
90780         * m4/sig2str.m4: New file.
90781
90782         Other.
90783         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90784         ulonglong.m4.
90785         * m4/intmax_t.m4: New file.
90786         * m4/d-type.m4: Indentation.
90787         * m4/jm-macros.m4: Update.
90788         * m4/prereq.m4 (jm_PREREQ): Update.
90789         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90790         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90791         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90792         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90793         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90794         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90795         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90796         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90797         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90798         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90799         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90800         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90801         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90802         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90803         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90804         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90805         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90806         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90807         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90808
90809 2002-12-24  Bruno Haible  <bruno@clisp.org>
90810
90811         * MODULES.txt: Update according to m4/ changes.
90812
90813         Module gettext.
90814         * config.rpath: New file, from gettext-0.11.5.
90815
90816         * modules/*: New module descriptions.
90817         * gnulib-tool: New file.
90818         * MODULES.html.sh: New file.
90819
90820 2002-12-21  Karl Berry  <karl@gnu.org>
90821
90822         * doc/fdl.texi: update to version 1.2.
90823
90824 2002-12-19  Karl Berry  <karl@gnu.org>
90825
90826         * config/config.guess: update from prep.
90827
90828 2002-12-18  Bruno Haible  <bruno@clisp.org>
90829
90830         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90831         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90832
90833 2002-12-17  Bruno Haible  <bruno@clisp.org>
90834
90835         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90836         stdlib.h, string.h.
90837
90838 2002-12-17  Bruno Haible  <bruno@clisp.org>
90839
90840         * lib/canon-host.c (strdup): Remove unused declaration.
90841
90842         * lib/fsusage.c: Include full_read.h.
90843         (get_fs_usage): Use full_read instead of safe_read.
90844
90845         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90846
90847 2002-12-12  Karl Berry  <karl@gnu.org>
90848
90849         * config/config.guess: update from prep.
90850
90851 2002-12-11  Bruno Haible  <bruno@clisp.org>
90852
90853         * m4/setenv.m4: New file, from gettext-0.11.5.
90854
90855 2002-12-11  Bruno Haible  <bruno@clisp.org>
90856
90857         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90858         not unsetenv().
90859         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90860         modifications:
90861
90862         2002-12-11  Bruno Haible  <bruno@clisp.org>
90863
90864                 * setenv.c (alloca): Fall back to malloc.
90865                 (freea): New macro.
90866                 (setenv): Use freea() to free memory allocated with alloca().
90867
90868         2002-11-13  Bruno Haible  <bruno@clisp.org>
90869
90870                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90871                 function declarations.
90872                 * unsetenv.c (unsetenv): Likewise.
90873
90874         2002-03-04  Bruno Haible  <bruno@clisp.org>
90875
90876                 Portability to AIX 4.3.3.
90877                 * unsetenv.c: New file, extracted from setenv.c.
90878                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90879
90880         2001-12-20  Bruno Haible  <bruno@clisp.org>
90881
90882                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90883                 use malloc instead. For SunOS 4.
90884
90885         2001-12-11  Bruno Haible  <bruno@clisp.org>
90886
90887                 * setenv.c: Declare alloca.
90888                 (compar_fn_t): New typedef.
90889                 (KNOWN_VALUE, STORE_VALUE): Use it.
90890
90891         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90892         setenv.h.
90893
90894 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90895
90896         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90897         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90898         Choose values that are less likely to collide with system fnmatch
90899         options.
90900         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90901         defined (e.g., a pure POSIX system).
90902         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90903         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90904
90905 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90906
90907         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90908         a pain in practice to deal with generated m4 files.  This change
90909         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90910
90911         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90912         and jm-glibc-io.m4, as they are no longer a special case.
90913         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90914         kludge and the auto-generation stuff.  Check only whether the
90915         functions are declared, not whether they exist, since older hosts
90916         that don't declare the functions can't use the optimization anyway.
90917
90918 2002-12-06  Jim Meyering  <jim@meyering.net>
90919
90920         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90921
90922         Merge in changes from libc's misc/error.c, in preparation
90923         for the merge of gnulib's changes back into libc.
90924
90925         * lib/error.c (_): Define only if not already defined.
90926         Move definition to follow all #include directives.
90927         Include unlocked-io.h only if !_LIBC.
90928         [_LIBC]: Include <libio/libioP.h>.
90929         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90930         (fflush): Tweak definition to use INTUSE.
90931         (putc): Define.
90932
90933 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90934
90935         * lib/alloca.c [defined emacs]: Include "lisp.h".
90936         (xalloc_die) [defined emacs]: New macro.
90937         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90938         [! defined emacs]: Include <xalloc.h>.
90939         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90940         (pointer): Typedef to POINTER_TYPE *.
90941         (malloc): Remove decl; we now always use xmalloc.
90942         (alloca): Use old-style definition, since Emacs needs this.
90943         Check for arithmetic overflow when computing combined size.
90944
90945 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90946
90947         Do not generate unlocked-io.h automatically, since it's easier to
90948         maintain it by hand.
90949
90950         * lib/unlocked-io.h: New file, from GNU diffutils,
90951         but with proper copyright notice and attribution.
90952         * lib/gen-uio: Remove.
90953         * lib/Makefile.am: Add copyright notice.
90954         (libfetish_a_SOURCES): Add unlocked-io.h.
90955         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90956         (DISTCLEANFILES, io_functions): Remove macros.
90957         (EXTRA_DIST): Remove gen_uio.
90958         (unlocked-io.h): Remove rule.
90959
90960 2002-12-04  Jim Meyering  <jim@meyering.net>
90961
90962         Reflect the fact that stat.c and lstat.c are no longer generated.
90963         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90964         (DISTCLEANFILES): Likewise.
90965         (EXTRA_DIST): Likewise.
90966         (all_local): Don't depend on stat.c or lstat.c.
90967         (stat.c, lstat.c): Remove rules.
90968         (EXTRA_DIST): Remove xstat.in.
90969
90970         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90971         * lib/stat.c: New file.  Contents mostly from xstat.in.
90972         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90973         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90974
90975         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90976         too.
90977         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90978
90979 2002-12-03  Jim Meyering  <jim@meyering.net>
90980
90981         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90982         but not semantics, to minimize the differences between these two files.
90983         (safe_read): Change comment to mention SAFE_READ_ERROR.
90984
90985         * lib/safe-read.c (IS_EINTR): Define.
90986         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90987
90988 2002-12-02  Jim Meyering  <jim@meyering.net>
90989
90990         * lib/safe-read.c (EINTR): Define.
90991         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90992         (INT_MAX): Provide fallback.
90993         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90994
90995         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90996
90997 2002-12-02  Bruno Haible  <bruno@clisp.org>
90998
90999         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91000         Define, taken from safe-read.c.
91001         (INT_MAX): Provide fallback.
91002         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91003         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91004
91005         * lib/safe-read.c (EINTR): Remove definition.
91006         (safe_read): Don't use EINTR if it is absent.
91007
91008 2002-12-01  Jim Meyering  <jim@meyering.net>
91009
91010         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91011         zero.
91012         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91013
91014 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91015
91016         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91017         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91018         with `if (! (value < limit)) abort ();', for readability.
91019
91020 2002-11-26  Karl Berry  <karl@gnu.org>
91021
91022         * lib/strdup.c: copy from libc again, with jim's ok.
91023         * lib/.cppi-disable: re-add strdup.c
91024
91025 2002-11-25  Karl Berry  <karl@gnu.org>
91026
91027         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91028         instead of "strtol.c".
91029
91030 2002-11-25  Karl Berry  <karl@gnu.org>
91031
91032         * config/install-sh: update from automake for variable quoting, $0 in
91033         error msgs, etc.
91034
91035         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91036         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91037         entry.
91038
91039 2002-11-25  Jim Meyering  <jim@meyering.net>
91040
91041         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91042
91043 2002-11-24  Karl Berry  <karl@gnu.org>
91044
91045         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91046         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91047
91048 2002-11-24  Jim Meyering  <jim@meyering.net>
91049
91050         Update from coreutils:
91051
91052         * lib/mktime.c: Merge in changes from libc.
91053
91054         Avoid a link-time failure on some Linux systems.
91055         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91056         (otherwise).
91057         (__mon_yday): Declare with the STATIC attribute.
91058         (__mktime_internal): Likewise.
91059         Based on a report from Greg Schafer.
91060
91061 2002-11-23  Jim Meyering  <jim@meyering.net>
91062
91063         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91064         Use `unsigned', not `int', as type of index.
91065
91066         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91067
91068         * lib/fsusage.c: Remove unneeded parentheses around operands of
91069         `defined'.
91070
91071 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91072
91073         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91074         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91075         so that we can be included first.
91076         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91077         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91078         No need to include stddef.h or sys/types.h any more.
91079         Surround local include files with "", not "<>".
91080         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91081         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91082         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91083         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91084         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91085         (ISPRINT): Remove; no longer needed now that we assume C89.
91086
91087         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91088         Preserve errno.
91089
91090         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91091         quotearg_char): Use SIZE_MAX rather than
91092         (size_t) -1 when we are talking about "infinity".
91093
91094         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91095
91096 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91097
91098         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91099         hint that one should use `if (! x) abort ();' rather than `assert
91100         (x);', and anyway it's one less thing to worry about configuring.
91101         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91102         hash_rehash, hash_insert): Use abort rather than assert.
91103
91104 2002-11-22  Bruno Haible  <bruno@clisp.org>
91105
91106         * lib/safe-read.h: Assume C89. Add comments.
91107         (safe_read): Change return type to size_t.
91108         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91109         byte counts > SSIZE_MAX correctly.
91110         * lib/safe-write.h: New file.
91111         * lib/safe-write.c: New file.
91112         * lib/full-read.h: New file.
91113         * lib/full-read.c: New file.
91114         * lib/full-write.h: Assume C89. Add comments.
91115         * lib/full-write.c: Include safe-write.h.
91116         (full_write): Rewritten to use safe_write.
91117         Suggested by Jim Meyering and Paul Eggert.
91118
91119 2002-11-21  Jim Meyering  <jim@meyering.net>
91120
91121         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91122
91123         Merge in changes from the coreutils.
91124
91125         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91126         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91127         <stdint.h>.
91128         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91129         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91130         int.  Work more efficiently if X is the same width as uintmax_t.
91131         Do not compare X to -1, to avoid bogus compiler warning.
91132         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91133         Don't assume that f_frsize and f_bsize are the same type.
91134
91135         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91136         warning on FreeBSD.
91137
91138         * lib/makepath.c (make_path): Restore umask *before* creating the final
91139         component.
91140         (make_path): Minor reformatting.
91141
91142         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91143         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91144         HAVE_MALLOC/HAVE_REALLOC.
91145
91146         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91147         dummy ones.  At least on GNU/Linux systems, `auto' means something
91148         else.
91149         From Michael Stone.
91150
91151 2002-11-21  Bruno Haible  <bruno@clisp.org>
91152
91153         Remove case insensitive option matching.
91154         * lib/argmatch.h (argcasematch): Remove declaration.
91155         (ARGCASEMATCH): Remove macro.
91156         (__xargmatch_internal): Remove case_sensitive argument.
91157         (XARGMATCH): Update.
91158         (XARGCASEMATCH): Remove macro.
91159         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91160         case_sensitive argument.
91161         (argcasematch): Remove function.
91162         (__xargmatch_internal): Remove case_sensitive argument.
91163         (main): Use XARGMATCH instead of XARGCASEMATCH.
91164
91165         * lib/xmalloc.c: Change compile-time error message. Add comment about
91166         required autoconf version.
91167
91168 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91169
91170         Merge argmatch cleanups from Bison.  Assume C89.
91171
91172         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91173         Include stdlib.h, for EXIT_FAILURE.
91174         Always include <string.h>, since we assume C89.
91175         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91176         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91177         Include <stddef.h> instead, since it's all we need for size_t.
91178         (PARAMS): Remove.  All uses removed.
91179         (ARRAY_CARDINALITY): Do not bother to #undef.
91180         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91181         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91182         Remove unnecessary parentheses.
91183         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91184         Insert necessary parentheses.
91185         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91186         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91187
91188 2002-11-19  Bruno Haible  <bruno@clisp.org>
91189
91190         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91191         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91192
91193         * lib/mbswidth.h (PARAMS): Remove macro.
91194         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91195         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91196
91197         * lib/gcd.h (PARAMS): Remove macro.
91198         (gcd): Use ANSI C function declarations.
91199         * lib/gcd.c (gcd): Likewise.
91200
91201 2002-11-15  Bruno Haible  <bruno@clisp.org>
91202
91203         * lib/strcspn.c: Include <stddef.h>.
91204         (strcspn): Use ANSI C function declaration. Change return type to
91205         size_t. Use NULL.
91206         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91207         (strpbrk): Use NULL.
91208         * lib/strpbrk.h (PARAMS): Remove macro.
91209         (strpbrk): Use ANSI C function declaration.
91210         * lib/strstr.c: Don't include <sys/types.h>.
91211         * lib/strstr.h (PARAMS): Remove macro.
91212         (strstr): Use ANSI C function declarations.
91213
91214 2002-11-14  Karl Berry  <karl@gnu.org>
91215
91216         * config/mkinstalldirs: `do' on separate line, instead of
91217         `for var; do'.
91218
91219 2002-11-06  Bruno Haible  <bruno@clisp.org>
91220
91221         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91222         * lib/gcd.c (gcd): Likewise.
91223
91224 2002-11-05  Bruno Haible  <bruno@clisp.org>
91225
91226         * lib/gcd.h: New file, from gettext-0.11.5.
91227         * lib/gcd.c: New file, from gettext-0.11.5.
91228
91229 2002-11-05  Bruno Haible  <bruno@clisp.org>
91230
91231         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91232         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91233         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91234         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91235
91236         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91237         <libintl.h>.
91238         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91239         <libintl.h>.
91240
91241         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91242         * lib/human.c: Include gettext.h instead of <libintl.h>.
91243         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91244         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91245         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91246         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91247         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91248         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91249         (textdomain): Remove definition.
91250         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91251
91252         * lib/long-options.c: Remove include of <libintl.h> and definition of
91253         _.
91254         * lib/same.c: Remove include of <libintl.h> and definition of _.
91255
91256 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91257
91258         * lib/config.charset: A few additions for Solaris.
91259
91260 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91261
91262         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91263         * lib/localcharset.c (locale_charset): Declare as extern "C".
91264
91265 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91266
91267         * lib/config.charset: msdos in uk_UA uses CP1125.
91268
91269 2002-11-04  Bruno Haible  <bruno@clisp.org>
91270
91271         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91272         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91273         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91274         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91275         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91276
91277 2002-11-04  Bruno Haible  <bruno@clisp.org>
91278
91279         * lib/localcharset.c (locale_charset): Don't return an empty string.
91280
91281 2002-11-04  Bruno Haible  <bruno@clisp.org>
91282
91283         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91284         aliases.
91285
91286 2002-11-04  Bruno Haible  <bruno@clisp.org>
91287
91288         * lib/config.charset: Update for newest glibc. Add canonical names
91289         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91290
91291 2002-11-04  Bruno Haible  <bruno@clisp.org>
91292
91293         * lib/config.charset: Add support for NetBSD.
91294
91295 2002-11-04  Bruno Haible  <bruno@clisp.org>
91296
91297         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91298
91299 2002-11-01  Bruno Haible  <bruno@clisp.org>
91300
91301         * configure.in: Add AC_CONFIG_AUX_DIR call.
91302         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91303         test/Makefile.
91304         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91305
91306 2002-09-28  Karl Berry  <karl@gnu.org>
91307
91308         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91309         installed automake until the next release, since changes have been
91310         made.
91311
91312 2002-09-25  Karl Berry  <karl@gnu.org>
91313
91314         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91315         * lib/getopt*: copy from libc/posix.
91316         * lib/gettext.h: copy from gettext.
91317         * lib/.cppi-disable: add strdup.c, gettext.h.
91318
91319 2002-09-25  Karl Berry  <karl@gnu.org>
91320
91321         * config/srclist.txt: enable gettext.h check.
91322         * config/config.{guess,sub}: update from prep.
91323         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91324                 from automake 1.6.3.
91325         See srclist*.
91326
91327 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91328
91329         * regex.c (PATFETCH): Remove the translating fetch.
91330         (PATFETCH_RAW): Rename to PATFETCH.
91331         (set_image_of_range): New fun.
91332         (SET_RANGE_TABLE_WORK_AREA): Use it.
91333         (regex_compile): Don't translate the pattern chars so eagerly.
91334         Only do it when inserting an `exactn' bytecode or when handling
91335         a char-range.
91336         (mutually_exclusive_p): Avoid empty statement.
91337
91338 2002-07-06  Jim Meyering  <meyering@lucent.com>
91339
91340         * m4/README: Don't mention Makefile.am.in.
91341         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91342
91343 2002-07-01  Jim Meyering  <meyering@lucent.com>
91344
91345         * lib/c-stack.c: Include sys/time.h.
91346         From Volker Borchert.
91347
91348 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91349
91350         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91351
91352 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91353
91354         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91355         New macro.  Use it uniformly instead of
91356         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91357         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91358         reported by Vin Shelton.
91359
91360 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91361
91362         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91363         Do not assume SA_SIGINFO behavior.
91364         Bug reported by Jim Meyering on NetBSD 1.5.2.
91365
91366 2002-06-22  Jim Meyering  <meyering@lucent.com>
91367
91368         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91369         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91370
91371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91372         now that configure.ac uses AC_GNU_SOURCE.
91373         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91374         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91375
91376         Update to latest tools.  Suggestions from Paul Eggert.
91377         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91378         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91379         * m4/fnmatch.m4: Likewise.
91380         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91381         to AC_HEADER_STDBOOL
91382
91383 2002-06-22  Jim Meyering  <meyering@lucent.com>
91384
91385         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91386         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91387
91388 2002-06-22  Jim Meyering  <meyering@lucent.com>
91389
91390         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91391
91392         * lib/exitfail.c, exitfail.h: Likewise.
91393         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91394
91395         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91396         of fnmatch.h.
91397         (EXTRA_DIST): Add fnmatch_loop.c.
91398         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91399
91400         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91401         * lib/fnmatch.c: Update from diffutils-2.8.2.
91402         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91403         * lib/fnmatch.h: Remove file.
91404
91405 2002-06-21  Jim Meyering  <meyering@lucent.com>
91406
91407         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91408         * m4/mbrtowc.m4: Likewise.
91409
91410         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91411         * m4/mbswidth.m4: Reflect name change:
91412         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91413         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91414
91415         * m4/lib-link.m4: Update from gettext-0.11.2.
91416         * m4/gettext.m4: Likewise.
91417
91418         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91419         From Alfred M. Szmidt.
91420
91421 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91422
91423         * lib/file-type.h: Report an error if neither S_ISREG nor
91424         S_IFREG is defined, instead of using a test specific to glibc
91425         2.2.  This should be safe, since POSIX requires S_ISREG and
91426         Unix Version 7 had S_IFREG.  We don't need to check for
91427         <sys/types.h> since we don't use any symbols that it defines.
91428
91429 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91430
91431         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91432         $@-t, so that each temporary file name is unique and valid in the first
91433         8 characters, for operation under DOS.
91434
91435 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91436
91437         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91438
91439 2002-06-15  Jim Meyering  <meyering@lucent.com>
91440
91441         Work even with DJGPP 2.03, which lacks support for symlinks.
91442         From Richard Dawe.
91443         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91444         is defined.
91445         * lib/lchown.c (S_ISLNK): Likewise.
91446
91447 2002-06-15  Jim Meyering  <meyering@lucent.com>
91448
91449         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91450         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91451         have been included before this file.
91452
91453 2002-06-14  Jim Meyering  <meyering@lucent.com>
91454
91455         * lib/file-type.h: Use the version from diffutils-2.8.2.
91456         * lib/file-type.c: Likewise.
91457
91458 2002-06-07  Jim Meyering  <meyering@lucent.com>
91459
91460         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91461         They're needed at least for NetBSD 1.5.2.
91462         ($statxfs_includes): Include those same headers.
91463         ($statxfs_includes): Include sys/vfs.h if available.
91464         ($statxfs_includes): Likewise for sys/statvfs.h.
91465         Check for the following members in both structs statfs and statvfs:
91466         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91467
91468 2002-06-01  Jim Meyering  <meyering@lucent.com>
91469
91470         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91471         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91472
91473 2002-05-28  Jim Meyering  <meyering@lucent.com>
91474
91475         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91476         Reported by Volker Borchert.
91477
91478 2002-05-27  Jim Meyering  <meyering@lucent.com>
91479
91480         Fix a problem seen only on nonconforming systems whereby ls.c's
91481         use of localtime, and then of gettimeofday would cause trouble:
91482         the localtime call used to initialize rpl_gettimeofday's save
91483         mechanism would clobber ls's current local time information so
91484         that in any long listing the first file would always be listed
91485         with date 1970-01-01.  Analysis by Volker Borchert.
91486
91487         * lib/gettimeofday.c (localtime): Undefine.
91488         (rpl_localtime): New function.
91489
91490 2002-05-27  Jim Meyering  <meyering@lucent.com>
91491
91492         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91493         localtime.
91494
91495         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91496         use the replacement function; it wouldn't resolve at link time.
91497         Reported by Volker Borchert.
91498
91499 2002-05-22  Jim Meyering  <meyering@lucent.com>
91500
91501         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91502         file-type.h.
91503         * lib/file-type.h: New file.
91504         * lib/file-type.c (file_type): New file/function.  Extracted from
91505         diffutils.
91506
91507 2002-04-30  Jim Meyering  <meyering@lucent.com>
91508
91509         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91510
91511 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91512
91513         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91514
91515 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91516
91517         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91518         Do not check for alloca.h (no longer used) or stdbool.h (was never
91519         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91520
91521 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91522
91523         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91524
91525 2002-04-29  Jim Meyering  <meyering@lucent.com>
91526
91527         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91528         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91529         Use AC_FUNC_STRNLEN here instead.
91530
91531         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91532         With autoconf-2.53a, it's part of AC_PROG_CC.
91533
91534 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91535
91536         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91537         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91538
91539 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91540
91541         * lib/sig2str.h, lib/sig2str.c: New files.
91542         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91543
91544 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91545
91546         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91547         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91548         of 127, since 64 is the largest conceivable number for ancient
91549         nonstandard hosts.
91550         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91551
91552 2002-04-28  Jim Meyering  <meyering@lucent.com>
91553
91554         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91555
91556 2002-04-24  Jim Meyering  <meyering@lucent.com>
91557
91558         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91559         (jm_PREREQ): Use it.
91560
91561         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91562         mach/mach.h fcntl.h.
91563         Check for this function: setlocale.
91564
91565 2002-04-24  Jim Meyering  <meyering@lucent.com>
91566
91567         * lib/gettext.h: New file, from Gettext.
91568         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91569         (libfetish_a_SOURCES): Add gettext.h.
91570
91571 2002-04-16  Jim Meyering  <meyering@lucent.com>
91572
91573         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91574         ut_pid, ut_id, ut_exit.
91575
91576 2002-04-16  Jim Meyering  <meyering@lucent.com>
91577
91578         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91579         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91580         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91581
91582 2002-04-12  Jim Meyering  <meyering@lucent.com>
91583
91584         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91585         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91586         existence of the getmntinfo function.  Needed for Darwin 5.3.
91587
91588         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91589         This is necessary at least on Darwin 5.3.
91590
91591         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91592         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91593         strnlen.o in the library, and that makes some versions of ranlib
91594         object.
91595
91596 2002-04-12  Jim Meyering  <meyering@lucent.com>
91597
91598         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91599
91600 2002-04-09  Jim Meyering  <meyering@lucent.com>
91601
91602         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91603         to be more precise.  Rather than saying we're checking whether the
91604         function `works', say what we're testing.
91605         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91606         Reported by Bruno Haible.
91607
91608 2002-03-10  Jim Meyering  <meyering@lucent.com>
91609
91610         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91611         Suggestion from Santiago Vila.
91612
91613 2002-03-08  Jim Meyering  <meyering@lucent.com>
91614
91615         * lib/rename.c: Mention that this wrapper is needed also on
91616         mips-dec-ultrix4.4 systems.
91617
91618 2002-03-02  Jim Meyering  <meyering@lucent.com>
91619
91620         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91621         not HAVE_CLOCK_SETTIME.
91622
91623 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91624
91625         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91626         Check for clock_settime.
91627
91628 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91629
91630         * lib/nanosleep.h: Rename to....
91631         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91632
91633         * lib/gettime.c: New file.
91634         * lib/settime.c: New file.
91635         * lib/stime.c: Remove.
91636
91637         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91638         timespec.h.  Remove nanosleep.h.
91639
91640 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91641
91642         * m4/acl.m4: New file.
91643         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91644         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91645
91646 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91647
91648         * lib/acl.c, lib/acl.h: New files.
91649         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91650
91651 2002-02-24  Jim Meyering  <meyering@lucent.com>
91652
91653         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91654         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91655         cause trouble.  Reported by Nelson Beebe.
91656
91657 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91658
91659         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91660         compilers that don't know that xalloc_die never returns.
91661
91662 2002-02-20  Jim Meyering  <meyering@lucent.com>
91663
91664         * lib/getdate.c: Regenerate using bison-1.33.
91665
91666 2002-02-17  Jim Meyering  <meyering@lucent.com>
91667
91668         * config/config.guess (main): Don't use `head -1'; it's no longer
91669         portable. Use `sed 1q' instead.
91670
91671 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91672
91673         * m4/codeset.m4: Upgrade to gettext-0.11.
91674         * m4/gettext.m4: Upgrade to gettext-0.11.
91675         * m4/glibc21.m4: Upgrade to gettext-0.11.
91676         * m4/iconv.m4: Upgrade to gettext-0.11.
91677         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91678         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91679         * m4/lib-ld.m4: New file, from gettext-0.11.
91680         * m4/lib-link.m4: New file, from gettext-0.11.
91681         * m4/lib-prefix.m4: New file, from gettext-0.11.
91682         * m4/progtest.m4: Upgrade to gettext-0.11.
91683
91684 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91685
91686         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91687         (jm_PREREQ): Use it.
91688
91689 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91690
91691         * lib/posixver.c, lib/posixver.h: New files.
91692         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91693
91694 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91695             Bruno Haible  <bruno@clisp.org>
91696
91697         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91698         (fwrite_success_callback): New declaration.
91699         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91700         print_unicode_char. Call failure callback instead of error.
91701         (fwrite_success_callback): New function.
91702         (exit_failure_callback): New function.
91703         (fallback_failure_callback): New function.
91704         (print_unicode_char): Call unicode_to_mb.
91705
91706 2002-01-26  Jim Meyering  <meyering@lucent.com>
91707
91708         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91709         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91710
91711 2002-01-26  Jim Meyering  <meyering@lucent.com>
91712
91713         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91714
91715 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91716
91717         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91718
91719 2002-01-22  Jim Meyering  <meyering@lucent.com>
91720
91721         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91722         Otherwise, some versions of automake would omit the rule that makes
91723         Makefile from Makefile.in.
91724
91725 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91726
91727         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91728         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91729         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91730         (memcoll): Set errno to zero if there is no error.
91731
91732         * lib/quotearg.c (quotearg_buffer_restyled):
91733         Fix bug with quoting buffers containing NUL when backslashing escapes.
91734         This bug was exposed by the other changes in this patch.
91735         (quotearg_n_options): New arg ARGSIZE.
91736         All callers changed.
91737         (quoting_options_from_style): New function.
91738         (quotearg_n_style): Use it.
91739         (quotearg_n_style_mem): New function.
91740
91741         * lib/quotearg.h (quotearg_n_style_mem): New function.
91742
91743 2002-01-19  Jim Meyering  <meyering@lucent.com>
91744
91745         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91746         Remove useless quotes: DF_PROG="df".
91747         * m4/strnlen.m4: New file.
91748
91749 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91750
91751         * lib/backupfile.c (ISDIGIT): Comment fix.
91752         * lib/getdate.y (ISDIGIT): Likewise.
91753         * lib/posixtm.c (ISDIGIT, year): Likewise.
91754         * lib/strverscmp.c (ISDIGIT): Likewise.
91755         * lib/userspec.c (ISDIGIT): Likewise.
91756
91757 2002-01-16  Jim Meyering  <meyering@lucent.com>
91758
91759         * lib/getdate.y: Add three semicolons, each just before a closing
91760         brace. Bison (as of version 1.31) no longer papers over that mistake.
91761
91762 2002-01-05  Jim Meyering  <meyering@lucent.com>
91763
91764         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91765
91766 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91767
91768         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91769         not silently exit merely because the output buffer happens to
91770         have nothing pending.
91771
91772 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91773
91774         See the big note in ../ChangeLog.
91775         * lib/human.c (suffixes): Prefer K to k for 1024.
91776         (generate_suffix_backwards): New function.
91777         (human_readable_inexact): Use it.
91778         * lib/xstrtol.c (__xstrtol): If there is no number but there
91779         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91780         Accept 'K' as well as 'k'.
91781
91782 2001-12-15  Jim Meyering  <meyering@lucent.com>
91783
91784         * lib/regex.h (__restrict_arr): Update from libc.
91785
91786         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91787         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91788         (STREQ): Define.
91789
91790 2001-12-14  Jim Meyering  <meyering@lucent.com>
91791
91792         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91793         Suggestion from Bruno Haible.
91794
91795 2001-12-10  Jim Meyering  <meyering@lucent.com>
91796
91797         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91798         xrealloc, Instead, include "xalloc.h".
91799         (initbuffer): Don't cast xmalloc return value to char*.
91800         (readline): Reword comment.
91801         Don't cast xrealloc return value to char*
91802         Return NULL, not 0.
91803
91804 2001-12-09  Jim Meyering  <meyering@lucent.com>
91805
91806         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91807         about `signed and unsigned type in conditional expression'.
91808         * lib/posixtm.c (posix_time_parse): Likewise.
91809
91810         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91811
91812         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91813         to avoid a pedantic warning.
91814
91815         * lib/getstr.c: Don't include assert.h.
91816         (getstr): Remove warning-evoking assertions.
91817         Return -1 if offset parameter is out of bounds.
91818         Change the type of a local from int to size_t.
91819
91820         * lib/strftime.c (my_strftime_localtime_r): Include this function
91821         definition in the `#if ! HAVE_TM_GMTOFF' block.
91822
91823         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91824         Include xalloc.h instead.
91825
91826 2001-12-02  Jim Meyering  <meyering@lucent.com>
91827
91828         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91829         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91830         included.
91831
91832         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91833         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91834
91835 2001-11-30  Akim Demaille  <akim@epita.fr>
91836
91837         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91838         before being defined.
91839
91840 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91841
91842         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91843         First arg is int, not unsigned.
91844         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91845         (SIZE_MAX, UINT_MAX): New macros.
91846         (quotearg_n_options): Abort if N is negative.
91847         Avoid overflow check on hosts where size_t is 64 bits and int
91848         is 32 bits, as overflow is impossible there.
91849         Fix off-by-one typo that caused unnecessary reallocation.
91850
91851 2001-11-27  Jim Meyering  <meyering@lucent.com>
91852
91853         * lib/tempname.c: Merge with version from libc.
91854         * lib/regex.c: Likewise.
91855
91856         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91857         systems for which STDC_HEADERS is 0, it was not included, resulting in
91858         a warning about an integer-to-pointer conversion problem with getenv.
91859         Reported by Volker Borchert.
91860
91861 2001-11-26  Jim Meyering  <meyering@lucent.com>
91862
91863         * lib/gtod.h: Remove file.
91864         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91865         * lib/gettimeofday.c: Don't include gtod.h.
91866         (GTOD_init): Remove function.
91867         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91868         Suggestion from Volker Borchert.
91869
91870 2001-11-23  Jim Meyering  <meyering@lucent.com>
91871
91872         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91873         it.
91874         * lib/hash.c (struct hash_table): Define it here instead.
91875
91876 2001-11-22  Jim Meyering  <meyering@lucent.com>
91877
91878         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91879
91880 2001-11-20  Jim Meyering  <meyering@lucent.com>
91881
91882         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91883         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91884
91885 2001-11-19  Jim Meyering  <meyering@lucent.com>
91886
91887         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91888         directory.  Use "conftestXXXXXX" as the template.
91889         Suggestion from Paul Eggert.
91890
91891         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91892         immediately, so the test doesn't mistakenly hit the max-open-files
91893         limit.
91894
91895 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91896
91897         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91898         (TEMPORARIES): New macro.
91899         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91900         removes an artificial limitation (e.g. HP-UX 10.20, where
91901         TMP_MAX is 17576).
91902
91903 2001-11-18  Jim Meyering  <meyering@lucent.com>
91904
91905         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91906
91907 2001-11-18  Jim Meyering  <meyering@lucent.com>
91908
91909         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91910         on SunOS 4.
91911
91912         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91913         files will be created before anything else.
91914
91915 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91916
91917         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91918         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91919
91920 2001-11-17  Jim Meyering  <meyering@lucent.com>
91921
91922         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91923         Prompted by a report from Bob Proulx.
91924
91925         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91926         Instead, require UTILS_FUNC_MKSTEMP.
91927
91928 2001-11-17  Jim Meyering  <meyering@lucent.com>
91929
91930         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91931         Now, that's done as part of AC_FUNC_STRTOD.
91932
91933 2001-11-17  Jim Meyering  <meyering@lucent.com>
91934
91935         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91936         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91937         rather than group writable.  Patch by Juan F. Codagnone.
91938
91939         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91940         xrealloc, Instead, include "xalloc.h".
91941
91942         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91943         Remove explicit declarations of xmalloc, xrealloc,
91944         and xstrdup.  Instead, include "xalloc.h".
91945
91946         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91947         unlocked-io.h.
91948         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91949         Likewise.
91950         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91951
91952         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91953         Reported by Padraig Brady.
91954
91955         * lib/mkstemp.c: #undef mkstemp.
91956         Include config.h.
91957         (rpl_mkstemp): Rename from mkstemp.
91958         Protoize.
91959
91960 2001-11-16  Jim Meyering  <meyering@lucent.com>
91961
91962         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91963         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91964         determine the amount of total physical memory, use pstat_getstatic.
91965         HPUX-11 doesn't define _SC_PHYS_PAGES.
91966         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91967         If sysconf couldn't be used to determine the amount of available
91968         physical memory, use both pstat_getstatic and pstat_getdynamic.
91969         Based on a patch from Bob Proulx.
91970
91971 2001-11-10  Jim Meyering  <meyering@lucent.com>
91972
91973         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91974         (jm_PREREQ): Use it.
91975
91976 2001-11-09  Jim Meyering  <meyering@lucent.com>
91977
91978         * m4/jm-macros.m4: Require autoconf-2.52f.
91979         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91980         Use these AC_-prefixed names, not the AM_-prefixed ones.
91981
91982         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91983
91984 2001-11-05  Jim Meyering  <meyering@lucent.com>
91985
91986         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91987
91988 2001-11-04  Jim Meyering  <meyering@lucent.com>
91989
91990         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91991         $DEFS.
91992
91993 2001-11-03  Jim Meyering  <meyering@lucent.com>
91994
91995         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91996         of AC_DEFUN.
91997
91998         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91999         know the name of the variable in the macro definition.
92000
92001 2001-11-03  Jim Meyering  <meyering@lucent.com>
92002
92003         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92004         in argmatch_to_argument call.
92005
92006         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92007         argument.
92008
92009         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92010         e.g., a fault due to an attempt to free a NULL pointer.
92011
92012 2001-11-01  Jim Meyering  <meyering@lucent.com>
92013
92014         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92015         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92016
92017 2001-11-01  Jim Meyering  <meyering@lucent.com>
92018
92019         * lib/dirfd.c, lib/dirfd.h: New files.
92020         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92021
92022         * lib/hash.c (hash_print) [TESTING]: Clean up.
92023
92024 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92025
92026         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92027         to avoid a warning if -Wall.
92028
92029 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92030
92031         * README: New file
92032         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92033         (per RMS's instructions, this is now the canonical source)
92034         * lgpl/, gpl/: New directories.
92035
92036 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92037
92038         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92039
92040 2001-10-21  Jim Meyering  <meyering@lucent.com>
92041
92042         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92043         this code would end up calling gettext even in packages built
92044         with --disable-nls.
92045         * lib/getopt.c (_): Likewise.
92046         * lib/regex.c (_): Likewise.
92047
92048 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92049
92050         * m4/error.m4 (jm_PREREQ_ERROR):
92051         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92052         AC_FUNC_STRERROR_R does that.
92053         Check for strerror declaration.
92054
92055         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92056         are supposed to have them these days.
92057         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92058         Merge changes from latest Autoconf CVS.
92059         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92060         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92061         POSIX decided to standardize on the int flavor of strerror_r.
92062
92063 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92064
92065         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92066         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92067         Use strerror_r that is only a macro, even if it is not a function.
92068         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92069         (private_strerror): Use prototypes, not old-style function definition.
92070         (print_errno_message): New function.
92071         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92072         char*-flavored one.
92073         (error_tail, error, error_at_line): Use it.
92074
92075 2001-10-11  Jim Meyering  <meyering@lucent.com>
92076
92077         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92078         and quote_n (1, ... to avoid clobbering a buffer.
92079
92080 2001-10-05  Jim Meyering  <meyering@lucent.com>
92081
92082         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92083         hash-pjw.h.
92084         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92085         * lib/hash-pjw.h: New file.
92086
92087 2001-09-30  Jim Meyering  <meyering@lucent.com>
92088
92089         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92090         `struct fsstat' has the `f_fstypename' member.
92091         Use that to define FS_TYPE, which is now used to make
92092         the getfsstat link test tighter.
92093
92094 2001-09-30  Jim Meyering  <meyering@lucent.com>
92095
92096         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92097         Include <sys/ucred.h>, for Apple Darwin.
92098         Include sys/mount.h and sys/fs_types.h only if available.
92099         (FS_TYPE): Define.
92100         (read_filesystem_list): Use FS_TYPE.
92101
92102 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92103
92104         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92105         a boolean context.
92106
92107 2001-09-29  Jim Meyering  <meyering@lucent.com>
92108
92109         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92110         [one-argument getmntent function]): Include stdio.h before mntent.h.
92111         SunOS 4.1.x needs it for the declaration of `FILE'.
92112         Patch by Volker Borchert.
92113
92114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92115         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92116         sys/fs_types.h, and make the link-test for getfsstat guard #include
92117         directives with appropriate #if HAVE_*_H tests so that we can
92118         detect getfsstat on Apple Darwin1.3.7 systems.
92119         Reported by Nelson Beebe.
92120         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92121
92122 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92123
92124         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92125         #defines strtoimax.  Also treat the other strto* functions
92126         like strtoimax.
92127
92128         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92129         Check for strtoul and strtoumax,
92130         as those declarations are made even in the signed case.
92131         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92132         Likewise, for strtol and strtoimax.
92133
92134 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92135
92136         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92137         #defines strtoimax.  Also treat the other strto* functions
92138         like strtoimax.
92139
92140         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92141         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92142         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92143
92144 2001-09-26  Jim Meyering  <meyering@lucent.com>
92145
92146         Most macros in unlocked-io.h had the wrong number of arguments.
92147         * lib/gen-uio: New script.
92148         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92149         * lib/unlocked-io.hin: Remove file.
92150         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92151         rather than trying to embed it here.
92152         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92153         Reported by Padraig Brady.
92154
92155 2001-09-25  Volker Borchert  <bt@teknon.de>
92156
92157         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92158         `result'.
92159
92160 2001-09-24  Jim Meyering  <meyering@lucent.com>
92161
92162         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92163
92164 2001-09-23  Jim Meyering  <meyering@lucent.com>
92165
92166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92167         instead of the mere test for existence of mntent.h.  The latter
92168         would get a false-positive on AIX 3.4 systems.
92169         In the outer getmntent if-block, don't die if neither of the getmntent
92170         tests succeeds.  Instead, just fall through and continue with the
92171         remaining tests.
92172
92173 2001-09-23  Jim Meyering  <meyering@lucent.com>
92174
92175         * lib/mountlist.c: Remove useless parentheses in #if directives.
92176         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92177         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92178
92179 2001-09-22  Jim Meyering  <meyering@lucent.com>
92180
92181         * m4/gettext.m4: New file.  From gettext.
92182         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92183         * m4/progtest.m4: Likewise
92184         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92185         * m4/glibc21.m4: Likewise.
92186
92187         * m4/libintl.m4: Remove.  No longer used.
92188
92189 2001-09-22  Jim Meyering  <meyering@lucent.com>
92190
92191         * lib/localcharset.c: Update from latest gettext.
92192         * lib/config.charset: Likewise.
92193
92194 2001-09-20  Jim Meyering  <meyering@lucent.com>
92195
92196         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92197         strtoimax.
92198         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92199         strtoumax.
92200
92201 2001-09-20  Jim Meyering  <meyering@lucent.com>
92202
92203         * lib/xstrtol.c (strtoimax): Guard declaration with
92204         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92205         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92206         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92207         (strtoumax): Likewise, for completeness (it wasn't necessary).
92208
92209 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92210
92211         * lib/strtoimax.c (HAVE_LONG_LONG):
92212         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92213         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92214         to work around bug in IBM C compiler.
92215
92216 2001-09-17  Jim Meyering  <meyering@lucent.com>
92217
92218         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92219         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92220         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92221         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92222         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92223         whenever the right hand side need not be expanded by the shell.
92224
92225 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92226
92227         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92228         library.  It's not correct, as some older glibcs are buggy.
92229         fnmatch wasn't fixed until glibc 2.2.
92230
92231         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92232         special shell magic here.
92233
92234 2001-09-16  Jim Meyering  <meyering@lucent.com>
92235
92236         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92237         * m4/jm-macros.m4: Require it.
92238
92239 2001-09-16  Jim Meyering  <meyering@lucent.com>
92240
92241         * lib/mkdir.c: New file.
92242
92243 2001-09-15  Jim Meyering  <meyering@lucent.com>
92244
92245         * m4/jm-macros.m4: Check for help2man.
92246
92247 2001-09-11  Jim Meyering  <meyering@lucent.com>
92248
92249         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92250         The body, by Paul Eggert, was moved here from configure.in.
92251         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92252
92253 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92254
92255         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92256         (jm_PREREQ): Use it.
92257
92258 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92259
92260         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92261         Use ssize_t, not int, to store result of readlink.
92262         Check for ssize_t overflow as well as size_t overflow,
92263         as POSIX says the result of readlink is implementation-defined
92264         when ssize_t overflows.
92265         Remove unnecessary cast to char*.
92266         Use free+malloc instead of realloc, as the storage doesn't need
92267         to be preserved and it's clearer and can be more efficient that way.
92268         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92269         * lib/xreadlink.h (xreadlink): Update prototype.
92270
92271 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92272
92273         * lib/xgetcwd.c: Revert some of the previous change; intead,
92274         fix the HAVE_GETCWD_NULL code to behave more like the
92275         !HAVE_GETCWD_NULL code used to.
92276
92277         Include "xalloc.h".
92278         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92279         invoke xalloc_die.
92280
92281 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92282
92283         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92284         sys/param.h, as pathmax.h includes them.
92285
92286 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92287
92288         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92289         (jm_PREREQ_XGETCWD): New macro.
92290
92291         * m4/getcwd.m4: New file.
92292
92293 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92294
92295         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92296         like the HAVE_GETCWD_NULL code.
92297         Include pathmax.h if not HAVE_GETCWD.
92298         Do not include xalloc.h.
92299         (INITIAL_BUFFER_SIZE): New symbol.
92300         Do not use xmalloc / xrealloc, since the caller is responsible for
92301         handling errors.  Preserve errno around `free' during failure.
92302         Do not overrun buffer when using getwd.
92303
92304 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92305
92306         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92307         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92308         getcwd (NULL, 0).
92309
92310 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92311
92312         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92313         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92314         spotted by Jim Meyering.
92315
92316 2001-09-03  Jim Meyering  <meyering@lucent.com>
92317
92318         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92319         failure.
92320
92321 2001-09-02  Jim Meyering  <meyering@lucent.com>
92322
92323         * lib/error.c: Update from GNU libc.
92324
92325 2001-09-01  Jim Meyering  <meyering@lucent.com>
92326
92327         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92328         Used by df.
92329
92330 2001-09-01  Jim Meyering  <meyering@lucent.com>
92331
92332         * lib/xreadlink.c: New file.
92333         * lib/xreadlink.h: New file.
92334         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92335         xreadlink.h.
92336
92337         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92338         doesn't conflict with sparc Solaris 7's definition in
92339         /usr/include/sys/int_types.h.
92340
92341         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92342         files.
92343         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92344         and strncasecmp as r-values.  Unixware didn't have declarations.
92345
92346 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92347
92348         * lib/xstrtol.h: Add copyright notice.
92349         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92350         LONGINT_INVALID_SUFFIX_CHAR.
92351
92352 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92353
92354         * lib/xstrtol.c (strtoimax): New decl.
92355
92356 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92357
92358         * lib/xgetcwd.c: Don't include pathmax.h.
92359         Include stdlib.h and unistd.h if available.
92360         Include xalloc.h.
92361         (xmalloc, xstrdup, free): Remove decls.
92362         (xgetcwd): Don't assume sizes fit in unsigned.
92363         Check for overflow when computing sizes.
92364         Simplify reallocation code.
92365
92366 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92367
92368         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92369         a directory's st_size can have an arbitrary value, so the old
92370         usage could waste an arbitrary amount of memory.  All uses
92371         changed.
92372         * lib/savedir.h: Update prototype.
92373
92374 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92375
92376         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92377
92378         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92379         old strtoimax.c.
92380
92381         Also, make the following further changes to make this file's
92382         configuration more similar to that of strtol.c:
92383         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92384         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92385         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92386         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92387         changed to signed values.
92388
92389         And make the following changes as well:
92390         Fix copyright notice, as 1999 was missing.
92391         (verify): New macro.
92392         (strtoimax): Check sizes at compile-time, not run-time.
92393         Prefer strtol to strtoll if both work.
92394         (main): Remove; it was not that useful and was a pain to maintain.
92395
92396         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92397
92398 2001-08-31  Jim Meyering  <meyering@lucent.com>
92399
92400         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92401         Use an initial, malloc'd, buffer of length 128 rather than
92402         a statically allocated one of length 1024.
92403
92404 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92405
92406         Simplify code, partly by assuming autoconf 2.52 semantics.
92407
92408         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92409
92410         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92411         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92412         All uses removed.
92413         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92414         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92415         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92416         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92417         jm_AC_HEADER_INTTYPES_H.
92418         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92419
92420         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92421
92422         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92423         Quote first arg of AC_DEFUN.
92424         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92425         since they are needed to parse the include file even if we need
92426         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92428         but with opposite signedness.
92429
92430 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92431
92432         Merge 'exclude' changes from tar 1.13.22.
92433         This fixes one or two unlikely storage allocation overflow bugs,
92434         but doesn't change user-visible behavior otherwise.
92435
92436 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92437
92438         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92439         (jm_PREREQ_EXCLUDE): New macro.
92440
92441 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92442
92443         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92444         tm to be declared.
92445
92446 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92447
92448         * lib/hash.c: Remove '2001' from copyright notice.
92449
92450 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92451
92452         * lib/full-write.h: New file.
92453         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92454         * lib/full-write.c: Correct credits, as cccp.c no longer
92455         exists and anyway it was so heavily changed from the old cccp
92456         code as to be unrecognizable.  Include full-write.h.
92457         (full_write): Return size_t, with short writes meaning failure.
92458         All callers changed.  This fixes a bug with large buffers
92459         on 64-bit hosts.
92460         * lib/utime.c: Include full-write.h.
92461
92462 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92463
92464         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92465         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92466         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92467         Include if available.
92468         (<xalloc.h>): Include
92469         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92470         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92471         collide with FNM macros.
92472         (struct patopts): New struct.
92473         (struct exclude): Use it, as exclude patterns now come with options.
92474         (new_exclude): Support above changes.
92475         (new_exclude, add_exclude_file):
92476         Initial size must now be a power of two to simplify overflow checking.
92477         (free_exclude, fnmatch_no_wildcards): New function.
92478         (excluded_filename): No longer requires options arg, as the options
92479         are determined by add_exclude.  Now returns bool, not int.
92480         (excluded_filename, add_exclude):
92481         Add support for the fancy new exclusion options.
92482         (add_exclude, add_exclude_file): Now takes int options arg.
92483         Check for arithmetic overflow when computing sizes.
92484         (add_exclude_file): xrealloc might modify errno, so don't
92485         realloc until after errno might be used.
92486
92487         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92488         New macros.
92489         (free_exclude): New decl.
92490         (add_exclude, add_exclude_file): Now takes int options arg.
92491         (excluded_filename): No longer requires options arg, as the options
92492         are determined by add_exclude.  Now returns bool, not int.
92493
92494 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92495
92496         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92497
92498 2001-08-27  Jim Meyering  <meyering@lucent.com>
92499
92500         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92501
92502         * lib/version-etc.c (N_): Remove definition.
92503         Revert most of last change.
92504         Instead, simply don't mark the `Copyright...' string for translation.
92505         Based on advice from Paul Eggert.
92506
92507         * lib/strtoxmax.c: Tweak comment.
92508
92509 2001-08-26  Jim Meyering  <meyering@lucent.com>
92510
92511         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92512
92513         * m4/xstrtoimax.m4: New file.
92514         * m4/xstrtoumax.m4: Add comments explaining why we
92515         AC_REPLACE_FUNCS(strtol).
92516
92517 2001-08-26  Jim Meyering  <meyering@lucent.com>
92518
92519         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92520         of copyright with `%s' so translators don't get an untranslated
92521         message in 2002.
92522         (COPYRIGHT_YEAR): Define.
92523         (version_etc): Use fprintf rather than fputs.
92524         Suggestion from Ulrich Drepper.
92525
92526         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92527
92528         * lib/strtoll.c: New file, from GNU libc.
92529         * lib/xstrtoimax.c: New file.
92530
92531         * lib/xstrtol.h: Add xstrtoimax.
92532         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92533         * lib/strtoimax.c: New file.  Likewise, but first define
92534         STRTOUXMAX_SIGNED.
92535
92536         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92537         ...
92538         * lib/strtoxmax.c: ... then renamed to this.
92539
92540 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92541
92542         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92543         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92544         (jm_AC_TYPE_INTMAX_T): New macro.
92545         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92546
92547         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92548
92549         * m4/longlong.m4: Renamed from ulonglong.m4.
92550         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92551         * m4/uintmax_t.m4: Removed.
92552
92553 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92554
92555         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92556         Port to Solaris 8, where 'sed' requires a space after the 'r'
92557         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92558         Redirect output to $tmp just once.
92559
92560 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92561
92562         * lib/addext.c (<errno.h>): Include.
92563         (errno): Declare if not defined.
92564         (addext): Work correctly when pathconf returns -1 and leaves
92565         errno alone because there is no limit.  Also, work even if
92566         pathconf returns a value greater than SIZE_MAX.
92567
92568 2001-08-12  Jim Meyering  <meyering@lucent.com>
92569
92570         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92571         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92572         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92573         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92574         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92575         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92576         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92577         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92578         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92579         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92580         utime.m4, utimes.m4, xstrtoumax.m4:
92581         Quote the first argument in each use of AC_DEFUN.
92582
92583 2001-08-12  Jim Meyering  <meyering@lucent.com>
92584
92585         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92586         Simply `return getcwd (NULL, 0);'.
92587         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92588         Use 1300 as initial value for length, not PATH_MAX.
92589
92590         * lib/pathmax.h: Clean up cpp syntax.
92591
92592 2001-08-12  Jim Meyering  <meyering@lucent.com>
92593
92594         * lib/gettimeofday.c: New file.
92595         * lib/gtod.h: New file.
92596         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92597
92598 2001-08-05  Jim Meyering  <meyering@lucent.com>
92599
92600         * m4/jm-macros.m4: Require autoconf-2.52.
92601
92602 2001-08-04  Jim Meyering  <meyering@lucent.com>
92603
92604         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92605         stmt, to get in sync with glibc.
92606
92607 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92608
92609         The following changes are from gettext 0.10.39 as maintained by
92610         Bruno Haible.
92611
92612         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92613         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92614         with inverted sense.  All uses changed.
92615
92616         * lib/mbswidth.c: Don't include <limits.h>.
92617         Include <stdlib.h> and <string.h> unconditionally.
92618         (iswcntrl, mbsinit, ISCNTRL): New macros.
92619         (mbsnwidth): Use K&R style function declarations.
92620         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92621         can optimize it when MB_CUR_MAX == 1.
92622         The width of control characters is zero, not 1.
92623
92624 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92625
92626         The following changes are from gettext 0.10.39 as maintained by
92627         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92628
92629         * m4/codeset.m4: Upgrade to serial AM1.
92630         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92631         all uses changed.  Quote first arg of AC_DEFUN.
92632         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92633
92634         * m4/iconv.m4: Upgrade to serial AM2.
92635         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92636         Add --with-libconv-prefix.
92637         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92638         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92639         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92640         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92641         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92642
92643         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92644         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92645         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92646         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92647         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92648         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92649         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92650         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92651         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92652
92653         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92654         string.h any more.
92655
92656         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92657         not the default value.
92658
92659         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92660         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92661         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92662         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92663         Also check for iswcntrl, used for wcwidth fallback.
92664         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92665         to Autoconf 2.13.
92666
92667 2001-08-03  Jim Meyering  <meyering@lucent.com>
92668
92669         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92670         as it was in the original.  Reported by Paul Eggert.
92671
92672 2001-07-16  Jim Meyering  <meyering@lucent.com>
92673
92674         * m4/gettimeofday.m4: New file.
92675         Prompted by a report from Bernhard Baehr.
92676
92677 2001-07-15  Jim Meyering  <meyering@lucent.com>
92678
92679         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92680         stuff. Now it's in ../Makefile.cfg.
92681
92682 2001-07-15  Jim Meyering  <meyering@lucent.com>
92683
92684         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92685         (BUILT_SOURCES): Add unlocked-io.h.
92686         (io_functions): Define.
92687         (unlocked-io.h): New rule.
92688         (DISTCLEANFILES): Add unlocked-io.h.
92689         (all-local): Depend on unlocked-io.h, to ensure it is created.
92690
92691         * lib/unlocked-io.hin: New file
92692
92693         * lib/regex.c: Update from glibc.
92694
92695 2001-07-05  Jim Meyering  <meyering@lucent.com>
92696
92697         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92698         recommendation.
92699         (libfetish_a_SOURCES): Put all .h files here instead.
92700         Remove a thus-exposed (better checks in automake) duplicate and
92701         two unnecessary .h files.
92702
92703 2001-07-04  Jim Meyering  <meyering@lucent.com>
92704
92705         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92706         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92707         distcheck failure.
92708
92709 2001-07-02  Jim Meyering  <meyering@lucent.com>
92710
92711         The following changes were prompted by suggestions from Bruno Haible.
92712
92713         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92714         is now generated.
92715         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92716         definition of EXTRA_DIST.
92717         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92718         ensure that the generated file is created/updated whenever the list
92719         of $(unlocked_functions) is changed.
92720         (jm-glibc-io.m4): New rule.
92721         (unlocked-io.h): New rule -- currently unused.
92722
92723 2001-06-24  Jim Meyering  <meyering@lucent.com>
92724
92725         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92726         unmatched right bracket, rather than kludging it with an extra,
92727         falsely-matching quote in a comment.  Patch by Akim Demaille.
92728
92729 2001-06-11  Jim Meyering  <meyering@lucent.com>
92730
92731         * lib/regex.c: Update from GNU libc.
92732
92733 2001-05-27  Jim Meyering  <meyering@lucent.com>
92734
92735         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92736         Check for ut_type in struct utmp.
92737
92738 2001-05-27  Jim Meyering  <meyering@lucent.com>
92739
92740         * lib/readutmp.h (UT_TYPE): Define.
92741
92742 2001-05-24  Jim Meyering  <meyering@lucent.com>
92743
92744         * lib/argmatch.c: Include "quote.h".
92745         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92746         quote function.  Reported by Göran Uddeborg.
92747
92748 2001-05-22  Jim Meyering  <meyering@lucent.com>
92749
92750         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92751         now that we use the package-supplied version unconditionally.
92752         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92753
92754 2001-05-21  Jim Meyering  <meyering@lucent.com>
92755
92756         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92757         shell syntax errors.
92758
92759 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92760
92761         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92762
92763 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92764
92765         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92766         Don't bother to check library strftime, since
92767         we'll be using our own my_strftime function anyway.
92768         Define my_strftime instead of strftime.
92769
92770 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92771
92772         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92773         which is not yet declared.
92774
92775 2001-05-15  Jim Meyering  <meyering@lucent.com>
92776
92777         * m4/regex.m4: Use proper quoting so brackets appear in the test
92778         program.
92779         Reported by, and with help from, Bruno Haible.
92780
92781 2001-05-13  Jim Meyering  <meyering@lucent.com>
92782
92783         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92784         undefined.
92785
92786 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92787
92788         dirname code cleanup.  base_name now behaves more compatibly
92789         with POSIX basename when given file names that have trailing
92790         slashes, and similarly for dir_name.  Add new primitives
92791         base_len and dir_len.  Put the directory-name-related decls
92792         into dirname.h.
92793
92794         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92795         * lib/backupfile.c (base_name): Likewise.
92796         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92797         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92798         * lib/makepath.c (strip_trailing_slashes): Likewise.
92799         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92800         ISSLASH): Likewise.
92801         * lib/rename.c (strip_trailing_slashes): Likewise.
92802         * lib/same.c (base_name): Likewise.
92803         * lib/stripslash.c (ISSLASH): Likewise.
92804
92805         * lib/addext.c: Include <dirname.h> after size_t is defined.
92806         * lib/backupfile.c: Likewise.
92807
92808         * lib/addext.c (addext): Use base_len to trim redundant
92809         trailing slashes instead of doing it ourselves.
92810         But do not trim the last slash if it is not redundant.
92811
92812         * lib/backupfile.c (find_backup_file_name,
92813         max_backup_version): Use base_len instead of rolling it ourselves.
92814         Handle the case of "" and (on DOS) "C:" correctly.
92815
92816         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92817         needed. Include <string.h>, <dirname.h>.
92818         (base_name): Allow file names ending in slashes, other than names
92819         that are all slashes.  In this case, return the basename followed
92820         by the slashes.  This is more general, and can be used in places
92821         where the original base_name purposely had an assertion failure.
92822         (base_len): New function.
92823
92824         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92825         Do not include <assert.h>; no longer needed.
92826         Include xalloc.h.
92827         (memrchr): Remove decl.
92828         (dir_name_r): Remove.
92829         (dir_len): Renamed from dirlen.  All callers changed.
92830         Rewrite in terms of base_name, for simplicity and consistency.
92831         (dir_name): Never return NULL.  All callers changed.
92832         Do not include <stdlib.h> in test program; no longer needed.
92833         return 0; is fine for test program.
92834
92835         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92836         New macros.
92837         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92838
92839         * lib/path-concat.c (path_concat): Use base_len to compute
92840         base length, not strlen; this means we cannot rely on memcpy
92841         to null-terminate.
92842
92843         * lib/same.c (STREQ): Remove.
92844         (same_name): Handle the case where the basename ends in trailing '/'.
92845
92846         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92847         a slash was stripped.  Do not strip the last slash after a
92848         file system prefix.
92849
92850 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92851
92852         * lib/Makefile.am (libfetish_a_SOURCES):
92853         Add strftime.c, since we now compile it on all hosts.
92854
92855         * lib/strftime.c (my_strftime):
92856         Define to nstrftime if emacs, but only if my_strftime is not defined.
92857         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92858         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92859         Add one more extra argument: a nanoseconds value.
92860         All uses changed.
92861         (ns): New macro.
92862         (my_strftime function): Add %N format.
92863         (emacs_strftimeu): Renamed from emacs_strftime,
92864         with extra ut argument.
92865
92866 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92867
92868         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92869
92870 2001-04-21  Jim Meyering  <meyering@lucent.com>
92871
92872         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92873         doesn't interfere.
92874
92875 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92876
92877         * m4/ftruncate.m4: Check for chsize.
92878         Link with ftruncate.o unconditionally if ftruncate is missing.
92879         This was required when cross-compiling to i586-mingw32msvc.
92880
92881 2001-04-08  Jim Meyering  <meyering@lucent.com>
92882
92883         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92884         recomputed; that's necessary when the offset spans a DST transition.
92885         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92886
92887 2001-04-02  Jim Meyering  <meyering@lucent.com>
92888
92889         * lib/regex.h, regex.c: Update from GNU libc.
92890
92891 2001-03-24  Jim Meyering  <meyering@lucent.com>
92892
92893         * m4/jm-macros.m4: Require autoconf-2.49d.
92894
92895 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92896
92897         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92898
92899 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92900
92901         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92902
92903 2001-03-17  Jim Meyering  <meyering@lucent.com>
92904
92905         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92906         now that the version in autoconf is equivalent.
92907         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92908
92909         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92910         Suggestion from Akim Demaille.
92911
92912         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92913         (jm_PREREQ_TEMPNAME): New function.
92914
92915 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92916
92917         * lib/tempname.c (uint64_t): Define to uintmax_t if
92918         not defined, and if UINT64_MAX is not defined.
92919         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92920         Reported by John David Anglin.
92921
92922 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92923
92924         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92925         resolve alias if codeset is empty.
92926         * lib/config.charset (BeOS): Use wildcard syntax.
92927
92928 2001-03-13  Jim Meyering  <meyering@lucent.com>
92929
92930         * lib/path-concat.c (path_concat)
92931         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92932         concatenating e.g., `C:' and `foo'.
92933         From Bruno Haible.
92934
92935 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92936
92937         * lib/localcharset.c (locale_charset): Don't use
92938         setlocale(LC_CTYPE,NULL). Don't return NULL.
92939         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92940
92941 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92942
92943         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92944         support for DOS/DJGPP.
92945
92946 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92947
92948         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92949         lacks mkstemp.  Compile our own tempname.c if we compile our own
92950         mkstemp.c, as mkstemp relies on tempname.
92951
92952 2001-03-01  Jim Meyering  <meyering@lucent.com>
92953
92954         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92955         AH_VERBATIM really does output its argument verbatim.
92956
92957 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92958
92959         * lib/Makefile.am (libfetish_a_SOURCES):
92960         Add dup-safer.c, fopen-safer.c.
92961         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92962
92963         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92964         * lib/unistd-safer.h: New files.
92965
92966 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92967
92968         The mkstemp replacement is taken from glibc 2.2.2, with some
92969         portability fixes for use outside glibc, as follows:
92970
92971         * lib/tempname.c (struct_stat64): New macro.
92972         (direxists, __gen_tempname): Use it.
92973         This avoids a portability problem with Solaris 8.
92974
92975         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92976         (<stddef.h>, <stdint.h>, <string.h>):
92977         Include only if STDC_HEADERS || _LIBC.
92978         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92979         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92980         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92981         (__set_errno): Define this macro if <errno.h> doesn't.
92982         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92983         Define these macros if <stdio.h> doesn't.
92984         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92985         Define these macros if <sys/stat.h>
92986         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92987         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92988         __xstat64): Define if not _LIBC.
92989         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92990         (__gen_tempname): Invoke gettimeofday only if
92991         HAVE_GETTIMEOFDAY || _LIBC;
92992         otherwise, fall back on plain "time".
92993         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92994
92995         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92996
92997         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92998
92999 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93000
93001         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93002
93003 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93004
93005         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93006         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93007         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93008         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93009
93010 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93011
93012         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93013         Remove workaround macros for hosts that have mbrtowc but not
93014         mbstate_t, as we now insist on proper declarations for both
93015         before using mbrtowc.
93016
93017 2001-02-17  Jim Meyering  <meyering@lucent.com>
93018
93019         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93020         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93021         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93022         UnixWare 7.1.1.
93023
93024         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93025         rather than AC_CACHE_VAL.
93026
93027 2001-02-17  Jim Meyering  <meyering@lucent.com>
93028
93029         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93030         around included file name.
93031
93032         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93033
93034         * lib/strftime.c: Update from GNU libc (the only changes were to
93035         comments).
93036
93037 2001-02-17  Jim Meyering  <meyering@lucent.com>
93038
93039         * lib/regex.c: Update from libc.
93040
93041 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93042
93043         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93044         clash.
93045
93046 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93047
93048         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93049         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93050         Reported by Mark Hounschell via Paul Eggert.
93051
93052 2001-02-07  Jim Meyering  <meyering@lucent.com>
93053
93054         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93055
93056 2001-02-05  Jim Meyering  <meyering@lucent.com>
93057
93058         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93059         it includes the patch required for `large file' support with at least
93060         HP-UX's 10.20 /bin/cc.
93061
93062 2001-02-03  Jim Meyering  <meyering@lucent.com>
93063
93064         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93065         AS_IF, now that it works once again (mysteriously).
93066         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93067
93068 2001-01-30  Jim Meyering  <meyering@lucent.com>
93069
93070         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93071         * m4/chown.m4: Rename conftestchown to conftest.chown.
93072         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93073         s/conftestdir2/conftest.d2/.
93074         * m4/utimes.m4: s/conftestdata/conftest.data/
93075         Inspired by Pavel Roskin's change in autoconf.
93076
93077 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93078
93079         * lib/config.charset: Update for FreeBSD 4.2.
93080
93081 2001-01-27  Jim Meyering  <meyering@lucent.com>
93082
93083         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93084         a use of AS_IF.
93085         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93086
93087 2001-01-26  Jim Meyering  <meyering@lucent.com>
93088
93089         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93090         quotearg.c includes it.
93091
93092 2001-01-26  Jim Meyering  <meyering@lucent.com>
93093
93094         * lib/quotearg.c: Include stddef.h.
93095         * lib/quote.c: Include stddef.h.
93096         Reported by Axel Kittenberger.
93097
93098         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93099         line in double quotes so that it evokes a better diagnostic.
93100         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93101         Reported by Axel Kittenberger.
93102
93103 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93104
93105         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93106         as if it was a `charset'.
93107
93108 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93109
93110         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93111         has const.
93112
93113 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93114
93115         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93116         to avoid a warning.  Add back 'const' to inptr.
93117
93118 2001-01-20  Jim Meyering  <meyering@lucent.com>
93119
93120         Be sure that headers are checked before used in code compiled
93121         for the type checks.
93122         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93123         In place of that, invoke jm_CHECK_ALL_TYPES.
93124         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93125         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93126         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93127         The check for ssize_t was mistakenly run before the test for unistd.h.
93128
93129         The configure-time check for stdbool.h was missing.
93130         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93131         (jm_PREREQ_HASH): New function.
93132
93133 2001-01-17  Jim Meyering  <meyering@lucent.com>
93134
93135         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93136         for autoconf-2.49c.
93137         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93138
93139 2001-01-16  Jim Meyering  <meyering@lucent.com>
93140
93141         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93142         From Bruno Haible.
93143
93144 2001-01-14  Jim Meyering  <meyering@lucent.com>
93145
93146         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93147         foo and bar.  Create conftestdir/ in the script, not in the C code.
93148         Remove directories in the script, not in the C code.
93149         Remove conftestdir{,2} before trying to create the directory.
93150         Make the entire configure script fail if the mkdir fails.
93151
93152 2001-01-14  Jim Meyering  <meyering@lucent.com>
93153
93154         * lib/rename.c: New file.  From Volker Borchert.
93155         Include stdlib.h, string.h or strings.h, and xalloc.h.
93156         Use strip_trailing_slashes rather than open-coding it.
93157
93158 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93159
93160         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93161
93162 2001-01-03  Jim Meyering  <meyering@lucent.com>
93163
93164         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93165         of local `inptr' to avoid warning with some system declarations of
93166         iconv.
93167
93168 2001-01-02  Volker Borchert  <bt@teknon.de>
93169
93170         * m4/rename.m4: New file.
93171         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93172
93173 2001-01-01  Jim Meyering  <meyering@lucent.com>
93174
93175         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93176         even on systems with utmpx.h.  It's necessary for the declaration of
93177         utmp's ut_user member.  Reported by Andreas Jaeger.
93178
93179         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93180         available. They are required for the declarations of getgrgid and
93181         getpwuid resp.
93182         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93183         Reported by Andreas Jaeger.
93184
93185 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93186
93187         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93188         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93189         so `make install' also works in VPATH builds.
93190
93191 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93192
93193         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93194         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93195         can be used in subdirectories.
93196
93197 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93198
93199         * lib/modechange.c: Do not assume that mode_t uses the
93200         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93201         the other-execute bit of FOO even if S_IXOTH != 1.
93202
93203         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93204         WOTH, XOTH, ALLM): New macros.
93205         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93206          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93207         Use them.
93208         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93209         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93210         (mode_compile):
93211         No need to use uintmax_t; unsigned long is long enough.
93212         Don't bother to get suffix since we don't use it.
93213
93214 2000-12-26  Jim Meyering  <meyering@lucent.com>
93215
93216         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93217         better with autoheader.
93218
93219 2000-12-24  Jim Meyering  <meyering@lucent.com>
93220
93221         * lib/hash.c (is_prime): Return explicit boolean values.
93222         (hash_get_first): Return NULL to appease Irix5.6's 89.
93223         Reported by Nelson Beebe.
93224
93225 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93226
93227         * lib/localcharset.c (locale_charset): Add support for Win32.
93228
93229 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93230
93231         * lib/physmem.h, lib/physmem.c: New files.
93232
93233         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93234         (noinst_HEADERS): Add physmem.h.
93235
93236         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93237         't' for compatibility with Solaris 8 sort.
93238
93239 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93240
93241         * lib/config.charset: Add support for BeOS.
93242
93243 2000-12-17  Jim Meyering  <meyering@lucent.com>
93244
93245         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93246         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93247
93248 2000-12-16  Jim Meyering  <meyering@lucent.com>
93249
93250         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93251         N and M) would have treated it like `chown N:N FILE'.
93252
93253         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93254
93255 2000-12-16  Jim Meyering  <meyering@lucent.com>
93256
93257         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93258         SHELLS_FILE to a file name that's useful on djgpp systems.
93259         Include stdlib.h.
93260         (ADDITIONAL_DEFAULT_SHELLS): Define.
93261         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93262         Based mostly on a patch from Prashant TR.
93263
93264 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93265
93266         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93267         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93268         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93269
93270 2000-12-08  Andreas Schwab  <schwab@suse.de>
93271
93272         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93273         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93274
93275 2000-12-07  Jim Meyering  <meyering@lucent.com>
93276
93277         * lib/stripslash.c (ISSLASH): Define.
93278         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93279         `/'.
93280         From Prashant TR.
93281
93282         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93283         (dir_name_r): Declare this function as static.
93284         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93285         manifest itself on a name containing a mix of slashes and
93286         backslashes.
93287         Make this function work with names starting with a DOS-style
93288         drive letter and colon prefix.
93289         (dir_name): Append `.' if necessary.
93290         Based mostly on patches from Prashant TR and Eli Zaretskii.
93291
93292         * lib/dirname.h (dir_name_r): Remove prototype.
93293
93294 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93295
93296         * m4/off_t-format.m4: Remove this file.
93297         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93298
93299 2000-12-06  Jim Meyering  <meyering@lucent.com>
93300
93301         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93302         replacement strtoull, we may well need the replacement strtoul, too.
93303         Check for declarations of strtoul and strtoull.
93304         Check for strtol.  Mainly as a cue to cause automake to include
93305         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93306         Check for limits.h -- strtol.c needs it.
93307
93308 2000-12-05  Jim Meyering  <meyering@lucent.com>
93309
93310         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93311
93312 2000-12-04  Jim Meyering  <meyering@lucent.com>
93313
93314         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93315         Also include memory.h, stdlib.h, unistd.h if appropriate.
93316         Reported by Andreas Jaeger (conflicting declaration of malloc).
93317
93318 2000-12-02  Jim Meyering  <meyering@lucent.com>
93319
93320         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93321         * m4/jm-macros.m4 (jm_MACROS): require it.
93322
93323 2000-12-02  Jim Meyering  <meyering@lucent.com>
93324
93325         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93326
93327 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93328
93329         * lib/memrchr.c: Include <config.h> before any system include file.
93330
93331 2000-11-30  Jim Meyering  <meyering@lucent.com>
93332
93333         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93334
93335 2000-11-30  Jim Meyering  <meyering@lucent.com>
93336
93337         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93338
93339 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93340
93341         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93342
93343 2000-11-26  Jim Meyering  <meyering@lucent.com>
93344
93345         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93346
93347 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93348
93349         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93350         size of (size_t) -1; it's not portable.
93351
93352 2000-11-17  Jim Meyering  <meyering@lucent.com>
93353
93354         * lib/strstr.c: Update from GNU libc.
93355
93356 2000-11-17  Akim Demaille  <akim@epita.fr>
93357
93358         * lib/obstack.h: Formatting changes.
93359         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93360         prevent type checking.
93361         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93362         cast the value to (void *): assigning a `foo *' to a `void *'
93363         variable is valid.
93364         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93365
93366 2000-11-16  Jim Meyering  <meyering@lucent.com>
93367
93368         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93369
93370 2000-11-11  Jim Meyering  <meyering@lucent.com>
93371
93372         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93373
93374 2000-11-10  Jim Meyering  <meyering@lucent.com>
93375
93376         * lib/obstack.h: Update from GNU libc.
93377         * lib/obstack.c: Likewise.
93378
93379 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93380
93381         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93382
93383 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93384
93385         * lib/getusershell.c (setusershell): Use rewind rather than
93386         fseek/fseeko, to avoid configuration hassles with fseeko.
93387         Don't bother opening SHELLS_FILE if shellstream is NULL;
93388         it's not necessary.
93389
93390 2000-11-05  Jim Meyering  <meyering@lucent.com>
93391
93392         * lib/makepath.h (make_dir): Declare.
93393         * lib/makepath.c (make_dir): Remove `static' attribute.
93394         Tweak a comment.
93395
93396 2000-11-04  Jim Meyering  <meyering@lucent.com>
93397
93398         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93399
93400 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93401
93402         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93403         last one in a bucket, advance to the next bucket.
93404
93405 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93406
93407         * lib/fnmatch.c: Do not comment out all the code if we are using
93408         the GNU C library, because in some cases we are replacing buggy
93409         code in the GNU C library itself.
93410
93411 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93412
93413         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93414         (regex_compile): Catch bogus \(\1\).
93415
93416 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93417
93418         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93419         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93420         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93421
93422 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93423
93424         * lib/error.h, getline.h, modechange.h:
93425         Remove "2000" from Copyright line, as the file hasn't been
93426         changed this year other than in the copyright notice.
93427
93428         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93429         was changed this year.
93430
93431 2000-10-29  Jim Meyering  <meyering@lucent.com>
93432
93433         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93434         renaming.
93435         * m4/ls-mntd-fs.m4: Likewise
93436
93437 2000-10-29  Jim Meyering  <meyering@lucent.com>
93438
93439         * lib/xstat.in: Fix grammar in comment.
93440
93441 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93442
93443         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93444         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93445         doesn't define __restrict_arr.
93446
93447 2000-10-28  Jim Meyering  <meyering@lucent.com>
93448
93449         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93450         (jm_PREREQ_MEMCHR): New function.
93451
93452 2000-10-28  Jim Meyering  <meyering@lucent.com>
93453
93454         * lib/memchr.c: Update from libc.
93455         Adjust for portability:
93456         [HAVE_STDLIB_H]: Include stdlib.h.
93457         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93458         Undef __memchr, too.
93459         [!weak_alias]: Define __memchr to memchr.
93460
93461         * lib/regex.c: Update from libc.
93462         * lib/regex.h: Likewise.
93463         * lib/getopt1.c: Likewise.
93464         * lib/memcmp.c: Likewise.
93465
93466         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93467         Avoid using fseek, when possible -- it's broken by design.
93468         Patch by Ulrich Drepper.
93469
93470 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93471
93472         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93473         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93474         Giving in to popular pressure to shut up the compiler with casts.
93475
93476 2000-10-26  Jim Meyering  <meyering@lucent.com>
93477
93478         * lib/strftime.c: Update from libc.
93479
93480 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93481
93482         * regex.c: More `unsigned char' -> `re_char' changes.
93483         Also change several `int' into `re_wchar_t'.
93484         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93485         (PUSH_FAILURE_POINTER): Don't cast any more.
93486         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93487         We want GCC to complain, since this piece of code makes
93488         re_match non-reentrant, which *should* be fixed.
93489         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93490         (EXTEND_BUFFER): Use RETALLOC.
93491         (SET_LIST_BIT): Don't cast.
93492         (re_wchar_t): New type.
93493         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93494         that those two functions will always properly return.
93495         (IMMEDIATE_QUIT_CHECK): Cast to void.
93496         (analyse_first): Use recursion rather than an explicit stack.
93497         (re_compile_fastmap): Can't fail anymore.
93498         (re_search_2): Don't check re_compile_fastmap for failure.
93499         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93500         Now also sets the new value (passed in a new argument).
93501         (re_match_2_internal): Use it.
93502         Also, use a new var `reg' of type size_t when looping through regs
93503         rather than reuse the inappropriate `mcnt'.
93504
93505 2000-10-25  Jim Meyering  <meyering@lucent.com>
93506
93507         * lib/obstack.c: Update from libc.
93508
93509 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93510
93511         * regex.c (regex_compile): Change the way of handling a range from
93512         a char less than 256 to a char not less than 256.
93513
93514 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93515
93516         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93517         NT-Emacs only.
93518         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93519         so that re_search functions only quit when callers expect them to.
93520
93521 2000-10-23  Jim Meyering  <meyering@lucent.com>
93522
93523         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93524         wrong.  That set_locale call must not have any side effects.
93525         From Paul Eggert.
93526
93527 2000-10-22  Jim Meyering  <meyering@lucent.com>
93528
93529         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93530         [CYCLIC]: Remove now-unused definition.
93531
93532         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93533         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93534         Suggestion from Ulrich Drepper.
93535
93536 2000-10-21  Jim Meyering  <meyering@lucent.com>
93537
93538         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93539         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93540         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93541
93542 2000-10-21  Jim Meyering  <meyering@lucent.com>
93543
93544         * lib/dirname.c (memrchr): Declare if necessary.
93545         (dir_name): Remove the restriction that there be no
93546         trailing slashes.  Now, this code skips past them, effectively
93547         ignoring them.
93548         [TEST_DIRNAME] (main): New unit tests.
93549
93550         * lib/memrchr.c: New file from GNU libc.
93551         Undef __memrchr, too.
93552         [!weak_alias]: Define __memrchr to memrchr.
93553         Guard weak_alias use with `#ifdef weak_alias'.
93554
93555 2000-10-21  Jim Meyering  <meyering@lucent.com>
93556
93557         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93558         (dir_name): Use dir_name_r.
93559         * lib/dirname.h (dir_name_r): Declare it.
93560
93561 2000-10-17  Jim Meyering  <meyering@lucent.com>
93562
93563         * lib/quote.h (PARAMS): Define and use.
93564         Reported by Akim Demaille.
93565
93566         * lib/getopt.c: Update from libc.
93567
93568 2000-10-16  Jim Meyering  <meyering@lucent.com>
93569
93570         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93571         setlocale.
93572         From Jan Fedak.
93573
93574 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93575
93576         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93577
93578 2000-09-25  Jim Meyering  <meyering@lucent.com>
93579
93580         * lib/md5.h (rol): Define (from GnuPG).
93581
93582         * lib/sha.c: Give credit (GnuPG) where due.
93583         (M): Use rol rather than open-coding it.
93584         Add a FIXME comment.
93585
93586 2000-09-21  Jim Meyering  <meyering@lucent.com>
93587
93588         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93589         Reported by Michael Stone.
93590
93591 2000-09-20  Jim Meyering  <meyering@lucent.com>
93592
93593         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93594         (noinst_HEADERS): Add sha.h.
93595         Based on code from Scott G. Miller and from GnuPG.
93596
93597 2000-09-18  Jim Meyering  <meyering@lucent.com>
93598
93599         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93600         LIBS. Otherwise, everyone ends up linking with -lelf for some
93601         configurations.
93602         Reported by Mike Stone.
93603
93604 2000-09-15  Jim Meyering  <meyering@lucent.com>
93605
93606         * lib/regex.c: Update from libc.
93607
93608 2000-09-10  Jim Meyering  <meyering@lucent.com>
93609
93610         * lib/getopt.c (_getopt_internal): Update from glibc.
93611
93612 2000-09-09  Jim Meyering  <meyering@lucent.com>
93613
93614         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93615         think it should be used as a general replacement for isascii.
93616         * lib/fnmatch.c: Likewise.
93617         * lib/mbswidth.c: Likewise
93618         * lib/regex.c: Likewise.
93619
93620         Don't use atoi.
93621         * lib/userspec.c: Include sys/param.h and limits.h.
93622         Include xstrtol.h.
93623         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93624         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93625         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93626         UID, GID.  Check range.
93627
93628 2000-09-06  Jim Meyering  <meyering@lucent.com>
93629
93630         * lib/getopt.c (_getopt_internal): Update from glibc.
93631
93632 2000-08-30  Jim Meyering  <meyering@lucent.com>
93633
93634         * lib/strftime.c: Merge in changes from GNU libc.
93635
93636 2000-08-26  Jim Meyering  <meyering@lucent.com>
93637
93638         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93639         * m4/fpending.m4: New file.
93640
93641 2000-08-26  Jim Meyering  <meyering@lucent.com>
93642
93643         * lib/closeout.c: Include "__fpending.h".
93644         (close_stdout_status): Return right away if there's nothing to flush.
93645
93646         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93647         * lib/__fpending.c: New file.
93648         * lib/__fpending.h: New file.
93649
93650 2000-08-20  Jim Meyering  <meyering@lucent.com>
93651
93652         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93653         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93654         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93655
93656 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93657
93658         Improve fileutils installation on systems where running
93659         programs (like install) can't be unlinked.
93660         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93661         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93662
93663 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93664
93665         Standardize on "memory exhausted" instead of "Memory exhausted"
93666         or "virtual memory exhausted".
93667         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93668         "virtual memory exhausted".
93669         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93670         our own message.
93671         * lib/userspec.c (parse_user_spec): Likewise.
93672         * lib/bumpalloc.h: comment fix
93673         * lib/same.c, userspec.c: Include xalloc.h.
93674
93675         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93676         not char *const and pointing to a constant array.
93677         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93678         (xrealloc): Comment fix.
93679
93680         * lib/userspec.c (parse_user_spec):
93681         Don't translate a message until just before returning,
93682         to avoid unnecessary translation.
93683
93684 2000-08-07  Jim Meyering  <meyering@lucent.com>
93685
93686         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93687         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93688         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93689         getgroups.c, gethostname.c, getopt.h, group-member.c,
93690         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93691         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93692         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93693         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93694         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93695         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93696         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93697         yesno.c: Back out Copyright date changes for each file with no change
93698         this year.  This eases coordination with other programs using the same
93699         source code modules.  From Paul Eggert.
93700
93701 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93702
93703         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93704         not char, for compatibility with glibc 2.1.3 strftime.c.
93705
93706 2000-08-03  Greg McGary  <greg@mcgary.org>
93707
93708         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93709         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93710         (EXTEND_BUFFER): Use them.
93711
93712 2000-08-01  Jim Meyering  <meyering@lucent.com>
93713
93714         * lib/dirname.c (ISSLASH): Define.
93715         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93716         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93717         both `\' and `/' may be use as path separators.
93718         Based on a patch from Prashant TR.
93719
93720 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93721
93722         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93723         slot vector a constant, since it might get modified.
93724
93725 2000-07-31  Jim Meyering  <meyering@lucent.com>
93726
93727         * lib/xmalloc.c: Use `virtual memory exhausted', not
93728         `Memory exhausted'.
93729         * lib/obstack.c (print_and_abort): Likewise.
93730
93731 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93732
93733         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93734         buffer, so that the caller can always quote one small
93735         component of a "memory exhausted" message in slot 0.
93736         From a suggestion by Jim Meyering.
93737
93738 2000-07-30  Jim Meyering  <meyering@lucent.com>
93739
93740         * lib/makepath.c (make_path): Quote the other instance, too.
93741
93742         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93743         (STATIC_BUF_SIZE): Define.
93744         (quotearg_n_options): Use only statically allocated storage when
93745         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93746         than STATIC_BUF_SIZE.
93747
93748 2000-07-29  Jim Meyering  <meyering@lucent.com>
93749
93750         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93751         * lib/dirname.c (dir_name): Likewise.
93752
93753         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93754         `/'.
93755
93756         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93757         (dir_name): Assert that there are no trailing slashes.
93758
93759 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93760
93761         * lib/mbswidth.h (mbswidth): Add a flags argument.
93762         (mbswidth): New declaration.
93763         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93764         * lib/mbswidth.c (mbswidth): Add a flags argument.
93765         (mbsnwidth): New function.
93766
93767 2000-07-24  Jim Meyering  <meyering@lucent.com>
93768
93769         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93770
93771 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93772
93773         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93774
93775 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93776
93777         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93778         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93779         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93780         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93781         invoke multibyte primitives.
93782
93783 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93784
93785         * lib/quotearg.c:
93786         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93787         so that mbstate_t is always defined.
93788
93789         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93790         be 1 in at least one GCC installation, and this configuration
93791         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93792         performance on hosts that have mbrtowc but have only unibyte
93793         locales, but I assume these hosts are rare.
93794
93795 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93796
93797         * lib/mbswidth.c (_XOPEN_SOURCE):
93798         Don't define; this causes problems on Solaris 7.
93799         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93800
93801 2000-07-23  Jim Meyering  <meyering@lucent.com>
93802
93803         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93804         too: getgrgid, getpwuid, getuid.
93805
93806 2000-07-23  Jim Meyering  <meyering@lucent.com>
93807
93808         * lib/basename.c (base_name): Add an assertion.
93809
93810 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93811
93812         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93813         shadow its mbsinit function.
93814
93815 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93816
93817         * lib/mbswidth.h: New file.
93818         * lib/mbswidth.c: New file.
93819         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93820         (noinst_HEADERS): Add mbswidth.h.
93821
93822 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93823
93824         * lib/config.charset: Add support for FreeBSD. Improve support for
93825         HP-UX and IRIX 6.
93826
93827 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93828
93829         * m4/mbswidth.m4: New file.
93830         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93831
93832 2000-07-15  Jim Meyering  <meyering@lucent.com>
93833
93834         * lib/makepath.c: Include quote.h.
93835         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93836         corresponding argument in a `quote (...)' call.
93837         Give better diagnostics.
93838
93839         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93840         (noinst_HEADERS): Add quote.h.
93841
93842         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93843         from tar's src/misc.c.
93844         * lib/quote.h: New file.  Prototypes for same.
93845
93846 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93847
93848         From a suggestion by Bruno Haible.
93849         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93850         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93851         to decide whether to define the BeOS workaround macro;
93852         this adjusts to the change to AC_MBSTATE_T.
93853
93854 2000-07-14  Jim Meyering  <meyering@lucent.com>
93855
93856         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93857         jm_AC_TYPE_UINTMAX_T.
93858
93859 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93860
93861         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93862
93863         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93864         quotearg_buffer_restyled): Add support for
93865         clocale_quoting_style.  Undo previous change to
93866         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93867         and "{RIGHT QUOTATION MARK}" msgids.
93868
93869 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93870
93871         From a suggestion by Bruno Haible.
93872         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93873         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93874         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93875         and mbstate_t, to a single-part test that simply defines mbstate_t.
93876         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93877         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93878
93879 2000-07-10  Jim Meyering  <meyering@lucent.com>
93880
93881         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93882
93883         * m4/gnu-source.m4: Output to confdefs.h directly.
93884         Suggestion from Akim Demaille.
93885
93886 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93887
93888         The old behavior of quoting `like this' doesn't look good with
93889         newer, ISO-style fonts.  See:
93890         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93891
93892         Instead, quote "like this" by default.  Let the translator
93893         tailor the locale-specific quoting behavior by providing
93894         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93895
93896         * lib/quotearg.c (N_): New macro.
93897         (gettext_default): New function.
93898         (quotearg_buffer_restyled): Use
93899         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93900         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93901
93902 2000-07-09  Jim Meyering  <meyering@lucent.com>
93903
93904         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93905         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93906
93907         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93908         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93909
93910 2000-07-09  Jim Meyering  <meyering@lucent.com>
93911
93912         * lib/Most files: Update copyright dates to include 2000.
93913
93914 2000-07-08  Jim Meyering  <meyering@lucent.com>
93915
93916         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93917         if not defined.
93918         (xgethostname): Remove now-unnecessary #ifdef.
93919         Move declaration of `err' into loop where it's used.
93920
93921 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93922         and Bruno Haible  <haible@clisp.cons.org>
93923
93924         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93925         only if the test for an object-type mbstate_t fails.  This
93926         prevents us from mistakenly reporting that mbstate_t is a
93927         system object type after we "#define mbstate_t int" to work
93928         around its lack.
93929
93930 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93931         and Bruno Haible  <haible@clisp.cons.org>
93932
93933         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93934
93935 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93936
93937         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93938         to strerror_r.
93939         Include <ctype.h> for use of isalpha.
93940
93941 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93942
93943         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93944         by allocating a larger buffer. Test the gethostname return value for
93945         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93946         returns an error and ENAMETOOLONG isn't defined.
93947
93948 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93949
93950         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93951         dimension.
93952
93953 2000-07-04  Jim Meyering  <meyering@lucent.com>
93954
93955         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93956         of the deprecated AC_CHECKING.
93957
93958 2000-07-04  Jim Meyering  <meyering@lucent.com>
93959
93960         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93961         Reported by Bruno Haible.
93962
93963 2000-07-04  Jim Meyering  <meyering@lucent.com>
93964
93965         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93966         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93967         lacks mbrtowc.
93968
93969 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93970
93971         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93972         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93973
93974 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93975         and Bruno Haible  <haible@clisp.cons.org>
93976
93977         * lib/quotearg.c (mbrtowc):
93978         Assign to *pwc, and return 1 only if result is nonzero.
93979         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93980
93981 2000-07-03  Jim Meyering  <meyering@lucent.com>
93982
93983         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93984
93985 2000-07-03  Jim Meyering  <meyering@lucent.com>
93986
93987         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93988         This is necessary to get a definition of e.g., UTMP_FILE on
93989         HP-UX 10.20.
93990         From Bob Proulx.
93991
93992 2000-07-02  Jim Meyering  <meyering@lucent.com>
93993
93994         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93995
93996         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93997         AC_LIBOBJ(function_name).
93998         * m4/chown.m4: Likewise.
93999         * m4/fnmatch.m4: Likewise.
94000         * m4/ftruncate.m4: Likewise.
94001         * m4/getgroups.m4: Likewise.
94002         * m4/getline.m4: Likewise.
94003         * m4/group-member.m4: Likewise.
94004         * m4/jm-macros.m4: Likewise.
94005         * m4/lstat.m4: Likewise.
94006         * m4/malloc.m4: Likewise.
94007         * m4/memcmp.m4: Likewise.
94008         * m4/nanosleep.m4: Likewise.
94009         * m4/putenv.m4: Likewise.
94010         * m4/realloc.m4: Likewise.
94011         * m4/regex.m4: Likewise.
94012         * m4/stat.m4: Likewise.
94013         * m4/strftime.m4: Likewise.
94014
94015 2000-07-02  Jim Meyering  <meyering@lucent.com>
94016
94017         * lib/quotearg.c (mbstate_t): Don't define here.
94018
94019 2000-07-02  Jim Meyering  <meyering@lucent.com>
94020
94021         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94022
94023 2000-07-01  Jim Meyering  <meyering@lucent.com>
94024
94025         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94026
94027 2000-07-01  Jim Meyering  <meyering@lucent.com>
94028
94029         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94030         problem.
94031
94032 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94033
94034         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94035         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94036
94037 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94038
94039         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94040         per change in ../m4/ls-mntd-fs.m4.
94041         (read_filesystem_list): Ignore symbolic links.
94042
94043 2000-06-29  Jim Meyering  <meyering@lucent.com>
94044
94045         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94046         for declaration of strcmp.
94047
94048         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94049
94050         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94051         Avoid warning by casting result to `char *' to remove `const'.
94052
94053 2000-06-28  Jim Meyering  <meyering@lucent.com>
94054
94055         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94056         included by quotearg.c, for which we perform this test.  From
94057         Bruno Haible.
94058
94059 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94060
94061         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94062         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94063         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94064
94065 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94066
94067         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94068
94069 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94070
94071         savedir now sets errno on failure and invokes xmalloc to get memory.
94072         Fix a couple of other minor bugs while we're at it.
94073
94074         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94075         (NAMLEN): Remove macro.
94076         (malloc, realloc): Remove decls.
94077         (stpcpy): Likewise.
94078         ("xalloc.h"): Include.
94079         (NAME_SIZE_DEFAULT): New macro.
94080         (savedir): Use xmalloc / xrealloc to allocate memory.
94081         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94082         Skip "" directory entries.
94083         Use strlen to calculate directory entry length, since the old method
94084         is rarely used these days and isn't worth supporting.
94085         Don't use a pointer after freeing it.
94086         Check for integer overflow when calculating allocation size.
94087         Use memcpy to copy entries, instead of stpcpy.
94088         Set errno properly when returning NULL.
94089         Check for readdir error.
94090
94091 2000-06-26  Jim Meyering  <meyering@lucent.com>
94092
94093         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94094
94095 2000-06-25  Jim Meyering  <meyering@lucent.com>
94096
94097         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94098         Linux header bug when _XOPEN_SOURCE is defined to 500.
94099
94100 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94101
94102         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94103         deficiency.
94104
94105 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94106
94107         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94108         Include xalloc.h.
94109         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94110
94111 2000-06-24  Jim Meyering  <meyering@lucent.com>
94112
94113         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94114         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94115         for which strerror does return char*, but which lacks a conveniently
94116         accessible declaration of the function.  If the compile-test says
94117         strerror_r doesn't work, then resort to a `run'-test that works on
94118         BeOS and segfaults on DEC Unix.
94119
94120 2000-06-24  Jim Meyering  <meyering@lucent.com>
94121
94122         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94123
94124 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94125
94126         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94127         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94128
94129 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94130
94131         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94132         (mbrtowc, mbstate_t): Define substitutes if
94133         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94134         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94135         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94136
94137 2000-06-23  Jim Meyering  <meyering@lucent.com>
94138
94139         * m4/afs.m4: Add missing AC_MSG_RESULT.
94140         Reported by Bruno Haible.
94141
94142         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94143         Suggestion from Bruno Haible.
94144
94145 2000-06-23  Jim Meyering  <meyering@lucent.com>
94146
94147         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94148
94149 2000-06-21  Jim Meyering  <meyering@lucent.com>
94150
94151         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94152
94153 2000-06-21  Jim Meyering  <meyering@lucent.com>
94154
94155         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94156         (noinst_HEADERS): Add getstr.h.
94157
94158         * lib/getline.c (getstr): Move into a separate file.
94159         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94160         the following changes: new parameter, delim2; both delim[12]
94161         parameters have type `int', not `char'.  The latter would lose
94162         with 8-bit delimiters.
94163         * lib/getstr.h: New file.
94164
94165 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94166
94167         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94168         than 1024, return a memory chunk of least possible size, instead
94169         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94170         Use free/xmalloc instead of xrealloc to avoid copying for very long
94171         paths.
94172
94173 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94174
94175         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94176         the empty string.
94177
94178 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94179
94180         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94181         address, not strdup.  Include <stdlib.h> and don't declare free().
94182
94183 2000-06-19  Jim Meyering  <meyering@lucent.com>
94184
94185         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94186
94187 2000-06-18  Jim Meyering  <meyering@lucent.com>
94188
94189         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94190
94191         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94192         `checking whether...' message to be consistent with that of the
94193         lstat test.
94194
94195 2000-06-18  Jim Meyering  <meyering@lucent.com>
94196
94197         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94198         Besides, these days every porting target provides a mkdir function.
94199
94200         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94201         needed. (this snippet comes from src/system.h).
94202
94203 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94204
94205         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94206
94207 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94208
94209         * lib/human.c (adjust_value): New function.
94210         (human_readable_inexact): Apply rounding style even when
94211         printing approximate values.
94212
94213 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94214
94215         * lib/human.c (human_readable_inexact): Allow an input block
94216         size that is not a multiple of the output block size, and vice versa.
94217         Reported by Piergiorgio Sartor.
94218
94219 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94220
94221         * lib/getdate.y (get_date): Apply relative times after time
94222         zone indicator, not before.  Reported by Todd A. Jacobs.
94223
94224 2000-06-13  Jim Meyering  <meyering@lucent.com>
94225
94226         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94227
94228         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94229
94230 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94231
94232         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94233
94234 2000-06-12  Jim Meyering  <meyering@lucent.com>
94235
94236         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94237         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94238         optional argument.
94239         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94240         the optional argument, `lib'.
94241
94242 2000-06-08  Jim Meyering  <meyering@lucent.com>
94243
94244         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94245
94246 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94247
94248         Rewrite largefile configuration so that we don't need to run
94249         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94250         AC_CANONICAL_HOST in configure.in -- jmm]
94251
94252         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94253         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94254         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94255         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94256         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94257         All uses changed.
94258         Instead of inspecting the output of getconf, try to compile the
94259         test program without and with the macro definition.
94260         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94261         for getconf.  Instead, check for the needed flags by compiling
94262         test programs.
94263
94264 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94265
94266         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94267
94268 2000-06-04  Jim Meyering  <meyering@lucent.com>
94269
94270         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94271         SunOS 4.1.4 for which gid_t is an unsigned type.
94272
94273 2000-06-03  Jim Meyering  <meyering@lucent.com>
94274
94275         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94276         now that autoconf requires that.
94277
94278         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94279         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94280         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94281
94282 2000-06-03  Jim Meyering  <meyering@lucent.com>
94283
94284         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94285
94286 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94287
94288         * m4/glibc21.m4: New file.
94289         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94290
94291 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94292
94293         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94294         newer, don't install charset.alias.
94295         * lib/config.charset: Change the Linux/glibc rules so they become empty
94296         on glibc-2.1 or newer.
94297
94298 2000-06-02  Jim Meyering  <meyering@lucent.com>
94299
94300         * lib/mountlist.c: Back out last change.  Instead, do this...
94301         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94302         me_dummy member using the same `ignore'-testing code.
94303         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94304         fs_type strings.
94305         From Mark D. Roth.
94306
94307 2000-05-29  Jim Meyering  <meyering@lucent.com>
94308
94309         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94310         mounts with the `ignore' attribute.  Based on a patch from
94311         Mark D. Roth.
94312
94313 2000-05-28  Jim Meyering  <meyering@lucent.com>
94314
94315         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94316         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94317         * m4/stat.m4: Likewise.
94318         * m4/lstat.m4: Likewise.
94319         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94320
94321         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94322         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94323
94324 2000-05-26  Jim Meyering  <meyering@lucent.com>
94325
94326         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94327
94328 2000-05-24  Jim Meyering  <meyering@lucent.com>
94329
94330         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94331         autoconf requires that.
94332         * m4/lib-check.m4: Likewise.
94333         * m4/jm-macros.m4: Likewise.
94334         * m4/strftime.m4: Likewise.
94335
94336         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94337         AC_CHECK_DECLS, now that autoconf requires that.
94338
94339 2000-05-22  Jim Meyering  <meyering@lucent.com>
94340
94341         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94342         * m4/lstat.m4: Likewise.
94343
94344 2000-05-22  Jim Meyering  <meyering@lucent.com>
94345
94346         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94347
94348 2000-05-20  Jim Meyering  <meyering@lucent.com>
94349
94350         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94351         (jm_PREREQ): Use it.
94352
94353 2000-05-18  Jim Meyering  <meyering@lucent.com>
94354
94355         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94356         back, too, since it may have been modified by allocate_entry.
94357         (hash_delete): Rewrite to use neither the assignment operator
94358         nor the comma operator in an if-expression.
94359
94360 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94361
94362         * lib/closeout.c:
94363         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94364         Remove; no longer needed.
94365         "quotearg.h": Add include.
94366         (file_name): Do not bother to explicitly initialize to NULL; it's less
94367         efficient on some hosts.
94368         (close_stdout_status): Remove test as to whether stdout was already
94369         closed; it breaks for the case "echo x | sort >&-".
94370         Quote file name colons.
94371         Do not assume that _("write error") lacks format strings.
94372
94373 2000-05-15  Jim Meyering  <meyering@lucent.com>
94374
94375         * lib/version-etc.c (version_etc_copyright): Update the copyright
94376         string used in all --version output.
94377
94378 2000-05-14  Jim Meyering  <meyering@lucent.com>
94379
94380         * lib/closeout.c (close_stdout_set_file_name): New function.
94381         (close_stdout_status): Use new file-scoped global.
94382         Return right away if fstat says the stdout file descriptor is invalid.
94383         * lib/closeout.h (close_stdout_set_file_name): Declare.
94384
94385 2000-05-10  Jim Meyering  <meyering@lucent.com>
94386
94387         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94388         (close_stdout_set_status): New function.
94389         * lib/closeout.h (close_stdout_set_status): Declare.
94390
94391 2000-05-09  Jim Meyering  <meyering@lucent.com>
94392
94393         * m4/gettext.m4: Rename this...
94394         * m4/libintl.m4: ...to this.
94395
94396 2000-05-08  Jim Meyering  <meyering@lucent.com>
94397
94398         * lib/long-options.c: Don't include closeout.h.
94399         (parse_long_options): Don't call close_stdout for --version.
94400
94401 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94402
94403         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94404         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94405         2.1.3 bug.  This avoids a clash when files like regex.c define
94406         _GNU_SOURCE.
94407
94408 2000-05-06  Jim Meyering  <meyering@lucent.com>
94409
94410         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94411         (AC_REPLACE_FUNCS): Add strnlen.
94412
94413         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94414         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94415
94416         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94417         AC_SEARCH_LIBS call for nanosleep.
94418         (LIB_NANOSLEEP): Set and AC_SUBST.
94419
94420 2000-05-06  Jim Meyering  <meyering@lucent.com>
94421
94422         * lib/strnlen.c: Undefine __strnlen and strnlen.
94423         [!weak_alias]: Define __strnlen to strnlen.
94424
94425         * lib/atexit.c: New file, from libiberty.
94426
94427 2000-05-06  Jim Meyering  <meyering@lucent.com>
94428
94429         * lib/closeout.c (close_stdout_status): Also check for errors on the
94430         stderr stream.
94431
94432 2000-05-05  Jim Meyering  <meyering@lucent.com>
94433
94434         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94435         AC_SEARCH_LIBS call for clock_gettime.
94436         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94437
94438         * m4/search-libs.m4: Update from autoconf.
94439
94440         su doesn't work on Solaris 2.6.
94441         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94442         <shadow.h>.  Reported by Dragos Harabor.
94443
94444 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94445
94446         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94447         memcpy instead of xmalloc, xrealloc, path_concat.
94448         (locale_charset): Treat empty environment variables as absent.
94449         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94450
94451 2000-05-04  Jim Meyering  <meyering@lucent.com>
94452
94453         * lib/getopt.c: Update from glibc.
94454         * lib/obstack.c: Likewise.
94455         * lib/obstack.h: Likewise.
94456         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94457         file
94458
94459         * lib/regex.h: Likewise.
94460         * lib/strndup.c: Likewise.
94461         * lib/strnlen.c: New file, from glibc.
94462
94463 2000-05-03  Jim Meyering  <meyering@lucent.com>
94464
94465         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94466
94467 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94468
94469         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94470         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94471         compile-time test, rather than inspecting host and OS, to
94472         decide whether to define _LARGEFILE_SOURCE.
94473
94474 2000-05-01  Jim Meyering  <meyering@lucent.com>
94475
94476         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94477
94478         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94479         Based on a patch from Bruno Haible.
94480
94481 2000-05-01  Jim Meyering  <meyering@lucent.com>
94482
94483         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94484
94485 2000-04-29  Jim Meyering  <meyering@lucent.com>
94486
94487         * lib/path-concat.c: Declare strdup only if it's not defined.
94488         * lib/canon-host.c: Likewise.
94489
94490 2000-04-28  Jim Meyering  <meyering@lucent.com>
94491
94492         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94493         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94494         is included first, then limits.h is included by locale.h by libintl.h.
94495         From John David Anglin.
94496
94497 2000-04-25  Jim Meyering  <meyering@lucent.com>
94498
94499         * lib/makepath.c (S_IRWXUGO): Define.
94500         (make_path): Always perform explicit chmod if MODE specifies any
94501         of the `special' permission bits.  Prompted by a bug report against
94502         install from Mate Wierdl and Joost van Baal.
94503
94504 2000-04-18  Jim Meyering  <meyering@lucent.com>
94505
94506         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94507         (jm_PREREQ): Use it.
94508
94509 2000-04-18  Jim Meyering  <meyering@lucent.com>
94510
94511         * lib/README: New file.
94512
94513         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94514         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94515
94516 2000-04-17  Jim Meyering  <meyering@lucent.com>
94517
94518         Get it right :-)
94519         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94520         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94521         Suggestion from Akim Demaille.
94522
94523 2000-04-17  Jim Meyering  <meyering@lucent.com>
94524
94525         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94526         the definition of it to rpl_strftime also defined-away the system's
94527         declaration.
94528
94529 2000-04-15  Jim Meyering  <meyering@lucent.com>
94530
94531         Use `C' to denote so-called `contiguous' files, the same way
94532         that tar does.
94533         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94534         (ftypelet): Use S_ISCTG.
94535         From Michael Deutschmann.
94536
94537 2000-04-14  Jim Meyering  <meyering@lucent.com>
94538
94539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94540         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94541         clobbered.
94542
94543 2000-04-14  Jim Meyering  <meyering@lucent.com>
94544
94545         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94546
94547 2000-04-13  Jim Meyering  <meyering@lucent.com>
94548
94549         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94550         AH_VERBATIM to insert required #ifndef into config.h.in.
94551         Suggestion from Akim Demaille.
94552
94553 2000-04-12  Jim Meyering  <meyering@lucent.com>
94554
94555         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94556         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94557         Christian Krackowizer.
94558
94559         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94560         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94561         (AC_SYS_LARGEFILE): Require.
94562         (AM_C_PROTOTYPES): Require.
94563
94564 2000-04-08  Jim Meyering  <meyering@lucent.com>
94565
94566         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94567         names don't conflict.  Reported by Eli Zaretskii.
94568
94569 2000-04-07  Jim Meyering  <meyering@lucent.com>
94570
94571         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94572         sys/types.h, to work around system header problems on AIX 3.2.5.
94573         From Bruno Haible.
94574
94575 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94576
94577         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94578         bug.  Deal with the different error behavior of Irix iconv.
94579
94580 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94581
94582         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94583         IRIX if the installer said otherwise.
94584
94585 2000-04-05  Jim Meyering  <meyering@lucent.com>
94586
94587         Portability tweaks required for ultrix4.3.
94588         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94589         (jm_CHECK_DECLS): Add getutent to the list of functions.
94590         (_jm_DECL_HEADERS): Add utmpx.h.
94591         From John David Anglin.
94592
94593         * m4/strftime.m4: Back out the 2000-04-02 change.
94594         Instead of that change, simply undefine putenv in the test program.
94595
94596 2000-04-05  Jim Meyering  <meyering@lucent.com>
94597
94598         Portability tweaks required for ultrix4.3.
94599         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94600         getutent.
94601         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94602         * lib/canon-host.c: Declare strdup.
94603         * lib/path-concat.c: Likewise.
94604         From John David Anglin.
94605
94606 2000-04-04  Jim Meyering  <meyering@lucent.com>
94607
94608         Be more DOS 8.3-friendly.
94609         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94610         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94611         * lib/Makefile.am: Reflect renaming.
94612         Reported by Eli Zaretskii.
94613
94614         Use a temporary file name that won't clash with `charset.alias'
94615         in the DOS 8.3 name space.
94616         * lib/Makefile.am (charset_tmp): Define.
94617         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94618         (uninstall-local): Likewise.
94619         Reported by Eli Zaretskii.
94620
94621 2000-04-03  Jim Meyering  <meyering@lucent.com>
94622
94623         * m4/gettext.m4: Fix typo in comment.
94624
94625         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94626         textutils/configure.in).  Suggestion from Paul Eggert.
94627         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94628
94629 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94630
94631         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94632         variable in the shell rather than using putenv, which isn't
94633         portable.  This avoids the configure-time inter-test dependency
94634         on the potentially-renamed putenv function.
94635
94636 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94637
94638         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94639         before checking struct stat.st_blksize, so that
94640         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94641
94642 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94643
94644         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94645         since strftime.c uses HAVE_STRFTIME to decide whether to use
94646         the underlying strftime.
94647
94648 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94649
94650         * lib/time/strftime.c (my_strftime): Make sure we call the system
94651         strftime, not ourselves, when invoking the underlying strftime.
94652
94653 2000-03-24  Jim Meyering  <meyering@lucent.com>
94654
94655         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94656         (charset_alias): Define.
94657         (install-exec-local): Factor out common code.
94658         (uninstall-local): Split lines longer than 80.
94659         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94660         (SUFFIXES): Define.
94661         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94662         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94663
94664 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94665
94666         * lib/config.charset: Output a line containing "Packages using this
94667         file".
94668         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94669         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94670         ref-del.sed): New rules.
94671
94672 2000-03-17  Jim Meyering  <meyering@lucent.com>
94673
94674         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94675         Otherwise, include <strings.h>
94676
94677 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94678
94679         * lib/unicodeio.c (utf8_wctomb): New function.
94680         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94681         format instead of in UCS-4 with platform dependent endianness.
94682
94683 2000-03-10  Jim Meyering  <meyering@lucent.com>
94684
94685         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94686         From Marco Franzen.
94687
94688 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94689
94690         * lib/savedir.c (savedir): Work even if directory size is
94691         negative; this can happen with some screwy NFS configurations.
94692
94693 2000-03-06  Jim Meyering  <meyering@lucent.com>
94694
94695         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94696         if it's NULL (because we ran out of memory).  From Bruno Haible.
94697
94698 2000-03-05  Jim Meyering  <meyering@lucent.com>
94699
94700         * lib/localcharset.c ("path-concat.h"): Include.
94701         (get_charset_aliases): Use path_concat instead of ANSI string
94702         concatenation.
94703
94704         * lib/unicodeio.h (PARAMS): Define.
94705         Use it to guard prototype.
94706
94707 2000-03-04  Jim Meyering  <meyering@lucent.com>
94708
94709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94710         for lib/localcharset.c.
94711
94712 2000-03-04  Jim Meyering  <meyering@lucent.com>
94713
94714         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94715         installing into it.
94716         (uninstall-local): Uncomment this rule so `make distcheck' works
94717         once again.
94718
94719         * lib/unicodeio.c (<errno.h>): Include it.
94720         (errno): Declare if not defined.
94721
94722         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94723
94724         * lib/config.charset: New version, incorporating remarks from a linux
94725         i18n mailing list.  From Bruno Haible.
94726
94727 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94728
94729         * m4/codeset.m4: New file.
94730         * m4/iconv.m4: New file.
94731         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94732
94733 2000-03-03  Jim Meyering  <meyering@lucent.com>
94734
94735         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94736
94737 2000-03-02  Jim Meyering  <meyering@lucent.com>
94738
94739         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94740         the messages come out on separate lines.
94741
94742         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94743         rather than jm_CHECK_DECLARATIONS.
94744         * m4/decl.m4: Remove now-unused file.
94745
94746         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94747         geteuid.
94748
94749 2000-03-02  Jim Meyering  <meyering@lucent.com>
94750
94751         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94752
94753 2000-03-01  Jim Meyering  <meyering@lucent.com>
94754
94755         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94756         * lib/unicodeio.c: Likewise.
94757
94758 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94759
94760         * lib/config.charset: New file.
94761         * lib/localcharset.c: New file.
94762         * lib/unicodeio.h, lib/unicodeio.c: New files.
94763         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94764         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94765         (noinst_HEADERS): Add unicodeio.h.
94766         (all-local, install-exec-local, charset.alias): New targets.
94767
94768 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94769
94770         * lib/quotearg.c (ALERT_CHAR): New macro.
94771         (quotearg_buffer_restyled): Use it.
94772
94773 2000-02-27  Jim Meyering  <meyering@lucent.com>
94774
94775         * m4/check-decl.m4: Add getenv to the list.
94776
94777 2000-02-27  Jim Meyering  <meyering@lucent.com>
94778
94779         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94780         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94781
94782         * lib/backupfile.c: Guard inclusion of stdlib.h with
94783         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94784         Declare malloc if needed.
94785
94786         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94787         `#ifndef HAVE_DECL..'
94788         now that autoconf always defines the HAVE_DECL_ symbols.
94789         * lib/human.c: Likewise.
94790         * lib/same.c: Likewise.
94791         * lib/strtoumax.c: Likewise.
94792
94793         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94794         declaration check was not run.
94795         * lib/hash.c: Likewise.
94796         * lib/human.c: Likewise.
94797         * lib/same.c: Likewise.
94798         * lib/strtoumax.c: Likewise.
94799
94800         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94801         `.', then first look up the entire `.'-containing string as a login
94802         name.
94803
94804 2000-02-23  Jim Meyering  <meyering@lucent.com>
94805
94806         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94807         in place of my hack.
94808
94809 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94810
94811         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94812         (textint): New typedef.
94813         (parser_control): Member year changed from int to textint.
94814         All uses changed.
94815         (YYSTYPE): Removed; replaced by %union with int and textint members.
94816         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94817         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94818         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94819         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94820         (date, number, to_year): Use width of number in digits, not its value,
94821         to determine whether it's a 2-digit year, or a 2-digit time.
94822         (yylex): Store number of digits of numeric tokens.
94823         Reported by John Kendall.
94824
94825         (parser_control): Changed from struct parser_control to typedef (for
94826         consistency).  All uses changed.
94827
94828         (tID): Removed; not used.
94829         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94830
94831 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94832
94833         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94834         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94835
94836 2000-02-12  Jim Meyering  <meyering@lucent.com>
94837
94838         * lib/userspec.c (ISDIGIT): Define it.
94839         (isdigit): Remove definition.
94840         (is_number): Use ISDIGIT, not isdigit.
94841         <libintl.h>: Include.
94842         (_ and N_): Define.
94843         (parse_user_spec): Mark translatable strings.
94844
94845 2000-02-10  Jim Meyering  <meyering@lucent.com>
94846
94847         With these changes, nanosleep.[ch] are finally enough like the other
94848         lib/* replacement files to compile on a few more losing systems.
94849
94850         * lib/nanosleep.h: Don't include config.h.
94851         Remove prototype from declaration of nanosleep.
94852         (PARAMS): Remove now-unneeded definition.
94853         * lib/nanosleep.c: #undef nanosleep.
94854         (rpl_nanosleep): Rename from nanosleep.
94855
94856 2000-02-10  Jim Meyering  <meyering@lucent.com>
94857
94858         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94859         gnu_nanosleep to rpl_nanosleep.
94860
94861 2000-02-09  Jim Meyering  <meyering@lucent.com>
94862
94863         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94864         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94865
94866 2000-02-08  Akim Demaille  <akim@epita.fr>
94867
94868         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94869         `[' and `]' and remove uses of `changequote'.
94870         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94871         (AC_SYS_LARGEFILE): Likewise.
94872         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94873         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94874         of changequote.
94875         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94876         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94877         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94878         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94879
94880 2000-02-05  Jim Meyering  <meyering@lucent.com>
94881
94882         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94883         Remove explicit use of AC_HEADER_TIME.  It is required by
94884         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94885         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94886         in autoconf whereby the expansion of the latter ended up preceding
94887         the expansion of its prerequisite, AC_HEADER_TIME.
94888         Reported by Volker Borchert.
94889
94890 2000-02-03  Jim Meyering  <meyering@lucent.com>
94891
94892         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94893
94894 2000-02-03  Jim Meyering  <meyering@lucent.com>
94895
94896         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94897         rather than with `#if HAVE_UTMPNAME'.
94898
94899 2000-02-02  Jim Meyering  <meyering@lucent.com>
94900
94901         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94902         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94903         Reported by Eli Zaretskii.
94904
94905 2000-02-01  Jim Meyering  <meyering@lucent.com>
94906
94907         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94908
94909 2000-01-31  Jim Meyering  <meyering@lucent.com>
94910
94911         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94912         functions.  Add the time.h and sys/time.h headers along with the
94913         AC_REQUIRE'ment of AC_HEADER_TIME.
94914
94915 2000-01-31  Jim Meyering  <meyering@lucent.com>
94916
94917         * lib/nanosleep.h (nanosleep): Guard declaration with
94918         `#if ! HAVE_DECL_NANOSLEEP'.
94919         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94920         the declaration in that vendor's sys/timers.h.
94921         Reported by Christian Krackowizer.
94922
94923         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94924         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94925         (ISPRINT): Likewise.
94926         Reported by Tom Tromey.
94927
94928 2000-01-30  Jim Meyering  <meyering@lucent.com>
94929
94930         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94931
94932         * m4/prereq.m4 (utmp_includes): Define.
94933         Check for ut_user and ut_name members in both struct utmpx
94934         and struct utmp.
94935
94936 2000-01-30  Jim Meyering  <meyering@lucent.com>
94937
94938         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94939         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94940         header files where only utmpx.ut_user is declared.
94941
94942         * lib/readutmp.h (UT_USER): Define.
94943
94944 2000-01-29  Jim Meyering  <meyering@lucent.com>
94945
94946         * m4/lib-check.m4: New file containing library-related checks from
94947         fileutils and sh-utils (textutils had none).
94948
94949 2000-01-28  Jim Meyering  <meyering@lucent.com>
94950
94951         * m4/perl.m4: Change format of warning message to look more like that
94952         from the missing script.  Suggestion from François Pinard.
94953
94954 2000-01-25  Jim Meyering  <meyering@lucent.com>
94955
94956         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94957         well as time.h in the compile check.
94958         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94959         Fix typo in cross-compiling case: s/yes/no/.
94960
94961 2000-01-23  Jim Meyering  <meyering@lucent.com>
94962
94963         * m4/jm-macros.m4: Move df-related tests here from
94964         fileutils/configure.in
94965
94966         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94967         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94968
94969         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94970         s/space/ac_fsusage_space/.
94971         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94972
94973         * m4/ftruncate.m4: New file (derived from part of
94974         fileutils/configure.in).
94975         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94976         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94977
94978         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94979         AC_SUBST these here, rather than just in sh-util/configure.in, so
94980         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94981         all the same.
94982         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94983         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94984         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94985         (AC_SUBST(POW_LIBM)): Likewise.
94986         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94987
94988 2000-01-23  Jim Meyering  <meyering@lucent.com>
94989
94990         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94991         obstack.c.
94992
94993 2000-01-22  Jim Meyering  <meyering@lucent.com>
94994
94995         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94996
94997         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94998
94999         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95000         configure.in
95001         (AC_CHECK_HEADERS): Likewise for sh-utils.
95002         (AC_CHECK_HEADERS): Likewise for textutils.
95003         Merge the three lists of headers.
95004
95005         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95006         from fileutils' configure.in.
95007
95008         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95009         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95010         check-decl.m4.
95011
95012         * m4/check-decl.m4: Use #if rather than #ifdef.
95013         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95014         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95015         (_jm_DECL_HEADERS): Define new function.
95016         (jm_CHECK_DECLARATIONS): Require it.
95017
95018 2000-01-22  Jim Meyering  <meyering@lucent.com>
95019
95020         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95021         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95022         Required for some AIX systems.  Reported by Christian Krackowizer.
95023         [TESTING] (main): New function.
95024
95025         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95026         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95027         letters.
95028
95029         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95030         iswprint.
95031
95032         * lib/strverscmp.c (ISDIGIT): Define.
95033         (strverscmp): Use ISDIGIT, not isdigit.
95034
95035 2000-01-19  Jim Meyering  <meyering@lucent.com>
95036
95037         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95038         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95039         defines `struct timespec' in <sys/time.h>
95040
95041         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95042         Thanks to Akim for explaining.
95043
95044 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95045
95046         * lib/nanosleep.c (nanosleep):
95047         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95048         POSIX.1 doesn't require SA_INTERRUPT and some systems
95049         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95050         it's been part of POSIX.1 since day 1 (in 1988).
95051
95052 2000-01-17  Jim Meyering  <meyering@lucent.com>
95053
95054         * lib/interlock: Remove unused file.  Reported by François Pinard.
95055
95056 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95057
95058         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95059         alert, backslash, formfeed, and vertical tab unnecessarily in
95060         shell quoting style.
95061
95062 2000-01-16  Jim Meyering  <meyering@lucent.com>
95063
95064         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95065         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95066         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95067         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95068
95069 2000-01-16  Jim Meyering  <meyering@lucent.com>
95070
95071         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95072         because the latter didn't work.
95073
95074 2000-01-15  Jim Meyering  <meyering@lucent.com>
95075
95076         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95077         (AC_REPLACE_FUNCS): Add memcpy and memset.
95078         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95079         Add strpbrk.
95080         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95081
95082 2000-01-12  Jim Meyering  <meyering@lucent.com>
95083
95084         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95085         (jm_PREREQ): Use it.
95086         (jm_PREREQ_READUTMP): New macro.
95087         (jm_PREREQ): Use it.
95088
95089 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95090
95091         Quote multibyte characters correctly.
95092         * m4/c-bs-a.m4: New file.
95093         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95094         (jm_PREREQ): Use it.
95095
95096 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95097
95098         * m4/uintmax_t.m4: Port to autoconf 2.13.
95099
95100 2000-01-08  Jim Meyering  <meyering@ascend.com>
95101
95102         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95103         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95104
95105 2000-01-04  Jim Meyering  <meyering@ascend.com>
95106
95107         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95108         jm_STRUCT_DIRENT_D_TYPE.
95109         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95110         jm_STRUCT_DIRENT_D_INO.
95111         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95112         jm_STRUCT_UTIMBUF.
95113         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95114         renamings.
95115         * m4/utime.m4: Likewise.
95116
95117         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95118         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95119
95120 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95121
95122         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95123         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95124
95125 2000-01-02  Jim Meyering  <meyering@ascend.com>
95126
95127         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95128         remember if this is necessary.
95129
95130 1999-12-26  Jim Meyering  <meyering@ascend.com>
95131
95132         * m4/jm-macros.m4: Use it here.
95133         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95134
95135 1999-12-23  Jim Meyering  <meyering@ascend.com>
95136
95137         * m4/jm-macros.m4: Check for clock_gettime (moved from
95138         fileutils/configure.in)
95139         Check for gettimeofday.
95140
95141 1999-12-20  Jim Meyering  <meyering@ascend.com>
95142
95143         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95144         autoconf-2.14a-1999-12-20.
95145
95146 1999-12-19  Jim Meyering  <meyering@ascend.com>
95147
95148         * m4/lstat-slash.m4: New file.
95149         * m4/jm-macros.m4: Use the new macro:
95150         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95151
95152 1999-12-07  Jim Meyering  <meyering@ascend.com>
95153
95154         * m4/perl.m4: Require that File::Compare be available, too.
95155         Too many systems seem to lack it.
95156
95157         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95158         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95159
95160 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95161
95162         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95163         problem with the QNX 4.25 shell, which doesn't propagate exit
95164         status of failed commands inside shell assignments.
95165
95166 1999-11-17  Jim Meyering  <meyering@ascend.com>
95167
95168         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95169
95170 1999-11-07  Jim Meyering  <meyering@ascend.com>
95171
95172         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95173
95174 1999-11-06  Jim Meyering  <meyering@ascend.com>
95175
95176         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95177         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95178
95179 1999-11-05  Jim Meyering  <meyering@ascend.com>
95180
95181         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95182         configure.in of textutils, fileutils, and sh-utils into this one
95183         (shared between those packages) file.
95184         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95185         AC_STRUCT_ST_BLKSIZE.
95186
95187 1999-11-03  Jim Meyering  <meyering@ascend.com>
95188
95189         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95190         of AC_CHECK_TYPE checks includes unistd.h.
95191         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95192         Suggestion from Akim Demaille.
95193
95194 1999-10-30  Jim Meyering  <meyering@ascend.com>
95195
95196         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95197         m4-quoted string.
95198         * m4/ls-mntd-fs.m4: Likewise.
95199         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95200         * m4/jm-winsz1.m4: Likewise.
95201
95202         * m4/const.m4: Remove file, since the fix made it into the experimental
95203         version of autoconf.
95204         * m4/mktime.m4: Likewise.
95205
95206         * m4/check-type.m4: Remove file, now that the latest version of
95207         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95208
95209         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95210         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95211         AC_CHECK_TYPE.
95212
95213 1999-10-04  Jim Meyering  <meyering@ascend.com>
95214
95215         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95216
95217 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95218
95219         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95220         2.95.1 bug with HP-UX 10.20.
95221
95222 1999-09-17  Jim Meyering  <meyering@ascend.com>
95223
95224         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95225         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95226         due to missing strdup (against sh-utils-2.0).
95227
95228 1999-08-29  Jim Meyering  <meyering@ascend.com>
95229
95230         * m4/jm-macros.m4: Require jm_BISON.
95231         * m4/bison.m4: New file.
95232
95233 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95234
95235         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95236         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95237
95238 1999-08-05  Jim Meyering  <meyering@ascend.com>
95239
95240         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95241         to avoid conflicts with `conftest' on 8+3 filesystems.
95242         Suggestion from Eli Zaretskii.
95243
95244 1999-08-04  Jim Meyering  <meyering@ascend.com>
95245
95246         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95247         fileutils and sh-utils (textutils's getline test was inadequate).
95248         (AM_FUNC_GETLINE): Run this test.
95249         (AC_CHECK_FUNCS): Check for getdelim.
95250         Reported by Bob Proulx.
95251
95252 1999-08-02  Jim Meyering  <meyering@ascend.com>
95253
95254         * m4/jm-macros.m4: Add a comment.
95255
95256 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95257
95258         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95259         <inttypes.h> defines strtoumax as a macro (and not as a
95260         function).
95261
95262 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95263
95264         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95265         that we can shift, multiply and divide unsigned long long
95266         values; Ultrix cc can't do it.
95267
95268 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95269
95270         * m4/mktime.m4: New file, which is a preview of what should appear
95271         in the next public autoconf release.
95272
95273 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95274
95275         * m4/lfs.m4: Remove this file.
95276         * m4/largefile.m4: New file.  It contains the old contents of
95277         lfs.m4, except that all names with prefix AC_LFS have been
95278         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95279         compatible with future autoconf versions.  Also, some minor m4
95280         quoting problems have been fixed.
95281
95282 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95283
95284         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95285         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95286         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95287         and simplify the shell code.
95288
95289 1999-08-01  Jim Meyering  <meyering@ascend.com>
95290
95291         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95292         m4.
95293
95294 1999-07-20  Jim Meyering  <meyering@ascend.com>
95295
95296         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95297
95298 1999-07-15  Jim Meyering  <meyering@ascend.com>
95299
95300         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95301
95302 1999-05-22  Jim Meyering  <meyering@ascend.com>
95303
95304         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95305
95306 1999-05-20  Jim Meyering  <meyering@ascend.com>
95307
95308         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95309         Add a colon after each `then' in case $4 is empty.
95310
95311 1999-05-16  Jim Meyering  <meyering@ascend.com>
95312
95313         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95314
95315 1999-05-10  Jim Meyering  <meyering@ascend.com>
95316
95317         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95318
95319         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95320         AC_FUNC_MKTIME.
95321
95322 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95323
95324         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95325
95326 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95327
95328         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95329         not CPPFLAGS, so that linking works correctly in IRIX.
95330
95331 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95332
95333         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95334
95335 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95336
95337         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95338         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95340         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95341         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95342
95343         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95344
95345 1999-04-20  Jim Meyering  <meyering@ascend.com>
95346
95347         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95348         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95349         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95350
95351 1999-04-18  Jim Meyering  <meyering@ascend.com>
95352
95353         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95354         * m4/jm-macros.m4: Use it.
95355
95356 1999-04-06  Jim Meyering  <meyering@ascend.com>
95357
95358         * m4/strftime.m4: Remove test for %f.
95359
95360 1999-03-29  Jim Meyering  <meyering@ascend.com>
95361
95362         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95363         superset of the AC_TYPE_* checks in the textutils, fileutils,
95364         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95365         AC_TYPE_PID_T.
95366
95367 1999-03-28  Jim Meyering  <meyering@ascend.com>
95368
95369         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95370         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95371         replaced e.g., in the *.sh files of the sh-utils.
95372
95373 1999-03-20  Jim Meyering  <meyering@ascend.com>
95374
95375         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95376         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95377         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95378
95379 1999-03-19  Jim Meyering  <meyering@ascend.com>
95380
95381         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95382
95383 1999-03-12  Jim Meyering  <meyering@ascend.com>
95384
95385         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95386
95387 1999-03-07  Jim Meyering  <meyering@ascend.com>
95388
95389         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95390         declared.
95391
95392 1999-02-17  Jim Meyering  <meyering@ascend.com>
95393
95394         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95395         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95396
95397 1999-02-07  Jim Meyering  <meyering@ascend.com>
95398
95399         * m4/group-member.m4: New file -- extracted from sh-utils'
95400         configure.in.
95401
95402         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95403         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95404
95405 1999-02-06  Jim Meyering  <meyering@ascend.com>
95406
95407         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95408         * m4/fnmatch.m4: Likewise.
95409         * m4/getgroups.m4: Likewise.
95410         * m4/lstat.m4: Likewise.
95411         * m4/malloc.m4: Likewise.
95412         * m4/putenv.m4: Likewise.
95413         * m4/realloc.m4: Likewise.
95414         * m4/regex.m4: Likewise.
95415         * m4/stat.m4: Likewise.
95416         * m4/strftime.m4: Likewise.
95417         Suggestion from Alain Magloire.
95418
95419         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95420         * m4/fnmatch.m4: Likewise.
95421         * m4/getgroups.m4: Likewise.
95422         * m4/getline.m4: Likewise.
95423         * m4/lstat.m4: Likewise.
95424         * m4/malloc.m4: Likewise.
95425         * m4/memcmp.m4: Likewise.
95426         * m4/putenv.m4: Likewise.
95427         * m4/realloc.m4: Likewise.
95428         * m4/regex.m4: Likewise.
95429         * m4/stat.m4: Likewise.
95430         * m4/strftime.m4: Likewise.
95431         Suggestion from Alain Magloire.
95432
95433         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95434         an argument.
95435
95436         * m4/regex.m4: Add a run-time Test for proper operation of
95437         re_compile_pattern.
95438
95439 1999-01-31  Jim Meyering  <meyering@ascend.com>
95440
95441         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95442
95443 1999-01-30  Jim Meyering  <meyering@ascend.com>
95444
95445         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95446
95447         * m4/jm-mktime.m4: Make this a wrapper around the official
95448         AM_FUNC_MKTIME rather than my private copy, now that the official one
95449         is up to date.
95450         * m4/mktime.m4: Remove file.
95451
95452         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95453         * m4/uptime.m4: Likewise.
95454         * m4/uintmax_t.m4: Likewise.
95455
95456 1999-01-28  Jim Meyering  <meyering@ascend.com>
95457
95458         * m4/jm-macros.m4: Use jm_AFS.
95459         * m4/afs.m4: New file (from fileutils' configure.in).
95460
95461         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95462         * m4/chown.m4: Likewise.
95463         * m4/d-ino.m4: Likewise.
95464         * m4/d-type.m4: Likewise.
95465         * m4/fnmatch.m4: Likewise.
95466         * m4/getgroups.m4: Likewise.
95467         * m4/gettext.m4: Likewise.
95468         * m4/jm-mktime.m4: Likewise.
95469         * m4/jm-winsz2.m4: Likewise.
95470         * m4/lcmessage.m4: Likewise.
95471         * m4/ls-mntd-fs.m4: Likewise.
95472         * m4/malloc.m4: Likewise.
95473         * m4/memcmp.m4: Likewise.
95474         * m4/putenv.m4: Likewise.
95475         * m4/realloc.m4: Likewise.
95476         * m4/st_mtim.m4: Likewise.
95477         * m4/strftime.m4: Likewise.
95478
95479 1999-01-16  Jim Meyering  <meyering@ascend.com>
95480
95481         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95482         (ARGMATCH_DIE_DECL): Define.
95483
95484 1999-01-12  Jim Meyering  <meyering@ascend.com>
95485
95486         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95487         Reported by Lars Hecking.
95488
95489 1999-01-10  Jim Meyering  <meyering@ascend.com>
95490
95491         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95492         gross kludge.
95493         * m4/inttypes_h.m4: Likewise.
95494         * m4/lstat.m4: Likewise.
95495         * m4/malloc.m4: Likewise.
95496         * m4/readdir.m4: Likewise.
95497         * m4/realloc.m4: Likewise.
95498         * m4/st_dm_mode.m4: Likewise.
95499         * m4/stat.m4: Likewise.
95500         * m4/utimbuf.m4: Likewise.
95501         * m4/utimes.m4: Likewise.
95502
95503         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95504         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95505         comments in config.h.in are meaningful.
95506
95507         * m4/jm-macros.m4: Require autoconf-2.13 here.
95508
95509         * m4/regex.m4: By default, don't use the included regex.c on systems
95510         with glibc 2.  Suggestion from Uli Drepper.
95511
95512 1999-01-02  Jim Meyering  <meyering@ascend.com>
95513
95514         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95515
95516 1998-12-18  Jim Meyering  <meyering@ascend.com>
95517
95518         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95519         Based on a suggestion from Lars Hecking.
95520
95521 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95522
95523         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95524
95525 1998-11-16  Jim Meyering  <meyering@ascend.com>
95526
95527         * m4/lfs.m4: Double-quote the `uname...` expression.
95528
95529 1998-11-14  Jim Meyering  <meyering@ascend.com>
95530
95531         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95532         * m4/stat.m4: Likewise.
95533
95534 1998-11-03  Jim Meyering  <meyering@ascend.com>
95535
95536         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95537         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95538
95539 1998-10-18  Jim Meyering  <meyering@ascend.com>
95540
95541         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95542
95543 1998-10-17  Jim Meyering  <meyering@ascend.com>
95544
95545         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95546         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95547         calls for those previously hard-coded headers.  Instead, take a new
95548         parameter.
95549         (jm_CHECK_DECLARATIONS): Reflect interface change.
95550         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95551         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95552
95553         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95554
95555 1998-10-14  Jim Meyering  <meyering@ascend.com>
95556
95557         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95558         instead of "TZ=America/Vancouver".  From Paul Eggert.
95559
95560 1998-10-11  Jim Meyering  <meyering@ascend.com>
95561
95562         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95563         This adds a test for a recently added compatibility fix for mktime.c.
95564         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95565
95566 1998-09-27  Jim Meyering  <meyering@ascend.com>
95567
95568         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95569
95570         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95571         ../configure.in, including a change from Gordon Matzigkeit to allow
95572         cross-compiling for the Hurd.
95573
95574         * m4/glibc.m4: New file/macro to test for the GNU C Library
95575         versions 1 and 2.  From Gordon Matzigkeit.
95576         Indent.
95577
95578 1998-09-21  Jim Meyering  <meyering@ascend.com>
95579
95580         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95581
95582 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95583
95584         Port nanosecond-resolution times to UnixWare 2.1.2 and
95585         pedantic Solaris 2.6.
95586
95587         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95588         AC_STRUCT_ST_MTIM.
95589         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95590         Generate name of ns member, instead of just 1 or undef.
95591         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95592
95593 1998-08-15  Jim Meyering  <meyering@ascend.com>
95594
95595         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95596         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95597         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95598         instead of jm_TYPE_SSIZE_T.
95599
95600 1998-08-12  Jim Meyering  <meyering@ascend.com>
95601
95602         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95603
95604 1998-08-02  Jim Meyering  <meyering@ascend.com>
95605
95606         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95607         in acconfig.h manually.
95608
95609 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95610
95611         * m4/st_mtim.m4: New file.
95612
95613 1998-07-28  Jim Meyering  <meyering@ascend.com>
95614
95615         * m4/utimes.m4: Undef stat.
95616
95617 1998-07-25  Jim Meyering  <meyering@ascend.com>
95618
95619         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95620         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95621
95622 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95623
95624         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95625         uid and gid actually remain unchanged.
95626
95627 1998-07-07  Jim Meyering  <meyering@ascend.com>
95628
95629         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95630
95631 1998-07-04  Jim Meyering  <meyering@ascend.com>
95632
95633         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95634         to prove that this macro can be used in packages without regex.c.
95635
95636 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95637
95638         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95639         is to be used.
95640
95641 1998-07-03  Jim Meyering  <meyering@ascend.com>
95642
95643         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95644
95645         * m4/gettext.m4: New file -- from gettext-0.10.35.
95646         * m4/lcmessage.m4: Likewise.
95647         * m4/progtest.m4: Likewise.
95648
95649         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95650         * m4/jm-macros.m4: Require the new macro.
95651
95652 1998-06-29  Jim Meyering  <meyering@ascend.com>
95653
95654         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95655         for the definition of NGROUPS (used in a system header included
95656         by sys/mount.h).
95657
95658 1998-06-28  Jim Meyering  <meyering@ascend.com>
95659
95660         * m4/ls-mntd-fs.m4: New file.
95661         * m4/fstypename.m4: New file.
95662
95663         * m4/jm-macros.m4: Require the new macro.
95664         * m4/jm-glibc-io.m4: New file.
95665
95666 1998-05-19  Jim Meyering  <meyering@ascend.com>
95667
95668         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95669         * m4/lchown.m4: New file.
95670
95671         * m4/Makefile.am.in: New file.
95672         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95673
95674 1998-05-14  Jim Meyering  <meyering@ascend.com>
95675
95676         * m4/Makefile.am (EXTRA_DIST): Add them.
95677         * m4/jm-macros.m4: New file.
95678         * m4/utimbuf.m4: New file.
95679
95680 1998-05-12  Jim Meyering  <meyering@ascend.com>
95681
95682         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95683
95684 1998-05-11  Jim Meyering  <meyering@ascend.com>
95685
95686         * m4/isc-posix.m4: New file.
95687
95688 1998-05-10  Jim Meyering  <meyering@ascend.com>
95689
95690         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95691
95692 1998-05-09  Jim Meyering  <meyering@ascend.com>
95693
95694         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95695         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95696         with automake.
95697
95698         * m4/ssize_t.m4: New file.
95699         * m4/mktime.m4: Remove file -- the new automake has this now.
95700
95701 1998-04-26  Jim Meyering  <meyering@ascend.com>
95702
95703         * m4/assert.m4: New file.
95704         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95705
95706 1998-04-05  Jim Meyering  <meyering@ascend.com>
95707
95708         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95709         (jm_PREREQ): Use it here.
95710
95711 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95712
95713         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95714         in acconfig.h.
95715
95716 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95717
95718         * m4/prereq.m4: New file.
95719         * m4/error.m4: New file.
95720         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95721
95722 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95723
95724         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95725         cache-check for the same variable -- that defeated the purpose of
95726         the test; the test program was never run.  This was a problem only
95727         on systems with losing getline functions -- HP-UX 10.20 is one.
95728         Reported by Bjorn Helgaas.
95729
95730 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95731
95732         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95733
95734 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95735
95736         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95737
95738         * m4/const.m4: New file.  Use an initializer in this declaration
95739         typedef int charset[2]; const charset x;
95740         Reported by Bob Glickstein.
95741
95742 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95743
95744         * m4/chown.m4: Fix reversed types on -1 args to chown.
95745         From Kaveh Ghazi.
95746
95747 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95748
95749         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95750         Add lseek and memchr.
95751
95752         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95753         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95754         have a 20-character limit on names.
95755
95756 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95757
95758         * m4/inttypes_h.m4: New file.
95759         * m4/uintmax_t.m4: New file.
95760         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95761
95762
95763         -----
95764
95765         Local Variables:
95766         coding: utf-8
95767         End:
95768
95769         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95770
95771         Copying and distribution of this file, with or without
95772         modification, are permitted provided the copyright notice
95773         and this notice are preserved.